/* ============================================================
   GARIMPO — identidade "veio de ouro"
   Preto de mina, ouro bruto, tipografia de cartaz.
   Imagens geradas no Higgsfield: img/set.jpg (bastidor de filmagem)
   e img/poster-empty.jpg (sala de cinema vazia, para obra sem pôster)
   ============================================================ */

:root {
  --ink: #060505;          /* preto de mina */
  --ink-2: #0d0b0a;
  --panel: #121010;
  --panel-2: #1a1715;
  --rule: #2a2422;         /* fio de régua */
  --rule-soft: #1c1817;

  --cream: #f6f1e8;        /* texto principal */
  --sand: #a89e92;         /* secundário */
  --ash: #6b625b;          /* terciário */

  --gold: #c9962f;         /* ouro bruto, não pastel */
  --gold-lt: #f0cd7d;
  --gold-glow: rgba(201,150,47,.16);
  --blood: #b8503f;

  --shadow: 0 30px 70px rgba(0,0,0,.7);
  --shadow-sm: 0 10px 30px rgba(0,0,0,.45);

  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Inter Tight", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grão analógico sobre a página inteira */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .55; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }

/* ====================== TOPO ====================== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  padding: 14px clamp(16px, 5vw, 60px);
  background: rgba(6,5,5,.9);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--rule-soft);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { display: block; width: 26px; height: 26px; flex: 0 0 26px; color: var(--gold); }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand h1 {
  font-size: 23px; letter-spacing: .06em; line-height: 1;
  font-weight: 800; text-transform: uppercase;
}
.tagline {
  margin: 4px 0 0; color: var(--ash); font-size: 9.5px;
  letter-spacing: .3em; text-transform: uppercase; font-style: normal;
}

.tabs { display: flex; gap: 0; flex-wrap: wrap; align-items: center; }
.tab {
  position: relative; background: none; border: none; color: var(--ash);
  padding: 10px 15px 12px; cursor: pointer; font-size: 11px;
  font-family: var(--sans); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; transition: color .2s;
}
.tab::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 5px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.tab:hover { color: var(--cream); }
.tab.is-active { color: var(--gold-lt); }
.tab.is-active::after { transform: scaleX(1); }

/* ====================== MASTHEAD ====================== */
/* A capa: sangra de ponta a ponta, quebra o ritmo de "tudo em cartão". */
.masthead {
  position: relative; overflow: hidden;
  margin: 0 0 clamp(30px, 3.5vw, 48px);
  /* deliberadamente menor que a tela: o Garimpo do dia precisa aparecer
     antes do primeiro rolar, senão a capa vira uma parede */
  min-height: clamp(300px, 36vw, 440px);
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 5vw, 60px);
  background: url("img/set.jpg") 20% 45% / cover no-repeat, var(--ink-2);
}
/* A câmera fica à esquerda da foto, então o texto vai para a DIREITA — antes os
   dois brigavam pelo mesmo canto e a câmera sumia atrás da manchete.
   O escurecimento acompanha: forte só onde a tipografia passa. */
.masthead::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(270deg, rgba(6,5,5,.93) 0%, rgba(6,5,5,.8) 34%, rgba(6,5,5,.3) 62%, rgba(6,5,5,.12) 100%),
    linear-gradient(0deg, rgba(6,5,5,.9) 0%, rgba(6,5,5,.3) 40%, transparent 75%);
}
.mast-in { position: relative; max-width: 560px; }
.mast-kicker {
  display: block; font-size: 10px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 18px;
}
.masthead h2 {
  font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.02em;
  font-weight: 400; margin-bottom: 20px; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(6,5,5,.8);
}
.masthead h2 em {
  font-style: italic; font-weight: 400;
  color: var(--gold-lt);
}
.mast-sub {
  font-size: clamp(14px, 1.6vw, 16.5px); line-height: 1.6; color: var(--sand);
  max-width: 46ch; margin: 0;
}

