/* ==========================================================================
   Gedankenwirbel Filmreview — Frontend Styles
   Design: Ollie FSE Child Theme Integration
   Palette: Ollie Black Gradient (#14111E → #4B4462) + Ollie Primary (#5344F4)
   Font: Mona Sans via --wp--preset--font-family--primary/--expanded
   ========================================================================== */

.gwb-filmreview,
.gwb-filmreviews-archive,
.gwb-hero {
  --gwb-bg: #0f0f12;
  --gwb-focus-width: 1080px;
  --gwb-bg-elevated: #16161c;
  --gwb-bg-soft: #1b1c23;
  --gwb-bg-soft-2: #20222b;
  --gwb-ink: #f1f1f3;
  --gwb-ink-soft: #d0d0d6;
  --gwb-muted: #aaaab4;
  --gwb-line: rgba(255, 255, 255, 0.12);
  --gwb-line-soft: rgba(255, 255, 255, 0.07);
  /* Accent: Ollie Primary Purple — falls back to hard-coded value if CSS var
     is not yet defined (e.g. non-FSE context or cache miss). */
  --gwb-accent: var(--wp--preset--color--primary, #5344F4);
  --gwb-accent-rgb: 83, 68, 244;
  --gwb-good: #7ad48d;
  --gwb-bad: #f06b6b;
  color: var(--gwb-ink);
}

.gwb-filmreview {
  position: relative;
  /* Ollie Black Gradient as base, with cinematic radial highlights */
  background:
    radial-gradient(1200px 580px at 8% -12%, rgba(177, 18, 38, 0.18), transparent 62%),
    radial-gradient(900px 560px at 88% 0%, rgba(83, 68, 244, 0.14), transparent 64%),
    linear-gradient(135deg, #14111E 0%, #4B4462 100%);
  color: var(--gwb-ink);
}

.gwb-filmreview::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background:
    radial-gradient(900px 380px at 50% 20%, rgba(255, 255, 255, 0.02), transparent 65%),
    radial-gradient(1200px 700px at 50% 120%, rgba(0, 0, 0, 0.22), transparent 70%),
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.012) 0 1px,
      transparent 1px 4px
    );
  z-index: 0;
}

.gwb-filmreviews-archive {
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(83, 68, 244, 0.1), transparent 60%),
    linear-gradient(135deg, #14111E 0%, #4B4462 100%);
}

.gwb-container {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}

.gwb-filmreview-body {
  position: relative;
  z-index: 4;
  margin-top: -2.4rem;

  padding-bottom: 3rem;
}

.gwb-filmreview-body > * {
  opacity: 0;
  transform: translateY(14px);
  animation: gwb-fade-up 0.55s ease forwards;
}

.gwb-filmreview-body > *:nth-child(2) {
  animation-delay: 0.08s;
}

.gwb-filmreview-body > *:nth-child(3) {
  animation-delay: 0.14s;
}

.gwb-filmreview-body > *:nth-child(4) {
  animation-delay: 0.2s;
}

.gwb-filmreview-body > *:nth-child(5) {
  animation-delay: 0.26s;
}

@keyframes gwb-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Hero Section
   In FSE/Ollie the header is in normal document flow (sticky).
   No overlay or admin-bar-offset hacks required — WP Core provides
   --wp-admin--admin-bar--height on :root automatically.
   -------------------------------------------------------------------------- */

.gwb-hero {
  position: relative;
  overflow: clip;
  min-height: clamp(440px, 62vh, 720px);
  margin: 0;
  isolation: isolate;
  background: #14111E;
}

.gwb-hero-backdrop,
.gwb-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gwb-hero-backdrop {
  background-image: var(--gwb-hero-image);
  background-position: center 20%;
  background-size: cover;
  transform: scale(1.08);
  filter: saturate(1.0) brightness(0.55);
  transition: transform 0.8s ease;
}

