/* Shared styling for WolfOut Rankings pages: films, film, person.
   Same tokens as the rest of Pitchcraft, plus the three verdict colours. */

:root {
  --bg:#08080b;--surface:#111116;--surface2:#18181f;--surface3:#1f1f28;
  --border:#28282f;--border2:#35353f;--amber:#f5c842;--amber-dim:#f5c84225;
  --amber-glow:#f5c84240;--green:#3ecf6e;--green-dim:#3ecf6e20;--red:#e74c3c;
  --red-dim:#e74c3c20;--orange:#f0932b;--orange-dim:#f0932b20;--muted:#66667a;
  --text:#eeeef5;--text2:#aaaabc;
  --font-display:'Bebas Neue','Arial Black',sans-serif;
  --font:'DM Sans',system-ui,sans-serif;--radius:10px;--radius-lg:16px;
}
[data-theme="light"] {
  --bg:#faf8f5;--surface:#f0ede8;--surface2:#e8e4de;--surface3:#dfdad2;
  --border:#d4cfc6;--border2:#c8c2b8;--amber:#b8860b;--amber-dim:#b8860b15;
  --amber-glow:#b8860b25;--green:#1a9e48;--green-dim:#1a9e4818;--red:#c0392b;
  --red-dim:#c0392b18;--orange:#d4780a;--orange-dim:#d4780a18;--muted:#7a7a8a;
  --text:#1a1a22;--text2:#555566;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{background:var(--bg);color:var(--text);font-family:var(--font);min-height:100vh;-webkit-font-smoothing:antialiased}
a{color:var(--amber);text-decoration:none}

.nav{background:var(--surface);border-bottom:1px solid var(--border);padding:0 24px;height:56px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20}
.nav-brand{font-family:var(--font-display);font-size:26px;letter-spacing:4px;color:var(--amber)}
.nav-right{display:flex;align-items:center;gap:8px}
.nav-link{color:var(--text2);font-size:13px;font-weight:600;padding:6px 12px;border-radius:6px;transition:all .15s}
.nav-link:hover{color:var(--text);background:var(--surface2)}
.nav-link.active{color:var(--amber);background:var(--amber-dim)}
.theme-toggle{background:none;border:1px solid var(--border2);border-radius:6px;padding:5px 7px;cursor:pointer;color:var(--text2);display:flex;align-items:center}
.theme-toggle:hover{color:var(--text);border-color:var(--amber)}

.page{max-width:1160px;margin:0 auto;padding:32px 24px 64px}
.page-title{font-family:var(--font-display);font-size:40px;letter-spacing:3px;color:var(--amber);margin-bottom:10px;line-height:1}
.page-subtitle{color:var(--text2);font-size:15px;line-height:1.65;margin-bottom:24px;max-width:64ch}
.page-subtitle strong{color:var(--text)}
.section-head{font-family:var(--font-display);font-size:22px;letter-spacing:2px;color:var(--text);margin-bottom:16px}
.list-note{font-size:13px;color:var(--muted);margin-bottom:16px}

/* The three verdicts. Colour carries meaning here, so it is never the only
   signal: every pill also says which verdict it is. */
.scale-key{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:26px;font-size:13px;font-weight:600}
.key-item{display:flex;align-items:center;gap:7px;color:var(--text2)}
.key-dot{width:11px;height:11px;border-radius:50%;display:inline-block}
.key-item.better .key-dot{background:var(--green)}
.key-item.same .key-dot{background:var(--amber)}
.key-item.worse .key-dot{background:var(--red)}

.verdict{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.4px;padding:3px 9px;border-radius:99px;white-space:nowrap}
.verdict.better{color:var(--green);background:var(--green-dim);border:1px solid var(--green)}
.verdict.same{color:var(--amber);background:var(--amber-dim);border:1px solid var(--amber-glow)}
.verdict.worse{color:var(--red);background:var(--red-dim);border:1px solid var(--red)}
.verdict.none{color:var(--muted);background:var(--surface3);border:1px solid var(--border2)}
.verdict.big{font-size:14px;padding:7px 16px}

.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.search{flex:1;min-width:220px}
.search input{width:100%;background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius);padding:12px 15px;color:var(--text);font-family:var(--font);font-size:15px}
.search input:focus{outline:none;border-color:var(--amber)}
.btn{font-family:var(--font-display);font-size:15px;letter-spacing:2px;border-radius:var(--radius);padding:11px 22px;cursor:pointer;border:1px solid var(--border2);background:var(--surface2);color:var(--text);transition:all .15s;display:inline-flex;align-items:center;gap:7px}
.btn:hover:not(:disabled){border-color:var(--amber);color:var(--amber)}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn-primary{background:var(--amber);color:#08080b;border-color:var(--amber)}
.btn-primary:hover:not(:disabled){opacity:.88;color:#08080b}
.btn-sm{font-family:var(--font);font-size:12.5px;font-weight:600;letter-spacing:0;padding:7px 13px}

.tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:18px;border-bottom:1px solid var(--border);padding-bottom:12px}
.tab{background:none;border:1px solid transparent;border-radius:99px;padding:7px 15px;cursor:pointer;color:var(--text2);font-family:var(--font);font-size:13px;font-weight:600;transition:all .15s}
.tab:hover{color:var(--text);background:var(--surface2)}
.tab.on{background:var(--amber);color:#08080b}

.genre-bar{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:22px}
.genre-chip{font-size:12px;font-weight:600;color:var(--text2);background:var(--surface2);border:1px solid var(--border2);border-radius:99px;padding:5px 12px}
.genre-chip:hover{border-color:var(--amber);color:var(--amber)}
.genre-chip .n{opacity:.55;margin-left:5px;font-weight:400}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:22px 16px;align-items:start}
.poster-card{display:block}
.poster-link{display:block;color:inherit}
.poster{position:relative;aspect-ratio:2/3;background:var(--surface3);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;margin-bottom:9px;transition:border-color .15s}
.poster img{width:100%;height:100%;object-fit:cover;display:block}
.poster-link:hover .poster{border-color:var(--amber)}
.poster-fallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:10px;text-align:center;font-family:var(--font-display);font-size:15px;letter-spacing:1.5px;color:var(--muted)}
/* The verdict used to sit on top of the poster. It reads well on a plain
   backdrop and badly on artwork that is already doing something, so it
   now lives under the image. Slightly smaller so the longest label
   ("Better Than Teen Wolf") still fits a narrow grid column. */
