/*
Theme Name: Falkenlied Netflix
Theme URI: https://falkenlied.com
Author: Falkenlied
Description: Cinematic streaming style theme for Falkenlied with editable worlds, series titles and episodes.
Version: 3.1.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: falkenlied-netflix
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cinzel+Decorative:wght@400;700&display=swap');

:root {
  --bg: #050504;
  --text: #f5ecdc;
  --muted: #b9aa91;
  --gold: #c99a45;
  --line: rgba(255, 238, 197, 0.16);
  --shadow: rgba(0, 0, 0, 0.68);
  --max: 1280px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 18% 0%, rgba(201,154,69,0.13), transparent 34rem), radial-gradient(circle at 88% 8%, rgba(86,49,24,0.26), transparent 42rem), linear-gradient(180deg, #070605 0%, #0e0b09 44%, #050504 100%);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.22;
  mix-blend-mode: soft-light;
}
a, button { color: inherit; font: inherit; }
a { text-decoration: none; }
button { cursor: pointer; }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 16px 22px;
  background: linear-gradient(180deg, rgba(0,0,0,0.86), rgba(0,0,0,0));
}
.site-header-inner {
  width: min(var(--max), 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}
.brand strong {
  font-family: var(--serif);
  color: var(--text);
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 500;
}
.main-nav { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.main-nav a { border: 1px solid transparent; border-radius: 999px; padding: 8px 12px; transition: color 180ms ease, background 180ms ease, border-color 180ms ease; }
.main-nav a:hover, .main-nav a:focus { color: var(--text); background: rgba(255,255,255,0.07); border-color: var(--line); }
.hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 92px 24px 52px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: none !important;
  display: none !important;
  background-image: none !important;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(0,0,0,0.9), rgba(0,0,0,0.42) 48%, rgba(0,0,0,0.68)), linear-gradient(180deg, rgba(0,0,0,0.2), rgba(5,5,4,0.98));
}
.hero-inner { width: min(var(--max), 100%); }
.kicker { color: var(--gold); text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; margin-bottom: 18px; }
.hero h1, .page-title {
  font-family: var(--serif);
  font-size: clamp(50px, 8vw, 118px);
  line-height: 0.92;
  font-weight: 500;
  max-width: 980px;
  margin: 0 0 22px;
  text-shadow: 0 18px 60px var(--shadow);
}
.hero-text { max-width: 720px; color: rgba(245,236,220,0.88); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.65; text-shadow: 0 12px 38px var(--shadow); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.08); color: var(--text); backdrop-filter: blur(12px); font-weight: 700; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
.btn.primary { background: linear-gradient(135deg, rgba(213,166,78,0.98), rgba(133,76,28,0.98)); color: #140e08; border-color: rgba(255,224,167,0.4); }
.btn:hover, .btn:focus { transform: translateY(-2px); background: rgba(255,255,255,0.14); border-color: rgba(255,238,197,0.34); }


.world-hero,
.series-hero {
  min-height: 68vh;
  padding-bottom: 58px;
}

.world-hero .hero-inner,
.series-hero .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(520px, 1fr);
  gap: clamp(26px, 4.5vw, 72px);
  align-items: end;
}

.world-hero h1,
.series-hero h1 {
  font-size: clamp(40px, 5.4vw, 78px);
}

.world-hero-copy,
.series-hero-copy {
  max-width: 920px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  color: rgba(245,236,220,0.82);
  font-size: clamp(14px, 0.96vw, 15.5px);
  line-height: 1.76;
  text-shadow: 0 10px 32px rgba(0,0,0,0.82);
}

.world-hero-copy p,
.series-hero-copy p {
  margin: 0 0 1em;
}

.world-hero-copy p:last-child,
.series-hero-copy p:last-child {
  margin-bottom: 0;
}

.main { width: min(var(--max), calc(100% - 42px)); margin: 0 auto; padding: 42px 0 100px; }
.section-title, .rail-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 20px; }
.section-title h2, .rail-head h2 { font-family: var(--serif); font-size: clamp(32px, 4vw, 54px); line-height: 1; margin: 0; font-weight: 500; }
.section-title p, .rail-head p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.62; }

.world-intro {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  box-shadow: 0 22px 70px rgba(0,0,0,0.42);
}

.world-intro h2 {
  max-width: 470px;
}

.world-copy {
  font-size: 16px;
}

.world-copy p {
  margin: 0 0 1em;
}

.world-copy p:last-child {
  margin-bottom: 0;
}

.rail { margin-top: 58px; }
.rail-tools { display: flex; gap: 10px; align-items: center; }
.rail-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--text); transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
.rail-btn:hover, .rail-btn:focus { transform: translateY(-2px); background: rgba(255,255,255,0.14); border-color: rgba(255,238,197,0.34); }
.card-row { display: flex; gap: 18px; overflow-x: auto; overflow-y: hidden; padding: 6px 4px 24px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(255,238,197,0.28) transparent; -webkit-overflow-scrolling: touch; touch-action: pan-x; }
.card-row::-webkit-scrollbar { height: 10px; }
.card-row::-webkit-scrollbar-thumb { background: rgba(255,238,197,0.22); border-radius: 999px; }
.world-card { position: relative; flex: 0 0 min(430px, 84vw); border-radius: 26px; overflow: hidden; background: #111; box-shadow: 0 22px 70px rgba(0,0,0,0.55); min-height: 430px; isolation: isolate; transform: translateY(0); transition: transform 200ms ease, box-shadow 200ms ease; }
.world-card:hover, .world-card:focus-within { transform: translateY(-8px) scale(1.012); box-shadow: 0 32px 90px rgba(0,0,0,0.72); }
.world-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--img); background-size: cover; background-position: center; filter: brightness(0.72) saturate(0.95); transition: transform 320ms ease, filter 320ms ease; }
.world-card:hover::before, .world-card:focus-within::before { transform: scale(1.045); filter: brightness(0.82) saturate(1.02); }
.world-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.22) 36%, rgba(0,0,0,0.88)), linear-gradient(90deg, rgba(0,0,0,0.54), rgba(0,0,0,0.08)); }
.world-card-body { min-height: 430px; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; }
.world-card h3 { font-family: var(--serif); font-size: clamp(32px, 3.2vw, 48px); line-height: 1; font-weight: 500; margin: 0 0 12px; text-shadow: 0 12px 42px rgba(0,0,0,0.8); }
.world-card p { margin: 0; max-width: 460px; color: rgba(245,236,220,0.82); line-height: 1.58; }
.item { flex: 0 0 min(360px, 78vw); scroll-snap-align: start; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: rgba(255,255,255,0.045); box-shadow: 0 18px 55px rgba(0,0,0,0.42); transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.item:hover, .item:focus-within { transform: translateY(-5px); border-color: rgba(201,154,69,0.58); background: rgba(201,154,69,0.075); }
.item img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: rgba(255,255,255,0.04); }
.item-body { padding: 18px; }
.item-meta { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 10px; }
.item h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 0 0 10px; }
.item p { margin: 0; color: rgba(245,236,220,0.74); line-height: 1.56; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.link-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.mini-link { display: inline-flex; align-items: center; min-height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid rgba(255,238,197,0.16); background: rgba(0,0,0,0.24); color: rgba(245,236,220,0.86); font-size: 13px; font-weight: 700; transition: background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.mini-link:hover, .mini-link:focus { transform: translateY(-2px); background: rgba(201,154,69,0.18); border-color: rgba(201,154,69,0.56); }
.entry-content { max-width: 840px; margin: 0 auto; padding: clamp(34px, 7vw, 82px) clamp(24px, 5vw, 60px); color: rgba(245,236,220,0.88); font-family: var(--serif); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.82; }
.entry-content p { margin: 0 0 1.3em; }
.simple-page { padding-top: 118px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); text-align: center; padding: 36px 24px 48px; line-height: 1.5; }
@media (max-width: 980px) { .main-nav { display: none; } .section-title, .rail-head { align-items: flex-start; flex-direction: column; } }
@media (max-width: 560px) { .hero { min-height: 70vh; padding-inline: 18px; } 

.world-hero,
.series-hero {
  min-height: 68vh;
  padding-bottom: 58px;
}

.world-hero .hero-inner,
.series-hero .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(520px, 1fr);
  gap: clamp(26px, 4.5vw, 72px);
  align-items: end;
}

.world-hero h1,
.series-hero h1 {
  font-size: clamp(40px, 5.4vw, 78px);
}

.world-hero-copy,
.series-hero-copy {
  max-width: 920px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  color: rgba(245,236,220,0.82);
  font-size: clamp(14px, 0.96vw, 15.5px);
  line-height: 1.76;
  text-shadow: 0 10px 32px rgba(0,0,0,0.82);
}

.world-hero-copy p,
.series-hero-copy p {
  margin: 0 0 1em;
}

.world-hero-copy p:last-child,
.series-hero-copy p:last-child {
  margin-bottom: 0;
}

.main { width: min(100% - 28px, var(--max)); } .world-card, .world-card-body { min-height: 340px; } }


@media (max-width: 700px) {
  .world-hero,
.series-hero {
    min-height: auto;
    padding: 104px 18px 54px;
  }

  .world-hero .hero-inner,
.series-hero .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    width: 100%;
  }

  .world-hero .hero-inner > div:first-child {
    order: 1;
    width: 100%;
  }

  .world-hero-copy,
.series-hero-copy {
    order: 2;
    width: 100%;
    max-width: none;
    font-size: 13.5px;
    line-height: 1.68;
    color: rgba(245,236,220,0.84);
  }

  .world-hero h1,
.series-hero h1 {
    font-size: clamp(38px, 14vw, 58px);
    line-height: 0.94;
    max-width: 100%;
    margin-bottom: 0;
  }

  .world-hero .kicker {
    font-size: 10px;
    margin-bottom: 12px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(0,0,0,0.84), rgba(0,0,0,0.52)),
      linear-gradient(180deg, rgba(0,0,0,0.28), rgba(5,5,4,0.98));
  }
}

@media (max-width: 420px) {
  .world-hero-copy,
.series-hero-copy {
    font-size: 13px;
    line-height: 1.62;
  }

  .world-hero h1,
.series-hero h1 {
    font-size: clamp(34px, 13vw, 50px);
  }
}


.home-worlds {
  position: relative;
}

.home-worlds .rail-tools {
  display: none;
}

@media (max-width: 700px) {
  .home-worlds .section-title {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .home-worlds .rail-tools {
    display: flex;
    flex: 0 0 auto;
  }

  .home-worlds .card-row {
    padding-right: 48px;
    scroll-padding-left: 4px;
  }

  .home-worlds .world-card {
    flex-basis: min(305px, 78vw);
    min-height: 360px;
  }

  .home-worlds .world-card-body {
    min-height: 360px;
    padding: 22px;
  }

  .home-worlds .world-card h3 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .home-worlds::after {
    content: "";
    position: absolute;
    top: 92px;
    right: 0;
    bottom: 18px;
    width: 58px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(5,5,4,0), rgba(5,5,4,0.86));
  }

  .home-worlds-scrollhint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: -8px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

@media (min-width: 701px) {
  .home-worlds-scrollhint {
    display: none;
  }
}


body.home .site-header {
  background: transparent;
}

body.home .brand {
  visibility: hidden;
}

body.home .hero .kicker {
  display: none;
}


.site-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  background-image: var(--site-bg-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transform: translateZ(0);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.88), rgba(0,0,0,0.52), rgba(0,0,0,0.8)),
    linear-gradient(180deg, rgba(0,0,0,0.36), rgba(5,5,4,0.94));
}

.hero::before {
  background-attachment: fixed;
}

.main {
  position: relative;
  isolation: isolate;
}

.main::before {
  content: none !important;
  display: none !important;
}

.single-falk_episode .entry-content {
  max-width: min(860px, calc(100vw - 42px));
}

@media (max-width: 700px) {
  .site-bg {
    background-attachment: scroll;
  }

  .hero::before {
    background-attachment: scroll;
  }

  .single-falk_episode .entry-content {
    width: min(100%, calc(100vw - 30px));
    max-width: none;
    padding: 34px 0 72px;
    font-size: clamp(18px, 5.1vw, 21px);
    line-height: 1.72;
  }

  .single-falk_episode .entry-content p {
    margin-bottom: 1.12em;
  }
}

@media (max-width: 420px) {
  .single-falk_episode .entry-content {
    width: min(100%, calc(100vw - 24px));
    font-size: clamp(17px, 5vw, 19px);
    line-height: 1.68;
  }
}


.hero::before {
  display: none;
}

.hero {
  background: transparent;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.88), rgba(0,0,0,0.46) 48%, rgba(0,0,0,0.72)),
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(5,5,4,0.70) 72%, rgba(5,5,4,0.94));
}

@media (max-width: 700px) {
  .hero::after {
    background:
      linear-gradient(90deg, rgba(0,0,0,0.84), rgba(0,0,0,0.52)),
      linear-gradient(180deg, rgba(0,0,0,0.22), rgba(5,5,4,0.86) 72%, rgba(5,5,4,0.96));
  }
}


/* Version 1.5 hard fix: no hero section may render its own background image. */
.hero {
  background-image: none !important;
  background-color: transparent !important;
}

