/* Lori · lorishow.com. Brand tokens live here; nothing else hardcodes colour. */
:root {
  --bg: #151b45;
  --surface: #1d2560;
  --raised: #263078;
  --ink: #fff6e6;
  --muted: #b9c0e8;
  --mango: #f5a524;
  --mango-deep: #d9861a;
  --leaf: #3fb37f;
  --berry: #e5484d;
  --sky: #3a56c5;
  --cream: #fff6e6;
  --paper: #fffdf8;
  --line: #e8dcc4;
  --night: #151b45;
  --shadow: #0b0f2b;
  --display: "Baloo 2", "Baloo Bhai 2", ui-rounded, system-ui, sans-serif;
  --body: "Outfit", system-ui, sans-serif;
  --script: var(--display);
  --gutter: clamp(1rem, 6vw, 6rem);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
section[id] { scroll-margin-top: 4.5rem; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--mango);
  outline-offset: 3px;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--mango); color: var(--night); padding: .5rem 1rem; border-radius: 999px; }

/* scripts: each language gets its own Baloo cut */
[lang="gu"] { --script: "Baloo Bhai 2", var(--display); }
[lang="hi"], [lang="mr"], [lang="sd"] { --script: "Baloo 2", var(--display); }
[lang="bn"] { --script: "Baloo Da 2", var(--display); }
[lang="ta"] { --script: "Baloo Thambi 2", var(--display); }
[lang="pa"] { --script: "Baloo Paaji 2", var(--display); }
[lang="sd"] { --script: "Baloo 2", "Noto Sans Devanagari", var(--display); }
.script { font-family: var(--script); }

/* ------------------------------ Nav ------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 92%, transparent), transparent);
  transition: background .3s ease;
}
.nav[data-solid] { background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); }
.nav__brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-size: 1.9rem; font-weight: 800; line-height: 1; text-decoration: none;
}
.nav__brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 1.75rem); }
.nav__link { color: var(--muted); font-weight: 500; text-decoration: none; transition: color .2s; }
.nav__link:hover { color: var(--ink); }
.nav__cta {
  padding: .6rem 1.1rem; border-radius: 999px; background: var(--mango);
  box-shadow: 0 3px 0 var(--mango-deep); color: var(--night); font-weight: 600; text-decoration: none;
  white-space: nowrap; transition: transform .15s, box-shadow .15s;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--mango-deep); }
@media (max-width: 760px) {
  .nav__link { display: none; }
  .nav__brand { font-size: 1.6rem; }
  .nav__brand img { width: 34px; height: 34px; }
}

/* --------------------------- Buttons --------------------------- */
.tape {
  display: inline-flex; align-items: center; gap: .85rem;
  padding: .7rem 1.3rem .7rem .8rem; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--mango); color: var(--night);
  box-shadow: inset 0 0 0 3px var(--mango-deep), 0 6px 0 var(--mango-deep);
  font-size: 1.08rem; font-weight: 700; text-decoration: none;
  transition: transform .18s, box-shadow .18s;
}
.tape__window { display: inline-flex; gap: .45rem; padding: .32rem .5rem; border-radius: 8px; background: var(--night); }
.tape__reel { width: 15px; height: 15px; border: 3px dotted var(--cream); border-radius: 50%; }
.tape:hover { transform: translateY(-2px); }
.tape:active { transform: translateY(4px); box-shadow: inset 0 0 0 3px var(--mango-deep), 0 2px 0 var(--mango-deep); }
.knob {
  display: inline-flex; align-items: center; gap: .8rem;
  padding: .4rem 1.15rem .4rem .4rem; border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--ink) 32%, transparent);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  font-size: 1.05rem; font-weight: 600; text-decoration: none; transition: border-color .2s;
}
.knob__dial {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--paper), var(--line));
  box-shadow: 0 3px 0 var(--shadow); transition: transform .5s cubic-bezier(.3,1.5,.5,1);
}
.knob__dial::after {
  content: ""; position: absolute; top: 5px; left: 50%; width: 4px; height: 13px; margin-left: -2px;
  border-radius: 2px; background: var(--berry);
}
.knob:hover { border-color: var(--mango); }
.knob:hover .knob__dial { transform: rotate(130deg); }

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  padding: 7rem var(--gutter) clamp(2.5rem, 7vh, 5rem); isolation: isolate; overflow: hidden;
}
.hero__film { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 4%, color-mix(in srgb, var(--bg) 70%, transparent) 38%, transparent 70%),
    linear-gradient(to right, color-mix(in srgb, var(--bg) 85%, transparent), transparent 65%);
}
@media (max-width: 760px) {
  .hero::before {
    background: linear-gradient(to top, var(--bg) 8%, color-mix(in srgb, var(--bg) 82%, transparent) 55%, color-mix(in srgb, var(--bg) 45%, transparent));
  }
}
.hero__hello {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1rem; min-height: 2.6rem;
  padding: .3rem 1rem .3rem .35rem; border-radius: 999px; background: color-mix(in srgb, var(--bg) 70%, transparent);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 700;
}
.hero__hello span:first-child {
  padding: .15rem .6rem; border-radius: 999px; background: var(--mango); color: var(--night);
  font-family: var(--body); font-size: .78rem; font-weight: 700; letter-spacing: .02em;
}
.hero__hello .script { transition: opacity .35s ease; }
.hero h1 {
  max-width: 14ch; margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -.02em; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--mango); }