.card-verdict{margin-bottom:7px}
.card-verdict .verdict{font-size:10.5px;padding:3px 8px;white-space:normal}
.card-name{font-size:13.5px;font-weight:600;line-height:1.35;color:var(--text)}
.poster-link:hover .card-name{color:var(--amber)}
.card-sub{font-size:11.5px;color:var(--muted);margin-top:3px}

.empty{text-align:center;padding:56px 24px;border:1px dashed var(--border2);border-radius:var(--radius-lg);background:var(--surface)}
.empty h2{font-family:var(--font-display);font-size:24px;letter-spacing:2px;color:var(--text);margin-bottom:10px}
.empty p{color:var(--text2);font-size:14px;line-height:1.7;max-width:46ch;margin:0 auto}
.alert{border-radius:var(--radius);padding:13px 16px;font-size:13.5px;line-height:1.6;margin-bottom:18px}
.alert-error{background:var(--red-dim);border:1px solid var(--red)}
.alert-info{background:var(--surface2);border:1px solid var(--border2);color:var(--text2)}
.alert-ok{background:var(--green-dim);border:1px solid var(--green)}

.spinner{width:32px;height:32px;border:3px solid var(--border);border-top-color:var(--amber);border-radius:50%;animation:spin .8s linear infinite;margin:70px auto}
@keyframes spin{to{transform:rotate(360deg)}}