/* ====================== LAYOUT ====================== */
main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px) 110px; }
.masthead { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
.view { display: none; animation: rise .45s cubic-bezier(.2,.7,.3,1); }
.view.is-active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

h2 { font-size: clamp(28px, 4.4vw, 44px); letter-spacing: -.02em; margin-bottom: 10px; line-height: 1.02; font-weight: 400; }
.hint { color: var(--sand); font-size: 14.5px; margin: 0 0 24px; line-height: 1.65; max-width: 60ch; }
.mini { color: var(--ash); font-size: 12px; line-height: 1.55; }
.mini.warn { color: var(--gold-lt); }
.mini.links a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-glow); }
.mini.links a:hover { border-bottom-color: var(--gold); }

/* título de seção com fio, estilo revista */
.rule-head {
  display: flex; align-items: baseline; gap: 18px; margin-bottom: 22px;
}
.rule-head::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* ====================== GARIMPO DO DIA ====================== */
.daily { position: relative; margin: 0 0 clamp(44px, 6vw, 72px); }
.daily-head { margin-bottom: 26px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.daily-tag {
  font-family: var(--serif); font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 400; font-style: italic; color: var(--cream); letter-spacing: -.01em;
}
.daily-head .mini { flex: 1; min-width: 200px; }

.daily-trio {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--rule);
}
.daily-card {
  display: flex; flex-direction: column; text-align: left;
  padding: 26px 24px 30px; border: none; border-right: 1px solid var(--rule);
  background: none; cursor: pointer; font-family: inherit; color: inherit;
  transition: background .3s;
}
.daily-card:last-child { border-right: none; }
.daily-card:hover { background: linear-gradient(180deg, var(--gold-glow) 0%, transparent 70%); }
.daily-kind {
  font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ash); font-weight: 700; margin-bottom: 18px;
}
.daily-card:hover .daily-kind { color: var(--gold); }
.daily-poster {
  position: relative; width: 100%; max-width: 172px; aspect-ratio: 2/3; margin-bottom: 18px;
  overflow: hidden;
  background: url("img/poster-empty.jpg") center / cover no-repeat, var(--panel-2);
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.daily-card:hover .daily-poster { transform: translateY(-6px); }
.daily-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.daily-poster > span {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding: 10px; font-size: 11px; line-height: 1.3; color: var(--sand);
  background: linear-gradient(180deg, transparent 40%, rgba(6,5,5,.88) 100%);
}
.daily-card h3 {
  font-size: clamp(18px, 2vw, 22px); line-height: 1.15; letter-spacing: -.015em;
  margin-bottom: 8px; font-weight: 400;
}
.daily-card h3 .year { color: var(--ash); font-size: .68em; font-style: italic; }
.daily-why {
  color: var(--sand); font-size: 12.5px; line-height: 1.62; margin-top: 12px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* ====================== FILTROS ====================== */
.moment {
  border: 1px solid var(--rule); background: var(--panel);
  padding: clamp(22px, 3.2vw, 38px); margin-bottom: 34px;
}
.field { margin-bottom: 24px; }
.field > label {
  display: block; font-size: 9.5px; color: var(--ash); margin-bottom: 12px;
  letter-spacing: .24em; text-transform: uppercase; font-weight: 700;
}
.field > label strong { color: var(--gold-lt); text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 600; }
.field > label .mini { text-transform: none; letter-spacing: 0; font-weight: 400; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: transparent; border: 1px solid var(--rule); color: var(--sand);
  padding: 8px 15px; border-radius: 0; cursor: pointer; font-size: 12.5px;
  font-family: inherit; transition: .18s; display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--gold); color: var(--cream); }
.chip.is-on { background: var(--gold); border-color: var(--gold); color: #120c02; font-weight: 600; }
.chip-n { opacity: .5; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.chip.is-on .chip-n { opacity: .65; }

input[type="range"] { width: 100%; accent-color: var(--gold); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.btn {
  font-family: inherit; font-size: 11.5px; padding: 14px 26px; border-radius: 0;
  cursor: pointer; border: 1px solid var(--rule); transition: .2s; font-weight: 700;
  background: transparent; color: var(--cream);
  letter-spacing: .16em; text-transform: uppercase;
}
.btn-primary { background: var(--gold); color: #120c02; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-lt); border-color: var(--gold-lt); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-lt); }
.btn-text { border-color: transparent; color: var(--ash); padding: 14px 8px; }
.btn-text:hover { color: var(--cream); }
.btn-text.danger { color: var(--blood); }

.more-filters { border: 1px solid var(--rule); background: var(--ink-2); padding: 2px 18px; margin: 6px 0 22px; }
.more-filters summary {
  cursor: pointer; list-style: none; padding: 15px 0; font-size: 10px; color: var(--sand);
  display: flex; align-items: center; gap: 10px; user-select: none;
  letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
}
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters summary::before {
  content: "+"; color: var(--gold); font-weight: 400; font-size: 18px; line-height: 1;
  transition: transform .25s;
}
.more-filters[open] summary::before { transform: rotate(45deg); }
.more-filters summary:hover { color: var(--cream); }
.more-filters[open] { padding-bottom: 10px; }
.streaming-note { margin-top: 10px; }

/* ====================== A INDICAÇÃO ====================== */
.result { margin-top: 6px; }
.pick {
  background: var(--panel); border: 1px solid var(--rule);
  overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-columns: 340px 1fr;
  animation: rise .5s cubic-bezier(.2,.7,.3,1);
}
@media (max-width: 760px) { .pick { grid-template-columns: 1fr; } }
.pick-poster { position: relative; background: var(--ink); min-height: 500px; display: block; }
@media (max-width: 760px) { .pick-poster { min-height: 0; aspect-ratio: 2/3; max-height: 70vh; } }
.poster-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.poster-fallback {
  position: absolute; inset: 0; padding: 24px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  background: linear-gradient(180deg, rgba(6,5,5,.1) 30%, rgba(6,5,5,.92) 100%),
              url("img/poster-empty.jpg") center / cover no-repeat, var(--panel-2);
}
.poster-title { font-family: var(--serif); font-size: 28px; font-weight: 400; color: #fff; z-index: 1; line-height: 1.1; }
.poster-year { color: rgba(255,255,255,.55); font-size: 13px; z-index: 1; font-style: italic; }
.pick-type {
  align-self: flex-start; background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  color: #fff; font-size: 9px; padding: 6px 13px;
  letter-spacing: .24em; text-transform: uppercase; z-index: 1; font-weight: 700;
}

.pick-body { padding: 34px 38px; }
.pick-rarity {
  display: inline-block; margin-bottom: 18px;
  font-size: 9px; padding: 6px 14px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
}
.r-hi { background: var(--gold); color: #120c02; }
.r-mid { background: var(--gold-glow); color: var(--gold-lt); box-shadow: inset 0 0 0 1px rgba(201,150,47,.4); }
.r-lo { background: rgba(255,255,255,.06); color: var(--sand); }
.pick-head h3 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.04; letter-spacing: -.025em; font-weight: 400; }
.pick-head .year { color: var(--ash); font-size: .55em; font-style: italic; }
.pick-orig { color: var(--ash); font-size: 13px; margin: 8px 0 0; font-style: italic; }
.pick-meta { color: var(--sand); font-size: 12px; margin: 18px 0; letter-spacing: .02em; }

.scores { display: flex; gap: 0; margin-bottom: 20px; flex-wrap: wrap; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.score {
  padding: 12px 20px 12px 0; font-size: 11px; color: var(--ash);
  letter-spacing: .1em; text-transform: uppercase;
}
.score b { color: var(--gold-lt); font-variant-numeric: tabular-nums; font-size: 15px; letter-spacing: 0; }
.pick-syn { font-size: 15px; line-height: 1.72; margin: 0 0 20px; color: #ded6ca; }

/* a nota de curadoria: o coração do produto */
.pick-why {
  position: relative; font-size: clamp(15px, 1.8vw, 17px); line-height: 1.62;
  padding: 6px 0 6px 26px; margin: 0 0 24px; color: var(--cream);
  border-left: 2px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-weight: 400;
}
.pick-why b { color: var(--gold-lt); font-style: normal; font-weight: 600; }

/* ====================== ESTRELAS ====================== */
.rate { margin: 26px 0 20px; }
.rate-label {
  display: block; font-size: 9.5px; color: var(--ash); margin-bottom: 12px;
  letter-spacing: .24em; text-transform: uppercase; font-weight: 700;
}
.stars { display: inline-flex; gap: 4px; }
.stars .star {
  position: relative; background: none; border: none; cursor: pointer;
  line-height: 1; padding: 2px; font-size: 30px; font-family: inherit;
  display: block; width: 1em; height: 1em;
}
.stars.small .star { font-size: 17px; }
.star-bg, .star-on { position: absolute; top: 2px; left: 2px; line-height: 1; pointer-events: none; user-select: none; }
.star-bg { color: var(--rule); }
.star-on { color: var(--gold); width: var(--fill, 0%); overflow: hidden; white-space: nowrap; transition: width .1s linear; }
.stars .star:hover .star-on { color: var(--gold-lt); }

.pick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.empty { color: var(--sand); background: var(--ink-2); border: 1px solid var(--rule); padding: 30px; text-align: center; font-size: 14px; }
.empty.loading { color: var(--gold-lt); }

/* ====================== PRATELEIRAS ====================== */
.explore-head { margin-bottom: 34px; }
.shelves { display: flex; flex-direction: column; gap: 48px; }
.shelf { position: relative; }
.shelf-head { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.shelf-head h3 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.015em; margin-bottom: 5px; font-weight: 400; }
.shelf-head .mini { color: var(--ash); font-style: italic; }
.shelf-row {
  display: flex; gap: 18px; overflow-x: auto; padding: 6px 4px 18px;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
}
.shelf-row::-webkit-scrollbar { height: 4px; }
.shelf-row::-webkit-scrollbar-thumb { background: var(--rule); }
.shelf-row::-webkit-scrollbar-track { background: transparent; }

.sh-card {
  flex: 0 0 146px; width: 146px; scroll-snap-align: start;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; color: inherit; text-align: left;
}
.sh-poster {
  position: relative; display: block; width: 100%; aspect-ratio: 2/3; margin-bottom: 11px;
  overflow: hidden; background: url("img/poster-empty.jpg") center / cover no-repeat, var(--panel-2);
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s;
}
.sh-card:hover .sh-poster { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,.6); }
.sh-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-poster::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); transition: box-shadow .3s;
}
.sh-card:hover .sh-poster::after { box-shadow: inset 0 0 0 2px var(--gold); }
.sh-noposter {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding: 10px; font-size: 11px; line-height: 1.3; color: var(--sand);
  background: linear-gradient(180deg, transparent 40%, rgba(6,5,5,.88) 100%);
}
.sh-name {
  display: -webkit-box; font-size: 13px; font-weight: 500; line-height: 1.32; color: var(--cream);
  overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.sh-sub { display: block; font-size: 11px; color: var(--ash); margin-top: 4px; font-variant-numeric: tabular-nums; }

.sh-skel {
  flex: 0 0 146px; width: 146px; aspect-ratio: 2/3;
  background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%);
  background-size: 220% 100%; animation: shimmer 1.5s infinite linear;
}
@keyframes shimmer { from { background-position: 220% 0; } to { background-position: -20% 0; } }

/* ====================== BUSCAR ====================== */
.search-bar { display: flex; gap: 0; margin-bottom: 18px; border: 1px solid var(--rule); }
.search-bar input {
  flex: 1; min-width: 0; padding: 17px 22px; border: none; border-radius: 0;
  background: var(--ink-2); color: var(--cream); font-family: var(--serif);
  font-size: 19px; font-style: italic;
}
.search-bar input::placeholder { color: var(--ash); font-style: italic; }
.search-bar input:focus { outline: none; background: var(--panel); }
.search-bar .btn { border: none; border-left: 1px solid var(--rule); }
.search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 26px 18px; margin-top: 20px; }
.search-grid .sh-card, .search-grid .sh-skel { flex: none; width: 100%; }
.search-more { display: flex; justify-content: center; margin-top: 34px; }
#search-status { margin: 0; letter-spacing: .06em; }

/* ====================== LISTAS ====================== */
.list-block { margin-bottom: 44px; }
.list-block h3 {
  font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 18px; font-weight: 400;
  display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule);
}
.count {
  background: none; color: var(--gold); font-family: var(--sans);
  font-size: 11px; padding: 0; font-weight: 700; font-variant-numeric: tabular-nums;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.mini-card { background: var(--panel); display: grid; grid-template-columns: 62px 1fr; transition: background .2s; }
.mini-card:hover { background: var(--panel-2); }
.mini-cover { background: url("img/poster-empty.jpg") center / cover no-repeat, var(--panel-2); display: grid; place-items: center; }
.mini-cover span {
  font-size: 8px; text-transform: uppercase; letter-spacing: .2em;
  color: rgba(255,255,255,.6); writing-mode: vertical-rl; transform: rotate(180deg);
}
.mini-info { padding: 14px 16px; }
.mini-info b { font-size: 14px; font-weight: 500; }
.mini-info .year { color: var(--ash); font-weight: 400; font-size: 12px; font-style: italic; }
.mini-info p { color: var(--ash); font-size: 11px; margin: 5px 0 9px; }

/* ====================== PERFIL ====================== */
.taste { border: 1px solid var(--rule); background: var(--panel); padding: 6px 26px; margin-bottom: 24px; }
.taste-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--rule-soft); }
.taste-row:last-of-type { border-bottom: none; }
.taste-key { font-size: 9.5px; color: var(--ash); min-width: 210px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; }
.taste-chip { background: var(--gold-glow); box-shadow: inset 0 0 0 1px rgba(201,150,47,.35); color: var(--gold-lt); padding: 6px 14px; font-size: 12px; }
.stat-line { color: var(--sand); font-size: 14px; margin-bottom: 26px; }
.stat-line strong { color: var(--gold-lt); font-size: 20px; font-family: var(--serif); }

/* ====================== AJUSTES ====================== */
.card-plain { border: 1px solid var(--rule); background: var(--panel); padding: 30px; }
.card-plain h3 { font-size: 22px; margin-bottom: 10px; letter-spacing: -.015em; font-weight: 400; }
.k-label { display: block; font-size: 9.5px; color: var(--ash); margin: 20px 0 0; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; }
.k-label input {
  display: block; width: 100%; margin-top: 9px; padding: 13px 15px; border-radius: 0;
  background: var(--ink-2); border: 1px solid var(--rule); color: var(--cream);
  font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none;
}
.k-label input:focus { outline: none; border-color: var(--gold); }

/* ====================== ONDE ASSISTIR ====================== */
.watch { margin-top: 24px; }
.watch-box { background: var(--ink-2); border: 1px solid var(--rule); padding: 18px 20px; }
.watch-title {
  display: block; font-size: 9.5px; color: var(--ash); margin-bottom: 14px;
  letter-spacing: .24em; text-transform: uppercase; font-weight: 700; font-family: var(--sans);
}
.watch-line { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.watch-key { font-size: 11px; color: var(--ash); min-width: 74px; padding-top: 6px; }
.prov-list { display: flex; flex-wrap: wrap; gap: 6px; }
.prov { display: inline-flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--rule); padding: 5px 11px 5px 5px; font-size: 12px; }
.prov img { width: 21px; height: 21px; }
.prov-hot { border-color: var(--gold); background: var(--gold-glow); color: var(--gold-lt); }
.watch-foot { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.watch-rent { color: var(--ash); font-size: 11.5px; text-decoration: none; border-bottom: 1px dotted var(--rule); }
.watch-rent:hover { color: var(--gold); border-bottom-color: var(--gold); }
.watch-jw { color: var(--sand); font-size: 12px; text-decoration: none; border-bottom: 1px solid var(--rule); }
.watch-jw:hover { color: var(--gold); }

/* ====================== MODAL ====================== */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,2,2,.88); backdrop-filter: blur(8px); }
.modal-card {
  position: relative; width: min(700px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--rule);
  padding: 38px; box-shadow: var(--shadow); animation: rise .3s cubic-bezier(.2,.7,.3,1);
}
.modal-sm { width: min(440px, 100%); padding: 34px; }
.modal-x {
  position: absolute; top: 16px; right: 18px; background: none; border: none;
  color: var(--ash); font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px;
  font-family: inherit; transition: color .2s;
}
.modal-x:hover { color: var(--cream); }
.md-top { display: flex; gap: 26px; align-items: flex-start; margin-bottom: 24px; }
.md-poster {
  flex: 0 0 142px; width: 142px; aspect-ratio: 2/3; overflow: hidden;
  background: url("img/poster-empty.jpg") center / cover no-repeat, var(--panel-2);
  box-shadow: var(--shadow-sm);
}
.md-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.md-head { flex: 1; min-width: 0; }
.md-head h3 { font-size: clamp(24px, 3vw, 30px); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 7px; font-weight: 400; }
.md-head .year { color: var(--ash); font-size: .6em; font-style: italic; }
body.no-scroll { overflow: hidden; }

/* ====================== CONTA ====================== */
/* "Entrar" é ação, não navegação: precisa parecer botão, senão some no meio
   das abas e o visitante nunca cria conta. */
.tab-account {
  margin-left: 16px; padding: 9px 18px;
  border: 1px solid var(--gold); color: var(--gold-lt);
  transition: background .2s, color .2s;
}
.tab-account::after { display: none; }
.tab-account:hover { background: var(--gold); color: #120c02; }
.tab-account.is-in { border-color: var(--rule); color: var(--sand); }
.tab-account.is-in:hover { border-color: var(--gold); background: transparent; color: var(--gold-lt); }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  width: 100%; margin-top: 22px; background: var(--cream); color: #1a1a1a;
  border-color: var(--cream);
}
.btn-google:hover { background: #fff; border-color: #fff; }
.btn-google svg { width: 16px; height: 16px; flex: 0 0 16px; }
.auth-or {
  display: flex; align-items: center; gap: 14px; margin: 24px 0 6px;
  color: var(--ash); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700;
}
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.auth-form { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 12px; }
.auth-form input {
  padding: 14px 16px; background: var(--ink-2); border: 1px solid var(--rule);
  color: var(--cream); font-family: inherit; font-size: 14.5px;
}
.auth-form input:focus { outline: none; border-color: var(--gold); }
.auth-mail { color: var(--gold-lt); margin: 4px 0 14px; letter-spacing: .04em; }

/* ====================== ANÚNCIOS ====================== */
.ad-slot { display: block; margin: 44px 0 0; min-height: 90px; }
.ad-slot[hidden] { display: none; }
.ad-label {
  display: block; font-size: 8.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ash); margin-bottom: 9px; text-align: center;
}
.consent {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 85; width: min(780px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 20px 24px; background: var(--panel-2); border: 1px solid var(--rule); box-shadow: var(--shadow);
}
.consent p { margin: 0; flex: 1; min-width: 250px; font-size: 12.5px; line-height: 1.6; color: var(--sand); }
.consent a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-glow); }
.consent-btns { display: flex; gap: 8px; }
.consent .btn { padding: 11px 20px; }

