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

:root {
  color-scheme: dark;
  --bg: #080808;
  --bg-elevated: #0e0e10;
  --surface: rgba(255,255,255,.055);
  --surface-strong: rgba(255,255,255,.095);
  --surface-solid: #121214;
  --surface-soft: rgba(255,255,255,.03);
  --border: rgba(255,255,255,.095);
  --border-strong: rgba(255,255,255,.18);
  --text: #f6f6f4;
  --muted: #a8a8aa;
  --dim: #727276;
  --accent: #f2f2ef;
  --accent-ink: #0a0a0a;
  --hero-copy: #ddddda;
  --hero-deep: #050505;
  --shadow-xl: 0 40px 100px rgba(0,0,0,.42);
  --shadow-md: 0 20px 48px rgba(0,0,0,.25);
  --shadow-sm: 0 10px 24px rgba(0,0,0,.18);
  --radius-xl: 26px;
  --radius-lg: 19px;
  --radius-md: 14px;
  --page-max: 1500px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --nav-surface: rgba(20,20,20,.56);
  --nav-border: rgba(255,255,255,.11);
  --grad-a: rgba(118,91,47,.20);
  --grad-b: rgba(53,90,74,.18);
  --grad-c: rgba(82,69,35,.22);
  --accent-soft: rgba(255,255,255,.075);
  --accent-2: #d2c7a6;
  --accent-glow: rgba(145,165,139,.26);
  --float-shadow: 0 24px 42px -28px rgba(0,0,0,.7);
  --spring: cubic-bezier(.16,1.12,.3,1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f2ee;
  --bg-elevated: #fbfaf8;
  --surface: rgba(20,20,20,.055);
  --surface-strong: rgba(20,20,20,.09);
  --surface-solid: #fff;
  --surface-soft: rgba(20,20,20,.035);
  --border: rgba(20,20,20,.1);
  --border-strong: rgba(20,20,20,.18);
  --text: #151515;
  --muted: #686867;
  --dim: #8b8b88;
  --accent: #151515;
  --accent-ink: #faf9f5;
  --hero-copy: #eceae5;
  --hero-deep: #121212;
  --shadow-xl: 0 35px 90px rgba(42,38,31,.16);
  --shadow-md: 0 18px 44px rgba(42,38,31,.1);
  --shadow-sm: 0 10px 25px rgba(42,38,31,.08);
  --nav-surface: rgba(255,255,255,.58);
  --nav-border: rgba(20,20,20,.11);
  --grad-a: rgba(168,138,91,.16);
  --grad-b: rgba(104,138,117,.12);
  --grad-c: rgba(146,127,86,.16);
  --accent-soft: rgba(20,20,20,.065);
  --accent-2: #9aaea1;
  --accent-glow: rgba(123,142,130,.18);
  --float-shadow: 0 24px 42px -28px rgba(60,55,45,.28);
}


* { box-sizing: border-box; scrollbar-width: none; }
*::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none; }
html, body { scrollbar-width: none; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 40% at 50% 2%, var(--grad-a), transparent 65%),
    radial-gradient(ellipse 52% 46% at 16% 54%, var(--grad-b), transparent 68%),
    radial-gradient(ellipse 48% 44% at 86% 62%, var(--grad-c), transparent 70%),
    var(--bg);
  font-family: 'Manrope', system-ui, sans-serif;
  transition: background .45s var(--ease), color .3s ease;
}
body::after {
  content: "";
  position: fixed;
  inset: -14%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 28% 25%, var(--grad-b), transparent 27%),
    radial-gradient(ellipse at 70% 35%, var(--grad-a), transparent 28%),
    radial-gradient(ellipse at 52% 78%, var(--grad-c), transparent 30%);
  filter: blur(72px);
  opacity: .9;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: radial-gradient(rgba(255,255,255,.06) .5px, transparent .5px);
  background-size: 8px 8px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 62%);
}
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
#app { min-height: 100vh; }
.page { animation: pageIn .44s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.icon { width: 18px; height: 18px; display: inline-grid; place-items: center; flex: none; line-height: 0; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon .icon-fill { fill: currentColor; stroke: none; }
.meta-row .icon { width: 14px; height: 14px; vertical-align: -2px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 12px 20px 0;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.site-header::before { display:none; }
.header-inner {
  width: min(1240px, calc(100vw - 28px));
  min-height: 54px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 3px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.brand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -.055em; }
.brand-mark, .footer-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 800; }
.brand-word { font-size: 17px; }
.desktop-nav {
  display: flex; align-items: center; justify-content: center; gap: 2px; width: fit-content; justify-self: end; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none;
}
.nav-link { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 800; background: transparent; transition: color .28s var(--ease), transform .5s var(--spring); }
.nav-link::after { content:""; position:absolute; left:12%; right:12%; bottom:0; height:2px; border-radius:999px; background:linear-gradient(90deg,var(--accent),var(--accent-2)); transform:scaleX(0); transform-origin:left center; opacity:0; box-shadow:0 0 14px var(--accent-glow); transition:transform .62s var(--spring),opacity .22s ease; }
.nav-link .icon { width: 15px; height: 15px; }
.nav-link:hover { color: var(--text); transform: translateY(-2px); }
.nav-link:hover::after { opacity:1; transform:scaleX(1); }
.nav-link.active { color: var(--text); }
.nav-link.active::after { opacity:1; transform:scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); transition: color .28s var(--ease), transform .45s cubic-bezier(.16,1.25,.28,1), background .45s cubic-bezier(.16,1.25,.28,1); cursor: pointer; }
.header-icon:hover { color: var(--text); transform: translateY(-2px); background: var(--accent-soft); }
.header-icon.active { color: var(--text); background: var(--accent-soft); }
.mobile-menu-icon { display: none; }
.mobile-nav-strip { display: none; }

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 150px clamp(18px,7vw,100px) 88px;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; background-image: var(--hero-image); background-position: center; background-size: cover; filter: saturate(.88); transform: scale(1.05); animation: heroZoom 14s ease-in-out infinite alternate; }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,5,5,.97) 0%, rgba(5,5,5,.84) 29%, rgba(5,5,5,.45) 60%, rgba(5,5,5,.78) 100%), linear-gradient(0deg, var(--hero-deep) 0%, transparent 55%, rgba(5,5,5,.34) 100%); }
html[data-theme="light"] .hero-overlay { background: linear-gradient(90deg, rgba(8,8,8,.96), rgba(8,8,8,.72) 34%, rgba(8,8,8,.32) 68%, rgba(8,8,8,.68)), linear-gradient(0deg, rgba(9,9,9,.98), transparent 56%, rgba(9,9,9,.32)); }
@keyframes heroZoom { to { transform: scale(1.095) translate3d(-8px,-4px,0); } }
.hero-content { width: min(760px, 100%); position: relative; z-index: 2; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .17em; font-size: 8px; color: var(--muted); font-weight: 800; }
.eyebrow::before, .section-kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .9; }
.hero h1, .page-title { font-family: 'Space Grotesk', sans-serif; letter-spacing: -.06em; font-size: clamp(44px,7vw,88px); line-height: .92; margin: 15px 0 17px; max-width: 900px; }
.hero-copy { max-width: 690px; margin: 0; color: var(--hero-copy); font-size: 15px; line-height: 1.7; }
.meta-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; color: var(--muted); margin: 16px 0; font-size: 11px; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; min-width: 0; max-width: 100%; }
.hero-actions .btn { min-width: 0; max-width: 100%; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 0; border-radius: 999px; padding: 10px 15px; font-size: 11px; font-weight: 800; cursor: pointer; transition: .32s var(--ease); }
.btn.primary { color: var(--accent-ink); background: linear-gradient(135deg,var(--accent),var(--accent-2)); box-shadow:0 12px 24px -16px var(--accent-glow); }
.btn.secondary { color: var(--text); background: var(--surface-strong); box-shadow:var(--float-shadow); }
.btn.ghost { color: var(--muted); background: transparent; }
.btn.icon-only { width: 42px; padding: 0; }
.btn:hover { transform: translateY(-3px) scale(1.012); box-shadow:0 18px 30px -22px var(--accent-glow), var(--float-shadow); }
.hero-dots { position: absolute; right: clamp(18px,7vw,100px); bottom: 38px; display: flex; gap: 6px; z-index: 4; }
.hero-dot { width: 18px; height: 3px; border: 0; padding: 0; border-radius: 999px; background: rgba(255,255,255,.34); cursor: pointer; transition: .32s var(--ease); }
.hero-dot.active { width: 42px; background: #fff; }

.section, .provider-section { padding: 28px clamp(18px,5vw,75px) 30px; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section h2 { margin: 3px 0 0; font-family: 'Space Grotesk', sans-serif; font-size: 22px; letter-spacing: -.045em; }
.section-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 800; transition: .25s var(--ease); }
.section-link:hover { color: var(--text); transform: translateX(2px); }
.section-link .icon { width: 13px; height: 13px; }
.rail-tools { display: inline-flex; align-items: center; gap: 6px; }
.rail-btn { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: var(--surface-strong); box-shadow:var(--float-shadow); color: var(--muted); cursor: pointer; transition: .25s var(--ease); }
.rail-btn:hover:not(:disabled) { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.rail-btn:disabled { opacity: .28; cursor: default; }
.rail-btn .icon { width: 14px; height: 14px; }
.rail-wrap { position: relative; width:100%; max-width:100%; overflow:visible; }
.card-row, .rank-row { display: flex; min-width:0; width:100%; gap: 16px; overflow-x: auto; overflow-y: visible; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; padding: 22px 7px 22px; scroll-behavior: smooth; }

.movie-card { position: relative; flex: 0 0 178px; min-width:0; display:block; scroll-snap-align:start; border-radius:22px; overflow:visible; transition: transform .66s var(--spring), filter .66s var(--spring); will-change: transform; }
.movie-card:hover { transform: translateY(-9px) scale(1.018); z-index:6; }
.movie-card:active { transform: translateY(-3px) scale(.992); }
.poster-wrap { position:relative; overflow:hidden; aspect-ratio:2/3; border-radius:22px; background:var(--surface-solid); border:0; box-shadow:0 24px 42px -28px rgba(0,0,0,.82), 0 16px 30px -24px var(--accent-glow); transition:transform .66s var(--spring), box-shadow .66s var(--spring); isolation:isolate; }
.poster-wrap::after { content:""; position:absolute; left:12%; right:12%; bottom:-14px; height:24px; z-index:-1; border-radius:50%; background:var(--accent-glow); filter:blur(18px); opacity:.36; transition:opacity .66s var(--spring), transform .66s var(--spring); }
.poster-wrap img { width:100%; height:100%; object-fit:cover; transform:scale(1); transition:transform .8s var(--spring), filter .55s var(--ease); will-change:transform; }
.movie-card:hover .poster-wrap { transform:translateY(-2px); box-shadow:0 34px 48px -28px rgba(0,0,0,.86), 0 26px 46px -25px var(--accent-glow); }
.movie-card:hover .poster-wrap::after { opacity:.68; transform:scale(1.08); }
.movie-card:hover .poster-wrap img { transform:scale(1.065); filter:saturate(1.03); }
.card-rating { position:absolute; left:9px; top:9px; display:inline-flex; align-items:center; gap:4px; padding:5px 7px; border-radius:999px; background:rgba(8,8,9,.66); backdrop-filter:blur(8px); color:#fff; font-size:9px; font-weight:800; z-index:3; }
.card-rating .icon { width:11px; height:11px; }
.card-hover-info { position:absolute; inset:auto 0 0; z-index:2; padding:42px 12px 12px; color:#fff; opacity:0; transform:translateY(18px); transition:opacity .48s var(--ease), transform .62s var(--spring); background:linear-gradient(180deg, transparent 0%, rgba(4,4,5,.25) 22%, rgba(4,4,5,.92) 100%); pointer-events:none; }
.movie-card:hover .card-hover-info { opacity:1; transform:translateY(0); }
.card-hover-title { font-size:11px; line-height:1.25; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.card-hover-meta { margin-top:4px; color:rgba(255,255,255,.72); font-size:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.card-copy { display:none; }
.rank-mark { position: absolute; left: -2px; bottom: 36px; z-index: 2; color: rgba(255,255,255,.12); font-family: 'Space Grotesk', sans-serif; font-size: 48px; font-weight: 700; line-height: 1; pointer-events: none; }
html[data-theme="light"] .rank-mark { color: rgba(20,20,20,.08); }
.top-ten-section .rank-row { align-items:flex-start; }

.provider-section { padding-top: 8px; }
.provider-row { display: grid; min-width:0; width:100%; grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr); gap: 10px; overflow-x: auto; padding: 4px 1px 8px; scroll-behavior: smooth; }
.provider-tile { display: grid; place-items: center; gap: 8px; min-height: 94px; padding: 12px 10px; border:0; background: var(--surface-soft); border-radius: 20px; box-shadow:var(--float-shadow); text-align: center; transition: .35s var(--ease); }
.provider-tile:hover { transform: translateY(-7px); background: var(--surface-strong); box-shadow:0 22px 36px -24px var(--accent-glow), var(--float-shadow); }
.provider-tile img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.provider-tile span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-strong); font-size: 10px; font-weight: 800; }
.provider-tile strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }

.page-shell { width: min(var(--page-max), 100%); margin: 0 auto; padding: 128px clamp(18px,5vw,75px) 72px; }
.page-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-title { margin: 12px 0 8px; font-size: clamp(42px,7vw,72px); }
.page-intro { max-width: 650px; color: var(--muted); line-height: 1.7; font-size: 12px; }
.controls { display: flex; gap: 8px; flex-wrap: wrap; }
.select { appearance: none; min-width: 132px; padding: 11px 30px 11px 12px; border-radius: 999px; border: 0; background: var(--surface-solid); color: var(--text); outline: none; font-size: 10px; font-weight: 800; }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 20px 15px; }

.details-hero { position: relative; min-height: 100svh; display: flex; align-items: end; overflow: hidden; padding: 132px clamp(18px,5vw,75px) 86px; isolation:isolate; }
.details-bg { position: absolute; inset: -3%; background: center/cover; filter: saturate(.56) blur(1.5px); transform: scale(1.055); z-index:-2; animation:detailDrift 18s ease-in-out infinite alternate; }
@keyframes detailDrift { to { transform:scale(1.09) translate3d(-8px,-4px,0); } }
.details-shade { position: absolute; inset: 0; z-index:-1; background: linear-gradient(90deg, rgba(6,6,6,.98) 0%, rgba(6,6,6,.82) 32%, rgba(6,6,6,.28) 72%, rgba(6,6,6,.86) 100%), linear-gradient(0deg, rgba(5,5,5,.98) 0%, transparent 58%), linear-gradient(180deg, rgba(5,5,5,.52) 0%, transparent 25%); }
.details-content { position: relative; z-index: 1; display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 38px; align-items: end; width: min(1220px, 100%); min-width: 0; max-width: 100%; margin: 0 auto; }
.poster-stack { position: relative; width: 250px; }
.details-poster { width: 250px; aspect-ratio: 2/3; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-xl); }
.poster-score { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 8px; background: rgba(5,5,6,.74); backdrop-filter: blur(9px); font-size: 10px; color: #fff; }
.poster-score .icon { width: 12px; height: 12px; }
.details-copy { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.details-copy h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(42px,5.5vw,78px); line-height: .94; letter-spacing: -.065em; margin: 8px 0 12px; overflow-wrap: anywhere; }
.details-copy .meta-row { margin: 10px 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tag { padding: 5px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #ddd; font-size: 8px; font-weight: 800; }
.creator-inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin: 10px 0 13px; color: var(--muted); font-size: 10px; }
.creator-inline span { text-transform: uppercase; letter-spacing: .12em; color: var(--dim); font-size: 8px; font-weight: 800; }
.creator-inline strong { color: #fff; }
.details-overview { max-width: 800px; color: var(--hero-copy); font-size: 13px; line-height: 1.75; }
.detail-body { width: min(1180px, calc(100% - clamp(36px,10vw,150px))); margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 22px; padding: 34px 0 10px; }
.detail-aside { display: grid; gap: 15px; align-content: start; }
.info-panel { border:0; background: var(--surface-soft); border-radius: 20px; padding: 18px; box-shadow:var(--float-shadow); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h3 { margin: 3px 0 0; font-family: 'Space Grotesk', sans-serif; font-size: 16px; letter-spacing: -.04em; }
.panel-kicker, .mini-label, .footer-label { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: 8px; font-weight: 800; color: var(--dim); }
.panel-head > .icon { width: 16px; height: 16px; color: var(--muted); }
.people-row { display: flex; gap: 11px; overflow-x: auto; padding-bottom: 3px; }
.person-card { flex: 0 0 78px; }
.person-photo { width: 78px; height: 100px; overflow: hidden; border-radius: 11px; background: var(--surface-solid); display: grid; place-items: center; color: var(--dim); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-name { margin-top: 7px; font-size: 9px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-role { margin-top: 2px; color: var(--dim); font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.provider-groups { display: grid; gap: 13px; }
.provider-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.provider-chip { display: flex; align-items: center; gap: 7px; padding: 6px 7px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); font-size: 9px; font-weight: 800; }
.provider-chip img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.trailer-card { display: block; overflow: hidden; border: 0; background: var(--surface-soft); border-radius: 20px; box-shadow:var(--float-shadow); transition: .35s var(--ease); }
.trailer-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.trailer-art { position: relative; aspect-ratio: 16/9; background: center/cover; }
.trailer-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 18%, rgba(0,0,0,.76)); }
.trailer-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(5,5,6,.7); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.trailer-copy { padding: 12px; }
.trailer-copy strong { display: block; margin: 3px 0 5px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; }
.trailer-copy > span:last-child { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.trailer-copy .icon { width: 11px; height: 11px; }

.watch-page { padding-top: 74px; }
.player-wrap { background: #030303; min-height: 56vw; max-height: 82vh; display: grid; place-items: center; }
.player-frame { width: min(1480px,100%); aspect-ratio: 16/9; border: 0; background: #000; }
.player-toolbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px clamp(18px,5vw,75px); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg-elevated) 92%, transparent); backdrop-filter: blur(18px); }
.source-pills { display: flex; gap: 7px; overflow-x: auto; }
.source-pill, .season-tab { flex: none; border: 1px solid var(--border); background: var(--surface); color: var(--muted); padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 9px; font-weight: 800; transition: .25s var(--ease); }
.source-pill:hover, .source-pill.active, .season-tab:hover, .season-tab.active { color: var(--text); background: var(--surface-strong); border-color: var(--border-strong); }
.watch-content { padding: 26px clamp(18px,5vw,75px) 60px; }
.watch-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.watch-title { margin: 6px 0 7px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(28px,4vw,46px); letter-spacing: -.055em; }
.player-note { max-width: 720px; margin: 12px 0 0; color: var(--dim); font-size: 9px; line-height: 1.7; }
.episode-panel { margin-top:18px; }
.season-picker-wrap { min-width:0; }
.season-picker { position:relative; }
.season-picker-btn { display:inline-flex; align-items:center; justify-content:space-between; gap:10px; min-width:150px; max-width:220px; padding:9px 12px; border:0; border-radius:999px; background:var(--surface-strong); color:var(--text); cursor:pointer; box-shadow:var(--float-shadow); }
.season-picker-btn .icon { width:13px; height:13px; transition:transform .45s var(--spring); }
.season-picker-btn[aria-expanded="true"] .icon { transform:rotate(180deg); }
.season-picker-menu { position:absolute; right:0; top:calc(100% + 8px); min-width:220px; max-height:280px; overflow:auto; padding:6px; border-radius:18px; background:color-mix(in srgb,var(--surface-solid) 92%, transparent); border:1px solid var(--border); box-shadow:var(--shadow-md); opacity:0; transform:translateY(-6px) scale(.98); transform-origin:top right; pointer-events:none; transition:opacity .24s var(--ease), transform .34s var(--spring); z-index:20; }
.season-picker-menu.open { opacity:1; transform:none; pointer-events:auto; }
.season-option { display:flex; width:100%; align-items:center; justify-content:flex-start; padding:10px 11px; border:0; border-radius:12px; background:transparent; color:var(--muted); text-align:left; cursor:pointer; font-size:10px; font-weight:800; }
.season-option:hover,.season-option.active { background:var(--surface-strong); color:var(--text); }
.episode-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.episode { display:block; min-width:0; padding:0; overflow:hidden; border:0; border-radius:18px; background:var(--surface-soft); color:var(--text); cursor:pointer; text-align:left; box-shadow:var(--float-shadow); transition:transform .48s var(--spring), box-shadow .48s var(--spring), background .3s var(--ease); }
.episode:hover { transform:translateY(-5px); background:var(--surface-strong); box-shadow:0 24px 38px -26px rgba(0,0,0,.82),0 18px 36px -28px var(--accent-glow); }
.episode.active { background:var(--surface-strong); box-shadow:0 24px 38px -26px rgba(0,0,0,.82),0 16px 32px -25px var(--accent-glow); }
.episode-media { position:relative; aspect-ratio:16/9; overflow:hidden; background:var(--surface-solid); }
.episode-still { width:100%; height:100%; object-fit:cover; transition:transform .65s var(--spring); }
.episode:hover .episode-still { transform:scale(1.045); }
.episode-number { position:absolute; left:9px; top:9px; padding:5px 7px; border-radius:999px; background:rgba(5,5,6,.68); backdrop-filter:blur(8px); color:#fff; font-size:8px; font-weight:800; }
.episode-copy { padding:10px 11px 12px; min-width:0; }
.episode-name { font-size:10px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.episode-meta { margin-top:4px; color:var(--dim); font-size:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.search-page { padding-top: 132px; }
.search-big { display: flex; gap: 8px; width: min(760px,100%); margin: 18px 0 30px; }
.search-big input { flex: 1; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 13px 14px; border-radius: 13px; outline: none; }
.search-big input:focus { border-color: var(--border-strong); box-shadow: 0 0 0 3px rgba(255,255,255,.05); }
.empty { min-height: 28vh; display: grid; place-items: center; align-content: center; gap: 10px; border: 1px dashed var(--border); border-radius: 18px; padding: 34px; text-align: center; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.08), rgba(255,255,255,.03)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.browse-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; max-width: 1180px; }
.browse-tile { position: relative; min-height: 190px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 5px; padding: 22px; overflow: hidden; border:0; border-radius: 20px; background: linear-gradient(135deg, var(--surface-strong), var(--surface-soft)); box-shadow:var(--float-shadow); transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease); }
.browse-tile:hover { transform: translateY(-8px); background: linear-gradient(135deg,var(--surface-strong),var(--surface-soft)); box-shadow:0 28px 40px -26px var(--accent-glow),var(--float-shadow); }
.browse-wide { grid-row: span 2; min-height: 392px; }
.browse-tile strong { font-family: 'Space Grotesk', sans-serif; font-size: 31px; letter-spacing: -.05em; }
.browse-tile > span:not(.section-kicker) { color: var(--muted); font-size: 10px; line-height: 1.6; max-width: 280px; }
.browse-tile > .icon:last-child { position: absolute; right: 22px; top: 22px; width: 24px; height: 24px; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1100px; }
.about-grid p { margin: 0; color: var(--muted); line-height: 1.75; font-size: 11px; }
.personal-top { align-items: end; }
.personal-tabs { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--border); background: var(--surface-soft); border-radius: 13px; flex: none; }
.personal-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 9px; color: var(--muted); font-size: 9px; font-weight: 800; }
.personal-tabs a.active { color: var(--text); background: var(--surface-strong); }
.personal-tabs .icon { width: 13px; height: 13px; }

.footer { margin-top: 50px; border-top: 1px solid var(--border); padding: 44px clamp(18px,5vw,75px) 32px; }
.footer-main { width: min(1180px,100%); margin: 0 auto; display: grid; grid-template-columns: minmax(250px,1.7fr) repeat(2,minmax(100px,.6fr)) minmax(220px,1.1fr); gap: 34px; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.05em; }
.footer-brand-block p, .footer-note p { margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.75; max-width: 360px; }
.footer-column { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-column a { color: var(--muted); font-size: 10px; transition: .22s var(--ease); }
.footer-column a:hover { color: var(--text); transform: translateX(2px); }
.footer-note a { color: var(--text); }
.footer-bottom { width: min(1180px,100%); margin: 28px auto 0; padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--dim); font-size: 9px; }
.footer-top { border: 0; padding: 0; background: none; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-size: 9px; }
.footer-top:hover { color: var(--text); }
.footer-top .icon { width: 11px; height: 11px; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-xl); font-size: 10px; font-weight: 800; animation: toastIn .3s both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.btn:focus-visible, .header-icon:focus-visible, .nav-link:focus-visible, .mobile-nav-link:focus-visible, .movie-card:focus-visible, .source-pill:focus-visible, .season-tab:focus-visible, .episode:focus-visible, .provider-tile:focus-visible { outline: 2px solid rgba(130,150,255,.75); outline-offset: 3px; }

@media (max-width: 1150px) {
  .grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .detail-body { grid-template-columns: 1fr; }
  .detail-aside { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .footer-main { grid-template-columns: 1.4fr .7fr .7fr; }
  .footer-note { grid-column: 1 / -1; max-width: 520px; }
}
@media (max-width: 900px) {
  .desktop-nav { gap: 0; }
  .nav-link { padding-inline: 9px; }
  .nav-link span { display: none; }
  .nav-link .icon { width: 17px; height: 17px; }
  .grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .details-content { grid-template-columns: 160px minmax(0,1fr); gap: 24px; }
  .poster-stack, .details-poster { width: 160px; }
  .detail-aside { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { padding-bottom: 82px; }
  .site-header { padding: 10px 12px 0; }
  .header-inner { width: 100%; grid-template-columns: auto 1fr auto; gap: 10px; min-height: 48px; padding: 4px 0; }
  .brand-word { display: none; }
  .desktop-nav { display: none; }
  .header-actions { justify-content: end; gap: 3px; }
  .mobile-menu-icon { display: grid; }
  .mobile-nav-strip { position:fixed; left:10px; right:10px; bottom:10px; z-index:120; width:auto; max-width:none; margin:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:2px; padding:0; border:0; border-radius:0; background:transparent; backdrop-filter:none; }
  .mobile-nav-link { position:relative; display:flex; min-width:0; width:100%; justify-content:center; align-items:center; flex-direction:column; gap:4px; min-height:56px; padding:7px 2px; border-radius:999px; background:transparent; color:var(--muted); font-size:8px; font-weight:800; transition:color .32s var(--ease), transform .48s var(--spring); }
  .mobile-nav-link::after { content:""; position:absolute; left:14%; right:14%; bottom:2px; height:2px; border-radius:999px; background:linear-gradient(90deg,var(--accent),var(--accent-2)); transform:scaleX(0); transform-origin:left center; opacity:0; box-shadow:0 0 12px var(--accent-glow); transition:transform .62s var(--spring),opacity .22s ease; }
  .mobile-nav-link:hover::after { opacity:1; transform:scaleX(1); }
  .mobile-nav-link .icon { width:16px; height:16px; }
  .mobile-nav-link.active { color:var(--text); transform:translateY(-2px); }
  .mobile-nav-link.active::after { opacity:1; transform:scaleX(1); }
  .hero { min-height: 80vh; padding: 132px 16px 64px; }
  .hero h1 { font-size: clamp(40px,12vw,56px); }
  .hero-copy { font-size: 13px; max-width: 95%; }
  .hero-dots { left: 16px; right: auto; bottom: 24px; }
  .section, .provider-section { padding: 20px 14px 24px; }
  .section h2 { font-size: 19px; }
  .rail-wrap, .card-row, .rank-row, .provider-row { max-width:100%; }
  .card-row, .rank-row { gap: 10px; grid-auto-columns: clamp(128px,38vw,160px); padding: 16px 4px 18px; }
  .top-ten-section .rank-row { grid-auto-columns: clamp(128px,38vw,160px); }
  .provider-row { grid-auto-columns: minmax(0, 30vw); gap: 8px; }
  .provider-tile { min-height: 82px; }
  .page-shell { width:100%; max-width:100%; padding: 108px 14px 60px; overflow-x:clip; }
  .page-top { align-items: flex-start; flex-direction: column; gap: 16px; }
  .page-title { font-size: clamp(38px,12vw,52px); }
  .controls { width: 100%; display: grid; grid-template-columns: repeat(3,1fr); }
  .select { min-width: 0; width: 100%; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 10px; }
  .details-hero { min-height: 100svh; width:100%; padding: 110px 14px 42px; overflow:hidden; align-items:end; }
  .details-content { grid-template-columns: 1fr; gap: 18px; width: 100%; margin-top:auto; }
  .poster-stack { width: 150px; margin: 0 auto; }
  .details-poster { width: 150px; }
  .details-copy h1 { font-size: clamp(36px,11vw,50px); }
  .detail-body { width:100%; max-width:100%; padding:22px 14px 10px; overflow:hidden; }
  .detail-aside { margin-top: 2px; }
  .hero-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; }
  .hero-actions .btn.primary { grid-column: 1 / -1; }
  .watch-page { padding-top: 92px; overflow-x:clip; }
  .player-wrap { min-height: 0; }
  .player-frame { aspect-ratio: 16/10; }
  .player-toolbar { overflow: hidden; padding: 8px 10px; }
  .source-pills { min-width: 0; }
  .watch-content { padding: 22px 14px 52px; }
  .watch-heading { align-items: flex-start; flex-direction: column; }
  .watch-heading .btn { width: 100%; }
  .episode-grid { grid-template-columns:1fr; }
  .season-picker-btn{width:100%;max-width:none;}
  .season-picker-menu{left:0;right:auto;width:min(100%,280px);}
  .search-page { padding-top: 108px; overflow-x:clip; }
  .search-big { flex-direction: column; margin-bottom: 22px; }
  .search-big .btn { width: 100%; }
  .browse-grid { grid-template-columns: 1fr 1fr; }
  .settings-page { padding-top:102px; padding-bottom:92px; overflow-x:clip; }
  .settings-shell { width:100%; grid-template-columns:1fr; gap:18px; }
  .settings-sidebar { position:static; }
  .settings-title h1 { font-size:38px; }
  .settings-title p { max-width:none; }
  .settings-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-top:16px; }
  .settings-tab { min-height:40px; }
  .setting-row { align-items:flex-start; flex-direction:column; gap:10px; padding:14px 0; }
  .setting-row > :last-child { width:100%; }
  .setting-select { width:100%; }
  .setting-choice { width:100%; }
  .setting-menu { left:0; right:auto; width:100%; }
  .accent-setting-row > :last-child { width:100%; }
  .accent-palette { justify-content:flex-start; max-width:none; }
  .account-card { grid-template-columns:auto 1fr; }
  .account-actions { grid-column:1 / -1; justify-content:flex-start; width:100%; }
  .server-item { grid-template-columns:18px 28px minmax(0,1fr) auto; }
  .browse-wide { grid-row: auto; min-height: 220px; grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; }
  .footer { padding: 32px 14px 96px; width:100%; overflow:hidden; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .footer-brand-block, .footer-note { grid-column: 1 / -1; }
  .footer-bottom { flex-wrap: wrap; }
  .toast { left: 14px; right: 14px; bottom: 14px; justify-content: center; }
}
@media (max-width: 420px) {
  .mobile-nav-link span { font-size: 6.6px; }
  .mobile-nav-link .icon { width: 12px; height: 12px; }
  .controls { grid-template-columns: 1fr; }
  .card-row, .rank-row { grid-auto-columns: minmax(0, calc((100vw - 38px) / 2.18)); gap:9px; }
  .provider-row { grid-auto-columns:minmax(0, 38vw); }
  .hero-actions { grid-template-columns: 1fr auto; }
  .hero-actions .btn.primary { grid-column: 1 / -1; }
  .hero-actions .btn.secondary { grid-column: 1; }
  .hero-actions .btn.icon-only { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Settings */
.settings-page { min-height: 100vh; padding-top: 120px; background: linear-gradient(180deg, transparent 0, rgba(0,0,0,.015) 100%); }
.settings-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 34px; align-items: start; }
.settings-sidebar { position: sticky; top: 104px; }
.settings-title h1 { margin: 10px 0 8px; font-family: 'Space Grotesk', sans-serif; font-size: 42px; line-height: .95; letter-spacing: -.065em; }
.settings-title p { margin: 0; max-width: 230px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.settings-tabs { display: grid; gap: 5px; margin-top: 24px; }
.settings-tab { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 11px; border: 1px solid transparent; border-radius: 12px; color: var(--muted); font-size: 10px; font-weight: 800; transition: .25s var(--ease); }
.settings-tab:hover { color: var(--text); background: var(--surface-soft); }
.settings-tab.active { color: var(--text); background: var(--surface-strong); border-color: var(--border); }
.settings-tab .icon { width: 16px; height: 16px; }
.settings-content { min-width: 0; display: grid; gap: 24px; }
.settings-section { display: block; scroll-margin-top: 110px; }
.settings-section:not(.is-active) { display: none; }
.settings-section-head { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.settings-section-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); color: var(--text); flex: none; }
.settings-section-icon .icon { width: 18px; height: 18px; }
.settings-section-head h2 { margin: 4px 0 4px; font-family: 'Space Grotesk', sans-serif; font-size: 22px; letter-spacing: -.045em; }
.settings-section-head p { margin: 0; max-width: 640px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: 0; }
.setting-copy { min-width: 0; }
.setting-copy strong { display: block; font-size: 11px; font-weight: 800; }
.setting-copy > span { display: block; margin-top: 4px; max-width: 620px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.setting-choice { position: relative; flex: none; }
.setting-select { min-width: 170px; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 0; border-radius: 999px; background: var(--surface-strong); box-shadow:var(--float-shadow); color: var(--text); font-size: 9px; font-weight: 800; cursor: pointer; }
.setting-select:hover { border-color: var(--border-strong); background: var(--surface-strong); }
.setting-select .icon { width: 13px; height: 13px; color: var(--muted); }
.setting-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 150; width: 240px; padding: 7px; border: 0; border-radius: 22px; background: var(--surface-solid); box-shadow:0 28px 60px -28px rgba(0,0,0,.75),0 20px 40px -26px var(--accent-glow); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin:top right; transition: opacity .24s ease, transform .48s var(--spring), visibility .24s ease; }
.setting-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.setting-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 800; text-align: left; cursor: pointer; }
.setting-menu button:hover, .setting-menu button.active { background: var(--surface-strong); color: var(--text); }
.setting-menu button .icon { width: 13px; height: 13px; }
.setting-menu button.active .icon { color: var(--text); }

.accent-selected { display:inline-flex; align-items:center; gap:9px; }
.accent-selected i, .accent-option-swatch { width:20px; height:20px; flex:none; display:inline-block; border-radius:999px; background:linear-gradient(135deg,var(--sw1) 0 50%, var(--sw2) 50% 100%); box-shadow:0 0 0 1px rgba(255,255,255,.08),0 6px 14px color-mix(in srgb,var(--sw1) 18%,transparent); }
.accent-option-swatch { width:22px; height:22px; }
.accent-menu button { justify-content:flex-start; }
.accent-menu button > .icon { margin-left:auto; }
.accent-menu button.active { background:var(--accent-soft); color:var(--text); }
.switch { position: relative; flex: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { width: 46px; height: 26px; display: block; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface-strong); padding: 3px; transition: .25s var(--ease); cursor: pointer; }
.switch-thumb { width: 18px; height: 18px; display: block; border-radius: 50%; background: #8d8d8c; box-shadow: 0 3px 9px rgba(0,0,0,.25); transition: .25s var(--ease); }
.switch input:checked + .switch-track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(20px); background: var(--accent-ink); }
.text-action { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: 9px; font-weight: 800; }
.text-action:hover { opacity: .75; }
.text-action .icon { width: 13px; height: 13px; }
.account-card, .febbox-card { border: 1px solid var(--border); border-radius: 18px; padding: 16px; background: var(--surface-soft); }
.account-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.account-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 900; }
.account-copy strong { display: block; font-size: 11px; }
.account-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.account-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.account-actions .btn { min-height: 34px; padding: 8px 11px; font-size: 9px; }
.server-list { display: grid; gap: 7px; margin-top: 10px; }
.server-item { display: grid; grid-template-columns: 18px 28px 1fr auto; gap: 8px; align-items: center; min-height: 48px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); cursor: grab; transition: .2s var(--ease); }
.server-item:hover { border-color: var(--border-strong); background: var(--surface-strong); }
.server-item.dragging { opacity: .5; transform: scale(.99); }
.grip { color: var(--dim); }
.grip .icon { width: 15px; height: 15px; }
.server-index { color: var(--dim); font-size: 8px; font-weight: 800; }
.server-item strong { font-size: 10px; }
.server-status { color: #85b58f; font-size: 8px; font-weight: 800; }
.settings-note { margin: 11px 0 0; color: var(--dim); font-size: 8px; line-height: 1.7; }
.color-picker { width: 48px; height: 32px; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-soft); cursor: pointer; }
.febbox-copy { display: flex; gap: 12px; align-items: flex-start; }
.febbox-copy > .icon { width: 18px; height: 18px; color: var(--muted); }
.febbox-copy strong { display: block; font-size: 11px; }
.febbox-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.6; }
#febbox-cookie { width: 100%; min-height: 130px; margin-top: 14px; resize: vertical; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-solid); color: var(--text); padding: 12px; outline: none; font: 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
#febbox-cookie:focus { border-color: var(--border-strong); box-shadow: 0 0 0 3px rgba(255,255,255,.04); }
.febbox-actions { display: flex; gap: 7px; justify-content: flex-end; margin-top: 9px; }
.detail-episodes { margin-top: 20px; }
.episode-carousel { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.spoiler-episode { min-height: 46px; display: grid; place-items: center; }
.title-logo { display: block; width: min(360px, 80%); max-width: 100%; height: auto; max-height: 150px; object-fit: contain; object-position: left center; margin: 10px 0 14px; filter: drop-shadow(0 14px 28px rgba(0,0,0,.32)); }
.trailer-video { overflow: hidden; border: 1px solid var(--border); border-radius: 17px; background: #000; aspect-ratio: 16/9; }
.trailer-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; background: rgba(2,3,4,.68); backdrop-filter: blur(16px) saturate(.9); animation: modalIn .22s var(--ease); }
.modal-card { position: relative; width: min(720px,100%); max-height: min(760px, calc(100vh - 48px)); overflow: auto; border: 1px solid var(--border-strong); border-radius: 22px; padding: 22px; background: color-mix(in srgb, var(--surface-solid) 94%, transparent); box-shadow: var(--shadow-xl); }
.modal-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); color: var(--muted); cursor: pointer; }
.modal-close .icon { width: 15px; height: 15px; transform: rotate(0deg); }
.detail-modal-grid { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 22px; align-items: start; }
.detail-modal-grid > img { width: 180px; aspect-ratio: 2/3; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-md); }
.detail-modal h2 { margin: 8px 0 8px; font-family: 'Space Grotesk', sans-serif; font-size: 36px; line-height: .95; letter-spacing: -.055em; }
.detail-modal-backdrop { overflow: auto; place-items: stretch; padding: 88px 18px 28px; }
.detail-modal-content { width: min(1180px,100%); margin: 0 auto; }
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .settings-shell { grid-template-columns: 1fr; gap: 18px; }
  .settings-sidebar { position: relative; top: auto; }
  .settings-tabs { display: flex; overflow-x: auto; gap: 5px; padding-bottom: 2px; }
  .settings-tab { flex: 0 0 auto; }
  .settings-content { gap: 18px; }
  .account-card { grid-template-columns: auto 1fr; }
  .account-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .detail-modal-grid { grid-template-columns: 120px minmax(0,1fr); gap: 15px; }
  .detail-modal-grid > img { width: 120px; }
}
@media (max-width: 700px) {
  .site-header { padding: 8px 12px 0; }
  .header-inner { width: 100%; grid-template-columns: auto 1fr auto; gap: 10px; min-height: 48px; }
  .brand-word { display: none; }
  .desktop-nav { display: none; }
  .header-actions { display: inline-flex; justify-content: flex-end; gap: 4px; }
  .mobile-nav-strip { width: 100%; max-width: 650px; margin: 7px auto 0; display: grid; grid-template-columns: repeat(5,1fr); gap: 4px; padding: 4px; border: 1px solid var(--nav-border); border-radius: 16px; background: var(--nav-surface); backdrop-filter: blur(20px) saturate(1.1); box-shadow: 0 14px 40px rgba(0,0,0,.12); }
  .mobile-nav-link { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-height: 37px; border-radius: 10px; color: var(--muted); font-size: 8px; font-weight: 800; }
  .mobile-nav-link .icon { width: 13px; height: 13px; }
  .mobile-nav-link.active { color: var(--text); background: var(--surface-strong); }
  .settings-page { padding-top: 132px; }
  .settings-shell { width: min(100% - 28px, 760px); }
  .settings-title h1 { font-size: 36px; }
  .setting-row { align-items: flex-start; }
  .setting-choice-row { align-items: center; }
  .setting-select { min-width: 140px; }
  .account-actions .btn { flex: 1 1 auto; }
  .server-item { grid-template-columns: 18px 24px 1fr auto; }
  .detail-modal-backdrop { padding: 78px 10px 14px; }
  .detail-modal-grid { grid-template-columns: 1fr; }
  .detail-modal-grid > img { width: 150px; }
  .detail-modal h2 { font-size: 30px; }
}
@media (max-width: 420px) {
  .setting-row { flex-direction: column; align-items: flex-start; }
  .setting-choice { width: 100%; }
  .setting-select { width: 100%; }
  .setting-menu { left: 0; right: auto; width: 100%; }
}

