:root {
  --bg: #0e0a0f;
  --bg-2: #151017;
  --surface: #1c1520;
  --surface-2: #261d2b;
  --line: rgba(255, 255, 255, .08);
  --text: #f6eff3;
  --muted: #b3a5af;
  --faint: #7e707a;
  --wine: #b3264a;
  --wine-2: #d23a62;
  --gold: #e0b354;
  --gold-soft: rgba(224, 179, 84, .14);
  --ok: #4fbf8a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --pad: clamp(16px, 4vw, 56px);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- topo ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; gap: 28px;
  height: 68px; padding: 0 var(--pad);
  background: linear-gradient(180deg, rgba(14, 10, 15, .92), rgba(14, 10, 15, 0));
  transition: background .25s;
}
.top.solid { background: rgba(14, 10, 15, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 21px/1 var(--serif); letter-spacing: .2px; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand em { color: var(--gold); font-style: italic; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 14px; padding: 6px 0; position: relative; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); }
.nav a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--gold); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: var(--surface); color: var(--text); }
.icon-btn svg { width: 21px; height: 21px; }
.avatar {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--wine), #6e1630); font-weight: 800; font-size: 14px;
}
.menu { position: relative; }
.menu-pop {
  position: absolute; right: 0; top: 48px; min-width: 220px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  display: none;
}
.menu-pop.open { display: block; }
.menu-pop .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-pop .who b { display: block; }
.menu-pop .who span { color: var(--faint); font-size: 13px; }
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); color: var(--text); }

/* ---------- navegação inferior (celular) ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .top { height: 58px; gap: 12px; }
  .brand { font-size: 19px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; inset: auto 0 0 0; z-index: 40;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(21, 16, 23, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 700; color: var(--faint); }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--gold); }
  main { padding-bottom: 76px; }
}

/* ---------- botões e chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: 12px; font-weight: 800; font-size: 15px; white-space: nowrap;
  transition: transform .15s, background .15s;
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--wine); color: #fff; box-shadow: 0 10px 24px rgba(179, 38, 74, .35); }
.btn-primary:hover { background: var(--wine-2); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: var(--text); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px;
  font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .09); color: var(--text); white-space: nowrap;
}
.chip.gold { background: var(--gold-soft); color: var(--gold); }
.chip.wine { background: rgba(179, 38, 74, .22); color: #ff9db6; }
.chip.new { background: var(--gold); color: #2a1a00; }

/* ---------- destaque ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: opacity .8s; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 10, 15, .96) 0%, rgba(14, 10, 15, .72) 38%, rgba(14, 10, 15, .1) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(14, 10, 15, 0) 42%);
}
.hero-in { position: relative; padding: 120px var(--pad) 64px; max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 800; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.hero h1 { font: 700 clamp(38px, 6vw, 68px)/1.02 var(--serif); margin: 14px 0 6px; letter-spacing: -.5px; }
.hero .orig { color: var(--muted); font: italic 600 17px var(--serif); margin-bottom: 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hero p.syn { color: #e3d8de; font-size: 16.5px; max-width: 560px; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-dots { position: absolute; right: var(--pad); bottom: 70px; display: flex; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 9px; background: rgba(255, 255, 255, .3); transition: width .3s, background .3s; }
.hero-dots button.on { width: 28px; background: var(--gold); }
@media (max-width: 760px) {
  .hero { min-height: 640px; }
  .hero-in { padding: 100px var(--pad) 40px; }
  .hero-bg img { object-position: 72% center; }
  .hero-bg::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(14, 10, 15, .55) 60%, rgba(14, 10, 15, .35) 100%); }
  .hero p.syn { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-dots { bottom: 18px; left: var(--pad); right: auto; }
  .hero-actions .btn { flex: 1; }
}

/* ---------- faixa de números ---------- */
.stats {
  margin: -18px var(--pad) 10px; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--bg-2); padding: 18px 20px; }
.stat b { display: block; font: 700 28px/1.1 var(--serif); color: var(--gold); }
.stat span { color: var(--muted); font-size: 13px; font-weight: 600; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat { padding: 14px 16px; } .stat b { font-size: 23px; } }