/* ====================== LEGAL ====================== */
.legal { max-width: 720px; padding-top: 40px; }
.legal h3 { font-size: 21px; margin: 38px 0 10px; letter-spacing: -.015em; font-weight: 400; }
.legal p { color: var(--sand); font-size: 15px; line-height: 1.78; margin: 0 0 14px; }
.legal p strong { color: var(--cream); }
.legal a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-glow); }
.legal a:hover { border-bottom-color: var(--gold); }

/* ====================== RODAPÉ ====================== */
.attrib { max-width: 1120px; margin: 0 auto; padding: 34px clamp(16px,4vw,32px) 70px; border-top: 1px solid var(--rule-soft); }
.attrib p { color: var(--ash); font-size: 10.5px; line-height: 1.7; margin: 0 0 6px; letter-spacing: .03em; }
.attrib a { color: var(--sand); text-decoration: none; border-bottom: 1px solid var(--rule); }
.attrib a:hover { color: var(--gold); }

/* ====================== IMPORTAÇÃO ====================== */
.card-plain + .card-plain { margin-top: 22px; }
.progress { margin: 18px 0 6px; }
.progress-bar { height: 3px; background: var(--ink-2); border: none; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .25s ease; }
#progress-text { margin-top: 10px; }

/* ====================== TOAST ====================== */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(22px);
  background: var(--gold); color: #120c02; padding: 15px 26px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: .3s cubic-bezier(.2,.7,.3,1); z-index: 95; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ====================== RESPONSIVO ====================== */
