/* Shared archive structure; independently styled show collections. */
body[data-theme]{--paper:#101522;--white:#1a2232;--ink:#f2eee7;--muted:#b3bbcd;--line:#384256;--gold:#edbb85;--soft:#253047;--green:#96d9b2;--surface:#192232;--surface-2:#222e43;--accent:var(--gold);--heading:'Playfair Display',Georgia,serif;--radius:12px;background:radial-gradient(ellipse at 90% 0%,#29334e 0,transparent 45%),var(--paper);color:var(--ink)}
body[data-theme=survivor]{--paper:#0c1916;--white:#142620;--ink:#f1eadc;--muted:#a9b9ad;--line:#435b3e;--gold:#ff9b42;--soft:#253b2e;--surface:#172c21;--surface-2:#263c29;--radius:8px;background:radial-gradient(ellipse at 85% 5%,#1d3527 0,transparent 38%),var(--paper)}
body[data-theme=big-brother]{--paper:#0b2050;--white:#15346c;--ink:#f2f6ff;--muted:#bfceed;--line:#4164a0;--gold:#ffffff;--soft:#244b88;--green:#9be1c3;--surface:#15346c;--surface-2:#1d417c;--accent:#ffffff;--heading:'Inter',Arial,sans-serif;--radius:5px;background:radial-gradient(ellipse at 85% 0,#2857a0 0,transparent 48%),linear-gradient(135deg,#102c62,#0b2050 65%,#14346e);font-size:14px}
body[data-theme=amazing-race]{--paper:#0c0c0d;--white:#171719;--ink:#f4f0e6;--muted:#bdb7a8;--line:#494235;--gold:#e5bb5c;--soft:#2d271b;--green:#a3cf9d;--surface:#171719;--surface-2:#222224;--accent:#e5bb5c;--heading:'Inter',Arial,sans-serif;--radius:2px;background:radial-gradient(ellipse at 90% 0%,#44351b40,transparent 45%),repeating-linear-gradient(135deg,transparent 0,transparent 65px,#e5bb5c06 65px,#e5bb5c06 66px),var(--paper)}
body[data-theme=outlast]{--paper:#131b1b;--white:#1c2928;--ink:#e7e7d4;--muted:#afbeb5;--line:#41574d;--gold:#c9d59b;--soft:#283b33;--surface:#1c2928;--surface-2:#293b34;--radius:0;background:radial-gradient(ellipse at 70% 0,#35473b,transparent 55%),var(--paper)}
body[data-theme=other-show]{--paper:hsl(var(--show-hue) 25% 10%);--surface:hsl(var(--show-hue) 24% 15%);--surface-2:hsl(var(--show-hue) 24% 21%);--line:hsl(var(--show-hue) 20% 35%);--gold:hsl(var(--show-hue) 65% 76%);--muted:hsl(var(--show-hue) 20% 75%);background:radial-gradient(ellipse at top right,var(--surface-2),transparent 50%),var(--paper)}
/* The archive rail is deliberately consistent across every show. */
body[data-theme] .sidebar{background:linear-gradient(180deg,#151c2c,#0e1420);border-color:#343e53;color:#eeece8}
body[data-theme] .brand{color:#f2ede6;letter-spacing:3px}
body[data-theme] .brand-icon{clip-path:none;border-radius:9px;border:1px solid #ad896655;background:linear-gradient(145deg,#e6b98822,#e6b98808);color:#edbb85;width:45px;height:45px}
body[data-theme] .rail-label,body[data-theme] .rail-footer{color:#a9b5cd}
body[data-theme] .nav{color:#bec8db;border-radius:7px}
body[data-theme] .nav span{color:#9eabc3}
body[data-theme] .nav.active{background:#edbb8512;color:#f3ce9f;border-color:#edbb8533}
body[data-theme] .nav.active span{color:#edbb85}
body[data-theme] .nav:hover{background:#ffffff09;color:#fff}
body[data-theme] .rail-note{background:none;border-color:#37415a;color:#c5b293}
body[data-theme] .rail-note p{color:#dce0eb;font-family:'Playfair Display',Georgia,serif}
body[data-theme] .rail-note .dot{background:#edbb85}
body[data-theme] .vault-tools{color:#c3cce0}
body[data-theme] .vault-tools .import-button{background:#263147;border-color:#45516b;color:#e0e5ef}
body[data-theme] .topbar{background:var(--paper);border-color:var(--line)}
body[data-theme] .breadcrumbs{color:var(--muted)}
body[data-theme] .breadcrumbs strong{color:var(--ink)}
body[data-theme] .search{background:var(--surface);border-color:var(--line);color:var(--muted)}
body[data-theme] .search input{color:var(--ink)}
body[data-theme] .search kbd{background:var(--surface-2);color:var(--muted);border-color:var(--line)}
body[data-theme] .notice{background:transparent;color:var(--muted);border-color:var(--line)}
body[data-theme] .notice .dot{background:var(--accent)}
body[data-theme] .notice button{color:var(--muted)}
body[data-theme] .collection-context{display:flex;align-items:center;gap:20px;margin:0 0 22px;padding:0 0 16px;border-bottom:1px solid var(--line);font-size:11px;flex-wrap:wrap}
body[data-theme] .collection-home{color:var(--muted);font-size:10px}
body[data-theme] .collection-name{color:var(--accent);font-weight:700;font-size:12px;letter-spacing:.6px}
body[data-theme] .collection-context>div{display:flex;gap:20px;margin-left:auto}
body[data-theme] .collection-context a{color:var(--muted)}
body[data-theme] .collection-context a.current,body[data-theme] .collection-context a:hover{color:var(--accent)}
body[data-theme] .season-banner,body[data-theme] .player-hero{background:linear-gradient(135deg,var(--surface-2),var(--surface));border:1px solid var(--line);border-radius:var(--radius);box-shadow:none}
body[data-theme] .season-banner:before,body[data-theme] .season-banner:after{background:none}
body[data-theme] .eyebrow{color:var(--accent);font-size:10px;letter-spacing:2px}
body[data-theme] .season-banner h1,body[data-theme] .hero h1{font-family:var(--heading);color:var(--ink)}
body[data-theme] .season-banner p,body[data-theme] .season-banner .season-date-line{color:var(--muted)}
body[data-theme] .season-banner .eyebrow,body[data-theme] .hero .eyebrow{color:var(--accent)}
body[data-theme] .player-nickname{color:var(--accent);font-family:var(--heading)}
body[data-theme] .player-hero .portrait{border-color:var(--line);border-radius:var(--radius);box-shadow:8px 8px 0 var(--soft)}
body[data-theme] .tag{background:var(--surface-2);border-color:var(--line);color:var(--ink)}
body[data-theme] .tag.gold{border-color:var(--accent);color:var(--accent);background:transparent}
body[data-theme] .player-header-stats{border-color:var(--line)}
body[data-theme] .player-header-stats .stat-value,body[data-theme] .stat-value{color:var(--accent);font-family:var(--heading)}
body[data-theme] .stat-label,body[data-theme] .player-header-stats .stat-label{color:var(--muted)}
body[data-theme] .stats,body[data-theme] .stat{background:var(--surface);border-color:var(--line)}
body[data-theme] .player-details-header{border-color:var(--line);background:var(--surface)}
body[data-theme] .player-details-list dt{color:var(--muted)}
body[data-theme] .player-details-list dd{color:var(--ink)}
body[data-theme] .profile-season-picker{background:var(--surface);border-color:var(--line);border-radius:var(--radius)}
body[data-theme] .profile-season-picker label{font-family:var(--heading);color:var(--ink)}
body[data-theme] .profile-season-picker p{color:var(--muted)}
body[data-theme] select,body[data-theme] input,body[data-theme] .browse-filters input,body[data-theme] .browse-filters select{color:var(--ink);background:var(--surface-2);border-color:var(--line)}
body[data-theme] input::placeholder{color:var(--muted);opacity:.8}
body[data-theme] .panel{background:var(--surface);border-color:var(--line);border-radius:var(--radius);box-shadow:none}
body[data-theme] .panel h2,body[data-theme] .panel h3,body[data-theme] .section-title{color:var(--ink);font-family:var(--heading)}
body[data-theme] .panel h2:after{background:var(--accent)}
body[data-theme] .panel-sub,body[data-theme] .event-card p,body[data-theme] .season-entry p{color:var(--muted)}
body[data-theme] .panel .preserve-text,body[data-theme] .panel .challenge-summary-line{color:var(--ink)}
body[data-theme] .challenge-summary-line strong{color:var(--accent)}
body[data-theme] .detail-list dt{color:var(--muted)}
body[data-theme] .detail-list dd,body[data-theme] .season-entry h3{color:var(--ink)}
body[data-theme] .pill,body[data-theme] .season-number{background:var(--surface-2);color:var(--accent);border-color:var(--line)}
body[data-theme] .placement{color:var(--accent)}
body[data-theme] .placement small{color:var(--muted)}
body[data-theme] .season-entry,body[data-theme] .event-card,body[data-theme] .evidence,body[data-theme] .search-result{border-color:var(--line)}
body[data-theme] .tabs{border-color:var(--line)}
body[data-theme] .tab{color:var(--muted)}
body[data-theme] .tab.active{color:var(--accent);border-color:var(--accent)}
body[data-theme] .empty{background:var(--surface);border-color:var(--line);color:var(--muted);border-radius:var(--radius)}
body[data-theme] .empty strong{color:var(--ink);font-family:var(--heading)}
body[data-theme] th{background:var(--surface-2);color:var(--muted);border-color:var(--line)}
body[data-theme] td{color:var(--ink);border-color:var(--line)}
body[data-theme] tbody tr:nth-child(even){background:color-mix(in srgb,var(--surface-2) 25%,transparent)}
body[data-theme] tbody tr:hover{background:color-mix(in srgb,var(--accent) 9%,transparent)}
body[data-theme] .entity-link{color:inherit;text-decoration-color:var(--muted)}
body[data-theme] .entity-link:hover{color:var(--accent);text-decoration-color:var(--accent)}
body[data-theme] .episode-challenges,body[data-theme] .episode-challenge-day{color:var(--muted)}
body[data-theme] .episode-challenges a{color:var(--ink)}
body[data-theme] .episode-challenges li::marker{color:var(--accent)}
body[data-theme] .episode-pagination{color:var(--muted)}
body[data-theme] .challenge-elements li{background:var(--surface-2);border-color:var(--line);color:var(--ink)}
body[data-theme] .challenge-elements a:before{color:var(--accent)}
body[data-theme] .challenge-elements a:hover{background:var(--soft);color:var(--accent)}
body[data-theme] .browse-filters{background:var(--surface);border-color:var(--line);border-radius:var(--radius)}
body[data-theme] .browse-filters label{color:var(--muted)}
body[data-theme] .import-button{background:var(--surface-2);color:var(--accent);border-color:var(--line)}
body[data-theme] .browse-card{background:var(--surface);border-color:var(--line);border-radius:var(--radius)}
body[data-theme] .browse-card h3,body[data-theme] .vault-section-heading h2{color:var(--ink);font-family:var(--heading)}
body[data-theme] .browse-card p,body[data-theme] .show-stats dt,body[data-theme] .show-stats>div{color:var(--muted)}
body[data-theme] .show-stats dd,body[data-theme] .browse-card>span{color:var(--accent)}
body[data-theme] .browse-card:hover{border-color:var(--accent)}
body[data-theme] .player-directory-card{background:var(--surface);border-color:var(--line);border-radius:var(--radius)}
body[data-theme] .player-directory-name h3{color:#fff}
body[data-theme] .player-directory-nickname{color:#f4debe}
body[data-theme] .player-directory-info{background:var(--surface)}
body[data-theme] .player-all-seasons strong{color:var(--accent)}
body[data-theme] .player-all-seasons span{color:var(--muted)}
body[data-theme] .player-directory-arrow{color:var(--accent)}
body[data-theme] .challenge-directory-row{background:var(--surface);border-color:var(--line);border-radius:var(--radius)}
body[data-theme] .challenge-directory-title h3{color:var(--ink);font-family:var(--heading)}
body[data-theme] .challenge-directory-title>span,body[data-theme] .challenge-directory-season{color:var(--muted)}
body[data-theme] .challenge-season-number,body[data-theme] .challenge-directory-arrow{color:var(--accent)}
body[data-theme] .challenge-directory-types span{background:var(--surface-2);border-color:var(--line);color:var(--ink)}
body[data-theme] .season-gallery-card{background:var(--surface);border-color:var(--line);border-radius:var(--radius)}
body[data-theme] .season-gallery-card:hover{border-color:var(--accent)}
body[data-theme] .season-gallery-info h2{font-family:var(--heading);color:var(--ink)}
body[data-theme] .season-gallery-stats{border-color:var(--line)}
body[data-theme] .season-gallery-stats dd{font-family:var(--heading);color:var(--accent)}
body[data-theme] .season-gallery-stats dt{color:var(--muted)}
body[data-theme] .season-gallery-explore{color:var(--muted);border-color:var(--line)}
body[data-theme] .season-gallery-explore>span{color:var(--accent)}
body[data-theme] .season-gallery-jump{background:var(--surface);border-color:var(--line);border-radius:var(--radius)}
body[data-theme] .season-gallery-jump>span{color:var(--accent)}
body[data-theme] .season-gallery-jump button{background:var(--surface-2);border-color:var(--line);color:var(--ink)}
body[data-theme] .season-gallery-jump button:hover{background:var(--accent);color:var(--paper)}
body[data-theme] .season-gallery-heading .eyebrow{color:var(--muted)}
body[data-theme] .show-season-links{border-color:var(--line)}
body[data-theme] .show-season-links span{color:var(--accent)}
body[data-theme] .show-season-links a{color:var(--muted)}
body[data-theme] .show-season-links a:hover{color:var(--accent)}
body[data-theme] .season-votes-table th,body[data-theme] .season-votes-table td{border-color:var(--line)}
body[data-theme] .season-votes-table thead th,body[data-theme] .season-votes-table tbody th{background:var(--surface-2);color:var(--ink)}
body[data-theme] .season-votes-table .season-vote-result th,body[data-theme] .season-votes-table .season-vote-result td,body[data-theme] .season-votes-table tfoot th,body[data-theme] .season-votes-table tfoot td{background:var(--soft);color:var(--ink)}
body[data-theme] .season-votes-table td.season-vote-out{background:#090c12;color:#fff}
body[data-theme] .season-votes-table .season-vote-out a{color:#fff}
body[data-theme] .season-votes-table th small,body[data-theme] .no-ballot{color:var(--muted)}
body[data-theme] .season-votes-wrap{background:var(--surface);border-color:var(--line)}
body[data-theme] .season-votes-table tbody tr td{background:var(--surface)}
body[data-theme] .season-votes-table tbody tr:nth-child(even) td{background:var(--surface-2)}
body[data-theme] .season-votes-table tbody tr:hover td{background:var(--soft)}
body[data-theme] .season-votes-table tbody tr th:first-child{background:var(--surface-2);color:var(--ink)}
body[data-theme] .season-votes-table thead th:first-child{background:var(--surface-2);color:var(--ink)}
body[data-theme] .season-votes-table thead a,body[data-theme] .season-votes-table tbody a,body[data-theme] .season-votes-table tbody button,body[data-theme] .season-votes-table .vote-tally{color:var(--ink)}
body[data-theme] .season-votes-table tbody tr.season-vote-result td,body[data-theme] .season-votes-table tbody tr.season-vote-result th{background:var(--soft);color:var(--ink)}
body[data-theme] .season-votes-table tfoot tr.season-vote-summary td,body[data-theme] .season-votes-table tfoot tr.season-vote-summary th{background:var(--soft);color:var(--ink)}
body[data-theme] .season-votes-table tbody tr td.season-vote-out,body[data-theme] .season-votes-table tbody tr:nth-child(even) td.season-vote-out,body[data-theme] .season-votes-table tbody tr:hover td.season-vote-out{background:#090c12;color:#fff}
body[data-theme] .vote-sent-home td{background:color-mix(in srgb,var(--accent) 16%,var(--surface))}
body[data-theme] .vote-counted{color:var(--green)}
body[data-theme] .quote-panel{background:var(--surface-2)}
body[data-theme] .quote-panel p{color:var(--ink)}
body[data-theme] .loading{color:var(--muted);font-family:var(--heading)}
body[data-theme] footer{border-color:var(--line);color:var(--muted)}
body[data-theme] footer span:first-child{color:var(--accent)}
body[data-theme] a:focus-visible,body[data-theme] button:focus-visible,body[data-theme] input:focus-visible,body[data-theme] select:focus-visible{outline-color:var(--accent)}
/* Reality Vault: editorial, ink-blue and copper; no island motifs. */
body[data-theme=vault] .vault-home-intro{background:linear-gradient(120deg,#1c263c,#151d2e);border:1px solid #38445e;border-radius:16px;padding:48px 42px;position:relative;overflow:hidden}
body[data-theme=vault] .vault-home-intro:after{content:'RV';position:absolute;right:24px;bottom:-40px;font:700 clamp(100px,17vw,240px)/1 Georgia,serif;color:#ffffff03;pointer-events:none}
body[data-theme=vault] .vault-home-title h1{color:var(--ink);font-family:'Playfair Display',Georgia,serif;font-size:clamp(48px,6vw,88px);letter-spacing:-3px}
body[data-theme=vault] .vault-home-title h1 span{color:var(--accent);font-style:italic}
body[data-theme=vault] .vault-home-title>p{color:var(--muted)}
body[data-theme=vault] .vault-home-title>.eyebrow{color:var(--accent)}
body[data-theme=vault] .vault-home-shortcuts{position:relative;z-index:1}
body[data-theme=vault] .vault-home-shortcuts a{color:var(--ink);border-color:var(--line)}
body[data-theme=vault] .vault-home-shortcuts a>span:last-child{color:var(--accent)}
body[data-theme=vault] .vault-trail{border-color:var(--line)}
body[data-theme=vault] .vault-trail>span{color:var(--accent)}
body[data-theme=vault] .vault-trail h3{color:var(--ink)}
body[data-theme=vault] .vault-trail p,body[data-theme=vault] .vault-rights-notice{color:var(--muted)}
body[data-theme=vault] .vault-rights-notice{border-color:var(--line)}
body[data-theme=vault] .birthday-month{background:var(--surface);border-color:var(--line);border-radius:12px}
body[data-theme=vault] .birthday-month h2{color:var(--ink)}
body[data-theme=vault] .birthday-month-nav,body[data-theme=vault] .birthday-months{background:var(--paper);border-color:var(--line)}
body[data-theme=vault] .birthday-month-nav a,body[data-theme=vault] .birthday-months a{color:var(--accent);background:var(--surface);border-color:var(--line)}
body[data-theme=vault] .birthday-nickname,body[data-theme=vault] .birthday-empty{color:var(--muted)}
body[data-theme=vault] .birthday-day{color:var(--accent)}
/* Survivor keeps its field-guide textures inside its own collection. */
body[data-theme=survivor] .season-banner{background:linear-gradient(100deg,#142e22f5,#1f3a25b5),url('assets/vault-landscape.svg') center/cover}
body[data-theme=survivor] .player-hero{background:linear-gradient(105deg,#153025f2,#183323d9),url('assets/vault-contours.svg') center/700px}
body[data-theme=vault][data-page=home] .browse-card:before{background:none}
/* Big Brother: layered blue surfaces with bold, geometric typography. */
body[data-theme=big-brother] .season-banner,body[data-theme=big-brother] .player-hero{background:linear-gradient(115deg,#102d74,#274ecd);color:#fff;border:0;border-radius:6px;position:relative;overflow:hidden}
body[data-theme=big-brother] .season-banner{border-left:7px solid #ffffff}
body[data-theme=big-brother] .season-banner h1,body[data-theme=big-brother] .hero h1{color:#fff;font-weight:800;letter-spacing:-2px}
body[data-theme=big-brother] .season-banner p,body[data-theme=big-brother] .hero .eyebrow,body[data-theme=big-brother] .player-nickname{color:#dce7ff}
body[data-theme=big-brother] .season-banner .season-date-line{color:#dce7ff}
body[data-theme=big-brother] .player-hero .stat-value{color:#fff}
body[data-theme=big-brother] .player-hero .stat-label{color:#d0dfff}
body[data-theme=big-brother] .player-hero .player-header-stats{border-color:#ffffff40}
body[data-theme=big-brother] .player-hero .stat{background:transparent}
body[data-theme=big-brother] .player-hero .tag{color:#fff;border-color:#ffffff55;background:#ffffff10}
body[data-theme=big-brother] .player-hero .tag.gold{color:#ffffff;border-color:#ffffff}
body[data-theme=big-brother] .player-details-list dt{color:#c7d8ff}
body[data-theme=big-brother] .player-details-list dd{color:#fff}
body[data-theme=big-brother] .player-details-header{background:#0c235a;border-color:#ffffff30}
body[data-theme=big-brother] .panel h2{font-size:22px;font-weight:750;letter-spacing:-.6px}
body[data-theme=big-brother] .panel h2:after{width:40px;height:3px;background:#ffffff}
body[data-theme=big-brother] .season-gallery-art .browse-image{background:radial-gradient(ellipse at center,#e6efff,#b8cff5);color:#18263f}
body[data-theme=big-brother] .season-gallery-number{color:#254fd6;border-color:#254fd650}
body[data-theme=big-brother] .season-gallery-card{border-top:4px solid #254fd6}
body[data-theme=big-brother] .season-gallery-info h2{font-size:21px;font-weight:750}
body[data-theme=big-brother] .show-season-links a,body[data-theme=big-brother] .show-season-links span{color:#e2ebff}
body[data-theme=big-brother] .show-season-links{border-color:#ffffff40}
body[data-theme=big-brother] .player-social-link:not(.has-logo){background:#ffffff12;color:#fff;border-color:#ffffff55}
/* Complete Big Brother surfaces, including inherited states and fallbacks. */
body[data-theme=big-brother] ::selection{background:#254fd6;color:#fff}
body[data-theme=big-brother] .portrait,body[data-theme=big-brother] .player-directory-portrait{background:linear-gradient(145deg,#274ecd,#102d74)}
body[data-theme=big-brother] .portrait:before,body[data-theme=big-brother] .portrait:after{border-color:#ffffff26}
body[data-theme=big-brother] .portrait span,body[data-theme=big-brother] .portrait small{color:#fff}
body[data-theme=big-brother] .player-directory-portrait:after{background:linear-gradient(transparent,#102d7470)}
body[data-theme=big-brother] .player-directory-name{background:linear-gradient(transparent,#102d74c9 45%,#102d74f2)}
body[data-theme=big-brother] .player-directory-season{background:#102d74ed;border-color:#ffffff55;color:#fff}
body[data-theme=big-brother] .avatar{background:var(--soft);color:var(--ink)}
body[data-theme=big-brother] .browse-image,body[data-theme=big-brother] .season-gallery-art{background:radial-gradient(ellipse at center,#e6efff,#b8cff5);color:#18263f}
body[data-theme=big-brother] .show-intro{background:var(--surface);border-color:var(--line)}
body[data-theme=big-brother] .table-filters input,body[data-theme=big-brother] .table-filters select{background:var(--surface-2);color:var(--ink);border-color:var(--line)}
body[data-theme=big-brother] .browse-filters button{background:#315cbd;color:#fff}
body[data-theme=big-brother] .browse-filters button:hover{background:#193ba8;color:#fff}
body[data-theme=big-brother] .import-button:hover{background:var(--soft);color:var(--accent)}
body[data-theme=big-brother] .player-social-link.has-logo{background:#fff;border-color:var(--line)}
body[data-theme=big-brother] .player-social-link.has-logo:hover{background:var(--surface-2)}
body[data-theme=big-brother] .player-social-link:not(.has-logo):hover{background:#ffffff26;color:#fff}
body[data-theme=big-brother] #toast{background:#102d74;color:#fff;border-color:#567bdf}
body[data-theme=big-brother] .notice[data-state=error]{background:#fff0ea;color:#8c351b}
body[data-theme=big-brother] .challenge-directory-row:hover,body[data-theme=big-brother] .challenge-directory-row:focus-visible{background:var(--surface-2)}
body[data-theme=big-brother] .season-votes-table tbody tr:hover th:first-child{background:var(--soft)}
body[data-theme=big-brother] .season-votes-table tbody tr>td.season-vote-out,
body[data-theme=big-brother] .season-votes-table tbody tr:nth-child(even)>td.season-vote-out,
body[data-theme=big-brother] .season-votes-table tbody tr:hover>td.season-vote-out{background:#090c12;color:#fff;border-color:#343434}
body[data-theme=big-brother] .season-votes-table tbody tr>td.season-vote-out a{color:#fff}
/* Prepared identities for future show collections; visibility stays data-driven. */
body[data-theme=amazing-race] .season-banner{border-left:8px solid var(--gold);border-radius:0;background:linear-gradient(110deg,#242016,#121213)}
body[data-theme=amazing-race] .season-banner h1{font-weight:800;font-style:italic;letter-spacing:-2px}
body[data-theme=amazing-race] .season-gallery-card{border-bottom:5px solid var(--gold)}
body[data-theme=outlast] .season-banner{border-top:2px solid #c9d59b;background:linear-gradient(120deg,#293c32,#172321)}
body[data-theme=outlast] .season-banner h1{text-transform:uppercase;letter-spacing:2px;font-weight:700}
body[data-theme=outlast] .panel{border-left:3px solid #788b66}
@media(max-width:700px){body[data-theme] .collection-context{gap:12px;font-size:10px;margin-bottom:18px}body[data-theme] .collection-context>div{width:100%;margin-left:0;gap:24px}body[data-theme=vault] .vault-home-intro{padding:30px 24px;border-radius:10px}body[data-theme=vault] .vault-home-title h1{font-size:52px;letter-spacing:-2px}body[data-theme] .sidebar{border-bottom-color:#343e53}body[data-theme=big-brother] .season-banner h1{font-size:38px}}
@media(prefers-reduced-motion:reduce){body[data-theme] *{scroll-behavior:auto}}

/* Compact player profile statistic blocks. */
body[data-theme] .player-hero .player-header-stats{grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:6px;margin-top:16px;padding-top:10px;align-items:stretch}
body[data-theme] .player-hero .player-header-stats .stat{padding:8px 10px;border-radius:5px;min-width:0;background:var(--surface);box-shadow:none}
body[data-theme] .player-hero .player-header-stats .stat-value{font-size:22px;line-height:1.1}
body[data-theme] .player-hero .player-header-stats .stat-label{font-size:9px;line-height:1.35;letter-spacing:.1px;margin-top:4px}
@media(max-width:700px){body[data-theme] .player-hero .player-header-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}body[data-theme] .player-hero .player-header-stats .stat{padding:7px 8px}body[data-theme] .player-hero .player-header-stats .stat-value{font-size:20px}}

/* Dense birthday rows and fluid month columns. */
body[data-theme] .birthday-months{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}
body[data-theme] .birthday-month{padding:18px 16px;margin-bottom:0}
body[data-theme] .birthday-month h2{font-size:23px}
body[data-theme] .birthday-table th{padding:8px 6px;letter-spacing:.8px}
body[data-theme] .birthday-table td{padding:5px 6px;line-height:1.3;font-size:13px}
body[data-theme] .birthday-day{width:30px}
body[data-theme] .birthday-nickname{margin-top:1px;font-size:11px;line-height:1.2}
@media(max-width:600px){body[data-theme] .birthday-months{grid-template-columns:1fr;gap:12px}body[data-theme] .birthday-month{padding:16px 12px}}

/* Compact hometown tables and fluid location columns. */
body[data-theme] .hometown-groups{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;align-items:start}
body[data-theme] .hometown-state{padding:18px 16px;margin-bottom:0;min-width:0}
body[data-theme] .hometown-state h2{font-size:23px}
body[data-theme] .hometown-table th{padding:8px 6px;font-size:10px;letter-spacing:.8px}
body[data-theme] .hometown-table td{padding:5px 6px;line-height:1.3;font-size:13px;overflow-wrap:anywhere}
@media(max-width:600px){body[data-theme] .hometown-groups{grid-template-columns:1fr;gap:12px}body[data-theme] .hometown-state{padding:16px 12px}}

/* Match the numeric logo overlay used by season and episode headers. */
.season-gallery-art .season-gallery-number,body[data-theme] .season-gallery-art .season-gallery-number{top:auto;bottom:10px;left:12px;z-index:2;padding:0 4px;border:0;color:#fff;font-size:30px;font-weight:800;line-height:1;letter-spacing:-1px;text-shadow:0 2px 5px rgba(0,0,0,.85),0 0 2px rgba(0,0,0,.7)}
@media(max-width:600px){.season-gallery-art .season-gallery-number,body[data-theme] .season-gallery-art .season-gallery-number{bottom:8px;left:8px;font-size:26px}}

.cast-player-identity{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}.returning-player-badge{display:inline-block;padding:3px 7px;border:1px solid var(--accent,#be975f);border-radius:4px;color:var(--accent,#be975f);font-size:10px;font-weight:700;line-height:1.25;white-space:nowrap}

.season-heading{width:fit-content;max-width:100%}.season-hero-number{position:absolute;bottom:0;left:4px;z-index:2;padding:0 4px;color:#fff;font-size:36px;font-weight:800;line-height:1;letter-spacing:-1px;text-shadow:0 2px 5px rgba(0,0,0,.85),0 0 2px rgba(0,0,0,.7)}
@media(max-width:700px){.season-hero-number{font-size:30px}}

.event-person-nickname{display:block;margin-top:4px;color:#fff;font-size:13px;font-weight:600;line-height:1.3;text-shadow:0 1px 4px #000}

.season-navigation{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}.season-navigation-button{display:flex;flex-direction:column;gap:4px;min-width:150px;padding:11px 15px;border:1px solid var(--accent,#be975f);border-radius:6px;color:var(--accent,#be975f);font-size:12px;font-weight:700;line-height:1.4}.season-navigation-button span{font-size:10px;font-weight:400;color:inherit}.season-navigation-button:hover{background:var(--surface-2,#263c28)}.season-navigation-button.is-disabled{opacity:.35;cursor:default}.season-navigation-button.is-disabled:hover{background:transparent}
@media(max-width:500px){.season-navigation{gap:8px}.season-navigation-button{flex:1;min-width:0;padding:10px;font-size:11px}}

/* Season voting destinations and elimination outcomes. */
.season-vote-outcome+.season-vote-outcome{margin-top:8px}
.season-vote-outcome-label{display:block;margin-top:4px;font-size:11px;line-height:1.3;font-weight:700;white-space:normal}
.outcome-redemption,.outcome-edge,.outcome-comeback{color:var(--accent)}
body[data-theme] .season-votes-table tbody tr td.season-vote-away{background:color-mix(in srgb,var(--accent) 16%,var(--soft));color:var(--ink);font-size:11px;font-weight:700;white-space:normal}

/* The Traitors: logo-matched dark teal and candlelight gold. */
body[data-theme=traitors]{--paper:#0c3f54;--white:#10394a;--ink:#f4efe3;--muted:#b6cdd3;--line:#426f7e;--gold:#e3c17b;--soft:#174d60;--surface:#10394a;--surface-2:#174d60;--accent:#e3c17b;--radius:8px;background:radial-gradient(ellipse at 85% 0,#16566a 0,transparent 48%),var(--paper)}
body[data-theme=traitors] .season-banner,body[data-theme=traitors] .player-hero{background:linear-gradient(115deg,#0c3f54,#16566a);border:1px solid var(--line);border-left:4px solid var(--gold)}
body[data-theme=traitors] .browse-image{background:radial-gradient(ellipse,#f8f1dc,#e4dec9);color:#243429}
body[data-theme=traitors] .season-gallery-art{background:#ebe5d3}
body[data-theme=traitors] .season-gallery-art .browse-image{background:radial-gradient(ellipse at center,#fffaf0,#e6dfc9);color:#243429}
body[data-theme=traitors] .season-gallery-number{color:var(--gold);border-color:var(--line)}
body[data-theme=traitors] .season-gallery-card{border-top:3px solid var(--gold)}
body[data-theme=traitors] .show-season-links a,body[data-theme=traitors] .show-season-links span{color:var(--ink)}

/* Black and gold race collection. */
body[data-theme=amazing-race] .sidebar{background:linear-gradient(180deg,#151412,#090909);border-color:#494235}
body[data-theme=amazing-race] .nav.active{background:#e5bb5c15;color:#f4d58c;border-color:#e5bb5c55}
body[data-theme=amazing-race] .nav.active span{color:var(--gold)}
body[data-theme=amazing-race] .import-button{background:var(--gold);color:#17130b;border-color:var(--gold);font-weight:700}
body[data-theme=amazing-race] .import-button:hover{background:#f4d58c;color:#17130b;border-color:#f4d58c}
body[data-theme=amazing-race] .season-gallery-card:hover{box-shadow:0 8px 24px #0005}
/* Survivor voting history explorer. */
.tribal-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0}.tribal-shortcut{display:flex;flex-direction:column;gap:8px;padding:20px!important;margin:0!important}.tribal-shortcut strong{font-size:30px;color:var(--accent);font-family:var(--heading)}.tribal-shortcut span{font-size:12px;color:var(--ink)}.tribal-shortcut:hover,.tribal-shortcut.is-selected{border-color:var(--accent);background:var(--soft)}.tribal-filters{align-items:end}.tribal-definition p{line-height:1.7}.tribal-results{display:grid;gap:18px}.tribal-card{margin:0!important}.tribal-card-heading{display:flex;justify-content:space-between;gap:16px;align-items:start}.tribal-card h2{margin:6px 0 10px}.tribal-card h2:after{display:none!important}.tribal-card .tags{margin:10px 0}.tribal-card .tag:hover{color:var(--accent);border-color:var(--accent)}.tribal-outcome{font-size:15px;line-height:1.6;color:var(--ink)}.tribal-rounds{display:grid;gap:10px;margin:18px 0}.tribal-round{padding:14px 16px;background:var(--surface-2);border-left:2px solid var(--line)}.tribal-round>strong{color:var(--accent);font-size:12px}.tribal-round>span{display:block;font-size:11px;color:var(--muted);margin-top:5px}.tribal-round p{font-size:13px;line-height:1.8;margin:8px 0 0}.tribal-cast-count{color:var(--muted);font-size:11px}.tribal-tiebreak{margin:15px 0;line-height:1.7;font-size:13px}.tribal-tiebreak summary{cursor:pointer;color:var(--accent)}.tribal-card-links{display:flex;gap:20px;flex-wrap:wrap;margin-top:18px;font-size:12px}.tribal-card-heading>.pill{white-space:nowrap}.tribal-filters input{min-width:160px}@media(max-width:700px){.tribal-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tribal-card-heading{flex-direction:column;gap:4px}.tribal-filters{display:flex;flex-direction:column;align-items:stretch}.tribal-card{padding:20px!important}}
.tribal-card-identity{display:flex;align-items:center;gap:22px;min-width:0}.tribal-season-logo{display:flex;align-items:center;justify-content:center;flex:0 0 160px;min-height:105px;border:1px solid var(--line);border-radius:6px;background:var(--surface-2);overflow:hidden;color:var(--accent);font-weight:700}.tribal-season-logo img{display:block;width:160px;height:105px;object-fit:contain}.tribal-season-logo:hover{border-color:var(--accent)}.tribal-heading-text{min-width:0}.tribal-episode-link{display:inline-block;margin:0 0 10px;font-size:20px;font-weight:700;line-height:1.35;color:var(--accent)}a.tribal-episode-link:hover{text-decoration:underline;text-underline-offset:4px}@media(max-width:700px){.tribal-card-identity{gap:14px;align-items:flex-start}.tribal-season-logo{flex-basis:95px;min-height:72px}.tribal-season-logo img{width:95px;height:72px}.tribal-episode-link{font-size:18px}.tribal-heading-text .eyebrow{letter-spacing:1px}.tribal-card-heading>.pill{margin-top:10px}}
/* Larger show collection navigation across every show. */
body[data-theme] .collection-context>div{flex-wrap:wrap;column-gap:26px;row-gap:4px}
body[data-theme] .collection-context>div>a,body[data-theme] .show-season-links>a,body[data-theme] .show-season-links>span{display:inline-flex;align-items:center;min-height:44px;padding:6px 0;font-size:18px;font-weight:600;line-height:1.4}
body[data-theme] .show-season-links{flex-wrap:wrap;column-gap:28px;row-gap:4px}
@media(max-width:700px){body[data-theme] .collection-context>div{column-gap:22px;row-gap:2px}body[data-theme] .collection-context>div>a,body[data-theme] .show-season-links>a,body[data-theme] .show-season-links>span{font-size:16px}body[data-theme] .show-season-links{column-gap:22px}}

/* Home show cards carry their own collection palette. */
body[data-page=home] .browse-card[data-show-theme=survivor]{--paper:#0c1916;--white:#142620;--ink:#f1eadc;--muted:#a9b9ad;--line:#435b3e;--gold:#ff9b42;--soft:#253b2e;--surface:#172c21;--surface-2:#263c29;--radius:8px;background:radial-gradient(ellipse at 85% 5%,#1d3527 0,transparent 38%),var(--paper);--accent:var(--gold);border-color:var(--line);border-top:3px solid var(--gold)}
body[data-page=home] .browse-card[data-show-theme=big-brother]{--paper:#0b2050;--white:#15346c;--ink:#f2f6ff;--muted:#bfceed;--line:#4164a0;--gold:#ffffff;--soft:#244b88;--green:#9be1c3;--surface:#15346c;--surface-2:#1d417c;--accent:#ffffff;--heading:'Inter',Arial,sans-serif;--radius:5px;background:radial-gradient(ellipse at 85% 0,#2857a0 0,transparent 48%),linear-gradient(135deg,#102c62,#0b2050 65%,#14346e);font-size:14px;--accent:var(--gold);border-color:var(--line);border-top:3px solid var(--gold)}
body[data-page=home] .browse-card[data-show-theme=amazing-race]{--paper:#0c0c0d;--white:#171719;--ink:#f4f0e6;--muted:#bdb7a8;--line:#494235;--gold:#e5bb5c;--soft:#2d271b;--green:#a3cf9d;--surface:#171719;--surface-2:#222224;--accent:#e5bb5c;--heading:'Inter',Arial,sans-serif;--radius:2px;background:radial-gradient(ellipse at 90% 0%,#44351b40,transparent 45%),repeating-linear-gradient(135deg,transparent 0,transparent 65px,#e5bb5c06 65px,#e5bb5c06 66px),var(--paper);--accent:var(--gold);border-color:var(--line);border-top:3px solid var(--gold)}
body[data-page=home] .browse-card[data-show-theme=traitors]{--paper:#0c3f54;--white:#10394a;--ink:#f4efe3;--muted:#b6cdd3;--line:#426f7e;--gold:#e3c17b;--soft:#174d60;--surface:#10394a;--surface-2:#174d60;--accent:#e3c17b;--radius:8px;background:radial-gradient(ellipse at 85% 0,#16566a 0,transparent 48%),var(--paper);--accent:var(--gold);border-color:var(--line);border-top:3px solid var(--gold)}
body[data-page=home] .browse-card[data-show-theme=outlast]{--paper:#131b1b;--white:#1c2928;--ink:#e7e7d4;--muted:#afbeb5;--line:#41574d;--gold:#c9d59b;--soft:#283b33;--surface:#1c2928;--surface-2:#293b34;--radius:0;background:radial-gradient(ellipse at 70% 0,#35473b,transparent 55%),var(--paper);--accent:var(--gold);border-color:var(--line);border-top:3px solid var(--gold)}
body[data-page=home] .browse-card[data-show-theme] h3,body[data-page=home] .browse-card[data-show-theme] .show-stats dd{color:var(--gold)}
body[data-page=home] .browse-card[data-show-theme] p,body[data-page=home] .browse-card[data-show-theme] .show-stats dt{color:var(--muted)}
body[data-page=home] .browse-card[data-show-theme] .tag,body[data-page=home] .browse-card[data-show-theme] .pill{background:var(--surface-2);border-color:var(--line);color:var(--gold)}
body[data-page=home] .browse-card[data-show-theme]:hover{border-color:var(--gold)}

/* Mobile browsing follow-up: keep these shared guards after the show palettes. */
@media(max-width:700px){
  body[data-theme] .search{padding:0 12px;min-height:44px;min-width:0}
  body[data-theme] .search input{min-width:0;min-height:44px;font-size:16px}
  body[data-theme] :is(.browse-filters,.table-filters,.profile-season-picker,.challenge-photo-sort) :is(input:not([type=checkbox]):not([type=radio]),select){min-height:44px;font-size:16px}
  body[data-theme] :is(.browse-filters,.table-filters) label{font-size:13px;line-height:1.5}
  body[data-theme] :is(.episode-pagination a,.browse-filters>.entity-link,.player-social-link,.race-team-members a,.race-leg-jumps a,.collection-context a,.show-season-links a){display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding:6px 8px;max-width:100%;overflow-wrap:anywhere}
  body[data-theme] .episode-pagination{align-items:center;flex-wrap:wrap;gap:8px 16px}
  body[data-theme] .season-gallery-jump button{min-width:44px;min-height:44px;height:auto;font-size:13px}
  body[data-theme] .tabs .tab{min-height:44px;font-size:14px;padding:10px 2px}
  body[data-theme] .sources-disclosure>summary{min-height:44px}
  body[data-theme] .season-votes-table tr>:first-child{width:112px;min-width:112px;max-width:112px;white-space:normal;overflow-wrap:anywhere}
  body[data-theme] .season-votes-table tr>:first-child a{display:block;max-width:92px;white-space:normal;overflow-wrap:anywhere}
}
@media(max-width:440px){
  body[data-theme] .topbar{height:auto;min-height:68px;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 18px}
  body[data-theme] .topbar .search{flex:1 1 100%;width:100%;min-width:0}
  body[data-theme] .breadcrumbs{min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:10px;line-height:1.6}
}

/* Community ratings and private rating history. */

/* Personal collections and progress-aware spoiler screens. */
#main[data-spoiler-pending]{visibility:hidden}body[data-vault-spoilers="on"]:not([data-vault-reveal="true"]) .sources-disclosure{display:none!important}.personal-item .section-head{gap:16px;flex-wrap:wrap}.personal-actions,.personal-tabs,.personal-watch-form{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.personal-tabs{margin:24px 0}.personal-tabs a{padding:12px 16px;border:1px solid var(--line);border-radius:7px;font-size:13px;color:var(--ink)}.personal-tabs a[aria-current]{background:var(--surface);border-color:var(--accent);color:var(--accent)}.personal-item button,.personal-settings button,.personal-spoiler-bar button,.personal-actions .import-button{min-height:44px;padding:10px 16px}.personal-watch-form{margin:20px 0}.personal-watch-form label,.personal-filters label{display:grid;gap:8px;font-size:13px}.personal-watch-form .panel-sub{flex-basis:100%;margin:0}.personal-item select,.personal-filters select,.personal-item textarea{background:var(--paper);color:var(--ink);padding:10px 12px;border:1px solid var(--line);border-radius:6px;max-width:100%;font:inherit}.personal-episodes summary{cursor:pointer;padding:14px 0;font-size:14px;min-height:44px;box-sizing:border-box}.personal-episodes ul{list-style:none;padding:0}.personal-episodes li{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.personal-episodes small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.personal-progress{display:inline-block;margin:0 12px 14px 0;font-size:13px}.personal-item progress,.personal-card progress{accent-color:var(--accent);width:160px;max-width:100%;height:8px}.personal-result{font-size:13px;min-height:1em;margin-bottom:0}.personal-result:empty{display:none}.personal-check{display:flex;gap:10px;align-items:center;font-size:15px}.personal-check input{width:20px;height:20px;accent-color:var(--accent)}.personal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px}.personal-card{padding:24px;border:1px solid var(--line);border-radius:10px;background:var(--surface);min-width:0;overflow-wrap:anywhere}.personal-card h2{font-size:21px;margin:10px 0 18px}.personal-card>.entity-link{display:block;margin-top:16px}.personal-card .import-button{display:inline-flex;margin:8px 0;min-height:44px;align-items:center;padding:10px 12px}.personal-ranking{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.personal-spoiler-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px;border:1px solid var(--line);background:var(--surface);border-radius:8px;margin-bottom:20px;font-size:12px}.personal-filters{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
@media(max-width:700px){.personal-grid{grid-template-columns:1fr}.personal-card{padding:18px}.personal-episodes li{align-items:flex-start;flex-direction:column}.personal-watch-form{align-items:flex-start;flex-direction:column}.personal-spoiler-bar{align-items:flex-start;flex-direction:column}.personal-item select,.personal-filters select{font-size:16px}.personal-tabs a{min-height:44px;box-sizing:border-box}.personal-check{align-items:flex-start;line-height:1.6}.personal-check input{flex-shrink:0}}
@media(min-width:701px){body[data-theme] .sidebar{overflow-y:auto;overscroll-behavior:contain}body[data-theme] .sidebar>*{flex-shrink:0}}
.watch-order-toolbar{display:flex;gap:16px;flex-wrap:wrap;margin:20px 0}.watch-order-toolbar label{display:grid;gap:8px;font-size:13px}.watch-order-toolbar input,.watch-order-toolbar select{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:10px 12px;min-height:44px;font:inherit}.watch-order-list{list-style:none;padding:0;margin:18px 0}.watch-order-list li{display:flex;gap:14px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.watch-order-list .watch-drag{cursor:grab;background:var(--surface);border:1px solid var(--line);color:var(--ink);min-width:44px;min-height:44px;border-radius:6px;font-size:24px;touch-action:auto}.watch-position{font-size:16px;color:var(--muted);min-width:28px;font-variant-numeric:tabular-nums}.watch-season{flex:1;min-width:0;overflow-wrap:anywhere}.watch-season p{font-size:11px;color:var(--muted);margin:0 0 7px}.watch-season a{font-size:16px}.watch-row-actions{display:flex;gap:6px;flex-wrap:wrap}.watch-row-actions button{min-width:44px;min-height:44px;padding:8px 12px}.watch-dragging{opacity:.5}.watch-empty{color:var(--muted);font-size:14px}.watch-excluded summary{cursor:pointer;min-height:44px;padding:12px 0;box-sizing:border-box}.watch-order-editor>.personal-actions button{min-height:44px;padding:10px 14px}.watch-order-editor [role=status]{font-size:13px;line-height:1.7;min-height:1.7em}.watch-order-editor button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}@media(max-width:700px){.watch-order-list li{flex-wrap:wrap;gap:10px}.watch-row-actions{width:100%;padding-left:54px;box-sizing:border-box}.watch-order-toolbar label{width:100%}.watch-order-toolbar input,.watch-order-toolbar select{font-size:16px;width:100%;box-sizing:border-box}.watch-season{min-width:120px}}
.watch-status-label{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:12px;color:var(--muted);flex-wrap:wrap}.watch-status-label select{min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink);font:inherit}.watch-completed summary{cursor:pointer;min-height:44px;padding:12px 0;box-sizing:border-box}.personal-next{padding:22px;margin:20px 0;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.personal-next h2{margin:8px 0 16px}.personal-next>.entity-link{display:block;margin-top:14px}.personal-next .import-button{display:inline-flex;align-items:center;min-height:44px;padding:10px 14px}@media(max-width:700px){.watch-status-label select{font-size:16px}}

/* Compact desktop rail: retain all links and allow overflow on very short screens. */
@media(min-width:701px){
  body[data-theme] .sidebar{padding-top:22px;padding-bottom:18px}
  .sidebar .rail-label{margin:26px 12px 10px}
  .sidebar .nav{min-height:38px;padding:8px 12px;margin:2px 0;line-height:20px}
  .sidebar .rating-account{margin:6px 12px 0}
  .sidebar .rail-note{padding:14px 10px 12px}
  .sidebar .rail-note p{font-size:20px;line-height:1.25;margin-top:8px}
  .sidebar .vault-tools{margin-top:4px}
  .sidebar .vault-tools summary{padding:8px 10px}
  .sidebar .rail-footer{margin-top:8px}
}
@media(min-width:701px) and (max-height:700px){
  body[data-theme] .sidebar{padding-top:14px;padding-bottom:12px}
  .sidebar .rail-label{margin-top:18px;margin-bottom:6px}
  .sidebar .nav{min-height:34px;padding-top:6px;padding-bottom:6px;margin:1px 0}
  .sidebar .rail-note{padding-top:10px;padding-bottom:8px}
  .sidebar .rail-note p{font-size:18px;line-height:1.2;margin-top:6px}
}

/* Smaller, consistent portraits in the player directory. */
.player-directory-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:16px}
.player-directory-grid .player-directory-card .browse-image{height:210px}
.player-directory-grid .player-directory-card .browse-image.team-photo{padding-bottom:58px}
.player-directory-grid .player-directory-name{padding:32px 9px 10px}
.player-directory-grid .player-directory-name h3{font-size:18px;line-height:1.2}
.player-directory-grid .player-directory-name .player-directory-nickname{font-size:11px;margin-top:3px}
.player-directory-grid .player-directory-info{padding:10px 11px}
.player-directory-grid .player-all-seasons strong{font-size:9px;letter-spacing:.5px}
.player-directory-grid .player-all-seasons span{font-size:10px}
.player-directory-grid .rating-compact{font-size:11px;margin-top:6px}
@media(max-width:580px){
  .player-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .player-directory-grid .player-directory-card .browse-image{height:190px}
  .player-directory-grid .player-directory-name h3{font-size:17px}
}

/* Compact mobile watch queue: keep controls grouped beneath each season. */
@media(max-width:700px){
 .watch-order-list{margin:10px 0}
 .watch-order-list li{display:grid;grid-template-columns:28px 22px minmax(0,1fr);align-items:start;gap:4px 6px;padding:8px 0}
 .watch-order-list .watch-drag{grid-column:1;grid-row:1;min-width:28px;min-height:32px;width:28px;height:32px;padding:0;font-size:20px}
 .watch-order-list .watch-position{grid-column:2;grid-row:1;min-width:0;padding-top:6px;font-size:12px}
 .watch-order-list .watch-season{grid-column:3;grid-row:1;min-width:0}
 .watch-order-list .watch-season p{font-size:10px;line-height:1.3;margin:0 0 2px}
 .watch-order-list .watch-season>a{font-size:14px;line-height:1.3}
 .watch-order-list .watch-status-label{margin-top:4px;gap:0}
 .watch-order-list .watch-status-label>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 .watch-order-list .watch-status-label select{min-height:32px;height:32px;max-width:100%;padding:3px 7px;font-size:16px;line-height:1.2}
 .watch-order-list .watch-row-actions{grid-column:3;grid-row:2;width:auto;padding:0;gap:6px;flex-wrap:wrap}
 .watch-order-list .watch-row-actions button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-width:32px;min-height:30px;height:30px;margin:0;padding:3px 8px;font-size:12px;line-height:1;box-sizing:border-box}
 .watch-order-list li[data-watch-excluded]{grid-template-columns:minmax(0,1fr) auto;align-items:center}
 .watch-order-list li[data-watch-excluded] .watch-season{grid-column:1;grid-row:1}
 .watch-order-list li[data-watch-excluded] .watch-row-actions{grid-column:2;grid-row:1}
 .watch-order-list .watch-empty{display:block}
}

.personal-favorite-control{display:flex;flex-direction:column;align-items:flex-start;gap:6px;max-width:100%}.personal-favorite-control .personal-favorite-notice{font-size:11px;line-height:1.4;color:var(--muted);margin:0;max-width:230px}

/* Keep inline favorites compact inside panels and retain the saved color. */
.personal-item .favorite-star{min-height:24px;padding:0;border:0;background:transparent;box-shadow:none}body[data-theme] .favorite-star[aria-pressed="true"]{color:#ffd36c}



/* Ratings, favorite controls and optional watch tools share one compact card. */

body[data-page=home] .browse-card[data-show-theme=traitors] .browse-image{background:radial-gradient(ellipse,#f8f1dc,#e4dec9);color:#243429}

/* A single compact row per watch-order season, including its controls. */
.watch-order-list{overflow-x:auto}
.watch-order-list li[data-watch-id]{display:grid;grid-template-columns:32px 26px minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 0;min-width:700px}
.watch-order-list li[data-watch-excluded]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 0;min-width:700px}
.watch-order-list .watch-season{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(130px,1.2fr) auto;align-items:center;gap:12px;grid-column:auto;grid-row:auto;min-width:0}
.watch-order-list .watch-season p{margin:0;font-size:11px;line-height:1.4}
.watch-order-list .watch-season>a{font-size:14px;line-height:1.4;min-width:0}
.watch-order-list .watch-status-label{margin:0;flex-wrap:nowrap;gap:0}
.watch-order-list .watch-status-label>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.watch-order-list .watch-status-label select{height:40px;min-height:40px;max-width:150px;padding:6px 8px;font-size:13px}
.watch-order-list .watch-drag{grid-column:auto;grid-row:auto;min-width:32px;width:32px;height:40px;min-height:40px;padding:0;font-size:20px}
.watch-order-list .watch-position{grid-column:auto;grid-row:auto;padding:0;min-width:0;font-size:13px}
.watch-order-list .watch-row-actions{grid-column:auto!important;grid-row:auto!important;width:auto;padding:0;flex-wrap:nowrap;gap:5px}
.watch-order-list .watch-row-actions button{min-width:36px;width:auto;min-height:40px;height:40px;margin:0;padding:6px 9px;font-size:12px}
.watch-order-list li[data-watch-excluded] .watch-season{grid-column:1;grid-row:1}
.watch-order-list li[data-watch-excluded] .watch-row-actions{grid-column:2!important;grid-row:1!important}
@media(max-width:700px){
 .watch-order-list .watch-status-label select{font-size:16px}
 .watch-order-list .watch-season{gap:8px}
}