/* ---------- fileiras ---------- */
.row { margin: 34px 0 6px; }
.row-head { display: flex; align-items: baseline; gap: 12px; padding: 0 var(--pad); margin-bottom: 14px; }
.row-head h2 { font: 700 22px/1.2 var(--serif); margin: 0; }
.row-head .sub { color: var(--faint); font-size: 13px; font-weight: 600; }
.row-head a.more { margin-left: auto; color: var(--gold); font-size: 13px; font-weight: 800; }
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(210px, 23vw, 300px); gap: 14px;
  overflow-x: auto; padding: 4px var(--pad) 16px; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-btn {
  position: absolute; top: 4px; bottom: 16px; width: calc(var(--pad) - 6px); min-width: 40px; z-index: 3;
  display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity .2s;
}
.rail-btn svg { width: 28px; height: 28px; filter: drop-shadow(0 2px 6px #000); }
.rail-btn.prev { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.rail-btn.next { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.rail-wrap:hover .rail-btn { opacity: 1; }
@media (max-width: 760px) { .rail { grid-auto-columns: 62vw; gap: 10px; } .rail-btn { display: none; } .row-head h2 { font-size: 19px; } }

/* ---------- card ---------- */
.card { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow); z-index: 2; }
.card .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .thumb img { transform: scale(1.06); }
.card .thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 6, 11, .97) 0%, rgba(10, 6, 11, .75) 30%, rgba(10, 6, 11, 0) 70%); }
.card .badges { position: absolute; top: 9px; left: 9px; z-index: 1; display: flex; gap: 6px; }
.card .badges .chip { height: 22px; font-size: 10.5px; letter-spacing: .4px; background: rgba(14, 10, 15, .78); backdrop-filter: blur(4px); }
.card .badges .chip.new { background: var(--gold); }
.card .info { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; }
.card .info h3 { margin: 0; font: 700 16.5px/1.2 var(--serif); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.card .info span { color: #d6c9d0; font-size: 12px; font-weight: 600; }
.card .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .15); z-index: 1; }
.card .bar i { display: block; height: 100%; background: var(--wine-2); }
.card .play {
  position: absolute; top: 50%; left: 50%; z-index: 1; width: 48px; height: 48px; margin: -30px 0 0 -24px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(179, 38, 74, .92); opacity: 0; transform: scale(.8); transition: .25s;
}
.card .play svg { width: 20px; height: 20px; margin-left: 2px; }
.card:hover .play { opacity: 1; transform: scale(1); }

