/* Onde Parei — visual: preto + vermelho #F52D34, títulos em serifa, listas com borda fina. */
:root {
  --fundo: #0b0b0c;
  --cartao: #121214;
  --cartao2: #1b1b1e;
  --borda: #26262a;
  --texto: #ededee;
  --suave: #8a8a90;
  --verm: #f52d34;
  --raio: 10px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --seguro-baixo: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fundo); color: var(--texto); }
body { font: 15px/1.45 var(--sans); min-height: 100dvh; overscroll-behavior-y: none; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; }

#tela { max-width: 560px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px calc(90px + var(--seguro-baixo)); }

/* ---------- barra de abas ---------- */
#abas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around;
  background: var(--fundo); border-top: 1px solid var(--borda); padding: 8px 4px calc(8px + var(--seguro-baixo)); }
#abas[hidden] { display: none; }
#abas a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--suave); font-size: 10.5px; letter-spacing: .02em; }
#abas svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#abas a.ativa { color: var(--texto); }
#abas a.ativa svg { stroke: var(--verm); }

/* ---------- títulos ---------- */
.topo { display: flex; align-items: flex-end; justify-content: space-between; margin: 6px 0 20px; }
.topo h1 { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.topo small { color: var(--suave); font-size: 12px; }
.marca { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.marca b { font-style: italic; font-weight: 500; color: var(--verm); }
.secao { margin: 30px 0 10px; display: flex; align-items: baseline; justify-content: space-between; }
.secao h2 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--suave); }
.secao small { color: var(--suave); font-size: 12px; font-variant-numeric: tabular-nums; }
.vazio { color: var(--suave); font-size: 14px; padding: 14px 0; border-top: 1px solid var(--borda); border-bottom: 1px solid var(--borda); }

/* a borda em volta das listas (ela gostou disso) */
.moldura { border: 1px solid var(--borda); border-radius: var(--raio); background: var(--cartao); }