@media (max-width: 900px) {
  .daily-trio { grid-template-columns: 1fr; border-top: none; }
  .daily-card {
    display: grid; grid-template-columns: 108px 1fr; column-gap: 20px; align-items: start;
    border-right: none; border-top: 1px solid var(--rule); padding: 24px 0;
  }
  .daily-poster { grid-column: 1; grid-row: 1 / span 4; margin-bottom: 0; max-width: none; }
  .daily-kind, .daily-card h3, .daily-card > .mini, .daily-why { grid-column: 2; }
  .daily-why { -webkit-line-clamp: 3; margin-top: 10px; }
}
@media (max-width: 760px) {
  /* Tela estreita não tem coluna livre: o texto ocupa tudo e passa por cima da
     câmera. Aqui o escurecimento é parelho e a foto vira atmosfera, não assunto. */
  .masthead { justify-content: flex-start; background-position: 32% 45%; }
  .masthead::before {
    background: linear-gradient(0deg, var(--ink) 2%, rgba(6,5,5,.88) 45%, rgba(6,5,5,.72) 100%);
  }
  .mast-kicker { color: var(--gold-lt); }
}
@media (max-width: 620px) {
  .topbar { padding: 12px 16px; }
  .tabs { width: 100%; overflow-x: auto; }
  .tab { padding: 9px 11px 11px; white-space: nowrap; }
  .tab::after { left: 11px; right: 11px; }
  .pick-body { padding: 26px 22px; }
  .md-top { flex-direction: column; }
  .md-poster { flex-basis: auto; width: 118px; }
  .modal-card { padding: 26px; }
  .taste-key { min-width: 100%; }
  .search-bar { flex-direction: column; }
  .search-bar .btn { border-left: none; border-top: 1px solid var(--rule); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ====================== CURADORIA (só admin) ====================== */
.curadoria {
  margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--rule);
}
.cur-label {
  display: block; font-size: 9px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 12px;
}
.cur-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cur-btns .btn { padding: 11px 16px; font-size: 10px; }
#cur-msg { margin-top: 10px; }

/* ====================== AVISO DE FALHA DE CARGA ====================== */
#js-falhou {
  position: fixed; left: 50%; top: 16px; transform: translateX(-50%);
  z-index: 100; width: min(620px, calc(100vw - 24px));
  padding: 18px 22px; background: var(--blood); color: #fff;
  box-shadow: var(--shadow); font-size: 13.5px; line-height: 1.6;
}
#js-falhou[hidden] { display: none; }
#js-falhou p { margin: 0 0 6px; }
#js-falhou p:last-child { margin: 0; }
#js-falhou a { color: #fff; }

/* provedor que é link (só o Prime Video, por causa da tag de afiliado) */
.prov-link { text-decoration: none; color: inherit; transition: border-color .18s, color .18s; }
.prov-link:hover { border-color: var(--gold); color: var(--gold-lt); }

/* ====================== PAINEL DO ADMIN ====================== */
.chaves { display: flex; flex-direction: column; }
.chave-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 13px 0; border-bottom: 1px solid var(--rule-soft);
}
.chave-row:last-child { border-bottom: none; }
.chave-nome {
  min-width: 96px; font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; font-weight: 700; color: var(--sand);
}
.chave-val { font-size: 12.5px; font-family: ui-monospace, Menlo, monospace; }
.chave-val.ok { color: var(--gold-lt); }
.chave-val.off { color: var(--blood); }
.chave-row .btn { padding: 6px 10px; font-size: 10px; }