.gwb-hero-overlay {
  background:
    radial-gradient(70% 70% at 50% 18%, rgba(255, 255, 255, 0.03), transparent 60%),
    linear-gradient(90deg, rgba(7, 7, 9, 0.88) 0%, rgba(7, 7, 9, 0.62) 38%, rgba(7, 7, 9, 0.28) 63%, rgba(7, 7, 9, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.06) 28%, rgba(0, 0, 0, 0.55) 100%);
}

.gwb-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(80px, 14vw, 140px);
  z-index: 1;
  pointer-events: none;
  /* Fade to Ollie Black Gradient start colour */
  background:
    linear-gradient(180deg, rgba(20, 17, 30, 0) 0%, rgba(20, 17, 30, 0.78) 60%, rgba(20, 17, 30, 1) 100%);
}

@media (hover: hover) {
  .gwb-hero:hover .gwb-hero-backdrop {
    transform: scale(1.1) translateY(-1%);
  }
}

.gwb-hero-inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: grid !important;
  width: min(var(--gwb-focus-width), 100%);
  max-width: var(--gwb-focus-width);
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(1.35rem, 3.2vw, 2.6rem);
  align-items: center;
  justify-content: center;
  /* Generous top padding creates breathing room under Ollie's sticky header */
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2.6rem, 6vw, 4.6rem);
}

.gwb-hero-media {
  align-self: center;
  position: relative;
}

.gwb-hero-media::after {
  content: "";
  position: absolute;
  inset: 8px -8px -10px 8px;
  z-index: -1;
  border-radius: 6px;
  background:
    radial-gradient(circle at 35% 35%, rgba(var(--gwb-accent-rgb), 0.2), transparent 58%),
    radial-gradient(circle at 70% 78%, rgba(255, 255, 255, 0.08), transparent 62%);
  filter: blur(14px);
  opacity: 0.5;
}

.gwb-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 26px 52px rgba(0, 0, 0, 0.52),
    0 10px 26px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(var(--gwb-accent-rgb), 0.05),
    0 0 22px rgba(var(--gwb-accent-rgb), 0.08);
  transform: perspective(1000px) rotateY(-4deg);
  transform-origin: left center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

@media (hover: hover) {
  .gwb-hero-media img:hover {
    transform: perspective(1000px) rotateY(-2deg) scale(1.03);
    box-shadow:
      0 34px 66px rgba(0, 0, 0, 0.58),
      0 14px 28px rgba(0, 0, 0, 0.38),
      0 0 26px rgba(var(--gwb-accent-rgb), 0.12);
  }
}

.gwb-hero-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem 0 0.2rem;
  max-width: none;
}

.gwb-hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.gwb-meta-label {
  font-family: var(--wp--preset--font-family--primary, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gwb-muted);
  font-weight: 700;
}

.gwb-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gwb-ink-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  padding: 0.34rem 0.68rem;
  gap: 0.38rem;
}

.gwb-pill svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  flex-shrink: 0;
}

.gwb-pill--year {
  border-color: rgba(var(--gwb-accent-rgb), 0.45);
  background: rgba(var(--gwb-accent-rgb), 0.12);
  color: #c5c1ff;
}

.gwb-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.34rem 0.76rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  border: 1px solid transparent;
}

.gwb-badge.good {
  background: rgba(122, 212, 141, 0.12);
  border-color: rgba(122, 212, 141, 0.25);
  color: #b7f5c4;
}

.gwb-badge.medium {
  background: rgba(var(--gwb-accent-rgb), 0.12);
  border-color: rgba(var(--gwb-accent-rgb), 0.28);
  color: #c8c5ff;
}

.gwb-badge.bad {
  background: rgba(240, 107, 107, 0.12);
  border-color: rgba(240, 107, 107, 0.22);
  color: #ffc4c4;
}

