/* =========================================================================
   Review em Família — folha de estilo única
   Paleta inspirada no Letterboxd: fundo azul-petróleo escuro, cartazes em
   destaque, acentos em verde/laranja/azul.
   ========================================================================= */

:root {
  --bg: #14181c;
  --bg-1: #1a1f25;
  --bg-2: #1c2228;
  --bg-3: #242c35;
  --line: #2c3440;
  --line-2: #384250;

  --txt: #f2f4f6;
  --txt-2: #9ab;
  --txt-3: #6b7a8a;

  --green: #00e054;
  --green-dim: #00b944;
  --orange: #ff8000;
  --blue: #40bcf4;
  --red: #ff5c5c;
  --gold: #ffd76a;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  --shadow: 0 4px 20px rgba(0, 0, 0, .45);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .6);

  --nav-h: 60px;
  --wrap: 1180px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: #7fd4ff; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

::selection { background: var(--green); color: #06210f; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.page { padding: 26px 0 90px; min-height: calc(100vh - var(--nav-h)); }
.stack > * + * { margin-top: 18px; }
.row { display: flex; gap: 12px; align-items: center; }
.row-wrap { flex-wrap: wrap; }
.spread { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--txt-2); }
.small { font-size: .84rem; }
.tiny { font-size: .76rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }

.section-title {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 0 0 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--txt-2);
  border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.section-title a { font-size: .8rem; letter-spacing: 0; text-transform: none; font-weight: 600; }

/* ---------- Barra de navegação ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: rgba(20, 24, 28, .94);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 18px; }

.brand { display: flex; align-items: center; gap: 9px; color: var(--txt); font-weight: 800; letter-spacing: -.02em; font-size: 1.05rem; }
.brand:hover { color: var(--txt); }
.brand-dots { display: flex; gap: 4px; }
.brand-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.brand-dots i:nth-child(1) { background: var(--green); }
.brand-dots i:nth-child(2) { background: var(--blue); }
.brand-dots i:nth-child(3) { background: var(--orange); }
.brand-short { display: none; }

.nav-links { display: flex; gap: 4px; align-items: center; margin-left: 4px; }
.nav-links a {
  color: var(--txt-2); font-weight: 600; font-size: .87rem;
  padding: 7px 11px; border-radius: var(--radius-sm); letter-spacing: .01em;
}
.nav-links a:hover { color: var(--txt); background: var(--bg-2); }
.nav-links a.active { color: var(--txt); background: var(--bg-3); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.nav-search { position: relative; }
.nav-search input {
  width: 190px; padding: 8px 12px 8px 32px; font-size: .85rem;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 999px; color: var(--txt);
}
.nav-search input:focus { width: 240px; border-color: var(--line-2); outline: none; }
.nav-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; fill: var(--txt-3); pointer-events: none; }

.burger { display: none; background: none; border: 0; color: var(--txt); padding: 8px; cursor: pointer; }
.burger svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Avatar ---------- */
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-weight: 800; font-size: .82rem; color: #0d1114;
  text-transform: uppercase; user-select: none;
}
.avatar.lg { width: 76px; height: 76px; font-size: 1.9rem; }
.avatar.sm { width: 26px; height: 26px; font-size: .7rem; }
.avatar.has-photo { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Membro VIP (e-mail do domínio da família) ---------- */
.avatar.vip {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold), 0 0 12px rgba(255, 215, 106, .35);
}
.avatar.lg.vip { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--gold), 0 0 20px rgba(255, 215, 106, .4); }

.badge-vip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #ffd76a, #ffb443);
  color: #3a2600; font-size: .68rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  vertical-align: middle;
  border: 0; font-family: inherit; cursor: pointer;
}
.badge-vip:hover { filter: brightness(1.1); }
.badge-vip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.badge-vip.tiny { padding: 1px 6px; font-size: .6rem; }