.hero__lede { max-width: 44ch; margin: 1.2rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.22rem); }
.hero__acts { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: center; margin-top: 2rem; }

/* ------------------------- Season at a glance ------------------------- */
.glance {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin: 3rem 0 0; max-width: 54rem; border-radius: 18px; overflow: hidden;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
}
.glance div { padding: 1rem 1.1rem; background: color-mix(in srgb, var(--bg) 88%, transparent); }
.glance b { display: block; font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1; color: var(--mango); font-variant-numeric: tabular-nums; }
.glance span { color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------ Type ------------------------------ */
.kicker { margin: 0 0 .7rem; color: var(--mango); font-weight: 600; letter-spacing: .02em; }
.h2 {
  margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; text-wrap: balance;
  font-size: clamp(2.2rem, 4.4vw, 3.9rem); line-height: 1.04;
}
.lede { max-width: 46ch; margin: 1.1rem 0 0; color: var(--muted); font-size: clamp(1.02rem, 1.3vw, 1.15rem); line-height: 1.6; }

/* ------------------------------ Watch ------------------------------ */
.watch {
  padding: clamp(5rem, 10vw, 8rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  background: radial-gradient(ellipse 60% 40% at 0% 0%, color-mix(in srgb, var(--raised) 70%, transparent), transparent 70%), var(--bg);
}
.watch__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; }

/* language dial */
.langs { display: flex; flex-wrap: wrap; gap: .55rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.lang {
  display: inline-flex; align-items: baseline; gap: .5rem; padding: .55rem 1rem .5rem;
  border: 2px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 999px;
  background: transparent; cursor: pointer; transition: border-color .2s, background .2s, color .2s;
  color: var(--muted);
}
.lang .script { font-size: 1.2rem; font-weight: 700; line-height: 1.1; color: var(--ink); }
.lang small { font-size: .82rem; }
.lang:hover { border-color: var(--mango); }
.lang[aria-pressed="true"] { border-color: var(--mango-deep); background: var(--mango); color: var(--night); }
.lang[aria-pressed="true"] .script { color: var(--night); }

/* runtime strip: one block per episode, width = length */
.strip { margin: 2rem 0 0; }
.strip__bar { display: flex; gap: 3px; height: 14px; }
.strip__bar span { min-width: 4px; border-radius: 4px; background: var(--raised); transition: background .2s; }
.strip__bar span:nth-child(odd) { background: color-mix(in srgb, var(--mango) 70%, var(--raised)); }
.strip__bar span:hover, .strip__bar span[data-on] { background: var(--mango); }
.strip__legend { display: flex; justify-content: space-between; margin-top: .45rem; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem; margin: 2.25rem 0 0; padding: 0; list-style: none;
}
.ep {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden; text-align: left; cursor: pointer;
  border: 0; border-radius: 18px; background: var(--surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ep:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--mango); }
.ep__pic { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--raised); }
.ep__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ep__badge, .ep__dur {
  position: absolute; padding: .22rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
}
.ep__badge { top: .6rem; left: .6rem; background: var(--mango); color: var(--night); }
.ep__dur { right: .6rem; bottom: .6rem; background: color-mix(in srgb, var(--night) 82%, transparent); color: var(--ink); font-variant-numeric: tabular-nums; }
.ep__play {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--mango); color: var(--night);
  box-shadow: 0 4px 0 var(--mango-deep); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s;
}
.ep:hover .ep__play, .ep:focus-visible .ep__play { opacity: 1; transform: none; }
.ep__meta { display: block; padding: .8rem 1rem 1.05rem; }
.ep__native { display: block; color: var(--mango); font-size: 1.22rem; font-weight: 700; line-height: 1.25; }
.ep__en { display: block; margin-top: .15rem; font-weight: 600; }
.ep__when { display: block; margin-top: .3rem; color: var(--muted); font-size: .82rem; }