/* ---------- continuar assistindo ---------- */
.continuar { overflow: hidden; }
.cont { display: flex; gap: 12px; padding: 12px; align-items: center; }
.cont + .cont { border-top: 1px solid var(--borda); }
.cont img, .cont .semimg { width: 46px; height: 69px; border-radius: 3px; object-fit: cover; flex: none; background: var(--cartao2); }
.cont .info { flex: 1; min-width: 0; }
.cont h3 { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cont .parei { color: var(--suave); font-size: 13px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.cont .parei b { color: var(--texto); font-weight: 600; }
.barra { height: 2px; background: var(--borda); margin-top: 9px; overflow: hidden; }
.barra i { display: block; height: 100%; background: var(--verm); }
.btn-prox { flex: none; border: 1px solid var(--borda); background: transparent; color: var(--texto); border-radius: 6px;
  padding: 7px 9px; font-size: 12px; font-weight: 600; line-height: 1.15; text-align: center; font-variant-numeric: tabular-nums; }
.btn-prox:active { border-color: var(--verm); color: var(--verm); }

/* ---------- pôsteres ---------- */
.grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
.grade.moldura { padding: 12px; }
.poster { position: relative; }
.poster img, .poster .semimg { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; background: var(--cartao2); }
.poster .rot { font-size: 12.5px; margin-top: 6px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster .sub { font-size: 11px; color: var(--suave); margin-top: 1px; }
.selo { position: absolute; top: 5px; left: 5px; background: rgba(11,11,12,.88); border-radius: 3px; font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: 2px 5px; }
.selo.v { color: var(--verm); }
.coracao { position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; fill: var(--verm); filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.semimg { display: flex; align-items: center; justify-content: center; color: var(--suave); font-size: 11px; text-align: center; padding: 6px; }

.trilho { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.trilho::-webkit-scrollbar { display: none; }
.trilho .poster { flex: 0 0 30%; scroll-snap-align: start; }

/* ---------- busca ---------- */
.campo { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--borda); padding: 0 2px; }
.campo:focus-within { border-bottom-color: var(--verm); }
.campo svg { width: 20px; height: 20px; fill: none; stroke: var(--suave); stroke-width: 1.7; flex: none; }
.campo input { flex: 1; background: none; border: 0; outline: 0; padding: 12px 0; font-size: 18px; min-width: 0; }
.campo input::placeholder { color: #5c5c62; }

/* filtros: abas de texto com sublinhado, sem pílula */
.chips { display: flex; gap: 20px; overflow-x: auto; margin: 16px -16px 2px; padding: 0 16px; scrollbar-width: none; border-bottom: 1px solid var(--borda); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; background: none; padding: 8px 0 9px; font-size: 13.5px; color: var(--suave); position: relative; font-variant-numeric: tabular-nums; }
.chip.on { color: var(--texto); font-weight: 600; }
.chip.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--verm); }

/* ---------- página do título ---------- */
.voltar { display: inline-flex; align-items: center; gap: 2px; color: var(--suave); background: none; border: 0; padding: 4px 0; margin-bottom: 8px; font-size: 14px; }
.voltar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.capa { position: relative; margin: 0 -16px; height: 220px; overflow: hidden; }
.capa img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.capa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,11,12,0) 30%, var(--fundo)); }
.cab { display: flex; gap: 14px; margin-top: -96px; position: relative; z-index: 2; align-items: flex-end; }
.cab .pp { width: 104px; flex: none; border-radius: 4px; aspect-ratio: 2/3; object-fit: cover; background: var(--cartao2); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.cab h1 { font-family: var(--serif); font-size: 25px; line-height: 1.08; letter-spacing: -0.015em; }
.cab .meta { color: var(--suave); font-size: 12.5px; margin-top: 5px; }
.sinopse { color: #c4c4c9; margin: 16px 0 0; font-size: 14.5px; }
.sinopse.curta { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mais { background: none; border: 0; color: var(--verm); padding: 4px 0; font-size: 13px; }

.status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 18px; }
.status button { border: 1px solid var(--borda); background: transparent; border-radius: 6px; padding: 9px 4px; font-size: 13px; color: var(--suave); }
.status button.on { border-color: var(--verm); color: var(--texto); font-weight: 600; }
.status .fav { display: flex; align-items: center; justify-content: center; gap: 5px; }
.status .fav svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.status .fav.on svg { fill: var(--verm); stroke: var(--verm); }

.parei-box { margin-top: 14px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.parei-box .tx { flex: 1; }
.parei-box .tx small { color: var(--suave); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.parei-box .tx b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.parei-box .tx b + small { text-transform: none; letter-spacing: 0; font-size: 12.5px; margin-top: 2px; }

.estrelas { display: flex; gap: 2px; }
.estrelas button { background: none; border: 0; padding: 2px; width: 36px; height: 36px; }
.estrelas svg { width: 30px; height: 30px; }
.estrelas .f { fill: var(--verm); }
.estrelas .v { fill: none; stroke: #3a3a40; stroke-width: 1.3; }

.review { padding: 14px; }
.review h2 { font-size: 11px !important; text-transform: uppercase; letter-spacing: .12em; color: var(--suave); }
.review textarea { width: 100%; min-height: 110px; resize: vertical; background: transparent; border: 0; border-top: 1px solid var(--borda);
  padding: 12px 0 4px; outline: 0; margin-top: 10px; font-size: 15px; line-height: 1.5; }
.review textarea::placeholder { color: #5c5c62; }
.linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.btn { border: 0; background: var(--verm); color: #fff; border-radius: 6px; padding: 10px 16px; font-weight: 600; font-size: 14px; }
.btn.sec { background: transparent; border: 1px solid var(--borda); color: var(--texto); }
.btn:disabled { opacity: .5; }

.onde { display: flex; gap: 8px; flex-wrap: wrap; }
.onde img { width: 42px; height: 42px; border-radius: 8px; }
.onde-rot { font-size: 11px; color: var(--suave); margin: 10px 0 6px; }

/* ---------- temporadas e episódios ---------- */
.temp { margin-bottom: 8px; overflow: hidden; }
.temp > button { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 13px 14px; text-align: left; }
.temp > button .n { flex: 1; font-weight: 600; }
.temp > button .c { color: var(--suave); font-size: 13px; font-variant-numeric: tabular-nums; }
.temp > button .c.ok { color: var(--verm); }
.temp > button svg { width: 18px; height: 18px; fill: none; stroke: var(--suave); stroke-width: 1.8; transition: transform .15s; }
.temp.aberta > button svg { transform: rotate(180deg); }
.eps { border-top: 1px solid var(--borda); }
.ep { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--borda); }
.ep:last-child { border-bottom: 0; }
.ep .num { width: 24px; color: var(--suave); font-size: 13px; flex: none; font-variant-numeric: tabular-nums; }
.ep .nm { flex: 1; min-width: 0; }
.ep .nm div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; }
.ep .nm small { color: var(--suave); font-size: 12px; }
.ep.atual { box-shadow: inset 2px 0 0 var(--verm); }
.ep.atual .nm small { color: var(--verm); }
.check { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #3a3a40; background: none; flex: none; display: flex; align-items: center; justify-content: center; padding: 0; }
.check svg { width: 15px; height: 15px; fill: none; stroke: transparent; stroke-width: 2.6; }
.check.on { background: var(--verm); border-color: var(--verm); }
.check.on svg { stroke: #fff; }
.ate { background: none; border: 0; color: var(--suave); font-size: 11px; padding: 4px; flex: none; }
.ate:hover { color: var(--texto); }

/* ---------- elenco ---------- */
.elenco { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.elenco::-webkit-scrollbar { display: none; }
.ator { flex: 0 0 70px; text-align: center; font-size: 11px; line-height: 1.25; }
.ator img, .ator .semimg { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; margin: 0 auto 5px; background: var(--cartao2); }
.ator small { color: var(--suave); display: block; }

/* ---------- perfil ---------- */
.perfil-cab { display: flex; align-items: center; gap: 16px; }
.avatar { position: relative; width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 30px; font-weight: 600; background: var(--cartao2); flex: none; box-shadow: 0 0 0 2px var(--fundo), 0 0 0 3px var(--verm); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar.trocar { cursor: pointer; }
.avatar .camera { position: absolute; right: -3px; bottom: -3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--verm); border: 2px solid var(--fundo); display: flex; align-items: center; justify-content: center; }
.avatar .camera svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.perfil-cab h1 { font-family: var(--serif); font-size: 26px; letter-spacing: -0.015em; }
.perfil-cab small { color: var(--suave); }
.bio { color: #c4c4c9; margin-top: 14px; white-space: pre-wrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.stats div { padding: 13px 6px; text-align: center; border-right: 1px solid var(--borda); border-bottom: 1px solid var(--borda); }
.stats div:nth-child(3n) { border-right: 0; }
.stats div:nth-last-child(-n+3) { border-bottom: 0; }
.stats b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stats small { color: var(--suave); font-size: 11px; }
.rev-item { display: flex; gap: 12px; padding: 13px; }
.rev-item + .rev-item { border-top: 1px solid var(--borda); }
.rev-item img, .rev-item .semimg { width: 44px; height: 66px; border-radius: 3px; object-fit: cover; flex: none; background: var(--cartao2); }
.rev-item h3 { font-size: 14.5px; }
.rev-item p { margin: 4px 0 0; color: #c4c4c9; font-size: 14px; font-family: var(--serif); font-style: italic; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini-est { color: var(--verm); font-size: 12px; letter-spacing: 1px; }
.creditos { color: #5c5c62; font-size: 11px; text-align: center; margin-top: 34px; line-height: 1.4; }

/* formulários do app (editar perfil) */
.form { display: flex; flex-direction: column; gap: 10px; }
.form input, .form textarea { background: var(--cartao); border: 1px solid var(--borda); border-radius: 8px; padding: 12px 13px; outline: 0; font-size: 16px; }
.form input:focus, .form textarea:focus { border-color: var(--verm); }
.erro { color: var(--verm); font-size: 13px; min-height: 18px; }

/* ---------- aviso e carregando ---------- */
#aviso { position: fixed; left: 50%; bottom: calc(86px + var(--seguro-baixo)); transform: translate(-50%, 16px); opacity: 0; transition: .18s;
  background: var(--texto); color: var(--fundo); border-radius: 6px; padding: 9px 14px; font-size: 13.5px; font-weight: 600; z-index: 50; pointer-events: none; max-width: 90vw; }
#aviso.on { opacity: 1; transform: translate(-50%, 0); }
.carregando { display: flex; justify-content: center; padding: 40px 0; }
.carregando i { width: 22px; height: 22px; border: 2px solid var(--borda); border-top-color: var(--verm); border-radius: 50%; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------- carrosséis no PC ---------- */
.trilho-caixa { position: relative; }
.trilho.arrastando, .chips.arrastando, .elenco.arrastando { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.trilho.arrastando a { pointer-events: none; }
.seta { display: none; position: absolute; top: calc(50% - 30px); width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--borda); background: rgba(11, 11, 12, 0.92); align-items: center; justify-content: center; z-index: 3; padding: 0; }
.seta svg { width: 17px; height: 17px; fill: none; stroke: var(--texto); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seta:hover { border-color: var(--verm); }
.seta.esq { left: -6px; }
.seta.dir { right: -6px; }
.seta[hidden] { display: none !important; }
@media (hover: hover) and (pointer: fine) {
  .seta { display: flex; }
  .trilho, .chips, .elenco { cursor: grab; }
}

/* ---------- tela de entrar ---------- */
.entrar { min-height: calc(100dvh - 48px); display: flex; flex-direction: column; justify-content: center; max-width: 380px; margin: 0 auto; padding-bottom: 20px; }
.entrar .logo { width: 64px; height: 64px; margin-bottom: 26px; }
.entrar h1 { font-family: var(--serif); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.entrar h1 em { font-style: italic; font-weight: 500; color: var(--verm); }
.entrar p { color: var(--suave); margin: 12px 0 30px; font-size: 15px; line-height: 1.5; }
.entrar .form { gap: 4px; }
.entrar .form input { background: transparent; border: 0; border-bottom: 1px solid var(--borda); border-radius: 0; padding: 13px 2px; }
.entrar .form input::placeholder { color: #5c5c62; }
.entrar .form input:focus { border-bottom-color: var(--verm); }
.entrar .erro { margin-top: 6px; }
.entrar .btn { padding: 14px; font-size: 15.5px; margin-top: 8px; }
.entrar .demo { margin-top: 10px; width: 100%; background: transparent; border: 1px solid var(--borda); color: var(--texto); border-radius: 6px; padding: 13px; font-weight: 600; font-size: 14.5px; }
.entrar .demo:hover { border-color: var(--verm); }
.entrar .demo small { display: block; color: var(--suave); font-weight: 400; font-size: 12px; margin-top: 2px; }
.troca { background: none; border: 0; color: var(--suave); margin-top: 18px; font-size: 14px; align-self: flex-start; padding: 0; }
.troca b { color: var(--texto); font-weight: 600; }

/* ---------- amigos: avatares, pessoas, reviews dos outros ---------- */
.av-mini { width: 32px; height: 32px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--cartao2); font-family: var(--serif); font-weight: 600; font-size: 14px; overflow: hidden; }
.av-mini img { width: 100%; height: 100%; object-fit: cover; }
.secao-pessoa { display: flex; align-items: center; gap: 8px; }
.secao-pessoa .av-mini { width: 22px; height: 22px; font-size: 11px; }
.pessoa { display: flex; align-items: center; gap: 12px; padding: 12px 13px; }
.pessoa + .pessoa { border-top: 1px solid var(--borda); }
.pessoa .av-mini { width: 42px; height: 42px; font-size: 18px; }
.pessoa div { flex: 1; min-width: 0; }
.pessoa b { display: block; font-weight: 600; }
.pessoa small { color: var(--suave); font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pessoa > svg { width: 18px; height: 18px; fill: none; stroke: var(--suave); stroke-width: 1.8; flex: none; }
.rev-outro { padding: 13px; }
.rev-outro + .rev-outro { border-top: 1px solid var(--borda); }
.rev-quem { display: flex; align-items: center; gap: 10px; }
.rev-quem div { flex: 1; min-width: 0; }
.rev-quem b { display: block; font-size: 14px; font-weight: 600; }
.rev-quem small { color: var(--suave); font-size: 12px; }
.rev-outro p { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.5; color: #d6d6da; white-space: pre-wrap; }
.rev-outro .quando { display: block; color: var(--suave); font-size: 11px; margin-top: 6px; }