.hero[style] {
  background-image: none !important;
}

.hero::before {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
}

.site-bg {
  background-attachment: fixed;
}


/* Version 1.6: remove scrolling hero shadow layer */
.hero::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

.hero h1,
.page-title {
  text-shadow: 0 12px 32px rgba(0,0,0,0.62);
}

.hero-text {
  text-shadow: 0 8px 24px rgba(0,0,0,0.62);
}

.embed-section {
  max-width: 980px;
  margin: 0 auto 46px;
  padding: 0 clamp(18px, 4vw, 36px);
}

.embed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.embed-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(8, 7, 6, 0.56);
  box-shadow: 0 18px 55px rgba(0,0,0,0.42);
}

.embed-card-header {
  padding: 14px 16px;
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom: 1px solid var(--line);
}

.embed-card-body {
  padding: 14px;
}

.embed-card iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.embed-fallback {
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.embed-fallback a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(201,154,69,0.7);
}

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

  .embed-section {
    width: min(100%, calc(100vw - 24px));
    padding: 0;
  }
}


/* Version 1.7: soft text readability gradient, fading upward */
.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-inner::before {
  content: "";
  position: absolute;
  left: clamp(-24px, -3vw, -10px);
  right: clamp(-24px, -3vw, -10px);
  bottom: clamp(-38px, -4vw, -20px);
  height: min(52vh, 430px);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 22% 78%, rgba(0,0,0,0.62), rgba(0,0,0,0.28) 42%, rgba(0,0,0,0) 72%),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.22) 48%, rgba(0,0,0,0.54) 100%);
  filter: blur(2px);
}