/* Hero title: Mona Sans Expanded for display-size impact */
.gwb-hero-title {
  margin: 0 !important;
  font-family: var(--wp--preset--font-family--expanded, var(--wp--preset--font-family--primary, sans-serif));
  font-size: clamp(2.4rem, 4vw, 3.6rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #f5f5f5 !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  word-break: normal;
  overflow-wrap: break-word;
}

.gwb-hero-teaser {
  margin: 0;
  color: rgba(245, 245, 247, 0.78);
  font-family: var(--wp--preset--font-family--primary, sans-serif);
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 68ch;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gwb-rating-strip {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.15rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--gwb-line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  width: fit-content;
  max-width: 100%;
  backdrop-filter: blur(4px);
}

.gwb-rating-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.5rem;
  white-space: nowrap;
}

.gwb-rating-item + .gwb-rating-item {
  padding-left: 0.85rem;
}

.gwb-rating-item + .gwb-rating-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 0.95rem;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.16);
}

.gwb-rating-label {
  color: var(--gwb-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.gwb-rating-stars {
  color: var(--gwb-accent);
  letter-spacing: 0.08rem;
  font-size: 0.9rem;
  line-height: 1;
}

.gwb-rating-value {
  color: #f7f3f8;
  font-size: 1.02rem;
  font-weight: 700;
}

.gwb-rating-value--low    { color: #f87171; }
.gwb-rating-value--medium { color: #fbbf24; }
.gwb-rating-value--high   { color: #86efac; }

.gwb-meta-strip {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.gwb-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--gwb-ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.36rem 0.58rem;
  border-radius: 4px;
}

.gwb-meta-chip svg,
.gwb-chip svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.gwb-chip-row {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.1rem;
}

.gwb-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border-radius: 4px;
  border: 1px solid rgba(var(--gwb-accent-rgb), 0.26);
  background: rgba(var(--gwb-accent-rgb), 0.08);
  color: #c5c1ff;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.58rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gwb-chip:hover {
  background: rgba(var(--gwb-accent-rgb), 0.14);
  border-color: rgba(var(--gwb-accent-rgb), 0.4);
  transform: translateY(-1px);
}

.gwb-chip-provider {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   Spoiler Alert
   -------------------------------------------------------------------------- */

.gwb-spoiler-alert {
  margin-top: 1.1rem;
  border-left: 2px solid rgba(240, 107, 107, 0.55);
  background: rgba(176, 34, 34, 0.12);
  color: #ffd2d2;
  border-radius: 4px;
  padding: 0.8rem 1rem;
}

/* --------------------------------------------------------------------------
   Review Article
   -------------------------------------------------------------------------- */

.gwb-review-article {
  position: relative;
  max-width: min(var(--gwb-focus-width), 100%);
  margin: 1.25rem auto 0;
  padding: clamp(1.15rem, 2.6vw, 2rem) clamp(1rem, 2.8vw, 2.2rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.015));
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.gwb-review-article::before {
  content: "";
  position: absolute;
  inset: -14px 10% auto;
  height: 28px;
  pointer-events: none;
  filter: blur(20px);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.35) 0%, transparent 72%);
}

/* Review title: the WordPress post title sitting inside the text block */
.gwb-review-headline {
  margin: 0 0 1rem;
  color: var(--gwb-ink);
  font-family: var(--wp--preset--font-family--expanded, var(--wp--preset--font-family--primary, sans-serif));
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* Lead paragraph: Mona Sans at slightly larger size */
.gwb-review-article .lead {
  margin: 0 0 1rem;
  color: #ececf0;
  font-family: var(--wp--preset--font-family--primary, sans-serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.45;
}

.gwb-review-content {
  color: var(--gwb-ink-soft);
  font-family: var(--wp--preset--font-family--primary, sans-serif);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.82;
}

.gwb-review-content > * {
  margin-top: 0;
  margin-bottom: 1.1rem;
}

.gwb-review-content > *:last-child {
  margin-bottom: 0;
}

/* Dropcap: Mona Sans Expanded, bold */
.gwb-review-content > p:first-of-type::first-letter {
  float: left;
  font-family: var(--wp--preset--font-family--expanded, var(--wp--preset--font-family--primary, sans-serif));
  font-size: 3.15rem;
  line-height: 0.8;
  margin: 0.15rem 0.35rem 0 0;
  font-weight: 800;
  color: #c5c1ff;
}

.gwb-review-content h2,
.gwb-review-content h3,
.gwb-review-content h4 {
  color: #f3f3f5 !important;
  font-family: var(--wp--preset--font-family--expanded, var(--wp--preset--font-family--primary, sans-serif));
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 1.7rem;
  margin-bottom: 0.5rem;
}

.gwb-review-content a {
  color: #a8a3ff;
  text-decoration-color: rgba(var(--gwb-accent-rgb), 0.45);
  text-underline-offset: 3px;
}

.gwb-review-content blockquote {
  margin: 1.8rem auto;
  max-width: 32ch;
  padding: 0.4rem 0;
  border: 0;
  color: #f0f0f2;
  font-family: var(--wp--preset--font-family--expanded, var(--wp--preset--font-family--primary, sans-serif));
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.22;
  text-align: center;
}

.gwb-fsk-logo {
  height: 2rem;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Details Grid (Quick Facts + Ratings)
   -------------------------------------------------------------------------- */

.gwb-details-grid {
  max-width: min(var(--gwb-focus-width), 100%);
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.4rem;
  align-items: start;
}

.gwb-details-grid .gwb-panel {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--gwb-line-soft);
  border-radius: 0;
  padding: 0.85rem 0 0;
}

.gwb-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.gwb-panel,
.gwb-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.012));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem 1.15rem 1.1rem;
}

.gwb-section-heading {
  margin: 0 0 0.9rem;
  color: #f4f4f6 !important;
  font-family: var(--wp--preset--font-family--expanded, var(--wp--preset--font-family--primary, sans-serif));
  font-size: clamp(1.35rem, 2.2vw, 1.65rem) !important;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(var(--gwb-accent-rgb), 0.28);
}

.gwb-facts-list,
.gwb-ratings-list,
.gwb-symbol-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gwb-facts-list {
  display: grid;
  gap: 0.8rem;
}

.gwb-facts-list li {
  display: grid;
  gap: 0.22rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--gwb-line-soft);
}

.gwb-facts-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.gwb-fact-label {
  color: var(--gwb-muted);
  font-family: var(--wp--preset--font-family--primary, sans-serif);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-weight: 700;
}

.gwb-fact-value {
  color: #f2f2f5;
  font-family: var(--wp--preset--font-family--primary, sans-serif);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.25;
}

.gwb-ratings-list {
  display: grid;
  gap: 0.3rem;
}

.gwb-ratings-list li {
  display: grid;
  gap: 0.18rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--gwb-line-soft);
}