html[data-reduce-motion="true"] *, html[data-reduce-motion="true"] *::before, html[data-reduce-motion="true"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }

/* Catalog filters */
.catalog-hero { display: grid; gap: 20px; margin-bottom: 28px; }
.catalog-heading { max-width: 760px; }
.filter-bar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.filter-control { position: relative; min-width: 150px; }
.filter-loading { min-height: 40px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid var(--border); border-radius: 12px; color: var(--dim); background: var(--surface-soft); font-size: 9px; }
.filter-select { width: 100%; min-height: 40px; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); color: var(--text); font-size: 9px; font-weight: 800; cursor: pointer; transition: .22s var(--ease); }
.filter-select:hover, .filter-select[aria-expanded="true"] { border-color: var(--border-strong); background: var(--surface-strong); }
.filter-select .icon { width: 13px; height: 13px; color: var(--muted); }
.filter-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 180; width: 220px; max-height: 320px; overflow-y: auto; padding: 6px; border: 1px solid var(--border-strong); border-radius: 13px; background: color-mix(in srgb, var(--surface-solid) 96%, transparent); box-shadow: var(--shadow-md); backdrop-filter: blur(22px) saturate(1.08); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .18s var(--ease); }
.filter-menu.open { opacity: 1; visibility: visible; transform: none; }
.filter-menu button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 800; text-align: left; cursor: pointer; }
.filter-menu button:hover, .filter-menu button.active { color: var(--text); background: var(--surface-strong); }
.filter-menu button .icon { width: 13px; height: 13px; }