.footer{border-top:1px solid var(--border);padding:24px;text-align:center;font-size:12px;color:var(--muted);line-height:1.8}
.footer a{color:var(--muted)}
.attrib{font-size:11px;opacity:.75}

/* ── Title page ── */
.title-head{display:grid;grid-template-columns:220px 1fr;gap:28px;margin-bottom:32px}
@media(max-width:700px){.title-head{grid-template-columns:1fr;gap:18px}.title-head .poster{max-width:190px}}
.title-name{font-family:var(--font-display);font-size:36px;letter-spacing:2px;line-height:1.05;margin-bottom:6px}
.title-meta{font-size:13.5px;color:var(--muted);margin-bottom:14px}
.title-overview{font-size:14.5px;line-height:1.7;color:var(--text2);margin-bottom:18px;max-width:70ch}
.chip-row{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}

.standing{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px;margin-bottom:24px}
.standing-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.standing-count{font-size:13px;color:var(--muted)}
.bar{display:flex;height:12px;border-radius:99px;overflow:hidden;background:var(--surface3);margin-bottom:8px}
.bar span{display:block;height:100%}
.bar .b{background:var(--green)}
.bar .s{background:var(--amber)}
.bar .w{background:var(--red)}
.bar-key{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:var(--muted)}

.vote-row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px;align-items:start}
.vote{flex:1;min-width:170px;border-radius:var(--radius);padding:14px 12px;cursor:pointer;border:1px solid var(--border2);background:var(--surface2);color:var(--text);font-family:var(--font);font-size:13.5px;font-weight:700;transition:all .15s;text-align:center}
.vote:hover{border-color:var(--amber)}
.vote.better.on{background:var(--green-dim);border-color:var(--green);color:var(--green)}
.vote.same.on{background:var(--amber-dim);border-color:var(--amber);color:var(--amber)}
.vote.worse.on{background:var(--red-dim);border-color:var(--red);color:var(--red)}
textarea{width:100%;background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius);padding:12px;color:var(--text);font-family:var(--font);font-size:14px;line-height:1.6;resize:vertical;min-height:90px}
textarea:focus{outline:none;border-color:var(--amber)}

.people{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:16px 12px;margin-bottom:12px}
.person-card{display:block;color:inherit;text-align:center}
.person-face{aspect-ratio:1;border-radius:50%;overflow:hidden;background:var(--surface3);border:1px solid var(--border);margin-bottom:8px;transition:border-color .15s}
.person-face img{width:100%;height:100%;object-fit:cover;display:block}
.person-card:hover .person-face{border-color:var(--amber)}
.person-name{font-size:12.5px;font-weight:600;line-height:1.3}
.person-card:hover .person-name{color:var(--amber)}
.person-role{font-size:11px;color:var(--muted);margin-top:2px}

.review{padding:16px 0;border-bottom:1px solid var(--border)}
.review:last-child{border-bottom:0}
.review-head{display:flex;align-items:center;gap:10px;margin-bottom:7px;flex-wrap:wrap}
.review-name{font-weight:600;font-size:13.5px}
.review-time{font-size:11.5px;color:var(--muted)}
.review-body{font-size:14px;line-height:1.7;color:var(--text2);white-space:pre-wrap;word-wrap:break-word}

/* ── Person page ── */
.person-head{display:grid;grid-template-columns:160px 1fr;gap:26px;margin-bottom:28px;align-items:start}
@media(max-width:640px){.person-head{grid-template-columns:1fr}}
.person-photo{aspect-ratio:2/3;border-radius:var(--radius-lg);overflow:hidden;background:var(--surface3);border:1px solid var(--border);max-width:160px}
.person-photo img{width:100%;height:100%;object-fit:cover;display:block}
.statement{font-family:var(--font-display);font-size:26px;letter-spacing:1px;line-height:1.25;color:var(--text);margin:12px 0 16px;max-width:32ch}
.stat-row{display:flex;gap:24px;flex-wrap:wrap;margin-bottom:14px}
.stat{min-width:90px}
.stat-num{font-family:var(--font-display);font-size:30px;letter-spacing:1px;color:var(--amber);line-height:1}
.stat-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:1.2px;color:var(--muted);margin-top:3px}
.bio{font-size:14px;line-height:1.7;color:var(--text2);max-width:70ch;margin-bottom:8px}

