@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('fonts/figtree-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

@property --ambient {
  syntax: '<color>';
  inherits: true;
  initial-value: rgb(70 48 40);
}

:root {
  color-scheme: dark;
  --bg: #0a090c;
  --surface: #17151b;
  --surface-2: #211e26;
  --line: rgb(255 255 255 / 0.09);
  --line-strong: rgb(255 255 255 / 0.2);
  --text: #f6f2ea;
  --muted: #b1abb4;
  --faint: #7c7682;
  --accent: #f6bd60;
  --accent-deep: #e0863f;
  --sk-base: #1b1920;
  --sk-sheen: #322e39;
  --gutter: clamp(16px, 4vw, 64px);
  --topbar-h: 64px;
  --tabbar-h: 0px;
  --radius: 12px;
  --poster-w: clamp(132px, 12vw, 196px);
  --landscape-w: clamp(250px, 24vw, 400px);
  --person-w: clamp(104px, 9.5vw, 148px);
  --tile-w: clamp(180px, 17vw, 270px);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  transition: --ambient 1.2s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; background: var(--bg); }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #1b1408; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgb(255 255 255 / 0.14); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- Reprodução local ---------- */
.inline-player-slot[hidden], .season-selection[hidden], .detail-body[hidden], .local-player [hidden] { display: none !important; }
.inline-player-slot { padding: 0 var(--gutter); margin: 0 auto 40px; max-width: 1500px; }
.local-player-inline { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #100e13; box-shadow: 0 24px 80px rgb(0 0 0 / .3); scroll-margin-top: calc(var(--topbar-h) + 20px); animation: player-enter .55s var(--ease) both; }
.local-player-toolbar { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.local-player-toolbar .btn { color: var(--muted); }
.local-player-toolbar .btn:hover { color: var(--text); }
.local-player-viewport { position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; background: #050407; }
.local-player-screen { position: absolute; inset: 0; background: #000; }
.local-player-screen .video-js { width: 100%; height: 100%; font-family: var(--sans); }
.local-player-screen .vjs-control-bar { background: rgb(16 13 19 / .9); }
.local-player-screen .vjs-play-progress, .local-player-screen .vjs-volume-level { background: var(--accent); }
.local-player-screen .vjs-big-play-button { border-color: var(--accent); color: var(--accent); background: rgb(15 12 18 / .75); }
.local-player-timeline { display: flex; align-items: center; gap: 10px; padding: 9px 16px; background: rgb(16 13 19 / .9); }
.local-player-timeline.in-controls { flex: 1; min-width: 0; padding: 0 8px; background: transparent; }
.local-player-seek { flex: 1; min-width: 30px; height: 16px; margin: 0; cursor: pointer; accent-color: var(--accent); }
.local-player-seek:disabled { cursor: wait; opacity: .6; }
.local-player-time { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.local-player-overlay { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 40%, rgb(48 34 21 / .5), transparent 64%), rgb(8 7 10 / .97); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s ease, visibility .5s; }
.local-player-overlay.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.local-player-loading { width: 100%; display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 2.5vw, 28px); text-align: center; }
.local-player-stage { color: var(--faint); text-transform: uppercase; font-size: .68rem; letter-spacing: .2em; }
.local-player-logo { --logo-light: 12%; display: grid; width: min(72%, 500px); min-height: 60px; }
.local-player-logo-base, .local-player-logo-lit { grid-area: 1 / 1; display: grid; place-items: center; font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 3.8rem); line-height: 1.12; font-weight: 550; }
.local-player-logo img { width: 100%; max-height: 170px; object-fit: contain; }
.local-player-logo-base { opacity: .17; filter: grayscale(1); }
.local-player-logo-lit { clip-path: inset(0 calc(100% - var(--logo-light)) 0 0); filter: drop-shadow(0 0 14px rgb(246 189 96 / .17)); transition: clip-path .9s var(--ease); }
.local-player-status { max-width: 580px; color: var(--muted); font-size: clamp(.8rem, 1.3vw, .98rem); line-height: 1.55; }
.local-player-status.is-error { color: #ffaca3; }
.local-player-loader { display: flex; gap: 6px; height: 8px; }
.local-player-loader span { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); animation: player-dot 1.5s ease-in-out infinite; }
.local-player-loader span:nth-child(2) { animation-delay: .2s; }
.local-player-loader span:nth-child(3) { animation-delay: .4s; }
.is-choosing .local-player-loader, .has-error .local-player-loader { visibility: hidden; }
.local-player-settings { border-top: 1px solid var(--line); }
.local-player-settings summary { cursor: pointer; padding: 14px 22px; color: var(--muted); font-size: .84rem; list-style: none; }
.local-player-settings summary .icon { vertical-align: middle; margin-right: 8px; }
.local-player-options { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding: 18px 22px; }
.local-player-field { display: grid; gap: 6px; min-width: 140px; color: var(--muted); font-size: .76rem; }
.local-player-field select { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; font-size: .87rem; padding: 9px 12px; min-height: 42px; max-width: 100%; }
.local-player-options .local-player-field { flex: 1; }
.local-player-options .local-player-mode { min-width: 170px; }
.local-player-mode-hint { max-width: 240px; color: var(--faint); font-size: .7rem; line-height: 1.35; }
.local-player-options .btn { min-height: 42px; }
.local-player-options :disabled { opacity: .55; cursor: default; }
.local-player-settings > .local-player-field { margin: 0 22px 20px; max-width: 480px; }

.local-player-choices { position: absolute; inset: 0; z-index: 4; overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: safe center; padding: 28px; background: radial-gradient(ellipse at 50% 70%, #1b1622 0%, #0b0a0e 65%); }
.local-player-choices-heading { width: min(100%, 360px); display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.local-player-choice-title { margin: 0; font-family: var(--sans); font-weight: 500; font-size: 1rem; letter-spacing: -.015em; color: var(--text); }
.local-player-choices .local-player-options { display: block; width: min(100%, 360px); padding: 0; }
.local-player-audio-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid rgb(255 255 255 / .08); border-radius: 12px; background: rgb(255 255 255 / .035); }
.local-player-audio-tab { flex: 1; min-height: 36px; padding: 8px 15px; border: 0; border-radius: 8px; font: inherit; font-size: .74rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); background: transparent; cursor: pointer; transition: background .2s, color .2s; }
.local-player-audio-tab[aria-pressed="true"] { color: #fbf8f1; background: rgb(255 255 255 / .12); box-shadow: 0 1px 4px #0004; }
.local-player-audio-tab:not(:disabled):hover { color: var(--text); background: rgb(255 255 255 / .08); }
.local-player-audio-description { min-height: 1.4em; margin: 10px 0 19px; color: var(--muted); font-size: .7rem; line-height: 1.4; text-align: center; }
.local-player-quality-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.local-player-quality-chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 14px; border: 1px solid rgb(255 255 255 / .13); border-radius: 9px; font: inherit; font-size: .78rem; color: var(--text); background: rgb(255 255 255 / .035); cursor: pointer; transition: background .2s, border-color .2s; }
.local-player-quality-chip .icon { width: 11px; height: 11px; color: var(--accent); }
.local-player-quality-chip:not(:disabled):hover { background: rgb(246 189 96 / .12); border-color: rgb(246 189 96 / .55); }
.local-player-quality-chip:focus-visible, .local-player-audio-tab:focus-visible, .local-player-settings summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.local-player-choice-footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / .07); }
.local-player-choice-footer .local-player-mode { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.local-player-choice-footer select { min-height: 34px; padding: 6px 10px; font-size: .74rem; background: transparent; }
.local-player-choice-footer .local-player-mode-hint { flex-basis: 100%; max-width: none; }
.local-player-choices-close { font-size: .65rem; padding: 4px 6px; }
.local-player-choices-close .icon { display: none; }
.local-player-overlay { overflow: hidden; background: #090a10f5; }
.local-player-loading { position: relative; z-index: 1; gap: 18px; }
.local-player-stage, .local-player-loader { display: none; }
.local-player-logo { width: min(52%, 310px); }
.local-player-logo img { max-height: 110px; }
.local-player-status { max-width: 380px; font-size: .8rem; text-shadow: 0 2px 10px #000; }
.local-player-mesh { position: absolute; inset: -25%; overflow: hidden; pointer-events: none; filter: blur(46px); opacity: .65; }
.local-player-mesh i { position: absolute; width: 60%; height: 65%; border-radius: 44% 56% 65% 35%; background: radial-gradient(ellipse, #9b72ca88, #9b72ca00 70%); animation: player-mesh-drift 8s ease-in-out infinite alternate; animation-play-state: paused; }
.local-player-mesh i:nth-child(1) { left: 3%; top: 10%; background: radial-gradient(ellipse, #718eaf88, #718eaf00 70%); }
.local-player-mesh i:nth-child(2) { right: 3%; bottom: 4%; animation-delay: -3s; animation-duration: 11s; }
.local-player-mesh i:nth-child(3) { left: 22%; top: 10%; width: 50%; height: 70%; background: radial-gradient(ellipse, #bd9f8066, #bd9f8000 65%); animation-delay: -5s; animation-duration: 9s; }
.local-player-overlay.is-visible .local-player-mesh i { animation-play-state: running; }
.has-error .local-player-mesh { opacity: .25; }
.has-error .local-player-mesh i { animation-play-state: paused; }
.local-player-overlay.is-rebuffering { background: transparent; pointer-events: none; padding-bottom: 62px; align-items: end; }
.is-rebuffering .local-player-mesh { inset: auto; bottom: 48px; left: calc(50% - 120px); width: 240px; height: 90px; filter: blur(16px); opacity: .8; }
.is-rebuffering .local-player-loading { width: auto; max-width: 90%; gap: 8px; }
.is-rebuffering .local-player-logo { display: none; }
.is-rebuffering .local-player-status { margin: 0; border: 1px solid #ffffff18; padding: 9px 14px; border-radius: 20px; background: #08090cc9; font-size: .72rem; color: #f0edf5; }
.is-rebuffering .local-player-loading button { pointer-events: auto; }
.local-player-screen .vjs-loading-spinner { display: none !important; }
@keyframes player-mesh-drift { 0% { transform: translate(-8%, 8%) rotate(-12deg) scale(.85); opacity: .35; } 50% { opacity: .9; } 100% { transform: translate(12%, -9%) rotate(18deg) scale(1.2); opacity: .55; } }
.episode-watch { margin-top: 12px; }
.player-restored { animation: player-enter .4s var(--ease) both; }
@keyframes player-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes player-dot { 0%, 70%, 100% { opacity: .25; } 35% { opacity: 1; } }
@media (max-width: 600px) {
  .inline-player-slot { padding: 0 12px; }
  .local-player-inline { border-radius: 12px; }
  .local-player-toolbar { padding: 8px 12px; }
  .local-player-viewport { aspect-ratio: 4 / 3; }
  .local-player-screen { display: grid; place-items: center; }
  .local-player-screen .video-js { height: auto; }
  .local-player-overlay { padding: 18px; }
  .local-player-stage { font-size: .58rem; }
  .local-player-logo img { max-height: 90px; }
  .local-player-options { padding: 14px; gap: 12px; }
  .local-player-options .local-player-field { min-width: 100px; }
  .local-player-options .btn { width: 100%; }
  .local-player-viewport.is-choosing { aspect-ratio: auto; min-height: 340px; }
  .local-player-choices { padding: 22px; }
  .local-player-choices-heading { margin-bottom: 16px; }
  .local-player-quality-chip { min-height: 42px; }
  .local-player-mesh { filter: blur(28px); }

}
@media (prefers-reduced-motion: reduce) {
  .local-player-inline, .player-restored, .local-player-loader span { animation: none; }
  .local-player-overlay, .local-player-logo-lit { transition: none; }
  .local-player-mesh i { animation: none !important; opacity: .6; }
  .local-player-audio-tab, .local-player-quality-chip { transition: none; }

}

.icon { display: inline-flex; width: 1.25em; height: 1.25em; flex: none; }
.icon svg { width: 100%; height: 100%; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(90vw 70vh at 78% -8%, color-mix(in srgb, var(--ambient) 55%, transparent), transparent 72%),
    radial-gradient(70vw 60vh at 0% 100%, color-mix(in srgb, var(--ambient) 18%, transparent), transparent 70%);
}

.view-enter { animation: view-in 0.4s var(--ease) both; }
@keyframes view-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Skeleton ---------- */

.sk {
  --i: 0;
  background-color: var(--sk-base);
  background-image: linear-gradient(105deg, transparent 30%, var(--sk-sheen) 50%, transparent 70%);
  background-size: 260% 100%;
  background-repeat: no-repeat;
  animation: sheen 1.9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  animation-delay: calc(var(--i) * 70ms);
}
@keyframes sheen {
  from { background-position: 160% 0; }
  to { background-position: -60% 0; }
}
.sk-line { height: 12px; border-radius: 6px; margin-top: 10px; }
.sk-line.center { margin-inline: auto; }
.w100 { width: 100%; } .w80 { width: 80%; } .w60 { width: 60%; } .w50 { width: 50%; } .w30 { width: 30%; }
.sk-eyebrow { width: 92px; height: 11px; margin: 0; }
.sk-title { width: min(520px, 90%); height: clamp(44px, 6vw, 76px); border-radius: 12px; margin: 16px 0 6px; }
.sk-meta { width: min(280px, 70%); height: 14px; margin: 14px 0 16px; }
.sk-rail-title { width: 220px; height: 22px; margin: 0; }
.sk-actions { display: flex; gap: 12px; margin-top: 26px; align-items: center; }
.sk-button { width: 148px; height: 48px; border-radius: 999px; }
.sk-round { width: 48px; height: 48px; border-radius: 50%; }
.sk-chip { width: 84px; height: 32px; border-radius: 999px; }
.sk-fill { position: absolute; inset: 0; }

.pic { position: relative; width: 100%; height: 100%; overflow: hidden; }
.pic img, .pic picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.pic img {
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.55s ease, transform 0.9s var(--ease);
}
.pic.is-loaded img { opacity: 1; transform: none; }
.pic.is-missing {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  color: var(--faint);
}
.pic-fallback { font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 2rem); }

/* ---------- Barra superior ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--topbar-h);
  padding-left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(to bottom, rgb(10 9 12 / 0.72), transparent);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
.topbar.is-solid {
  background: rgb(14 12 17 / 0.86);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); flex: none; }
.brand-mark { width: 28px; height: 28px; display: inline-flex; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; letter-spacing: -0.01em; color: var(--text); }
.nav-links { display: flex; gap: 2px; margin-left: 22px; }
.nav-link {
  position: relative;
  padding: 8px 12px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link.is-active { color: var(--text); font-weight: 650; }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.topbar-spacer { flex: 1; align-self: stretch; }
.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--text);
  flex: none;
  transition: background 0.2s ease;
}
.icon-button:hover { background: rgb(255 255 255 / 0.1); }
.back-button { display: none; margin-left: -8px; }
.back-button.is-visible { display: inline-grid; }
.window-controls { display: flex; align-self: stretch; margin-left: 6px; }
.window-controls button {
  width: 46px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.window-controls button:hover { background: rgb(255 255 255 / 0.1); color: var(--text); }
.window-controls .is-close:hover { background: #c42b1c; color: #fff; }
.tabbar { display: none; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.97rem;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--text); color: #17131a; }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-primary[disabled] { opacity: 0.6; cursor: progress; }
.btn-ghost {
  background: rgb(255 255 255 / 0.1);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgb(255 255 255 / 0.18); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 0.87rem; }
.btn-round {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s var(--ease), color 0.2s ease;
}
.btn-round:hover { background: rgb(255 255 255 / 0.2); transform: scale(1.05); }
.list-toggle.is-active { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.link-button, .link-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}
.link-button:hover, .link-like:hover { text-decoration: underline; text-underline-offset: 3px; }

.eyebrow {
  display: block;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.score { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; }
.score .icon { width: 0.95em; height: 0.95em; }

/* ---------- Destaque ---------- */

.hero {
  position: relative;
  height: min(88svh, 62vw);
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
}
.hero.is-error { display: grid; place-items: center; height: 60svh; }
.hero-stage { position: absolute; inset: 0; z-index: -2; }
.hero-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  animation: hero-drift 16s ease-out both;
}
.hero-layer.is-in { opacity: 1; }
@keyframes hero-drift { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero-shade, .detail-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgb(10 9 12 / 0.92) 0%, rgb(10 9 12 / 0.62) 34%, transparent 66%),
    linear-gradient(to top, var(--bg) 1%, rgb(10 9 12 / 0.55) 18%, transparent 44%);
}
.hero-content {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(130px, 18vh, 200px);
  width: min(620px, 48vw);
}
.hero-copy { animation: copy-in 0.7s var(--ease) both; }
@keyframes copy-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-logo { margin: 14px 0 16px; }
.hero-logo img {
  max-width: min(440px, 100%);
  max-height: clamp(90px, 15vh, 160px);
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 4px 24px rgb(0 0 0 / 0.55));
}
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
  text-shadow: 0 2px 28px rgb(0 0 0 / 0.5);
  text-wrap: balance;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #e4dfd8;
}
.hero-meta > span:not(.score) + span:not(.score) { position: relative; }
.hero-overview {
  margin-top: 14px;
  color: #dcd7d0;
  font-size: 1.02rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.6);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.hero-thumbs {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(130px, 18vh, 200px);
  display: flex;
  gap: 8px;
}
.hero-thumb {
  position: relative;
  width: clamp(64px, 7vw, 108px);
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.55;
  box-shadow: 0 0 0 1px var(--line);
  transition: opacity 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.hero-thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.hero-thumb.is-active { opacity: 1; box-shadow: 0 0 0 1.5px rgb(255 255 255 / 0.65); }
.hero-thumb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(0 0 0 / 0.4); }
.hero-thumb-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
}
.hero-thumb.is-active .hero-thumb-bar::after { animation: thumb-progress var(--duration) linear both; }
@keyframes thumb-progress { to { transform: scaleX(1); } }

.hero-skeleton { position: absolute; inset: 0; }
.hero-sk-bg { position: absolute; inset: 0; }
.hero-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg), transparent 44%), linear-gradient(to right, rgb(10 9 12 / 0.7), transparent 66%);
}
.hero-sk-content {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  bottom: clamp(130px, 18vh, 200px);
  width: min(620px, 48vw);
}

/* ---------- Fileiras ---------- */

.rails { position: relative; z-index: 2; display: flex; flex-direction: column; gap: clamp(26px, 3.4vw, 44px); padding-bottom: 24px; }
.rails-overlap { margin-top: clamp(-96px, -9vh, -40px); }
.rail { min-width: 0; }
.rail-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 0 var(--gutter);
  margin-bottom: 12px;
}
.rail-head > div:first-child { flex: 1; min-width: 0; }
.rail-head h2, .section-title {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.25rem, 1.9vw, 1.65rem);
  letter-spacing: -0.012em;
  line-height: 1.2;
}
.rail-head p { color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.rail-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.rail-more:hover { color: var(--accent); }
.rail-view { position: relative; }
.rail-track {
  display: flex;
  gap: clamp(10px, 1vw, 16px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--gutter);
  padding: 6px var(--gutter) 10px;
  scrollbar-width: none;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { flex: none; }
.rail-arrow {
  position: absolute;
  top: 6px;
  bottom: 10px;
  z-index: 5;
  width: calc(var(--gutter) * 0.92);
  min-width: 34px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.rail-arrow.is-prev { left: 0; background: linear-gradient(to right, rgb(10 9 12 / 0.92), transparent); }
.rail-arrow.is-next { right: 0; background: linear-gradient(to left, rgb(10 9 12 / 0.92), transparent); }
.rail-view:hover .rail-arrow, .rail-arrow:focus-visible { opacity: 1; }
.rail-arrow.is-off { opacity: 0 !important; pointer-events: none; }
.rail-error {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 120px;
  color: var(--muted);
  flex-wrap: wrap;
}
.segments {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid var(--line);
  flex: none;
}
.segment {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.segment:hover { color: var(--text); }
.segment.is-active { background: var(--text); color: #17131a; }

/* ---------- Cartões ---------- */

.reveal { animation: card-in 0.55s var(--ease) both; animation-delay: calc(var(--i, 0) * 38ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.card { display: block; position: relative; text-align: left; }
.card-art {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.poster-card { width: var(--poster-w); }
.poster-card .card-art { aspect-ratio: 2 / 3; }
.landscape-card { width: var(--landscape-w); }
.landscape-card .card-art { aspect-ratio: 16 / 9; }
.card-cap { padding: 10px 2px 0; min-width: 0; }
.card-cap strong, .card-cap span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-cap strong { font-size: 0.92rem; font-weight: 600; }
.card-cap span { font-size: 0.8rem; color: var(--faint); margin-top: 1px; }
.rating-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  background: rgb(10 9 12 / 0.68);
  backdrop-filter: blur(6px);
}
.rating-badge .icon { width: 0.9em; height: 0.9em; color: var(--accent); }
.landscape-cap {
  position: absolute;
  inset: auto 0 0;
  padding: 44px 14px 12px;
  background: linear-gradient(to top, rgb(0 0 0 / 0.86), transparent);
}
.landscape-cap strong, .landscape-cap span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.landscape-cap strong { font-weight: 650; font-size: 1rem; }
.landscape-cap span { color: #d3cdd0; font-size: 0.8rem; }
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #fff;
  background: rgb(0 0 0 / 0.16);
  transition: background 0.25s ease;
}
.video-play .icon {
  box-sizing: content-box;
  padding: 12px;
  border-radius: 50%;
  background: rgb(10 9 12 / 0.62);
  backdrop-filter: blur(6px);
}
.gallery-card { cursor: zoom-in; }

.rank-card {
  width: calc(var(--poster-w) * 1.42);
  display: flex;
  align-items: flex-end;
}
.rank-card .card-art { width: var(--poster-w); flex: none; aspect-ratio: 2 / 3; margin-left: auto; }
.rank-num {
  position: absolute;
  left: 0;
  bottom: -0.1em;
  z-index: 1;
  font-family: var(--serif);
  font-size: calc(var(--poster-w) * 0.98);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--bg);
  -webkit-text-stroke: 2px rgb(246 189 96 / 0.75);
  paint-order: stroke fill;
  pointer-events: none;
}
.rank-num-sk {
  position: absolute;
  left: 4%;
  bottom: 6%;
  width: 34%;
  height: 50%;
  border-radius: 14px;
}

.person-card { width: var(--person-w); display: block; text-align: center; }
.person-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.person-card strong, .person-card > span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.person-card strong { margin-top: 10px; font-size: 0.9rem; font-weight: 600; line-height: 1.25; }
.person-card > span { margin-top: 2px; font-size: 0.78rem; color: var(--faint); line-height: 1.25; }

.tile {
  --tint: #444;
  position: relative;
  display: block;
  width: var(--tile-w);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--tint), color-mix(in srgb, var(--tint) 30%, #09080b));
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.tile-art { position: absolute; inset: 0; opacity: 0.6; mix-blend-mode: luminosity; transition: opacity 0.35s ease, transform 0.8s var(--ease); }
.tile-art .sk { background-color: transparent; }
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, color-mix(in srgb, var(--tint) 72%, transparent) 10%, transparent 75%);
}
.tile-name {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 10px;
  right: 12px;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.4vw, 1.3rem);
  font-weight: 600;
  line-height: 1.12;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.5);
}
.tile.is-skeleton { background: none; box-shadow: none; }
.tile-sk { position: absolute; inset: 0; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.tile-grid .tile { width: auto; }

@media (hover: hover) {
  .card:hover .card-art, .tile:hover { transform: translateY(-4px); box-shadow: 0 0 0 1.5px rgb(255 255 255 / 0.4), 0 18px 34px rgb(0 0 0 / 0.5); }
  .tile:hover .tile-art { opacity: 0.85; transform: scale(1.05); }
  .person-card:hover .person-photo { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--accent), 0 12px 24px rgb(0 0 0 / 0.45); }
  .video-card:hover .video-play { background: rgb(0 0 0 / 0.02); }
}

/* ---------- Prévia ---------- */

.preview {
  position: fixed;
  z-index: 60;
  width: 340px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line-strong), 0 28px 60px rgb(0 0 0 / 0.68);
  animation: preview-in 0.26s var(--ease) both;
}
@keyframes preview-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.preview-art { aspect-ratio: 16 / 9; }
.preview-body { padding: 14px 16px 16px; }
.preview-title { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.preview-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 0.83rem; margin-top: 4px; }
.preview-score { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); font-weight: 700; }
.preview-score .icon { width: 0.95em; height: 0.95em; }
.preview p {
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #d2ccd0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.preview-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.preview-genres { flex: 1; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 0.78rem; color: var(--muted); }
.preview .btn-round { width: 38px; height: 38px; }

/* ---------- Páginas ---------- */

.page { padding: calc(var(--topbar-h) + 24px) var(--gutter) 24px; min-height: 80svh; }
.page .rail-head, .page .rail-track { padding-inline: 0; }
.page .rail { margin-top: 28px; }
.page .rail-track { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.page-head { margin-bottom: 20px; }
.page-head h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.page-head p { color: var(--muted); margin-top: 2px; }
.page-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.select select {
  appearance: none;
  background: rgb(255 255 255 / 0.07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b1abb4' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 0.87rem;
  font-weight: 600;
  padding: 8px 36px 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.select option { background: var(--surface-2); }
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
  margin: -2px;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip-row-page { margin: 0 calc(var(--gutter) * -1) 22px; padding: 2px var(--gutter); }
.chip {
  flex: none;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgb(255 255 255 / 0.05);
  font-size: 0.86rem;
  font-weight: 550;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover { background: rgb(255 255 255 / 0.14); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #1c1407; font-weight: 700; }
.browse-head { padding: 0 var(--gutter); }
.browse-head h2 { font-family: var(--serif); font-weight: 560; font-size: clamp(1.25rem, 1.9vw, 1.65rem); margin-bottom: 12px; }
.browse-head .chip-row { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }

.grid { display: grid; gap: clamp(16px, 1.6vw, 24px) clamp(10px, 1.2vw, 18px); }
.grid-poster { grid-template-columns: repeat(auto-fill, minmax(clamp(112px, 12vw, 180px), 1fr)); }
.grid-poster .poster-card { width: auto; }
.grid-person { grid-template-columns: repeat(auto-fill, minmax(clamp(92px, 10vw, 140px), 1fr)); }
.grid-person .person-card { width: auto; }
.grid-sentinel { height: 1px; }
.section-title { margin: 32px 0 14px; }
.category-section + .category-section { margin-top: 32px; }
.category-section h2 { font-family: var(--serif); font-weight: 560; font-size: 1.4rem; margin-bottom: 12px; }

.state-box {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  max-width: 460px;
  margin: 12vh auto;
  padding: 16px;
}
.state-box h2 { font-family: var(--serif); font-weight: 560; font-size: 1.5rem; }
.state-box p { color: var(--muted); }
.state-box .btn { margin-top: 10px; }
.state-box > .icon { font-size: 2rem; color: var(--faint); }

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 1.2rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.search-box:focus-within { border-color: var(--accent); background: rgb(255 255 255 / 0.1); }
.search-input {
  flex: 1;
  min-width: 0;
  height: 60px;
  background: none;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}
.search-input::placeholder { color: var(--faint); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-body { margin-top: 24px; }
.search-body .rail:first-child { margin-top: 0; }

.collection-head { position: relative; border-radius: 18px; overflow: hidden; min-height: 280px; display: flex; align-items: flex-end; margin-bottom: 26px; }
.collection-art { position: absolute; inset: 0; }
.collection-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(10 9 12 / 0.94), rgb(10 9 12 / 0.2)); }
.collection-copy { position: relative; padding: clamp(18px, 3vw, 34px); max-width: 720px; }
.collection-copy h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.08; margin-top: 8px; }
.collection-copy p { color: #d9d3cf; margin-top: 8px; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 48px;
  padding: 22px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--faint);
}
.site-footer p { flex: 1 1 280px; }
.page .site-footer { margin-inline: calc(var(--gutter) * -1); }
.wordmark-small { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; color: var(--muted); }

/* ---------- Detalhes ---------- */

.detail-hero {
  position: relative;
  min-height: min(92svh, 760px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.detail-backdrop, .detail-sk-bg { position: absolute; inset: 0; z-index: -2; }
.detail-backdrop .pic img { object-position: center 20%; }
.detail-hero-inner {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: clamp(22px, 3.2vw, 48px);
  padding: calc(var(--topbar-h) + 24px) var(--gutter) clamp(22px, 4vh, 44px);
}
.detail-poster {
  position: relative;
  flex: none;
  width: clamp(190px, 21vw, 320px);
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong), 0 26px 60px rgb(0 0 0 / 0.62);
}
.detail-copy { flex: 1; min-width: 0; max-width: 780px; animation: copy-in 0.7s var(--ease) both; }
.detail-logo { margin: 12px 0 10px; }
.detail-logo img {
  max-width: min(420px, 100%);
  max-height: clamp(84px, 14vh, 150px);
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 4px 24px rgb(0 0 0 / 0.6));
}
.detail-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -0.022em;
  margin: 10px 0 8px;
  text-wrap: balance;
}
.detail-tagline { font-family: var(--serif); font-style: italic; color: #e7dfd2; font-size: clamp(1rem, 1.4vw, 1.2rem); }
.detail-meta { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.detail-facts-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-weight: 500; color: #e4dfd8; }
.ring { position: relative; width: 52px; height: 52px; flex: none; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: rgb(10 9 12 / 0.6); stroke-width: 4; }
.ring-track { stroke: rgb(255 255 255 / 0.15); }
.ring-value { stroke: var(--accent); stroke-linecap: round; fill: none !important; animation: ring-in 1.1s var(--ease) both; }
@keyframes ring-in { from { stroke-dasharray: 0 200; } }
.ring strong { position: relative; font-size: 0.92rem; font-weight: 750; }
.cert {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 5px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  background: #55515b;
  color: #fff;
}
.cert-L { background: #1f9d55; }
.cert-10 { background: #1d7fc4; }
.cert-12 { background: #e2b400; color: #1a1500; }
.cert-14 { background: #e07a1f; }
.cert-16 { background: #cf2e2e; }
.cert-18 { background: #111; box-shadow: 0 0 0 1px var(--line-strong); }
.detail-genres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.detail-overview { margin-top: 14px; color: #e5e0da; font-size: 1.03rem; line-height: 1.6; max-width: 70ch; }
.section-nav {
  position: sticky;
  top: var(--topbar-h);
  z-index: 20;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px var(--gutter);
  background: rgb(10 9 12 / 0.8);
  backdrop-filter: blur(16px);
  border-block: 1px solid var(--line);
}
.section-nav::-webkit-scrollbar { display: none; }
.section-nav-item {
  flex: none;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.section-nav-item:hover { background: rgb(255 255 255 / 0.1); color: var(--text); }
.detail-sections { display: flex; flex-direction: column; gap: clamp(30px, 4vw, 52px); padding-top: clamp(22px, 3vw, 36px); }
.detail-section { scroll-margin-top: calc(var(--topbar-h) + 60px); min-width: 0; }
.detail-section > .section-title { margin: 0 var(--gutter) 14px; }
.detail-section > .chip-row { margin: 0 0 14px; padding-inline: var(--gutter); }
.season-info { padding: 0 var(--gutter); margin-bottom: 14px; color: var(--muted); max-width: 90ch; }
.season-info:empty { display: none; }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 18px 28px;
  padding: 0 var(--gutter);
}
.facts dt { font-size: 0.73rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin-top: 3px; }
.facts a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.facts a:hover { color: var(--accent); }
.episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr)); gap: 12px clamp(14px, 2vw, 28px); padding: 0 var(--gutter); }
.episode { display: flex; gap: 14px; padding: 10px; border-radius: 14px; background: rgb(255 255 255 / 0.04); min-width: 0; }
.episode-still {
  position: relative;
  flex: none;
  width: clamp(130px, 13vw, 200px);
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface);
  align-self: flex-start;
}
.episode-number {
  position: absolute;
  left: 6px;
  bottom: 4px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.9);
}
.episode-body { flex: 1; min-width: 0; }
.episode-body header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.episode-body h3 { font-size: 0.98rem; font-weight: 650; line-height: 1.3; }
.episode-body .score { font-size: 0.82rem; flex: none; }
.episode-meta { display: block; color: var(--faint); font-size: 0.8rem; margin-top: 1px; }
.episode-body p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.collection-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 210px;
  margin: 0 var(--gutter);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.collection-banner > .pic { position: absolute; inset: 0; }
.collection-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 9 12 / 0.88), transparent 80%); }
.collection-banner > div:last-child { position: relative; z-index: 1; display: grid; gap: 4px; justify-items: start; padding: clamp(16px, 2.6vw, 28px); }
.collection-banner strong { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.15; }

/* ---------- Pessoa ---------- */

.person-head { display: flex; gap: clamp(20px, 3vw, 44px); align-items: flex-start; }
.person-portrait {
  position: relative;
  flex: none;
  width: clamp(180px, 22vw, 320px);
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong), 0 24px 54px rgb(0 0 0 / 0.5);
}
.person-copy { flex: 1; min-width: 0; max-width: 800px; }
.person-copy h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -0.02em; line-height: 1.05; margin-top: 8px; }
.person-facts { display: flex; flex-wrap: wrap; gap: 2px 18px; color: var(--muted); margin-top: 10px; font-size: 0.93rem; }
.person-bio { margin: 16px 0 8px; line-height: 1.65; white-space: pre-line; color: #e2ddd7; }
.person-copy .btn { margin-top: 12px; }
.timeline { display: grid; gap: 4px; }
.timeline-year { display: flex; gap: clamp(12px, 3vw, 36px); padding: 12px 0; border-top: 1px solid var(--line); }
.timeline-label { flex: none; width: 76px; font-family: var(--serif); font-weight: 600; color: var(--accent); font-size: 1.05rem; }
.timeline-items { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 4px 20px; }
.timeline-item { display: block; padding: 5px 8px; margin-left: -8px; border-radius: 8px; transition: background 0.2s ease; min-width: 0; }
.timeline-item:hover { background: rgb(255 255 255 / 0.07); }
.timeline-item strong, .timeline-item span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline-item strong { font-weight: 600; font-size: 0.93rem; }
.timeline-item span { font-size: 0.8rem; color: var(--faint); }

/* ---------- Modais ---------- */

.modal {
  padding: 0;
  border: 0;
  color: var(--text);
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line-strong), 0 40px 90px rgb(0 0 0 / 0.75);
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
.modal[open] { animation: modal-in 0.28s var(--ease) both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal::backdrop { background: rgb(4 3 6 / 0.82); backdrop-filter: blur(6px); }
.modal-wide { width: min(1100px, calc(100vw - 32px)); }
.modal-narrow { width: min(520px, calc(100vw - 32px)); }
.modal-full { width: calc(100vw - 32px); height: calc(100dvh - 32px); background: rgb(8 7 10 / 0.6); overflow: hidden; }
.video-modal header { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; }
.video-modal strong { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-modal .btn-round { width: 38px; height: 38px; }
.video-frame { aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox { position: relative; width: 100%; height: 100%; }
.lightbox-frame { position: absolute; inset: 0; }
.lightbox-frame .pic img { object-fit: contain; }
.lightbox-count { position: absolute; left: 16px; bottom: 12px; padding: 2px 10px; border-radius: 999px; background: rgb(0 0 0 / 0.55); font-size: 0.85rem; }
.lightbox .modal-close { position: absolute; top: 12px; right: 12px; }
.lightbox-arrow { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox-arrow.is-prev { left: 12px; }
.lightbox-arrow.is-next { right: 12px; }
.settings { padding: 8px 24px 26px; }
.settings header { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.settings h2 { font-family: var(--serif); font-weight: 560; font-size: 1.5rem; }
.settings section { padding: 16px 0; border-top: 1px solid var(--line); }
.settings h3 { font-size: 1rem; font-weight: 650; }
.settings p { color: var(--muted); font-size: 0.9rem; margin: 2px 0 10px; }
.settings .btn-round { width: 40px; height: 40px; }
.key-form { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.text-input {
  flex: 1 1 220px;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgb(255 255 255 / 0.06);
  color: var(--text);
  font: inherit;
}
.text-input:focus { outline: 0; border-color: var(--accent); }
.form-error { flex-basis: 100%; color: #ff9d8a; font-size: 0.88rem; margin: 0; }
.form-error:empty { display: none; }
.toasts {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: calc(24px + var(--tabbar-h));
  translate: -50% 0;
  display: grid;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}
.toast {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #17131a;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.5);
  animation: toast-in 0.3s var(--ease) both;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Primeira execução ---------- */

.setup {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow: hidden;
}
.setup-lights { position: absolute; inset: 0; pointer-events: none; filter: blur(28px); }
.setup-lights i {
  position: absolute;
  top: -20%;
  width: 46vw;
  height: 130%;
  background: linear-gradient(to bottom, rgb(246 189 96 / 0.26), transparent 72%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  transform-origin: top center;
  animation: beam 9s ease-in-out infinite alternate;
}
.setup-lights i:nth-child(1) { left: -8%; rotate: 16deg; }
.setup-lights i:nth-child(2) { left: 27%; rotate: 0deg; animation-delay: -3s; opacity: 0.8; }
.setup-lights i:nth-child(3) { right: -8%; rotate: -16deg; animation-delay: -6s; }
@keyframes beam { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.setup-card { position: relative; width: min(500px, 100%); }
.setup-card h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 22px 0 12px;
  text-wrap: balance;
}
.setup-card p { color: var(--muted); margin-bottom: 20px; }
.fatal { display: grid; place-items: center; min-height: 100svh; }
.fatal .window-controls, .setup .window-controls { position: fixed; top: 0; right: 0; height: 40px; }

/* ---------- Telas estreitas / mobile ---------- */

@media (max-width: 1080px) {
  .nav-links { margin-left: 8px; }
  .nav-link { padding-inline: 8px; }
  .nav-link.is-active::after { left: 8px; right: 8px; }
}

@media (max-width: 860px) {
  :root { --tabbar-h: calc(60px + env(safe-area-inset-bottom)); --topbar-h: 56px; }
  body { padding-bottom: var(--tabbar-h); }
  .nav-links, .search-link { display: none; }
  .wordmark { font-size: 1.2rem; }
  .tabbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    height: var(--tabbar-h);
    padding-bottom: env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgb(14 12 17 / 0.92);
    backdrop-filter: blur(18px) saturate(1.4);
    border-top: 1px solid var(--line);
  }
  .tab {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--faint);
    transition: color 0.2s ease;
  }
  .tab .icon { font-size: 1.14rem; }
  .tab.is-active { color: var(--accent); }

  .hero-thumbs { display: none; }
  .rail-arrow { display: none; }
  .rail-track { scroll-snap-type: x proximity; }
  .rail-track > * { scroll-snap-align: start; }
  .rail-head { align-items: center; }
  .rail-head p { display: none; }
  .segment { padding: 5px 11px; font-size: 0.78rem; }
  :root { --poster-w: clamp(112px, 30vw, 170px); --landscape-w: min(76vw, 340px); --person-w: clamp(88px, 24vw, 120px); --tile-w: clamp(146px, 42vw, 220px); }
}

@media (max-width: 700px) {
  .hero { height: min(82svh, 150vw); min-height: 480px; }
  .hero-shade, .detail-shade {
    background: linear-gradient(to top, var(--bg) 4%, rgb(10 9 12 / 0.74) 32%, rgb(10 9 12 / 0.12) 62%, rgb(10 9 12 / 0.4) 100%);
  }
  .hero-content, .hero-sk-content {
    left: 16px;
    right: 16px;
    bottom: 46px;
    width: auto;
    text-align: center;
  }
  .hero-logo img { margin-inline: auto; object-position: center bottom; max-width: 74%; }
  .hero-meta { justify-content: center; font-size: 0.87rem; }
  .hero-overview { -webkit-line-clamp: 2; font-size: 0.9rem; }
  .hero-actions { justify-content: center; flex-wrap: nowrap; gap: 8px; margin-top: 16px; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; padding-inline: 12px; font-size: 0.9rem; }
  .hero-sk-content .sk { margin-inline: auto; }
  .sk-actions { justify-content: center; }
  .rails-overlap { margin-top: -22px; }

  .detail-hero { min-height: 0; display: block; }
  .detail-backdrop, .detail-sk-bg { position: absolute; inset: 0 0 auto; height: 76vw; }
  .detail-shade { height: 76vw; bottom: auto; background: linear-gradient(to top, var(--bg), rgb(10 9 12 / 0.1) 62%, rgb(10 9 12 / 0.4)); }
  .detail-hero-inner { flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-top: 30vw; padding-bottom: 14px; }
  .detail-poster { width: 42vw; max-width: 200px; }
  .detail-copy { width: 100%; }
  .detail-logo img { margin-inline: auto; object-position: center; max-width: 78%; }
  .detail-meta, .detail-genres, .detail-facts-line { justify-content: center; }
  .detail-overview { text-align: left; font-size: 0.97rem; }
  .detail-copy .hero-actions { flex-wrap: wrap; }
  .detail-copy .sk { margin-inline: auto; }
  .episode { flex-direction: column; gap: 10px; }
  .episode-still { width: 100%; }

  .person-head { flex-direction: column; align-items: center; text-align: center; }
  .person-portrait { width: 52vw; max-width: 240px; }
  .person-facts { justify-content: center; }
  .person-bio { text-align: left; }
  .timeline-label { width: 52px; font-size: 0.95rem; }
  .site-footer { padding-bottom: 20px; }
  .btn { min-height: 44px; }
  .btn-round { width: 44px; height: 44px; }
  .modal-full, .modal-wide, .modal-narrow { width: 100vw; max-width: 100vw; }
  .modal-full { height: 100dvh; max-height: 100dvh; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