.world-hero .hero-inner::before,
.series-hero .hero-inner::before {
  background:
    radial-gradient(ellipse at 30% 80%, rgba(0,0,0,0.58), rgba(0,0,0,0.24) 42%, rgba(0,0,0,0) 72%),
    radial-gradient(ellipse at 82% 72%, rgba(0,0,0,0.46), rgba(0,0,0,0.18) 44%, rgba(0,0,0,0) 74%),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.18) 52%, rgba(0,0,0,0.46) 100%);
}

.hero h1,
.page-title {
  text-shadow:
    0 6px 18px rgba(0,0,0,0.48),
    0 18px 54px rgba(0,0,0,0.34);
}

.hero-text,
.world-hero-copy,
.series-hero-copy {
  text-shadow:
    0 4px 14px rgba(0,0,0,0.54),
    0 14px 34px rgba(0,0,0,0.30);
}

@media (max-width: 700px) {
  .hero-inner::before {
    left: -18px;
    right: -18px;
    bottom: -30px;
    height: min(58vh, 460px);
    background:
      radial-gradient(ellipse at 40% 82%, rgba(0,0,0,0.62), rgba(0,0,0,0.26) 46%, rgba(0,0,0,0) 76%),
      linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.24) 50%, rgba(0,0,0,0.56) 100%);
  }
}