@media (min-width: 901px) {
  .catalog-hero { grid-template-columns: minmax(0,1fr) auto; align-items: end; }
  .filter-bar { justify-content: flex-end; }
}
@media (max-width: 700px) {
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-control { min-width: 0; }
  .filter-menu { left: 0; right: auto; width: min(260px, calc(100vw - 40px)); }
}
@media (max-width: 420px) {
  .filter-bar { grid-template-columns: 1fr; }
  .filter-menu { width: 100%; }
}

/* Dual-tone accent palettes */
html[data-accent="sage-ink"] { --accent:#91a58b; --accent-2:#d2c7a6; --accent-ink:#11150f; --accent-soft:rgba(145,165,139,.15); --accent-glow:rgba(145,165,139,.25); }
html[data-accent="slate-teal"] { --accent:#6f8792; --accent-2:#86b7aa; --accent-ink:#0b1112; --accent-soft:rgba(111,135,146,.15); --accent-glow:rgba(134,183,170,.24); }
html[data-accent="plum-mauve"] { --accent:#8d748f; --accent-2:#bca1b6; --accent-ink:#120d13; --accent-soft:rgba(141,116,143,.15); --accent-glow:rgba(188,161,182,.24); }
html[data-accent="navy-ice"] { --accent:#647d9f; --accent-2:#a8bdcf; --accent-ink:#0a1018; --accent-soft:rgba(100,125,159,.15); --accent-glow:rgba(168,189,207,.23); }
html[data-accent="forest-sand"] { --accent:#718b78; --accent-2:#c4b38c; --accent-ink:#0d130f; --accent-soft:rgba(113,139,120,.15); --accent-glow:rgba(196,179,140,.23); }
html[data-accent="terracotta-peach"] { --accent:#b97868; --accent-2:#d8a28e; --accent-ink:#170e0b; --accent-soft:rgba(185,120,104,.15); --accent-glow:rgba(216,162,142,.24); }
html[data-accent="burgundy-blush"] { --accent:#8d5967; --accent-2:#c39aa2; --accent-ink:#160b10; --accent-soft:rgba(141,89,103,.15); --accent-glow:rgba(195,154,162,.23); }
html[data-accent="coffee-copper"] { --accent:#8b7465; --accent-2:#bd9a75; --accent-ink:#140f0b; --accent-soft:rgba(139,116,101,.15); --accent-glow:rgba(189,154,117,.24); }
html[data-accent="indigo-lavender"] { --accent:#7273a7; --accent-2:#a7a2c3; --accent-ink:#0e0f16; --accent-soft:rgba(114,115,167,.15); --accent-glow:rgba(167,162,195,.24); }
html[data-accent="ocean-mint"] { --accent:#5f8790; --accent-2:#8fb8a9; --accent-ink:#081214; --accent-soft:rgba(95,135,144,.15); --accent-glow:rgba(143,184,169,.24); }
html[data-accent="charcoal-gold"] { --accent:#74746f; --accent-2:#b3a17b; --accent-ink:#12110d; --accent-soft:rgba(116,116,111,.15); --accent-glow:rgba(179,161,123,.22); }
html[data-accent="olive-rose"] { --accent:#7d866f; --accent-2:#b88b8c; --accent-ink:#10120d; --accent-soft:rgba(125,134,111,.15); --accent-glow:rgba(184,139,140,.23); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration:.48s; animation-timing-function:cubic-bezier(.16,1,.3,1); }
::view-transition-old(root) { animation-name:rootOut; }
::view-transition-new(root) { animation-name:rootIn; }
@keyframes rootOut { to { opacity:0; transform:translateY(3px) scale(.997); filter:blur(1px); } }
@keyframes rootIn { from { opacity:0; transform:translateY(8px) scale(.997); } }
html[data-reduce-motion="true"] ::view-transition-old(root), html[data-reduce-motion="true"] ::view-transition-new(root) { animation:none; }


/* Unified motion + responsive system */
.section { animation: sectionIn .72s cubic-bezier(.16,1,.3,1) both; }
.section:nth-of-type(2) { animation-delay:.045s; }
.section:nth-of-type(3) { animation-delay:.085s; }
.section:nth-of-type(4) { animation-delay:.12s; }
.section:nth-of-type(5) { animation-delay:.15s; }
.section:nth-of-type(6) { animation-delay:.18s; }
@keyframes sectionIn { from { opacity:0; transform:translateY(20px); filter:blur(3px); } to { opacity:1; transform:none; filter:none; } }

button,.btn,.header-icon,.rail-btn,.setting-select,.filter-select,.source-pill,.season-tab,.modal-close { border-radius:999px; }
.nav-link,.mobile-nav-link,.header-icon,.rail-btn,.btn,.setting-select,.filter-select,.source-pill,.season-tab { -webkit-tap-highlight-color:transparent; }

/* no nav bubbles: the active state is only the animated progress line */
.header-icon { background:transparent !important; }
.nav-link, .mobile-nav-link { background:transparent !important; }
.nav-link::before, .mobile-nav-link::before { display:none !important; }
.nav-link::after { left:18%; right:18%; bottom:1px; height:2px; }
.mobile-nav-link::after { left:28%; right:28%; bottom:3px; height:2px; }

/* floating card language */
.movie-card { z-index:1; }
.movie-card:hover { z-index:4; }
.poster-wrap { box-shadow:0 20px 34px -24px rgba(0,0,0,.78), 0 16px 34px -26px var(--accent-glow); }
.movie-card:hover .poster-wrap { transform:translateY(-1px) scale(1.014); box-shadow:0 30px 44px -28px rgba(0,0,0,.86), 0 24px 44px -28px var(--accent-glow); }
.provider-tile:hover,.browse-tile:hover,.info-panel:hover,.trailer-card:hover { box-shadow:0 28px 42px -28px rgba(0,0,0,.75),0 20px 40px -28px var(--accent-glow); }

/* immersive title hero */
.details-hero { min-height:100svh; }
.details-content { width:min(1240px,100%); }
.detail-body { position:relative; z-index:3; }

/* dropdown motion */
.filter-menu, .setting-menu { transform:translateY(-8px) scale(.97); transform-origin:top right; transition:opacity .22s ease,visibility .22s ease,transform .52s var(--spring); }
.filter-menu.open, .setting-menu.open { transform:translateY(0) scale(1); }

/* touch/mobile fit */
@media (max-width:700px) {
  body { padding-bottom:94px; overflow-x:clip; }
  .site-header { padding:8px 12px 0; background:transparent; }
  .header-inner { width:100%; max-width:100%; padding:0; border:0; background:transparent; box-shadow:none; backdrop-filter:none; }
  .desktop-nav { display:none; }
  .mobile-nav-strip { position:fixed; left:10px; right:10px; bottom:10px; z-index:120; width:auto; max-width:none; margin:0; padding:6px; border:1px solid color-mix(in srgb,var(--text) 10%,transparent); border-radius:28px; background:color-mix(in srgb,var(--surface-solid) 68%,transparent); box-shadow:0 24px 60px rgba(0,0,0,.32), 0 10px 30px -18px var(--accent-glow); backdrop-filter:blur(24px) saturate(1.3); -webkit-backdrop-filter:blur(24px) saturate(1.3); display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:2px; }
  .mobile-nav-link { min-width:0; width:100%; min-height:52px; padding:7px 3px 8px; overflow:hidden; }
  .mobile-nav-link span { min-width:0; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .page,.page-shell,.settings-page,.watch-page,.search-page,.details-hero { width:100%; max-width:100vw; overflow-x:clip; }
  .section,.provider-section { width:100%; max-width:100vw; padding-inline:14px; }
  .rail-wrap { width:100%; max-width:100%; overflow:visible; }
  .card-row,.rank-row { width:100%; max-width:100%; min-width:0; display:flex; gap:10px; padding:18px 4px 18px; overscroll-behavior-inline:contain; }
  .card-row .movie-card,.rank-row .movie-card { flex:0 0 clamp(132px,34vw,156px); }
  .provider-row { width:100%; max-width:100%; display:flex; gap:8px; overflow-x:auto; overflow-y:visible; padding:10px 4px 14px; }
  .provider-row .provider-tile { flex:0 0 112px; }
  .grid { width:100%; max-width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 10px; }
  .grid .movie-card { min-width:0; width:100%; }
  .page-shell { padding-left:14px; padding-right:14px; }
  .details-hero { min-height:100svh; padding:110px 14px 42px; align-items:end; }
  .details-content { width:100%; max-width:100%; grid-template-columns:1fr; gap:18px; margin-top:auto; }
  .poster-stack { width:150px; margin:0 auto; }
  .details-poster { width:150px; }
  .detail-body { width:100%; max-width:100%; padding:24px 14px 10px; }
  .detail-aside { width:100%; min-width:0; }
  .trailer-card,.trailer-video,.info-panel { width:100%; max-width:100%; }
  .watch-page,.search-page { padding-top:100px; }
  .player-frame { width:100%; max-width:100%; }
  .player-toolbar { width:100%; overflow:hidden; }
  .source-pills { min-width:0; max-width:100%; overflow-x:auto; }
  .settings-page { padding:102px 14px 96px; }
  .settings-shell { width:100%; max-width:100%; grid-template-columns:1fr; }
  .settings-tabs { display:grid; grid-template-columns:1fr; gap:7px; width:100%; }
  .settings-tab { min-width:0; width:100%; justify-content:flex-start; min-height:44px; padding-inline:12px; }
  .setting-row.setting-choice-row,.setting-row.accent-setting-row { flex-direction:column; align-items:flex-start; }
  .setting-choice,.setting-choice > .setting-select { width:100%; min-width:0; }
  .accent-select { width:100%; }
  .accent-menu,.setting-menu { width:min(100%,320px); left:0; right:auto; }
  .server-list,.server-item { width:100%; min-width:0; }
  .footer { width:100%; max-width:100%; overflow:hidden; }
}
@media (max-width:420px) {
  .mobile-nav-link { min-height:50px; }
  .mobile-nav-link span { font-size:7.2px; }
  .card-row,.rank-row { gap:8px; padding-inline:3px; }
  .card-row .movie-card,.rank-row .movie-card { flex-basis:clamp(126px,33vw,144px); }
  .provider-row .provider-tile { flex-basis:104px; }
}
@media (hover:hover) and (pointer:fine) {
  .nav-link:hover .icon,.header-icon:hover .icon,.mobile-nav-link:hover .icon { transform:translateY(-1px) scale(1.06); transition:transform .5s var(--spring); }
  .btn:hover .icon,.section-link:hover .icon,.rail-btn:hover:not(:disabled) .icon { transform:translateX(1px) scale(1.04); transition:transform .45s var(--spring); }
}

html[data-reduce-motion="true"] .section,
html[data-reduce-motion="true"] .details-bg { animation:none !important; }
html[data-reduce-motion="true"] * { scroll-behavior:auto !important; }


/* Final mobile fit pass: keep every route inside the viewport. */
@media (max-width:700px){
  html,body,#app{width:100%;max-width:100%;overflow-x:hidden;}
  .page,.page-shell,.settings-page,.watch-page,.search-page,.details-hero,.footer{width:100%;max-width:100%;min-width:0;}
  .section-header{min-width:0;align-items:center;}
  .section-header>div:first-child{min-width:0;}
  .section-header h2{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .rail-tools{flex:none;}
  .rail-btn{width:30px;height:30px;}
  .section-link{display:none;}
  .card-row,.rank-row,.provider-row{scrollbar-width:none;-ms-overflow-style:none;}
  .card-row::-webkit-scrollbar,.rank-row::-webkit-scrollbar,.provider-row::-webkit-scrollbar{display:none;}
  .movie-card:hover{transform:translateY(-3px) scale(1.005);}
  .movie-card:hover .poster-wrap{transform:none;}
  .card-hover-info{opacity:1;transform:none;padding:34px 9px 9px;}
  .card-hover-title{font-size:10px;}
  .card-hover-meta{font-size:7.5px;}
  .settings-page{padding:96px 12px 110px;}
  .settings-shell{width:100%;max-width:100%;gap:16px;}
  .settings-sidebar,.settings-content{width:100%;min-width:0;}
  .settings-title h1{font-size:34px;}
  .settings-title p{max-width:none;}
  .settings-section-head{width:100%;min-width:0;}
  .settings-section-head>div:last-child{min-width:0;}
  .settings-section-head h2{font-size:20px;}
  .setting-row{width:100%;min-width:0;padding:13px 0;}
  .setting-copy{min-width:0;width:100%;}
  .setting-copy strong,.setting-copy span{overflow-wrap:anywhere;}
  .setting-choice,.setting-choice-row .setting-choice{width:100%;min-width:0;}
  .setting-select{width:100%;min-width:0;}
  .setting-menu{width:min(100%,360px);max-width:calc(100vw - 24px);max-height:min(48vh,360px);}
  .server-list{width:100%;min-width:0;}
  .server-item{width:100%;min-width:0;grid-template-columns:18px 24px minmax(0,1fr) auto;padding:12px 10px;}
  .server-item strong,.server-status{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .account-card,.about-grid,.browse-grid,.detail-modal-grid{width:100%;max-width:100%;min-width:0;}
  .player-wrap,.player-frame,.player-toolbar,.watch-content{width:100%;max-width:100%;min-width:0;}
  .source-pills{display:flex;width:100%;min-width:0;overflow-x:auto;scrollbar-width:none;padding-bottom:2px;}
  .source-pills::-webkit-scrollbar{display:none;}
}
@media (max-width:420px){
  .mobile-nav-strip{left:7px;right:7px;bottom:7px;padding:5px;border-radius:25px;}
  .mobile-nav-link{gap:3px;padding-inline:1px;}
  .mobile-nav-link .icon{width:14px;height:14px;}
  .mobile-nav-link span{font-size:6.8px;}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px;}
  .page-shell{padding-left:12px;padding-right:12px;}
  .settings-tabs{gap:6px;}
  .settings-tab{font-size:9px;}
}

/* Final mobile navigation pass: glass container, no individual nav bubbles. */
@media (max-width:700px){
  .mobile-nav-strip{
    position:fixed;
    left:10px;right:10px;bottom:10px;
    width:auto;max-width:none;margin:0;
    padding:6px;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:2px;
    border:1px solid color-mix(in srgb,var(--text) 11%,transparent);
    border-radius:30px;
    background:color-mix(in srgb,var(--surface-solid) 66%,transparent) !important;
    box-shadow:0 26px 62px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.06), 0 14px 32px -22px var(--accent-glow);
    backdrop-filter:blur(26px) saturate(1.28);
    -webkit-backdrop-filter:blur(26px) saturate(1.28);
  }
  .mobile-nav-link,
  .mobile-nav-link.active,
  .mobile-nav-link:hover{
    background:transparent !important;
  }
  .mobile-nav-link.active{color:var(--text);}
  .mobile-nav-link.active::after{transform:scaleX(1);opacity:1;}
}
@media (max-width:420px){
  .mobile-nav-strip{left:7px;right:7px;bottom:7px;padding:5px;border-radius:27px;}
}


/* Final smooth interaction + title-page overflow pass. */
.details-content,
.details-copy,
.detail-body,
.detail-main,
.detail-aside,
.detail-episodes,
.detail-modal-content,
.detail-modal,
.detail-modal-grid {
  min-width: 0;
  max-width: 100%;
}
.details-copy,
.detail-modal-grid > div {
  overflow-wrap: anywhere;
}

@media (min-width: 701px) {
  .nav-link::after { bottom: -1px; }
}

@media (max-width: 700px) {
  .details-hero { width:100%; max-width:100%; min-width:0; overflow-x:clip; }
  .details-content { width:100%; max-width:100%; min-width:0; grid-template-columns:minmax(0,1fr); }
  .details-copy { width:100%; min-width:0; }
  .details-copy h1 { max-width:100%; }
  .title-logo { width:min(300px,100%); max-width:100%; }
  .meta-row, .tag-row, .creator-inline, .hero-actions { max-width:100%; min-width:0; }
  .hero-actions { grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; }
  .hero-actions .btn { min-width:0; width:100%; overflow:hidden; text-overflow:ellipsis; }
  .hero-actions .btn.icon-only { width:42px; }
  .detail-body { width:100%; max-width:100%; min-width:0; overflow-x:clip; }
  .detail-aside, .detail-main { min-width:0; max-width:100%; }
  .people-row { max-width:100%; }
  .detail-modal-grid { min-width:0; }
}

@media (hover:hover) and (pointer:fine) {
  .nav-link::after { opacity:0; }
  .nav-link:hover::after, .nav-link.active::after { opacity:1; transform:scaleX(1); }
  .movie-card:hover { filter:saturate(1.035); }
  .movie-card:hover .poster-wrap img { transform:scale(1.055); }
}

html[data-reduce-motion="true"] .movie-card:hover .poster-wrap img { transform:none; }

/* Final mobile rail breathing room + fluid card motion. */
@media (max-width:700px){
  .card-row,.rank-row{padding-top:34px;padding-bottom:22px;scroll-padding-inline:10px;}
  .movie-card{transition:transform .66s var(--spring),filter .45s var(--ease);}
  .poster-wrap{isolation:isolate;}
}