.gwb-ratings-list li:last-child {
  border-bottom: 0;
}

.gwb-ratings-list li span {
  color: var(--gwb-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.66rem;
  font-weight: 700;
}

.gwb-ratings-list li strong {
  color: #c5c1ff;
  font-family: var(--wp--preset--font-family--expanded, var(--wp--preset--font-family--primary, sans-serif));
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Related Reviews
   -------------------------------------------------------------------------- */

.gwb-related-panel {
  max-width: min(var(--gwb-focus-width), 100%);
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.2rem;
}

.gwb-related-panel .gwb-archive-grid {
  margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   Archive Hero Banner
   -------------------------------------------------------------------------- */

.gwb-archive-hero {
  position: relative;
  min-height: clamp(180px, 28vh, 320px);
  display: flex;
  align-items: center;
  overflow: clip;
  background:
    radial-gradient(800px 400px at 10% -5%, rgba(83, 68, 244, 0.18), transparent 60%),
    radial-gradient(600px 360px at 90% 20%, rgba(177, 18, 38, 0.12), transparent 55%),
    linear-gradient(135deg, #14111E 0%, #4B4462 100%);
}

.gwb-archive-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.012) 0 1px,
    transparent 1px 4px
  );
}

.gwb-archive-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(15, 15, 18, 0.6));
  pointer-events: none;
}

.gwb-archive-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.gwb-archive-hero__text {
  flex: 1 1 auto;
  min-width: 0;
}