/* Avaliação e comentário de quem é da casa ganham um fio dourado */
.review.vip {
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  margin-left: -14px;
  background: linear-gradient(90deg, rgba(255, 215, 106, .06), transparent 42%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.comment.vip {
  border-left: 2px solid var(--gold);
  padding-left: 10px; margin-left: -12px;
  background: linear-gradient(90deg, rgba(255, 215, 106, .05), transparent 45%);
}

.vip-welcome {
  border: 1px solid rgba(255, 215, 106, .38);
  background: linear-gradient(120deg, rgba(255, 215, 106, .12), rgba(255, 180, 67, .04) 60%, transparent);
}
.vip-welcome h3 { color: var(--gold); }

/* ---------- Menu da pessoa logada ---------- */
.user-menu { position: relative; }
.user-btn { background: none; border: 0; padding: 0; cursor: pointer; display: block; border-radius: 50%; }
.user-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.user-pop {
  position: absolute; right: 0; top: calc(100% + 9px); z-index: 80;
  min-width: 208px; padding: 6px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: grid; gap: 1px;
}
.user-pop[hidden] { display: none; }
.user-pop .who { padding: 9px 11px 10px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.user-pop .who b { display: block; font-size: .9rem; }
.user-pop .who span { font-size: .74rem; color: var(--txt-3); word-break: break-all; }
.user-pop a, .user-pop button {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: var(--radius-sm);
  background: none; border: 0; width: 100%; text-align: left;
  color: var(--txt); font: inherit; font-size: .87rem; font-weight: 600; cursor: pointer;
}
.user-pop a:hover, .user-pop button:hover { background: var(--bg-3); color: var(--txt); }
.user-pop svg { width: 16px; height: 16px; fill: var(--txt-3); flex: none; }
.user-pop .danger { color: #ff9d9d; }
.user-pop .danger:hover { background: #3a1e1e; }
.user-pop .danger svg { fill: #ff9d9d; }

/* ---------- Escolha de avatar ---------- */
.avatar-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 4px 0 14px; }
.char-grid {
  display: grid; gap: 9px; margin-top: 12px;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  max-height: 320px; overflow-y: auto;
}
.char {
  border: 2px solid transparent; border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; background: var(--bg-3); padding: 0;
}
.char:hover { border-color: var(--green); }
.char img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top center; }
.char span {
  display: block; font-size: .66rem; padding: 3px 4px; color: var(--txt-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.avatar-preview { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  background: var(--bg-3); color: var(--txt);
  border: 1px solid var(--line-2);
  font: inherit; font-size: .88rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .13s, border-color .13s, transform .08s;
}
.btn:hover { background: #303a46; color: var(--txt); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; fill: currentColor; }

.btn-primary { background: var(--green); border-color: var(--green); color: #06210f; }
.btn-primary:hover { background: #2aff7d; color: #06210f; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--txt-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--txt); }
.btn-danger { background: transparent; border-color: #5a2b2b; color: #ff8f8f; }
.btn-danger:hover { background: #3a1e1e; color: #ffbdbd; }
.btn-sm { padding: 6px 11px; font-size: .8rem; }
.btn-lg { padding: 12px 22px; font-size: .95rem; }
.btn-block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--line);
  font-size: .76rem; font-weight: 600; color: var(--txt-2);
}
.chip.on { background: var(--blue); border-color: var(--blue); color: #06212e; }

/* ---------- Formulários ---------- */
label { display: block; font-size: .8rem; font-weight: 700; color: var(--txt-2); margin-bottom: 6px; letter-spacing: .02em; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 10px 13px;
  background: var(--bg-2); color: var(--txt);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .92rem;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(64, 188, 244, .13); }
input::placeholder, textarea::placeholder { color: var(--txt-3); }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ab'><path d='M7 10l5 5 5-5z'/></svg>"); background-repeat: no-repeat; background-position: right 8px center; padding-right: 32px; }
.field + .field { margin-top: 14px; }

/* Senha com botão de revelar */
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 44px; }
.pass-wrap .reveal {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; padding: 8px;
  line-height: 0; color: var(--txt-3); border-radius: var(--radius-sm);
}
.pass-wrap .reveal:hover { color: var(--txt); background: var(--bg-3); }
.pass-wrap .reveal svg { width: 18px; height: 18px; fill: currentColor; }
.hint { font-size: .78rem; color: var(--txt-3); margin-top: 5px; }
.error-text { color: #ff9d9d; font-size: .84rem; margin-top: 8px; }

/* ---------- Cartão ---------- */
.card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.card-tight { padding: 14px; }

/* ---------- Grade de cartazes ---------- */
.poster-grid {
  display: grid; gap: 16px 14px;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
}
.poster-grid.wide { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.poster-card { position: relative; }
.poster {
  position: relative; display: block; width: 100%;
  aspect-ratio: 2 / 3; overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-3) center/cover no-repeat;
  border: 1px solid var(--line);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.poster.landscape { aspect-ratio: 16 / 9; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: var(--shadow); }
.poster-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 10px; text-align: center; font-size: .78rem; font-weight: 700;
  color: var(--txt-2); background: linear-gradient(150deg, #232b34, #171c22);
}
.poster-badge {
  position: absolute; left: 6px; bottom: 6px; z-index: 2;
  padding: 2px 7px; border-radius: 4px; font-size: .74rem; font-weight: 800;
  background: rgba(10, 13, 16, .88); backdrop-filter: blur(4px);
}
.poster-title { margin-top: 8px; font-size: .82rem; font-weight: 600; line-height: 1.3; }
.poster-title a { color: var(--txt); }
.poster-title a:hover { color: var(--green); }
.poster-sub { font-size: .74rem; color: var(--txt-3); }

/* ---------- Nota ---------- */
.score {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.score .max { font-size: .62em; font-weight: 700; opacity: .5; }
.score-xl { font-size: 2.6rem; }
.score-lg { font-size: 1.5rem; }
.score-md { font-size: 1.1rem; }

.score-bar { height: 5px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.score-bar > i { display: block; height: 100%; border-radius: 3px; transition: width .3s ease; }

/* ---------- Cabeçalho do título ---------- */
.backdrop {
  position: relative; margin-bottom: -80px;
  height: clamp(180px, 32vw, 380px); overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.backdrop img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,24,28,.25) 0%, rgba(20,24,28,.75) 55%, var(--bg) 100%);
}

.title-head { display: grid; grid-template-columns: 180px 1fr; gap: 26px; position: relative; z-index: 2; }
.title-head .poster { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.title-head .poster:hover { transform: none; border-color: var(--line-2); }
.title-meta h1 { margin-bottom: 6px; }
.title-year { color: var(--txt-2); font-weight: 600; font-size: 1.05rem; }
.title-orig { color: var(--txt-3); font-style: italic; font-size: .9rem; margin-bottom: 10px; }
.title-facts { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 12px 0; }
.title-overview { color: #cfd8e0; max-width: 62ch; }

.stat-box { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-end; }
.stat { line-height: 1.15; }
.stat-label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--txt-3); font-weight: 700; }

/* ---------- Critérios ---------- */
.criteria { display: grid; gap: 12px; }
.criterion {
  display: grid; grid-template-columns: 1fr 200px 62px auto;
  gap: 14px; align-items: center;
  padding: 11px 13px; background: var(--bg-1);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.criterion-name { font-weight: 600; font-size: .92rem; }
.criterion-name small { display: block; font-weight: 400; font-size: .74rem; color: var(--txt-3); }
.criterion .val { font-weight: 800; font-size: 1.15rem; text-align: right; font-variant-numeric: tabular-nums; }
.criterion .rm { background: none; border: 0; color: var(--txt-3); cursor: pointer; padding: 4px; line-height: 0; border-radius: 4px; }
.criterion .rm:hover { color: var(--red); background: var(--bg-3); }
.criterion .rm svg { width: 15px; height: 15px; fill: currentColor; }

input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 22px; background: transparent; cursor: pointer;
}
input[type=range]::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: var(--track, var(--bg-3)); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 17px; height: 17px; margin-top: -6px; border-radius: 50%;
  background: #fff; border: 3px solid var(--thumb, var(--green));
  box-shadow: 0 1px 5px rgba(0,0,0,.5);
}
input[type=range]::-moz-range-track { height: 5px; border-radius: 3px; background: var(--track, var(--bg-3)); }
input[type=range]::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 3px solid var(--thumb, var(--green));
}
input[type=range]:focus { outline: none; }

/* ---------- Avaliações ---------- */
.review {
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.review:last-child { border-bottom: 0; }
.review-head { display: flex; gap: 11px; align-items: center; margin-bottom: 10px; }
.review-author { font-weight: 700; font-size: .9rem; color: var(--txt); }
.review-author:hover { color: var(--green); }
.review-text { color: #d6dee6; white-space: pre-wrap; }
.review-actions { display: flex; gap: 6px; align-items: center; margin-top: 12px; flex-wrap: wrap; }

.icon-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 5px 9px; border-radius: var(--radius-sm);
  color: var(--txt-3); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
}
.icon-btn:hover { background: var(--bg-3); color: var(--txt); }
.icon-btn svg { width: 15px; height: 15px; fill: currentColor; }
.icon-btn.on { color: var(--green); }

.score-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0; }
.score-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--bg-3); font-size: .74rem; color: var(--txt-2); font-weight: 600;
}
.score-chip b { font-weight: 800; }

/* ---------- Comentários ---------- */
.comments { margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--line); }
.comment { display: flex; gap: 10px; padding: 9px 0; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { font-size: .78rem; color: var(--txt-3); margin-bottom: 2px; }
.comment-meta b { color: var(--txt-2); }
.comment-text { font-size: .89rem; color: #cdd6de; white-space: pre-wrap; }
.comment-form { display: flex; gap: 9px; align-items: flex-start; margin-top: 10px; }
.comment-form textarea { min-height: 40px; height: 40px; padding: 9px 12px; font-size: .88rem; }

/* ---------- Episódios ---------- */
.season-block + .season-block { margin-top: 10px; }
.season-head {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 15px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--txt); font: inherit; font-weight: 700; text-align: left; cursor: pointer;
}
.season-head:hover { background: var(--bg-3); }
.season-head .caret { transition: transform .18s; fill: var(--txt-3); width: 16px; height: 16px; flex: none; }
.season-head[aria-expanded=true] .caret { transform: rotate(90deg); }
.season-era { font-weight: 500; font-size: .78rem; color: var(--txt-3); }

.ep-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); overflow: hidden; }
.ep {
  display: grid; grid-template-columns: 108px 1fr auto;
  gap: 14px; align-items: center; padding: 10px 14px 10px 10px;
  background: var(--bg-1); text-decoration: none; color: inherit;
}
.ep:hover { background: var(--bg-3); color: inherit; }
.ep-thumb { width: 108px; aspect-ratio: 16/9; border-radius: 4px; object-fit: cover; background: var(--bg-3); }
.ep-num { font-size: .72rem; font-weight: 800; color: var(--txt-3); letter-spacing: .05em; }
.ep-name { font-weight: 600; font-size: .92rem; }
.ep-orig { font-size: .76rem; color: var(--txt-3); font-style: italic; }
.ep-right { text-align: right; }

/* ---------- Moderação ---------- */
.blocked-banner {
  position: sticky; top: 0; z-index: 70;
  background: linear-gradient(90deg, #4a1e1e, #3a1818);
  border-bottom: 1px solid #6b2b2b;
  color: #ffd7d7; padding: 10px 0; font-size: .86rem;
}
.blocked-banner b { color: #ff9d9d; }
body.tem-banner .nav { top: 0; }

.card.bloqueado {
  border-color: #5a2b2b;
  background: linear-gradient(100deg, rgba(255, 92, 92, .07), transparent 45%);
}
.icon-btn.moderar { color: #ff9d9d; }
.icon-btn.moderar:hover { background: #3a1e1e; color: #ffbdbd; }

/* ---------- Onde assistir ---------- */
.provider {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px 4px 4px; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--line);
  font-size: .78rem; font-weight: 600; color: var(--txt);
}
.provider img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }

/* ---------- Listas de recomendação ---------- */
.list-card { display: block; transition: border-color .15s, transform .15s; }
.list-card:hover { border-color: var(--green); transform: translateY(-2px); }
.list-covers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-3);
}
.list-covers img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.list-covers-empty {
  grid-column: 1 / -1; aspect-ratio: 8/3; display: grid; place-items: center;
  font-size: 1.8rem; background: linear-gradient(150deg, #232b34, #171c22);
}

.list-item {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 13px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.list-item-n {
  width: 26px; flex: none; text-align: center;
  font-weight: 800; font-size: 1.05rem; color: var(--txt-3);
  font-variant-numeric: tabular-nums;
}
.list-note { margin-top: 7px; }
.list-note-text {
  margin: 0; padding: 9px 12px;
  background: var(--bg-1); border-left: 2px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .88rem; color: #d6dee6; white-space: pre-wrap;
}
.list-item-acts { display: flex; flex-direction: column; gap: 2px; flex: none; }
.list-item-acts .icon-btn { padding: 5px 8px; }
.list-item-acts .icon-btn:disabled { opacity: .3; cursor: not-allowed; }

/* Item ou episódio marcado como destaque pelo autor da lista */
.icon-btn.destaque-on { color: var(--gold); }
.list-item.destaque {
  border-color: rgba(255, 215, 106, .45);
  background: linear-gradient(100deg, rgba(255, 215, 106, .07), transparent 45%);
}
.destaque-marca { color: var(--gold); font-size: .9rem; margin-top: 2px; }

/* Episódios escolhidos dentro do item de uma série */
.subitens {
  margin: 12px 0 0 0; padding: 11px 0 2px 13px;
  border-left: 2px solid var(--line-2);
}
.subitem {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 7px 8px; border-radius: var(--radius-sm);
}
.subitem + .subitem { margin-top: 3px; }
.subitem:hover { background: var(--bg-1); }
.subitem.destaque {
  background: linear-gradient(100deg, rgba(255, 215, 106, .09), transparent 60%);
  box-shadow: inset 2px 0 0 var(--gold);
}
.subitem-thumb { width: 74px; flex: none; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; background: var(--bg-3); }

/* Escolha de episódios (modal) */
.ep-pick {
  display: flex; align-items: center; gap: 10px; margin: 0;
  padding: 7px 9px; border-bottom: 1px solid var(--line);
  cursor: pointer; font-weight: 400; color: var(--txt);
}
.ep-pick:hover { background: var(--bg-3); }
.ep-pick img, .ep-pick-ph {
  width: 62px; flex: none; aspect-ratio: 16/9;
  object-fit: cover; border-radius: 4px; background: var(--bg-3);
}
.ep-pick input { width: auto; }
.season-head .btn { padding: 3px 9px; font-size: .74rem; }

/* ---------- Itens fixados no perfil ---------- */
.pins { display: grid; gap: 13px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pin {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 11px; position: relative;
}
.pin .poster { margin-bottom: 9px; }
.pin-name { font-weight: 700; font-size: .86rem; line-height: 1.3; }
.pin-name a { color: var(--txt); }
.pin-name a:hover { color: var(--green); }
.pin-text {
  margin: 7px 0 0; font-size: .8rem; color: #cbd5dd; white-space: pre-wrap;
  padding-top: 7px; border-top: 1px dashed var(--line-2);
}
.pin-acts { position: absolute; top: 6px; right: 6px; display: flex; gap: 2px; }
.pin-acts .icon-btn {
  padding: 5px; background: rgba(12, 15, 18, .8); backdrop-filter: blur(4px);
}

/* ---------- Feed ---------- */
.feed-item { display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-poster { width: 52px; flex: none; }
.feed-poster .poster { aspect-ratio: 2/3; }

/* ---------- Busca de metadados ---------- */
.result-list { display: grid; gap: 9px; }
.result {
  display: grid; grid-template-columns: 58px 1fr auto; gap: 13px; align-items: center;
  padding: 10px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); text-align: left; cursor: pointer;
  color: inherit; font: inherit; width: 100%;
}
.result:hover { border-color: var(--green); background: var(--bg-3); }
.result img, .result .ph { width: 58px; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; background: var(--bg-3); }
.result-name { font-weight: 700; font-size: .92rem; }
.result-desc {
  font-size: .78rem; color: var(--txt-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.src-tag { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--txt-3); }

/* ---------- Abas ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 9px 14px; color: var(--txt-2); font: inherit; font-weight: 700;
  font-size: .87rem; cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--txt); }
.tab.active { color: var(--txt); border-bottom-color: var(--green); }

/* ---------- Estado vazio / carregando ---------- */
.empty { text-align: center; padding: 54px 20px; color: var(--txt-2); }
.empty svg { width: 44px; height: 44px; fill: var(--line-2); margin-bottom: 12px; }
.empty h3 { color: var(--txt); }

.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--green);
  animation: spin .8s linear infinite; margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skel { background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: var(--radius-sm); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); }
.toast {
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: #202831; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  font-size: .89rem; font-weight: 600;
  animation: toastIn .22s ease;
}
.toast.ok { border-left: 3px solid var(--green); }
.toast.err { border-left: 3px solid var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Modal ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center;
  background: rgba(8, 10, 13, .74); backdrop-filter: blur(3px); padding: 18px;
  animation: fade .15s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(520px, 100%); max-height: 86vh; overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px;
}

/* ---------- Autenticação ---------- */
.auth-wrap { max-width: 400px; margin: 6vh auto 0; }
.auth-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

/* ---------- Rodapé ---------- */
.foot { border-top: 1px solid var(--line); padding: 22px 0 34px; color: var(--txt-3); font-size: .8rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .title-head { grid-template-columns: 116px 1fr; gap: 16px; }
  .criterion { grid-template-columns: 1fr auto auto; grid-template-areas: "name val rm" "slider slider slider"; row-gap: 6px; }
  .criterion-name { grid-area: name; }
  .criterion .slider-wrap { grid-area: slider; }
  .criterion .val { grid-area: val; }
  .criterion .rm { grid-area: rm; }
  .ep { grid-template-columns: 84px 1fr auto; gap: 10px; }
  .ep-thumb { width: 84px; }
}

/* Itens que só existem dentro do menu do celular */
.only-mobile { display: none; }
.only-mobile > a { display: block; }

@media (max-width: 720px) {
  .nav-links, .nav-search { display: none; }
  .desktop-only { display: none !important; }
  .only-mobile { display: contents; }
  .nav-inner { gap: 10px; }
  .brand { font-size: 1.05rem; min-width: 0; }
  .brand-full { display: none; }
  .brand-short { display: inline; letter-spacing: .04em; }
  .only-mobile .sair { color: #ff9d9d; border-top: 1px solid var(--line); margin-top: 5px; padding-top: 12px; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-1); border-bottom: 1px solid var(--line);
    padding: 10px 14px 14px; box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 11px 12px; font-size: .95rem; }
  .burger { display: block; }
  .poster-grid { grid-template-columns: repeat(auto-fill, minmax(102px, 1fr)); gap: 13px 11px; }
  .backdrop { margin-bottom: -46px; }
  .stat-box { gap: 16px; }
  .page { padding: 18px 0 70px; }
}

@media (max-width: 460px) {
  .title-head { grid-template-columns: 1fr; }
  .title-head .poster-card { width: 132px; }
  /* A capa do episódio continua aparecendo no celular, só que menor —
     é ela que dá a pista visual de qual episódio é. */
  .ep { grid-template-columns: 62px 1fr auto; gap: 9px; padding: 9px 10px 9px 8px; }
  .ep-thumb { width: 62px; }
  .ep-name { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