/* ------------------------------ Shorts ------------------------------ */
.shorts { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem); }
.shorts__head { padding: 0 var(--gutter); }
.reel {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  margin: 2rem 0 0; padding: .25rem var(--gutter) 1rem; list-style: none;
}
.reel li { flex: 0 0 clamp(170px, 42vw, 220px); scroll-snap-align: start; }
.short {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; overflow: hidden; cursor: pointer;
  border: 0; border-radius: 20px; background: var(--surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent);
}
.short video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
.short__tag {
  position: absolute; left: .6rem; bottom: .6rem; right: .6rem; padding: .35rem .6rem; border-radius: 12px;
  background: color-mix(in srgb, var(--night) 80%, transparent); font-size: .85rem; font-weight: 600; text-align: left;
  pointer-events: none; transition: opacity .2s;
}
.short[data-playing] .short__tag { opacity: 0; }
.short__tag .script { display: block; color: var(--mango); font-size: 1.05rem; line-height: 1.2; }

/* ------------------------------ How ------------------------------ */
.how {
  padding: clamp(5rem, 10vw, 8rem) var(--gutter);
  background: var(--cream); color: var(--night);
}
.how .lede { color: color-mix(in srgb, var(--night) 72%, transparent); }
.how .kicker { color: var(--mango-deep); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.step {
  position: relative; padding: 1.4rem 1.4rem 1.6rem; border-radius: 24px; background: var(--paper);
  box-shadow: 0 0 0 2px var(--line);
}
.step img { display: block; height: 128px; width: auto; margin: -.25rem 0 .6rem; }
.step__n { position: absolute; top: 1.1rem; right: 1.25rem; font-family: var(--display); font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--line); }
.step h3 { margin: 0; font-family: var(--display); font-size: 1.55rem; font-weight: 800; line-height: 1.1; }
.step p { margin: .5rem 0 0; color: color-mix(in srgb, var(--night) 72%, transparent); }
.step q { quotes: none; font-family: "Baloo Bhai 2", var(--display); font-weight: 700; color: var(--mango-deep); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .step { display: grid; grid-template-columns: 88px 1fr; gap: 0 1rem; align-items: center; } .step img { height: 104px; margin: 0; grid-row: span 2; } }