/* ---------- catálogo ---------- */
.page { padding: 96px var(--pad) 40px; }
.page-title { font: 700 clamp(30px, 4vw, 42px)/1.1 var(--serif); margin: 0 0 6px; }
.page-sub { color: var(--muted); margin: 0 0 24px; }
.tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.search {
  flex: 1 1 320px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.search svg { width: 20px; height: 20px; color: var(--faint); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 15px; }
.select { height: 48px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { height: 36px; padding: 0 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.filters button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px 14px; }
.count { color: var(--faint); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }
@media (max-width: 760px) { .page { padding-top: 78px; } .grid { grid-template-columns: repeat(2, 1fr); gap: 12px 10px; } .card .info h3 { font-size: 14.5px; } }

/* ---------- página da novela ---------- */
.watch-main { min-width: 0; }
.watch { padding: 86px var(--pad) 40px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
.player-box { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.player-box iframe, .player-box > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-poster { position: absolute; inset: 0; cursor: pointer; }
.player-poster img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.65); }
.player-poster .big-play {
  position: absolute; top: 50%; left: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wine); box-shadow: 0 0 0 10px rgba(179, 38, 74, .25);
  transition: transform .2s;
}
.player-poster:hover .big-play { transform: scale(1.06); }
.player-poster .big-play svg { width: 34px; height: 34px; margin-left: 4px; }
.player-poster .resume { position: absolute; left: 18px; bottom: 16px; font-weight: 700; font-size: 14px; color: #fff; text-shadow: 0 1px 6px #000; }
.player-error { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; background: rgba(14, 10, 15, .94); }
.now { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 4px; }
.now h1 { font: 700 clamp(26px, 3vw, 36px)/1.1 var(--serif); margin: 0; }
.now .ep-now { color: var(--gold); font-weight: 800; }
.now-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.toggle input { appearance: none; width: 38px; height: 22px; border-radius: 22px; background: var(--surface-2); position: relative; cursor: pointer; transition: background .2s; }
.toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked { background: var(--wine); }
.toggle input:checked::after { transform: translateX(16px); }
.about { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.about .orig { color: var(--muted); font: italic 600 15px var(--serif); }
.about p { margin: 10px 0 14px; color: #e3d8de; }
.source { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12.5px; font-weight: 600; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.source svg { width: 18px; height: 18px; color: #ff4e45; flex: none; }
.source a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.eps { position: sticky; top: 84px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 104px); }
.eps-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.eps-head h2 { font: 700 19px/1.2 var(--serif); margin: 0 0 4px; }
.eps-head .prog { color: var(--muted); font-size: 13px; font-weight: 600; }
.eps-head .prog-bar { height: 5px; border-radius: 5px; background: var(--surface-2); margin-top: 10px; overflow: hidden; }
.eps-head .prog-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--wine), var(--gold)); }
.eps-find { margin-top: 12px; display: flex; gap: 8px; }
.eps-find input { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); outline: 0; font-size: 13.5px; }
.eps-list { overflow-y: auto; padding: 6px; scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
.ep { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; width: 100%; padding: 8px; border-radius: 10px; text-align: left; }
.ep:hover { background: var(--surface); }
.ep.on { background: rgba(179, 38, 74, .18); box-shadow: inset 3px 0 0 var(--wine-2); }
.ep .et { position: relative; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; background: var(--surface-2); }
.ep .et img { width: 100%; height: 100%; object-fit: cover; }
.ep .et .dur { position: absolute; right: 5px; bottom: 5px; background: rgba(0, 0, 0, .78); font-size: 10.5px; font-weight: 800; padding: 1px 5px; border-radius: 4px; }
.ep .et .seen { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14, 10, 15, .55); color: var(--ok); }
.ep .et .seen svg { width: 26px; height: 26px; }
.ep b { display: block; font-size: 14px; }
.ep span { color: var(--faint); font-size: 12px; font-weight: 600; }
.ep.on span { color: #ff9db6; }
@media (max-width: 1020px) {
  .watch { grid-template-columns: minmax(0, 1fr); padding-top: 70px; }
  .eps { position: static; max-height: 560px; }
}
@media (max-width: 760px) { .watch { padding: 58px 0 20px; gap: 14px; } .player-box { border-radius: 0; } .watch-main > :not(.player-box) { margin-left: var(--pad); margin-right: var(--pad); } .eps { margin: 0 var(--pad); } }

/* ---------- TV ---------- */
.tv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 10px; }
.tv-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tv-card .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); margin-bottom: 14px; }
.tv-card .ic svg { width: 26px; height: 26px; }
.tv-card h3 { font: 700 19px/1.25 var(--serif); margin: 0 0 8px; }
.tv-card ol { margin: 0; padding-left: 20px; color: #e3d8de; }
.tv-card li { margin: 6px 0; }
.tv-card .tag { display: inline-block; margin-bottom: 10px; }
.addr { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface); font-weight: 800; color: var(--gold); word-break: break-all; }
.help { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 22px; border-radius: var(--radius); background: linear-gradient(120deg, rgba(179, 38, 74, .25), rgba(224, 179, 84, .12)); border: 1px solid var(--line); }
.help h3 { margin: 0 0 4px; font: 700 20px var(--serif); }
.help p { margin: 0; color: var(--muted); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.login-art { position: relative; overflow: hidden; }
.login-art .mosaic { position: absolute; inset: -40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform: rotate(-8deg) scale(1.15); opacity: .55; }
.login-art .mosaic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.login-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(14, 10, 15, .2), var(--bg) 78%), linear-gradient(90deg, rgba(14, 10, 15, 0) 60%, var(--bg)); }
.login-art .claim { position: absolute; left: 8%; bottom: 10%; z-index: 1; max-width: 460px; }
.login-art .claim h2 { font: 700 clamp(30px, 3.4vw, 46px)/1.08 var(--serif); margin: 12px 0 10px; }
.login-art .claim p { color: var(--muted); margin: 0; font-size: 16px; }
.login-form { display: grid; place-items: center; padding: 40px var(--pad); }
.login-box { width: 100%; max-width: 400px; }
.login-box .brand { font-size: 26px; margin-bottom: 34px; }
.login-box h1 { font: 700 30px/1.15 var(--serif); margin: 0 0 6px; }
.login-box > p { color: var(--muted); margin: 0 0 26px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input { width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); outline: 0; font-size: 15px; }
.field input:focus { border-color: var(--gold); }
.login-box .btn { width: 100%; height: 52px; margin-top: 8px; }
.login-box .err { color: #ff8fa8; font-size: 13.5px; font-weight: 700; min-height: 20px; margin-top: 10px; }
.login-box .fine { color: var(--faint); font-size: 12.5px; margin-top: 18px; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login-art { display: none; } }

/* ---------- rodapé ---------- */
.foot { padding: 40px var(--pad) 50px; margin-top: 30px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; display: grid; gap: 10px; }
.foot .brand { font-size: 18px; color: var(--text); }
.foot p { margin: 0; max-width: 760px; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; z-index: 60; background: var(--text); color: var(--bg); font-weight: 800; font-size: 14px; padding: 12px 18px; border-radius: 12px; transition: .3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* episódios que abrem no YouTube */
.player-poster.yt img { filter: brightness(.45) blur(1px); }
.yt-cta { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; text-align: center; }
.yt-cta .btn { height: 52px; padding: 0 26px; font-size: 16px; }
.yt-cta .btn svg { width: 22px; height: 22px; }
.yt-cta small { max-width: 340px; color: #e9dde3; font-size: 13.5px; font-weight: 600; text-shadow: 0 1px 6px #000; }
.yt-tag { display: inline-flex; vertical-align: -3px; margin-left: 4px; color: #ff4e45; }
.yt-tag svg { width: 15px; height: 15px; }

[hidden] { display: none !important; }

/* painel do admin */
.admin-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.admin-row { display: grid; grid-template-columns: 1.6fr 1.2fr .8fr .7fr 1.6fr; gap: 12px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.admin-row:first-child { border-top: 0; }
.admin-row.head { background: var(--surface); color: var(--faint); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
a.admin-row:hover { background: var(--bg-2); }
.admin-row i { font-style: normal; }
.admin-row .muted { color: var(--faint); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .admin-row { grid-template-columns: 1.4fr 1fr .6fr; } .admin-row > :nth-child(3), .admin-row > :nth-child(5) { display: none; } }

/* login com senha */
.field .senha-box { position: relative; display: block; margin: 0; font-size: inherit; }
.senha-box input { width: 100%; padding-right: 92px !important; }
.ver-senha { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--gold); font-weight: 800; font-size: 13px; cursor: pointer; }
.login-box .primeiro { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.login-box .primeiro b { color: var(--text, #fff); }

/* ---------- ajustes finos para celular ---------- */
@media (max-width: 760px) {
  /* topo */
  .top { height: 56px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand-mark { width: 26px; height: 26px; }
  .avatar { width: 32px; height: 32px; font-size: 13px; }
  .icon-btn { width: 36px; height: 36px; }

  /* destaque: a imagem aparece inteira no topo e o texto vem logo abaixo */
  .hero { min-height: 0; display: block; }
  .hero-bg { inset: 0 0 auto 0; height: calc(56.25vw + 56px); }
  .hero-bg img { object-position: center top; transform: none; }
  .hero-bg::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(14, 10, 15, .9) 20%, rgba(14, 10, 15, 0) 58%), linear-gradient(180deg, rgba(14, 10, 15, .65) 0%, rgba(14, 10, 15, 0) 28%); }
  .hero-in { padding: calc(56.25vw + 12px) var(--pad) 40px; }
  .eyebrow { font-size: 11px; letter-spacing: 1.5px; }
  .hero h1 { font-size: 30px; margin: 8px 0 4px; }
  .hero .orig { font-size: 15px; margin-bottom: 12px; }
  .meta { gap: 6px; margin-bottom: 12px; }
  .hero p.syn { font-size: 14.5px; line-height: 1.5; -webkit-line-clamp: 3; margin-bottom: 18px; }
  .hero-actions { gap: 10px; flex-wrap: nowrap; }
  .hero-actions .btn { height: 44px; padding: 0 12px; font-size: 14px; }

  /* números: uma linha só, compacta */
  .stats { margin: 4px var(--pad) 4px; grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 10px 4px; text-align: center; }
  .stat b { font-size: 17px; }
  .stat span { display: block; margin-top: 2px; font-size: 10.5px; line-height: 1.25; }

  /* fileiras: título numa linha, subtítulo embaixo */
  .row { margin: 22px 0 2px; }
  .row-head { flex-wrap: wrap; column-gap: 10px; row-gap: 2px; margin-bottom: 10px; }
  .row-head h2 { font-size: 18px; flex: 1 1 auto; }
  .row-head .sub { order: 3; flex-basis: 100%; font-size: 12px; }
  .row-head a.more { order: 2; font-size: 12.5px; }
  .rail { grid-auto-columns: 66vw; padding-bottom: 10px; }
  .card .info { left: 10px; right: 10px; bottom: 8px; }
  .card .info h3 { font-size: 15px; }
  .card .badges { top: 7px; left: 7px; gap: 4px; }
  .card .badges .chip { height: 20px; padding: 0 7px; font-size: 9.5px; }

  /* catálogo e páginas */
  .page { padding: 72px var(--pad) 24px; }
  .page-title { font-size: 26px; }
  .page-sub { font-size: 14px; margin-bottom: 16px; }
  .tools { gap: 10px; margin-bottom: 14px; }
  .search, .select { height: 44px; }
  .search input { font-size: 14.5px; }
  .filters { margin-bottom: 12px; }
  .filters button { height: 34px; padding: 0 13px; font-size: 13px; }
  .grid .card .thumb { aspect-ratio: 4 / 3; }
  .grid .card .info h3 { font-size: 13.5px; }
  .grid .card .info span { font-size: 11px; }

  /* página da novela */
  .now { margin: 12px 0 2px; gap: 8px; }
  .now h1 { font-size: 23px; }
  .now .ep-now { font-size: 14px; }
  .now-actions { gap: 8px; margin: 10px 0 14px; }
  .now-actions .btn { height: 40px; padding: 0 14px; font-size: 13.5px; }
  .about { padding: 16px; }
  .player-poster .big-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; box-shadow: 0 0 0 7px rgba(179, 38, 74, .25); }
  .player-poster .big-play svg { width: 26px; height: 26px; }
  .yt-cta { gap: 8px; }
  .yt-cta .btn { height: 44px; padding: 0 18px; font-size: 14.5px; }
  .yt-cta small { font-size: 12px; }
  .eps-head { padding: 14px 14px 10px; }
  .ep { grid-template-columns: 96px 1fr; gap: 10px; padding: 6px; }
  .ep b { font-size: 13.5px; }

  /* TV */
  .tv-grid { gap: 12px; }
  .tv-card { padding: 18px; }
  .tv-card .ic { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 10px; }
  .tv-card .ic svg { width: 22px; height: 22px; }
  .tv-card h3 { font-size: 17px; }
  .tv-card ol { font-size: 14px; }

  /* rodapé fica acima da barra de navegação */
  main { padding-bottom: 0; }
  .foot { margin-top: 20px; padding: 28px var(--pad) calc(96px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 26px; }
  .stat b { font-size: 15px; }
  .stat span { font-size: 9.5px; }
  .hero-actions .btn { font-size: 13px; }
}