:focus-visible{outline:2px solid var(--amber);outline-offset:2px;border-radius:4px}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
@media(max-width:600px){
  .page{padding:24px 16px 48px}
  .page-title{font-size:30px}
  .nav{padding:0 14px}
  .nav-link{padding:6px 8px;font-size:12px}
  .grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:16px 10px}
}

/* ── Teen Wolf artwork ─────────────────────────────────────
   Bob's own stills. The three verdicts are recognisable at a glance from
   the faces, but every image is still labelled: the picture is the charm,
   the words are the meaning. */
.tw-masthead{display:block;width:100%;max-width:900px;height:auto;border-radius:var(--radius-lg);border:1px solid var(--border);margin-bottom:22px}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.scale-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin-bottom:30px;align-items:start}
.scale-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden}
.scale-card img{width:100%;height:auto;display:block}
.scale-card .cap{padding:11px 13px;font-size:12.5px;font-weight:700;letter-spacing:.3px}
.scale-card.better{border-color:var(--green)}
.scale-card.better .cap{color:var(--green)}
.scale-card.same{border-color:var(--amber-glow)}
.scale-card.same .cap{color:var(--amber)}
.scale-card.worse{border-color:var(--red)}
.scale-card.worse .cap{color:var(--red)}

/* Vote buttons carry the same faces, so choosing a verdict on a title looks
   like the key that explained it. */
.vote{padding:0;overflow:hidden;text-align:left}
.vote img{width:100%;height:auto;display:block;filter:saturate(.55) brightness(.8);transition:filter .15s}
.vote:hover img,.vote.on img{filter:none}
.vote .vlabel{display:block;padding:11px 12px;text-align:center}

/* Writer byline under a poster. Outside the card link, so each name is its
   own link through to that person. */
.card-writers{font-size:11.5px;line-height:1.5;color:var(--text2);margin-top:4px}
.card-writers .by{color:var(--muted)}
.card-writers a{color:var(--text2);border-bottom:1px solid transparent}
.card-writers a:hover{color:var(--amber);border-bottom-color:var(--amber-glow);text-decoration:none}

/* The benchmark cannot be rated against itself. */
.locked{background:var(--surface);border:1px solid var(--amber-glow);border-radius:var(--radius-lg);padding:34px 24px;display:flex;flex-direction:column;gap:20px;align-items:center;text-align:center;max-width:560px;margin:10px auto 0}
.locked img{width:250px;max-width:72%;height:auto;border-radius:var(--radius);border:1px solid var(--border);display:block}
.locked-copy{max-width:40ch}
.locked-copy h3{font-family:var(--font-display);font-size:30px;letter-spacing:2px;color:var(--amber);margin-bottom:10px;line-height:1.1}
.locked-copy p{font-size:15px;line-height:1.7;color:var(--text2);margin-bottom:20px}

/* Support strip. #ffdd00 is Buy Me A Coffee's own brand yellow, matching the
   homepage banner, so the button is recognisable rather than just amber. */
.support-strip{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px 24px;margin-top:44px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.support-strip .copy{font-size:14px;color:var(--text2);line-height:1.6;max-width:52ch}
.support-strip .copy strong{color:var(--text);font-size:15px}
.btn-bmac{background:#ffdd00;color:#000;border:none;padding:11px 20px;border-radius:8px;font-size:13px;font-weight:700;font-family:var(--font);cursor:pointer;text-decoration:none;transition:filter .15s;white-space:nowrap}
.btn-bmac:hover{filter:brightness(.9);text-decoration:none;color:#000}