/* Version 1.8: one continuous page-wide darkness layer, no hard hero/main seam */
.site-bg::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.76), rgba(0,0,0,0.56) 42%, rgba(0,0,0,0.78)),
    linear-gradient(180deg, rgba(0,0,0,0.54), rgba(0,0,0,0.67) 42%, rgba(0,0,0,0.82) 100%) !important;
}

.hero-inner::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

.main::before {
  content: none !important;
  display: none !important;
}

.main {
  background: transparent !important;
}

.entry-content {
  position: relative;
  z-index: 1;
  text-shadow:
    0 3px 12px rgba(0,0,0,0.66),
    0 12px 32px rgba(0,0,0,0.42);
}

.hero h1,
.page-title {
  text-shadow:
    0 5px 16px rgba(0,0,0,0.62),
    0 18px 48px rgba(0,0,0,0.46);
}

.hero-text,
.world-hero-copy,
.series-hero-copy {
  text-shadow:
    0 3px 12px rgba(0,0,0,0.62),
    0 12px 30px rgba(0,0,0,0.42);
}

.card-row,
.embed-section,
.entry-content {
  background: transparent;
}

@media (max-width: 700px) {
  .site-bg::after {
    background:
      linear-gradient(90deg, rgba(0,0,0,0.72), rgba(0,0,0,0.62)),
      linear-gradient(180deg, rgba(0,0,0,0.58), rgba(0,0,0,0.72) 48%, rgba(0,0,0,0.86) 100%) !important;
  }
}