/* ----------------------------- Lori box ----------------------------- */
.box {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  background: radial-gradient(ellipse 55% 50% at 25% 45%, color-mix(in srgb, var(--mango) 16%, transparent), transparent 70%), var(--bg);
}
.tv { position: relative; width: min(100%, 440px); margin: 0 auto; }
.tv__body {
  position: relative; display: grid; grid-template-columns: 1fr 64px; gap: 14px; padding: 18px;
  border-radius: 34px; background: var(--mango);
  box-shadow: inset 0 -10px 0 var(--mango-deep), 0 40px 80px -36px var(--shadow);
}
.tv__screen {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 22px / 26px;
  border: 8px solid var(--night); background: var(--night);
}
.tv__screen img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.tv__screen::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, color-mix(in srgb, var(--night) 18%, transparent) 3px 4px),
              radial-gradient(ellipse at 30% 20%, color-mix(in srgb, var(--cream) 22%, transparent), transparent 55%);
}
.tv__side { display: grid; align-content: start; gap: 14px; padding-top: 6px; }
.tv__knob { width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--paper), var(--line)); box-shadow: 0 4px 0 var(--mango-deep); position: relative; }
.tv__knob::after { content: ""; position: absolute; top: 6px; left: 50%; width: 5px; height: 15px; margin-left: -2.5px; border-radius: 3px; background: var(--berry); }
.tv__knob--b::after { transform-origin: 50% 20px; transform: rotate(120deg); background: var(--sky); }
.tv__grill { display: grid; gap: 6px; padding: 6px 4px; }
.tv__grill i { display: block; height: 5px; border-radius: 3px; background: var(--mango-deep); }
.tv__slot { position: absolute; left: 50%; bottom: -14px; translate: -50% 0; width: 46%; height: 26px; border-radius: 0 0 14px 14px; background: var(--mango-deep); }
.tv__slot::after { content: ""; position: absolute; inset: 7px 18px; border-radius: 4px; background: var(--night); }
.tv__tape {
  position: absolute; right: -6%; bottom: -12%; width: 46%; aspect-ratio: 1.6; padding: 9% 8%;
  border-radius: 12px; background: var(--sky); box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--night) 35%, transparent), 0 18px 30px -16px var(--shadow);
  rotate: -8deg; display: grid; grid-template-rows: auto 1fr;
}
.tv__tape b { font-family: var(--display); font-size: .95rem; line-height: 1; color: var(--cream); }
.tv__tape span { display: flex; justify-content: space-around; align-items: center; margin-top: 8%; border-radius: 8px; background: var(--night); }
.tv__tape span i { width: 22%; aspect-ratio: 1; border: 4px dotted var(--cream); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { .tv__tape span i { animation: spin 3s linear infinite; } }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.feat svg { width: 36px; height: 36px; color: var(--mango); }
.feat h3 { margin: .45rem 0 .2rem; font-family: var(--display); font-size: 1.22rem; font-weight: 700; line-height: 1.2; }
.feat p { margin: 0; color: var(--muted); font-size: .96rem; }
.box__note { margin: 2rem 0 0; color: var(--mango); font-weight: 600; }
@media (max-width: 900px) { .box { grid-template-columns: 1fr; } .tv { width: min(88%, 400px); } }
@media (max-width: 480px) { .feats { grid-template-columns: 1fr; } }

/* ----------------------------- Waitlist ----------------------------- */
.wait { display: flex; justify-content: center; padding: clamp(8rem, 14vw, 12rem) var(--gutter) clamp(4rem, 8vw, 7rem); }
.wait__holder { position: relative; width: min(50rem, 100%); }
.wait__peek { position: absolute; top: 0; right: clamp(1.5rem, 8vw, 4.5rem); width: clamp(70px, 10vw, 96px); height: auto; transform: translateY(-74%); }
.wait__card { position: relative; padding: clamp(1.5rem, 5vw, 3.5rem); border-radius: 32px; background: var(--cream); color: var(--night); box-shadow: 0 40px 90px -40px var(--shadow); }
.wait__card .lede { color: color-mix(in srgb, var(--night) 75%, transparent); }
.wait__thanks { margin: 0 0 .25rem; color: var(--mango-deep); font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 800; line-height: 1; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem 1.25rem; margin-top: 2rem; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field--wide { grid-column: 1 / -1; }
.field > label, .field > legend { display: block; margin-bottom: .45rem; padding: 0; font-size: .93rem; font-weight: 600; }
.field input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: 14px;
  background: var(--paper); color: var(--night); font: inherit; font-size: 1rem; transition: border-color .2s;
}
.field input::placeholder { color: color-mix(in srgb, var(--night) 38%, transparent); }
.field input:focus { border-color: var(--mango); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips > legend { width: 100%; float: left; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-grid; min-width: 3rem; place-items: center; padding: .5rem .9rem;
  border: 2px solid var(--line); border-radius: 999px; background: var(--paper); font-weight: 600;
  transition: background .15s, border-color .15s;
}
.chip input:checked + span { border-color: var(--mango-deep); background: var(--mango); }
.chip input:focus-visible + span { outline: 3px solid var(--night); outline-offset: 2px; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__end { display: flex; flex-wrap: wrap; grid-column: 1 / -1; gap: .75rem 1.25rem; align-items: center; margin-top: .5rem; }
.submit {
  display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 1.6rem; border: 0; border-radius: 999px;
  background: var(--night); color: var(--cream); box-shadow: 0 5px 0 var(--shadow); cursor: pointer;
  font-size: 1.08rem; font-weight: 700; transition: transform .15s, box-shadow .15s;
}
.submit:hover { transform: translateY(-1px); }
.submit:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--shadow); }
.submit:disabled { cursor: progress; opacity: .75; }
.form__fine { margin: 0; color: color-mix(in srgb, var(--night) 60%, transparent); font-size: .9rem; }
.form__error { grid-column: 1 / -1; margin: 0; color: var(--berry); font-weight: 600; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ------------------------------ Footer ------------------------------ */
.foot { padding: 2rem var(--gutter) 2.5rem; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); color: var(--muted); }
.foot__bye { display: flex; flex-wrap: wrap; gap: 0 .35em; margin: 0 0 2rem; color: var(--mango); font-size: clamp(2.2rem, 7vw, 6rem); font-weight: 800; line-height: 1.1; }
.foot__bye span:not(:last-child)::after { content: " ·"; color: color-mix(in srgb, var(--ink) 25%, transparent); }
.foot__row { display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; align-items: center; font-size: .95rem; }
.foot__row p { margin: 0; }
.foot__row a { text-decoration-color: color-mix(in srgb, var(--mango) 60%, transparent); text-underline-offset: 3px; }

/* ------------------------------ Player ------------------------------ */
.player {
  width: min(1100px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; overflow: auto;
  border: 0; border-radius: 24px; background: var(--surface); color: var(--ink);
  box-shadow: 0 50px 120px -30px var(--shadow);
}
.player::backdrop { background: color-mix(in srgb, var(--shadow) 82%, transparent); backdrop-filter: blur(4px); }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player video::cue { font-family: var(--script); font-size: 1.15em; background: color-mix(in srgb, var(--night) 78%, transparent); }
.player__bar { display: grid; grid-template-columns: 1fr auto; gap: 1rem 1.5rem; align-items: start; padding: 1.1rem 1.4rem 1.4rem; }
.player__ep { margin: 0; color: var(--muted); font-size: .85rem; font-weight: 600; }
.player__native { margin: .1rem 0 0; color: var(--mango); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; line-height: 1.15; }
.player__en { margin: .1rem 0 0; font-weight: 600; }
.player__tools { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; align-items: center; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg); }
.seg button { padding: .35rem .8rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: .88rem; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--ink); }
.iconbtn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border: 2px solid color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: 50%; background: transparent; cursor: pointer; transition: border-color .2s;
}
.iconbtn:hover { border-color: var(--mango); }
.iconbtn:disabled { opacity: .35; cursor: default; }
.iconbtn svg { width: 18px; height: 18px; }
.player__close { position: absolute; top: .75rem; right: .75rem; z-index: 2; background: color-mix(in srgb, var(--night) 70%, transparent); }
.words { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.words li { padding: .4rem .75rem; border-radius: 12px; background: var(--bg); }
.words b { font-family: var(--script); font-size: 1.15rem; color: var(--ink); }
.words span { margin-left: .4rem; color: var(--muted); font-size: .85rem; }
@media (max-width: 640px) {
  .player { width: 100vw; max-width: 100vw; max-height: 100dvh; border-radius: 0; margin: 0; height: auto; }
  .player__bar { grid-template-columns: 1fr; padding: 1rem; }
  .player__tools { justify-content: flex-start; }
}

/* ------------------------------ Motion ------------------------------ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(-74%); } 50% { transform: translateY(-80%); } }
@keyframes rise { from { transform: translateY(32px); opacity: .001; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .tape:hover .tape__reel { animation: spin 1.1s linear infinite; }
  .wait__peek { animation: bob 3.2s ease-in-out infinite; }
  @supports (animation-timeline: view()) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