.gwb-archive-hero__title {
  margin: 0 0 0.4rem !important;
  font-family: var(--wp--preset--font-family--expanded, var(--wp--preset--font-family--primary, sans-serif));
  font-size: clamp(2.8rem, 5vw, 4.5rem) !important;
  font-weight: 900;
  line-height: 0.95 !important;
  letter-spacing: -0.02em;
  color: #f5f5f5 !important;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.gwb-archive-hero__subtitle {
  margin: 0;
  color: var(--gwb-muted);
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  font-weight: 400;
  font-family: var(--wp--preset--font-family--primary, sans-serif);
}

.gwb-archive-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.gwb-archive-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-width: 80px;
}

.gwb-archive-stat__value {
  font-family: var(--wp--preset--font-family--expanded, var(--wp--preset--font-family--primary, sans-serif));
  font-size: 1.5rem;
  font-weight: 800;
  color: #f5f5f5;
  line-height: 1;
}

.gwb-archive-stat__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gwb-muted);
  font-weight: 700;
  font-family: var(--wp--preset--font-family--primary, sans-serif);
}

/* --------------------------------------------------------------------------
   Archive Filter Bar (Sticky Glassmorphism)
   -------------------------------------------------------------------------- */

.gwb-filter-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 18, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.6rem 0;
}

.gwb-filter-bar__inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.gwb-filter-bar form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.gwb-filter-bar select {
  flex: 1 1 auto;
  min-width: 120px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gwb-ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  padding: 0 1.8rem 0 0.65rem;
  font-size: 0.82rem;
  font-family: var(--wp--preset--font-family--primary, sans-serif);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23aaaab4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  transition: border-color 0.2s;
}

.gwb-filter-bar select:hover,
.gwb-filter-bar select:focus {
  border-color: rgba(var(--gwb-accent-rgb), 0.45);
  outline: none;
}

.gwb-filter-bar select option {
  background: #17131e;
  color: #e9e9ee;
}

.gwb-filter-bar button[type="submit"] {
  flex-shrink: 0;
  height: 38px;
  padding: 0 1.1rem;
  background: rgba(var(--gwb-accent-rgb), 0.18);
  border: 1px solid rgba(var(--gwb-accent-rgb), 0.38);
  border-radius: 6px;
  color: #c5c1ff;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--wp--preset--font-family--primary, sans-serif);
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.gwb-filter-bar button[type="submit"]:hover {
  background: rgba(var(--gwb-accent-rgb), 0.30);
  border-color: rgba(var(--gwb-accent-rgb), 0.6);
}

/* --------------------------------------------------------------------------
   Archive: Legacy Filter Form (kept for related-reviews compatibility)
   -------------------------------------------------------------------------- */

.gwb-archive-filter {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.gwb-archive-filter select,
.gwb-archive-filter button {
  width: 100%;
  min-height: 40px;
  background: #17131e;
  color: #e9e9ee;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.gwb-archive-filter button {
  cursor: pointer;
  background: rgba(var(--gwb-accent-rgb), 0.18);
  border-color: rgba(var(--gwb-accent-rgb), 0.35);
  font-weight: 600;
  color: #c5c1ff;
}

.gwb-archive-filter button:hover {
  background: rgba(var(--gwb-accent-rgb), 0.26);
}

/* --------------------------------------------------------------------------
   Archive Grid
   -------------------------------------------------------------------------- */

.gwb-archive-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Archive Poster Cards (.gwb-archive-card)
   -------------------------------------------------------------------------- */

.gwb-archive-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--gwb-bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition:
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gwb-archive-card:hover {
  box-shadow:
    0 0 0 2px var(--gwb-accent),
    0 16px 48px rgba(var(--gwb-accent-rgb), 0.35),
    0 8px 24px rgba(0, 0, 0, 0.4);
  border-color: rgba(var(--gwb-accent-rgb), 0.4);
}

.gwb-archive-card__link {
  display: block;
  position: absolute;
  inset: 0;
  text-decoration: none;
  color: inherit;
}

.gwb-archive-card__poster {
  position: absolute;
  inset: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gwb-archive-card:hover .gwb-archive-card__poster {
  transform: scale(1.05);
}

.gwb-archive-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gwb-archive-card__poster--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(var(--gwb-accent-rgb), 0.2),
    rgba(177, 18, 38, 0.15)
  );
  color: rgba(255, 255, 255, 0.2);
}

.gwb-archive-card__poster--fallback svg {
  width: 48px;
  height: 48px;
}

.gwb-archive-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0) 35%,
    rgba(10, 10, 16, 0.65) 65%,
    rgba(10, 10, 16, 0.95) 100%
  );
  transition: background 0.3s;
}