/* Version 1.9: compact portrait hero, keep landscape cinematic */
@media (max-width: 780px) and (orientation: portrait) {
  .hero {
    min-height: 58svh;
    padding: 92px 18px 42px;
    align-items: flex-end;
  }

  .home .hero {
    min-height: 56svh;
  }

  .world-hero,
  .series-hero {
    min-height: auto;
    padding: 88px 18px 42px;
  }

  .world-hero .hero-inner,
  .series-hero .hero-inner {
    gap: 18px;
  }

  .hero h1,
  .page-title {
    font-size: clamp(42px, 15vw, 64px);
    line-height: 0.94;
    margin-bottom: 12px;
  }

  .home .hero h1 {
    font-size: clamp(48px, 16vw, 70px);
  }

  .hero-text {
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.45;
    max-width: 92vw;
  }

  .world-hero-copy,
  .series-hero-copy {
    font-size: 13.5px;
    line-height: 1.62;
    max-width: none;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .main {
    padding-top: 30px;
  }
}

@media (max-width: 430px) and (orientation: portrait) {
  .hero {
    min-height: 54svh;
    padding-top: 84px;
    padding-bottom: 36px;
  }

  .home .hero {
    min-height: 52svh;
  }

  .world-hero,
  .series-hero {
    padding-top: 82px;
    padding-bottom: 36px;
  }

  .hero h1,
  .page-title {
    font-size: clamp(38px, 14vw, 56px);
  }

  .home .hero h1 {
    font-size: clamp(44px, 15vw, 62px);
  }

  .world-hero-copy,
  .series-hero-copy {
    font-size: 13px;
    line-height: 1.58;
  }
}

/* Logged-in WordPress admin bar steals height on mobile, so compensate a bit. */
@media (max-width: 780px) and (orientation: portrait) {
  body.admin-bar .hero {
    min-height: 50svh;
    padding-top: 74px;
  }

  body.admin-bar .world-hero,
  body.admin-bar .series-hero {
    padding-top: 72px;
  }
}


/* Version 2.0: real portrait layout fix, including mobile desktop mode */
@media screen and (orientation: portrait) {
  .hero,
  .home .hero,
  .world-hero,
  .series-hero {
    min-height: 0 !important;
    height: auto !important;
    padding-top: clamp(92px, 12vh, 150px) !important;
    padding-bottom: clamp(34px, 5vh, 64px) !important;
    display: flex !important;
    align-items: flex-end !important;
  }

  body.admin-bar .hero,
  body.admin-bar .home .hero,
  body.admin-bar .world-hero,
  body.admin-bar .series-hero {
    padding-top: clamp(70px, 9vh, 118px) !important;
  }

  .hero-inner {
    width: min(var(--max), calc(100% - 36px)) !important;
  }

  .world-hero .hero-inner,
  .series-hero .hero-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    align-items: end !important;
  }

  .hero h1,
  .page-title,
  .world-hero h1,
  .series-hero h1 {
    font-size: clamp(44px, 11vw, 82px) !important;
    line-height: 0.94 !important;
    margin: 0 0 12px !important;
    max-width: 100% !important;
  }

  .home .hero h1 {
    font-size: clamp(50px, 12vw, 88px) !important;
  }

  .hero-text {
    font-size: clamp(15px, 2.8vw, 22px) !important;
    line-height: 1.45 !important;
    max-width: min(760px, 92vw) !important;
    margin: 0 !important;
  }

  .world-hero-copy,
  .series-hero-copy {
    max-width: min(920px, 92vw) !important;
    font-size: clamp(13px, 2.1vw, 16px) !important;
    line-height: 1.58 !important;
  }

  .hero-actions {
    margin-top: 16px !important;
  }

  .main {
    padding-top: clamp(24px, 4vh, 42px) !important;
  }
}

/* Version 2.0: very narrow phones get an even tighter hero */
@media screen and (orientation: portrait) and (max-width: 520px) {
  .hero,
  .home .hero,
  .world-hero,
  .series-hero {
    padding-top: 76px !important;
    padding-bottom: 30px !important;
  }

  body.admin-bar .hero,
  body.admin-bar .home .hero,
  body.admin-bar .world-hero,
  body.admin-bar .series-hero {
    padding-top: 58px !important;
  }

  .hero-inner {
    width: calc(100% - 32px) !important;
  }

  .hero h1,
  .page-title,
  .world-hero h1,
  .series-hero h1 {
    font-size: clamp(36px, 13vw, 58px) !important;
  }

  .home .hero h1 {
    font-size: clamp(42px, 15vw, 66px) !important;
  }

  .world-hero-copy,
  .series-hero-copy {
    font-size: 13px !important;
    line-height: 1.56 !important;
  }
}

/* Version 2.0: landscape stays cinematic and roomy */
@media screen and (orientation: landscape) {
  .hero {
    min-height: 56vh;
  }
}


/* Version 2.1: more compact desktop hero and title-image inspired typography */
@media screen and (min-width: 821px) {
  .hero,
  .home .hero,
  .world-hero,
  .series-hero {
    min-height: 56vh !important;
    padding-top: 92px !important;
    padding-bottom: 52px !important;
  }

  .world-hero,
  .series-hero {
    padding-bottom: 48px !important;
  }

  .main {
    padding-top: 34px !important;
  }
}

.hero h1,
.page-title {
  font-family: "Cinzel Decorative", "Cinzel", Georgia, "Times New Roman", serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.045em;
  text-transform: none;
}

.single-falk_episode .hero h1 {
  letter-spacing: 0.06em;
}

.world-hero h1,
.series-hero h1 {
  letter-spacing: 0.04em;
}

.home .hero h1 {
  letter-spacing: 0.035em;
}

.kicker,
.item-meta,
.tag,
.embed-card-header {
  font-family: "Cinzel", Georgia, "Times New Roman", serif;
  letter-spacing: 0.18em;
}

@media screen and (min-width: 821px) {
  .hero h1,
  .page-title {
    font-size: clamp(46px, 6.3vw, 94px) !important;
    line-height: 0.94 !important;
  }

  .world-hero h1,
  .series-hero h1 {
    font-size: clamp(42px, 5.4vw, 78px) !important;
  }

  .single-falk_episode .hero h1 {
    font-size: clamp(46px, 6vw, 86px) !important;
  }
}


/* Version 2.2: reduce hero title size for wide fantasy lettering */
@media screen and (min-width: 821px) {
  .hero h1,
  .page-title {
    font-size: clamp(40px, 5.1vw, 76px) !important;
    line-height: 0.96 !important;
    max-width: 760px !important;
  }

  .world-hero h1,
  .series-hero h1 {
    font-size: clamp(38px, 4.4vw, 64px) !important;
    max-width: 680px !important;
  }

  .single-falk_episode .hero h1 {
    font-size: clamp(40px, 4.8vw, 72px) !important;
    max-width: 820px !important;
  }

  .home .hero h1 {
    font-size: clamp(46px, 5.6vw, 82px) !important;
    max-width: 760px !important;
  }
}

@media screen and (orientation: portrait) {
  .hero h1,
  .page-title,
  .world-hero h1,
  .series-hero h1 {
    font-size: clamp(34px, 10vw, 58px) !important;
    line-height: 0.96 !important;
    max-width: 94vw !important;
  }

  .home .hero h1 {
    font-size: clamp(40px, 12vw, 64px) !important;
  }
}

@media screen and (orientation: portrait) and (max-width: 520px) {
  .hero h1,
  .page-title,
  .world-hero h1,
  .series-hero h1 {
    font-size: clamp(32px, 11vw, 50px) !important;
  }

  .home .hero h1 {
    font-size: clamp(38px, 13vw, 58px) !important;
  }
}