.gwb-archive-card:hover .gwb-archive-card__overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0) 25%,
    rgba(10, 10, 16, 0.75) 50%,
    rgba(10, 10, 16, 0.98) 100%
  );
}

.gwb-archive-card__rating {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  min-width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-family: var(--wp--preset--font-family--expanded, var(--wp--preset--font-family--primary, sans-serif));
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  padding: 0 0.4rem;
  border: 1px solid transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gwb-archive-card__rating.good {
  background: rgba(122, 212, 141, 0.2);
  border-color: rgba(122, 212, 141, 0.35);
  color: #b7f5c4;
}

.gwb-archive-card__rating.medium {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.30);
  color: #fde68a;
}

.gwb-archive-card__rating.bad {
  background: rgba(240, 107, 107, 0.18);
  border-color: rgba(240, 107, 107, 0.28);
  color: #ffc4c4;
}

.gwb-archive-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0.65rem 0.75rem 0.8rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gwb-archive-card:hover .gwb-archive-card__body {
  transform: translateY(-3.2rem);
}

.gwb-archive-card__title {
  margin: 0.3rem 0 0 !important;
  font-family: var(--wp--preset--font-family--expanded, var(--wp--preset--font-family--primary, sans-serif)) !important;
  font-size: clamp(0.88rem, 1.4vw, 1.05rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #f5f5f5 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gwb-archive-card__reveal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0.6rem 0.75rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gwb-archive-card:hover .gwb-archive-card__reveal {
  opacity: 1;
  transform: translateY(0);
}

.gwb-archive-card__cta {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c5c1ff;
  letter-spacing: 0.05em;
  font-family: var(--wp--preset--font-family--primary, sans-serif);
  margin-top: 0.1rem;
}

/* Stagger animation for cards */
.gwb-archive-grid .gwb-archive-card {
  opacity: 0;
  animation: gwb-fade-up 0.45s ease both;
}

.gwb-archive-grid .gwb-archive-card:nth-child(1)   { animation-delay: 0.00s; }
.gwb-archive-grid .gwb-archive-card:nth-child(2)   { animation-delay: 0.07s; }
.gwb-archive-grid .gwb-archive-card:nth-child(3)   { animation-delay: 0.14s; }
.gwb-archive-grid .gwb-archive-card:nth-child(4)   { animation-delay: 0.21s; }
.gwb-archive-grid .gwb-archive-card:nth-child(5)   { animation-delay: 0.28s; }
.gwb-archive-grid .gwb-archive-card:nth-child(6)   { animation-delay: 0.35s; }
.gwb-archive-grid .gwb-archive-card:nth-child(7)   { animation-delay: 0.42s; }
.gwb-archive-grid .gwb-archive-card:nth-child(n+8) { animation-delay: 0.49s; }

/* --------------------------------------------------------------------------
   Archive: Legacy Item (kept for related-reviews compatibility)
   -------------------------------------------------------------------------- */

.gwb-archive-item {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.gwb-archive-item a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.gwb-archive-item img {
  display: block;
  width: 100%;
  height: auto;
}

.gwb-archive-item .body {
  padding: 0.85rem;
}

.gwb-archive-item h2,
.gwb-archive-item h3 {
  margin: 0 0 0.4rem;
  color: #f2f2f5 !important;
  font-family: var(--wp--preset--font-family--expanded, var(--wp--preset--font-family--primary, sans-serif));
  font-size: 1.2rem !important;
  font-weight: 700;
  line-height: 1.15 !important;
  letter-spacing: -0.01em;
}

.gwb-archive-item p {
  margin: 0;
  color: var(--gwb-muted);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Archive Pagination
   -------------------------------------------------------------------------- */

.gwb-filmreviews-archive .navigation.pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.gwb-filmreviews-archive .nav-links {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.gwb-filmreviews-archive .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gwb-ink-soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--wp--preset--font-family--primary, sans-serif);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.gwb-filmreviews-archive .page-numbers.current,
.gwb-filmreviews-archive .page-numbers:hover {
  background: rgba(var(--gwb-accent-rgb), 0.2);
  border-color: rgba(var(--gwb-accent-rgb), 0.4);
  color: #c5c1ff;
}

.gwb-filmreviews-archive .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* No-results message */
.gwb-no-results {
  text-align: center;
  color: var(--gwb-muted);
  padding: 3rem 0;
  font-family: var(--wp--preset--font-family--primary, sans-serif);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .gwb-hero-inner {
    grid-template-columns: minmax(170px, 230px) minmax(0, 1fr);
  }

  .gwb-archive-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gwb-archive-hero__inner {
    gap: 1.5rem;
  }
}

@media (max-width: 860px) {
  .gwb-filmreview-body {
    margin-top: -1rem;
  }

  .gwb-hero {
    min-height: auto;
  }

  .gwb-hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
    padding-bottom: 2rem;
    gap: 1rem;
    justify-content: stretch;
  }

  .gwb-hero-media {
    margin: 0 auto;
    max-width: 260px;
  }

  .gwb-hero-media::after {
    inset: 6px -6px -8px 6px;
  }

  .gwb-hero-media img {
    transform: none;
  }

  .gwb-rating-strip {
    width: 100%;
    justify-content: center;
  }

  .gwb-rating-item + .gwb-rating-item {
    padding-left: 0.65rem;
  }
}

@media (max-width: 780px) {
  .gwb-grid {
    grid-template-columns: 1fr;
  }

  .gwb-archive-filter {
    grid-template-columns: 1fr;
  }

  .gwb-archive-hero__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .gwb-archive-stats {
    width: 100%;
    justify-content: flex-start;
  }

  .gwb-hero-title {
    line-height: 1.03 !important;
  }

  .gwb-rating-strip {
    gap: 0.45rem;
    padding: 0.6rem 0.7rem;
  }

  .gwb-rating-item {
    flex-wrap: wrap;
    row-gap: 0.15rem;
  }

  .gwb-rating-item + .gwb-rating-item::before {
    height: 0.8rem;
  }

  .gwb-review-content {
    font-size: 1rem;
    line-height: 1.76;
  }
}

@media (max-width: 640px) {
  .gwb-archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .gwb-filter-bar select {
    min-width: 100px;
  }
}

@media (max-width: 420px) {
  .gwb-archive-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gwb-filmreview-body > *,
  .gwb-hero-backdrop,
  .gwb-hero-media img,
  .gwb-chip {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .gwb-filmreview-body > * {
    opacity: 1 !important;
  }

  .gwb-archive-grid .gwb-archive-card {
    animation: none !important;
    opacity: 1 !important;
  }

  .gwb-archive-card__poster,
  .gwb-archive-card__body,
  .gwb-archive-card__reveal,
  .gwb-archive-card__overlay {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Trailer Embed
   -------------------------------------------------------------------------- */

.gwb-trailer-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin: 1.5rem 0;
  background: #000;
}

.gwb-trailer-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   Cast Grid
   -------------------------------------------------------------------------- */

.gwb-cast-panel {
  max-width: min(var(--gwb-focus-width), 100%);
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.4rem;
}

.gwb-cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 1rem;
  margin-top: 0.2rem;
}

.gwb-cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.gwb-cast-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--gwb-bg-soft);
  flex-shrink: 0;
}

.gwb-cast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gwb-cast-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--wp--preset--font-family--expanded, sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gwb-muted);
}

.gwb-cast-name {
  color: var(--gwb-ink);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

.gwb-cast-character {
  color: var(--gwb-muted);
  font-size: 0.7rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
}