/* Version 2.3: further reduce wide World and Series hero titles */
@media screen and (min-width: 821px) {
  .world-hero h1,
  .series-hero h1 {
    font-size: clamp(34px, 3.6vw, 54px) !important;
    line-height: 0.98 !important;
    letter-spacing: 0.025em !important;
    max-width: 560px !important;
  }

  .world-hero .hero-inner,
  .series-hero .hero-inner {
    grid-template-columns: minmax(0, 0.46fr) minmax(600px, 1.08fr) !important;
    gap: clamp(28px, 4vw, 66px) !important;
  }

  .world-hero-copy,
  .series-hero-copy {
    max-width: 980px !important;
  }
}

@media screen and (min-width: 1100px) {
  .world-hero h1,
  .series-hero h1 {
    font-size: clamp(36px, 3.35vw, 56px) !important;
    max-width: 590px !important;
  }
}

@media screen and (orientation: portrait) {
  .world-hero h1,
  .series-hero h1 {
    letter-spacing: 0.02em !important;
  }
}


/* Version 2.4: fix real overlap by constraining the title itself */
@media screen and (min-width: 821px) {
  .world-hero .hero-inner,
  .series-hero .hero-inner {
    grid-template-columns: minmax(390px, 0.52fr) minmax(0, 0.9fr) !important;
    gap: clamp(56px, 5.5vw, 96px) !important;
  }

  .world-hero h1,
  .series-hero h1 {
    font-size: clamp(30px, 2.85vw, 44px) !important;
    line-height: 1.02 !important;
    letter-spacing: 0.012em !important;
    max-width: 430px !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .world-hero-copy,
  .series-hero-copy {
    max-width: 820px !important;
    font-size: clamp(14px, 0.96vw, 15.5px) !important;
  }
}

@media screen and (min-width: 1300px) {
  .world-hero h1,
  .series-hero h1 {
    font-size: 42px !important;
    max-width: 440px !important;
  }
}

@media screen and (min-width: 1600px) {
  .world-hero h1,
  .series-hero h1 {
    font-size: 44px !important;
    max-width: 460px !important;
  }
}


/* Version 2.5: dedicated mobile fix for wide decorative hero titles */

/* Portrait phones: stack cleanly and never let long titles escape the viewport */
@media screen and (orientation: portrait) and (max-width: 820px) {
  .world-hero,
  .series-hero {
    padding: 72px 18px 34px !important;
    min-height: auto !important;
    height: auto !important;
  }

  body.admin-bar .world-hero,
  body.admin-bar .series-hero {
    padding-top: 54px !important;
  }

  .world-hero .hero-inner,
  .series-hero .hero-inner {
    display: block !important;
    width: calc(100vw - 36px) !important;
    max-width: calc(100vw - 36px) !important;
  }

  .world-hero h1,
  .series-hero h1 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(30px, 8.4vw, 42px) !important;
    line-height: 1.02 !important;
    letter-spacing: 0.004em !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    margin: 0 0 18px !important;
  }

  .world-hero-copy,
  .series-hero-copy {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(14px, 3.6vw, 17px) !important;
    line-height: 1.64 !important;
    margin-top: 18px !important;
  }

  .world-hero-copy p,
  .series-hero-copy p {
    margin-bottom: 1.05em !important;
  }
}

/* Very narrow portrait phones */
@media screen and (orientation: portrait) and (max-width: 430px) {
  .world-hero h1,
  .series-hero h1 {
    font-size: clamp(28px, 8vw, 36px) !important;
    letter-spacing: 0 !important;
  }

  .world-hero-copy,
  .series-hero-copy {
    font-size: 14px !important;
    line-height: 1.58 !important;
  }
}

/* Mobile landscape and browser desktop mode on phones: keep two columns, but make them actually fit */
@media screen and (orientation: landscape) and (max-height: 700px) {
  .world-hero,
  .series-hero {
    min-height: auto !important;
    height: auto !important;
    padding: 58px 24px 30px !important;
  }

  body.admin-bar .world-hero,
  body.admin-bar .series-hero {
    padding-top: 46px !important;
  }

  .world-hero .hero-inner,
  .series-hero .hero-inner {
    display: grid !important;
    grid-template-columns: minmax(210px, 0.36fr) minmax(0, 0.64fr) !important;
    gap: clamp(24px, 4vw, 52px) !important;
    align-items: end !important;
    width: min(var(--max), calc(100vw - 52px)) !important;
    max-width: calc(100vw - 52px) !important;
  }

  .world-hero h1,
  .series-hero h1 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(26px, 4.4vw, 42px) !important;
    line-height: 1.02 !important;
    letter-spacing: 0.002em !important;
    white-space: normal !important;
    margin: 0 !important;
  }

  .world-hero-copy,
  .series-hero-copy {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(11.5px, 1.55vw, 14px) !important;
    line-height: 1.48 !important;
    margin: 0 !important;
  }

  .world-hero-copy p,
  .series-hero-copy p {
    margin-bottom: 0.82em !important;
  }

  .kicker {
    font-size: 10px !important;
    margin-bottom: 8px !important;
  }
}

/* Extremely cramped landscape screens: stack to avoid overlap entirely */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .world-hero .hero-inner,
  .series-hero .hero-inner {
    grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.68fr) !important;
    gap: 24px !important;
  }

  .world-hero h1,
  .series-hero h1 {
    font-size: clamp(22px, 3.6vw, 34px) !important;
  }

  .world-hero-copy,
  .series-hero-copy {
    font-size: clamp(10.5px, 1.35vw, 12.5px) !important;
    line-height: 1.42 !important;
  }
}


/* Version 2.8: compact hero for mobile browsers in desktop-view mode
   Targets touch devices that report desktop-sized viewport widths. */
@media screen and (hover: none) and (pointer: coarse) and (min-width: 821px) {
  .hero,
  .home .hero,
  .world-hero,
  .series-hero {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 42px !important;
    padding-bottom: 30px !important;
    display: flex !important;
    align-items: flex-end !important;
  }

  body.admin-bar .hero,
  body.admin-bar .home .hero,
  body.admin-bar .world-hero,
  body.admin-bar .series-hero {
    padding-top: 28px !important;
  }

  .hero-inner {
    width: min(var(--max), calc(100% - 42px)) !important;
    max-width: calc(100vw - 42px) !important;
  }

  .home .hero h1 {
    font-size: clamp(42px, 6vw, 64px) !important;
    line-height: 0.96 !important;
    margin-bottom: 10px !important;
  }

  .hero h1,
  .page-title {
    font-size: clamp(34px, 5vw, 58px) !important;
    line-height: 0.98 !important;
    margin-bottom: 10px !important;
  }

  .hero-text {
    font-size: clamp(14px, 1.9vw, 18px) !important;
    line-height: 1.42 !important;
    max-width: 680px !important;
  }

  .world-hero .hero-inner,
  .series-hero .hero-inner {
    display: grid !important;
    grid-template-columns: minmax(260px, 0.38fr) minmax(0, 0.62fr) !important;
    gap: 32px !important;
    align-items: end !important;
  }

  .world-hero h1,
  .series-hero h1 {
    font-size: clamp(28px, 3.4vw, 42px) !important;
    line-height: 1.02 !important;
    letter-spacing: 0.004em !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .world-hero-copy,
  .series-hero-copy {
    max-width: 100% !important;
    font-size: clamp(12px, 1.45vw, 14px) !important;
    line-height: 1.48 !important;
    margin: 0 !important;
  }

  .world-hero-copy p,
  .series-hero-copy p {
    margin-bottom: 0.8em !important;
  }

  .hero-actions {
    margin-top: 12px !important;
  }

  .main {
    padding-top: 22px !important;
  }

  .section-title,
  .rail-head {
    margin-bottom: 22px !important;
  }
}

/* Slightly roomier for tablets in touch desktop mode */
@media screen and (hover: none) and (pointer: coarse) and (min-width: 1100px) {
  .hero,
  .home .hero,
  .world-hero,
  .series-hero {
    padding-top: 50px !important;
    padding-bottom: 34px !important;
  }

  .world-hero .hero-inner,
  .series-hero .hero-inner {
    gap: 42px !important;
  }
}


/* Version 3.1 safeguard */
.item-meta:empty {
  display: none !important;
}
