:root{color-scheme:dark;--bg:#101216;--surface:#181b21;--surface-raised:#21252d;--border:#30353f;--text:#f7f8fa;--muted:#a4adbc;--red:#f02b34;--red-dark:#cd151e;--radius:12px;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.5;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}button{color:inherit}input,select{color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:7px}input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #ff6c73;outline-offset:4px}button{border:0}button:hover{filter:brightness(1.08)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:10px;left:10px;padding:12px;z-index:100;background:var(--red);transform:translateY(-160%)}.skip-link:focus{transform:translateY(0)}.site-header{min-height:98px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:28px;padding:20px max(28px,calc((100vw - 1280px)/2));background:#101216}.brand{display:flex;align-items:center;gap:16px;flex-shrink:0}.brand img{width:102px;height:auto;display:block}.brand>span{font-size:.85rem;line-height:1.3;font-weight:800;letter-spacing:.13em}.brand-light{display:block;font-weight:400;letter-spacing:.08em;color:#d3d8e1}.main-nav{display:flex;gap:30px;align-items:center}.main-nav a{font-size:.95rem;color:var(--muted);position:relative;padding:12px 0}.main-nav a[aria-current=page]{color:var(--text)}.main-nav a[aria-current=page]:after{content:"";position:absolute;height:3px;background:var(--red);bottom:0;left:0;right:0;border-radius:3px}.profile-button{display:flex;align-items:center;gap:11px;font-size:.9rem;background:var(--surface);border:1px solid var(--border);padding:8px 13px;border-radius:8px;max-width:260px}.profile-button>span:nth-child(2){max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatar{display:inline-grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:50%;color:white;font-weight:700;background:#b32632}.page{max-width:1280px;margin:auto;padding:38px 28px 0}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:28px}.page-heading>p{margin:0 0 5px;font-size:.9rem}.eyebrow{font-size:.75rem;letter-spacing:.14em;line-height:1.4;font-weight:700;color:var(--muted);margin:0 0 10px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,4vw,2.8rem);letter-spacing:-.04em;line-height:1.15;margin-bottom:0;font-weight:750}.red-dot{color:var(--red)}h2{font-size:1.5rem;line-height:1.25;letter-spacing:-.02em}h3{font-size:1.05rem}.muted{color:var(--muted)}.overview{display:grid;grid-template-columns:minmax(0,1fr) 345px;gap:20px;margin-bottom:29px}.next-card{border:1px solid var(--border);border-left:4px solid var(--red);border-radius:var(--radius);padding:26px 30px;position:relative;overflow:hidden;background:linear-gradient(115deg,#20242c 0%,#181b21 70%);min-height:220px}.next-card:after{content:"";position:absolute;right:-40px;top:0;bottom:0;width:200px;transform:skewX(-24deg);border-left:28px solid #ffffff04;border-right:48px solid #ffffff03;pointer-events:none}.next-card>*{position:relative;z-index:1}.card-topline{display:flex;justify-content:space-between;gap:18px}.card-topline .muted{font-size:.8rem}.next-card h2{font-size:clamp(1.6rem,3vw,2rem);margin:10px 0 8px;max-width:600px}.entry-meta{color:var(--muted);font-size:.875rem;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.entry-meta .divider{color:#646d7d}.next-bottom{display:flex;align-items:center;gap:15px;margin-top:23px;flex-wrap:wrap}.next-bottom .muted{font-size:.875rem}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 18px;border-radius:7px;font-size:.9rem;font-weight:650;line-height:1.5;min-height:44px}.primary{background:var(--red);color:white}.secondary{background:var(--surface-raised);border:1px solid var(--border)}.text-button{background:none;padding:7px 0;font-size:.875rem;color:#d5dbe5;text-decoration:underline;text-underline-offset:4px}.progress-card{display:flex;align-items:center;gap:22px;border:1px solid var(--border);border-radius:var(--radius);padding:24px;background:var(--surface);position:relative}.progress-ring{--progress:0%;flex-shrink:0;width:102px;height:102px;border-radius:50%;background:conic-gradient(var(--red) var(--progress),#333944 0);display:grid;place-items:center;position:relative}.progress-ring:before{content:"";position:absolute;inset:7px;background:var(--surface);border-radius:50%}.progress-ring>span{position:relative;line-height:1;font-size:1.9rem;font-weight:750;letter-spacing:-.04em}.progress-ring>span>span{font-size:.9rem;letter-spacing:0;margin-left:2px;color:var(--muted)}.progress-copy p{margin-bottom:7px}.progress-copy strong{font-size:1.4rem}.progress-copy .muted{font-size:.875rem}.progress-copy .eyebrow{font-size:.75rem}.progress-card progress{position:absolute;opacity:0;width:1px;height:1px}.list-controls{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.order-toggle{display:inline-flex;border:1px solid var(--border);border-radius:8px;padding:4px;background:#171a20;gap:3px}.order-toggle button{background:transparent;color:var(--muted);padding:9px 20px;font-size:.9rem;font-weight:600;border-radius:5px}.order-toggle button[aria-pressed=true]{background:#323843;color:white;box-shadow:0 1px 3px #0004}.hide-watched{display:flex;gap:9px;align-items:center;font-size:.9rem;color:#d5dbe5;cursor:pointer}.hide-watched input{width:18px;height:18px;accent-color:var(--red)}.filters{display:grid;grid-template-columns:1fr 230px 190px;gap:12px}.search-field{display:flex;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:0 17px}.search-field svg{color:var(--muted);flex-shrink:0}.search-field input{border:0;width:100%;height:58px;background:transparent;padding:0;font-size:.95rem;min-width:0}.search-field:focus-within{border-color:#ff6c73}.search-field input:focus-visible{outline-offset:0;outline:0}input::placeholder{color:#9aa4b4}.select-field{display:flex;flex-direction:column;border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:7px 14px}.select-field>span{font-size:.75rem;color:var(--muted);line-height:1.3}.select-field select{padding:1px 0;border:0;min-width:0;width:100%;font-size:.9rem;background:transparent}.list-summary{display:flex;gap:20px;align-items:center;min-height:59px;font-size:.875rem}.list-summary p{margin:0}.list-summary>.muted{margin-left:auto;font-size:.8rem}.list-header{display:grid;grid-template-columns:72px minmax(0,1fr) 145px 86px;gap:10px;padding:10px 20px;color:var(--muted);font-size:.75rem;letter-spacing:.09em;border-bottom:1px solid var(--border)}.list-header span:last-child{text-align:right}.watch-list{padding:0;margin:0;list-style:none}.watch-row{display:grid;grid-template-columns:72px minmax(0,1fr) 145px 86px;gap:10px;align-items:center;padding:18px 20px;min-height:92px;border-bottom:1px solid #292e37;transition:background .16s}.watch-row:hover{background:#ffffff03}.watch-row.is-watched .entry-title{color:#9ca6b6}.order-number{font-size:.95rem;font-variant-numeric:tabular-nums;color:#8f9bad;letter-spacing:.04em}.entry-title{font-size:1rem;font-weight:650;line-height:1.4;margin-bottom:5px}.priority-pill{display:inline-flex;border-radius:4px;background:#323841;color:#e2e6ec;font-size:.75rem;padding:4px 9px;letter-spacing:.04em;width:fit-content;text-transform:uppercase;font-weight:650}.priority-pill.connected{color:#b6d7ff;background:#21344d}.priority-pill.bonus{color:#f6d88b;background:#41371e}.priority-pill.multiverse{color:#d8beff;background:#36294b}.watch-toggle{justify-self:end;display:flex;align-items:center;justify-content:center;width:44px;height:44px;cursor:pointer}.watch-toggle input{appearance:none;width:25px;height:25px;border:2px solid #5b6577;background:transparent;cursor:pointer;border-radius:5px;margin:0;display:grid;place-items:center}.watch-toggle input:checked{background:var(--red);border-color:var(--red)}.watch-toggle input:checked:after{content:"";width:10px;height:6px;border-left:2px solid white;border-bottom:2px solid white;transform:rotate(-45deg) translateY(-1px)}.entry-notes{margin-top:8px;font-size:.875rem;color:var(--muted)}.entry-notes summary{cursor:pointer;color:#c1c9d6;font-size:.8rem;width:fit-content}.entry-notes p{margin:8px 0 0;max-width:720px;line-height:1.6}.best-fit{font-size:.75rem;color:#adb8ca;display:inline-block}.empty-state{text-align:center;padding:65px 20px;border:1px dashed var(--border);border-radius:var(--radius);margin-top:20px}.empty-state p{color:var(--muted)}.section-intro{color:var(--muted);max-width:800px;margin-bottom:30px}.upcoming-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.upcoming-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:25px;display:flex;flex-direction:column;gap:12px}.upcoming-card h2{font-size:1.2rem;margin:0}.upcoming-card p{font-size:.875rem;color:var(--muted);margin:0}.upcoming-date{font-size:.95rem;font-weight:650;color:#f6f7fa}.upcoming-card a{font-size:.875rem;text-decoration:underline;text-underline-offset:4px;align-self:flex-start}.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.guide-card{padding:28px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.guide-card h2{margin-bottom:20px}.guide-card h3{margin:20px 0 7px}.guide-card p,.guide-card dd{font-size:.95rem;color:#bec6d2;line-height:1.7}.guide-card p:last-child{margin-bottom:0}.priority-guide{margin:0}.priority-guide dt{font-size:.95rem;font-weight:700;margin-top:15px}.priority-guide dt:first-child{margin-top:0}.priority-guide dd{margin:4px 0 0}.sources-card{grid-column:1/-1}.source-list{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px}.source-list a{color:#f8b5b8;text-decoration:underline;text-underline-offset:4px;font-size:.9rem}.text-link{color:#f8b5b8;text-decoration:underline;text-underline-offset:4px;font-size:.9rem}.site-footer{display:flex;justify-content:space-between;gap:20px;padding:30px 0;margin-top:42px;border-top:1px solid var(--border);color:#909aa9;font-size:.75rem}.footer-separator{margin:0 10px;color:var(--red)}dialog{background:var(--surface);color:var(--text);border:1px solid #414957;border-radius:14px;width:min(570px,calc(100% - 32px));max-height:calc(100dvh - 48px);padding:30px;overflow-y:auto;box-shadow:0 25px 100px #0009}dialog::backdrop{background:#080a0ece;backdrop-filter:blur(5px)}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.dialog-heading h2{font-size:1.7rem;margin-bottom:15px}.icon-button{width:36px;height:36px;border-radius:6px;font-size:1.7rem;line-height:1;background:var(--surface-raised);color:var(--muted)}.profile-list{margin:22px 0;display:flex;flex-direction:column;gap:9px}.profile-item{border:1px solid var(--border);padding:9px 12px;border-radius:8px;display:flex;align-items:center;gap:10px}.profile-item.active{border-color:#e53d45}.profile-select{background:transparent;flex:1;min-width:0;text-align:left;display:flex;gap:11px;align-items:center}.profile-select .profile-info{min-width:0;display:flex;flex-direction:column}.profile-select strong{font-size:.95rem;overflow-wrap:anywhere}.profile-select small{font-size:.75rem;color:var(--muted)}.profile-item>.text-button{font-size:.75rem;flex-shrink:0}.profile-form-row{display:flex;gap:10px;margin-top:9px}.profile-form-row input{padding:10px 12px;min-width:0;flex:1}.profile-form-row .button{flex-shrink:0}.color-picker{border:0;padding:0;margin:18px 0}.color-picker legend{font-size:.875rem;color:var(--muted);margin-bottom:8px}.color-picker>div{display:flex;gap:9px;flex-wrap:wrap}.color-choice{width:31px;height:31px;position:relative;cursor:pointer}.color-choice input{appearance:none;position:absolute;inset:0;border-radius:50%;background:var(--swatch);border:3px solid transparent;width:31px;height:31px;margin:0;cursor:pointer}.color-choice input:checked{outline:2px solid white;outline-offset:3px}.backup-actions{display:flex;gap:10px;border-top:1px solid var(--border);padding-top:20px;margin-top:22px;flex-wrap:wrap}.small{font-size:.8rem;margin:12px 0 0}.form-error{color:#ff9ca2;font-size:.875rem;margin:12px 0}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:10;background:#f4f6f9;color:#111318;box-shadow:0 8px 40px #0008;padding:13px 22px;border-radius:9px;font-size:.9rem;max-width:calc(100% - 30px);width:max-content;overflow-wrap:anywhere}.warning{background:#3b2d19;border:1px solid #997432;color:#ffe2a5;border-radius:8px;padding:15px;margin-bottom:24px;font-size:.9rem}.audit-list{padding-left:20px;font-size:.9rem;color:#bec6d2;line-height:1.65}.audit-list li+li{margin-top:9px}

@media(min-width:1600px){.site-header{padding-left:calc((100vw - 1224px)/2);padding-right:calc((100vw - 1224px)/2)}}

@media(max-width:1000px){.site-header{gap:20px;padding:18px 24px;flex-wrap:wrap}.main-nav{gap:20px;order:3;width:100%;justify-content:center}.overview{grid-template-columns:minmax(0,1fr) 300px}.progress-card{padding:20px;gap:15px}.progress-ring{width:85px;height:85px}.filters{grid-template-columns:minmax(0,1fr) 200px 150px}.page-heading{align-items:flex-start}.page-heading>p{max-width:220px}.list-header,.watch-row{grid-template-columns:55px minmax(0,1fr) 130px 65px}.guide-card{padding:23px}.site-footer{flex-direction:column;gap:8px}}

@media(max-width:700px){.site-header{padding:16px 18px;gap:15px}.brand img{width:88px}.brand{gap:10px}.brand>span{font-size:.75rem}.profile-button{padding:6px 9px;max-width:175px;gap:7px}.profile-button>span:nth-child(2){max-width:97px;font-size:.8rem}.main-nav{justify-content:flex-start;gap:25px;overflow-x:auto}.main-nav a{white-space:nowrap;font-size:.875rem}.page{padding:28px 18px 0}.page-heading{flex-direction:column;gap:10px;margin-bottom:23px}.page-heading>p{max-width:none;font-size:.875rem}.overview{grid-template-columns:1fr;gap:14px}.next-card{padding:23px;min-height:215px}.progress-card{min-height:120px;gap:21px}.progress-ring{width:76px;height:76px}.progress-copy{flex:1}.progress-copy p{margin-bottom:3px}.progress-copy .eyebrow{margin-bottom:4px}.progress-copy strong{font-size:1.2rem}.list-controls{flex-wrap:wrap;gap:13px}.order-toggle button{padding:9px 15px;font-size:.85rem}.hide-watched{font-size:.85rem}.filters{grid-template-columns:1fr 1fr}.search-field{grid-column:1/-1}.search-field input{height:51px}.select-field{padding:8px 12px}.list-summary{gap:12px;flex-wrap:wrap;padding:14px 0;min-height:65px}.list-summary>.muted{font-size:.75rem;margin-left:0;width:100%}.list-header{grid-template-columns:36px minmax(0,1fr) 48px;padding:9px 0;font-size:.7rem}.list-header span:nth-child(3){display:none}.watch-row{grid-template-columns:36px minmax(0,1fr) 44px;padding:17px 0;gap:10px}.watch-row>.priority-pill{grid-column:2;grid-row:2;margin-top:-5px;font-size:.7rem;padding:3px 7px}.watch-row>.watch-toggle{grid-column:3;grid-row:1}.entry-title{font-size:.95rem}.entry-meta{font-size:.8rem;gap:7px}.order-number{font-size:.8rem;align-self:start;margin-top:5px}.watch-toggle input{width:24px;height:24px}.upcoming-list,.guide-grid{grid-template-columns:1fr}.sources-card{grid-column:auto}.source-list{grid-template-columns:1fr}.site-footer{font-size:.7rem;line-height:1.7}dialog{padding:23px}.profile-form-row{flex-direction:column}.profile-item{padding:9px;flex-wrap:wrap;gap:9px}.profile-select{flex-basis:60%}.profile-item>.text-button{font-size:.75rem}.backup-actions .button{flex:1}.card-topline .muted{font-size:.75rem}}

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

.time-card{display:flex;align-items:center;gap:28px;justify-content:space-between;padding:18px 23px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);margin:-10px 0 27px}.time-card .eyebrow{margin-bottom:4px}.time-total{display:flex;gap:6px;align-items:baseline;white-space:nowrap}.time-total strong{font-size:1.7rem;font-variant-numeric:tabular-nums;line-height:1.2;letter-spacing:-.02em}.time-total>span{color:var(--muted);font-size:.875rem;margin-right:10px}.time-card>p{font-size:.8rem;margin:0;flex:1;max-width:480px}.time-card .button{flex-shrink:0}#omdb-key,#omdb-scope{display:block;width:100%;padding:11px 13px;margin:8px 0 0}#omdb-scope{margin-bottom:12px}#omdb-progress{border-top:1px solid var(--border);margin-top:20px;padding-top:18px;font-size:.875rem;color:var(--muted)}#omdb-progress progress{width:100%;accent-color:var(--red);height:7px}#omdb-status{margin:12px 0 0}@media(max-width:700px){.time-card{flex-wrap:wrap;gap:14px;padding:18px}.time-card>p{order:3;flex-basis:100%;max-width:none}.time-card .button{margin-left:auto;font-size:.8rem;padding:9px 12px}.time-total strong{font-size:1.5rem}.time-total>span{margin-right:4px}}

.episode-dropdown{margin-top:12px;border:1px solid var(--border);border-radius:8px;background:#13161c;overflow:hidden}.episode-dropdown>summary{padding:10px 12px;cursor:pointer;font-size:.85rem;font-weight:650}.episode-dropdown>summary>span{margin-left:10px;color:var(--muted);font-weight:400;font-size:.8rem}.episode-list{border-top:1px solid var(--border)}.episode-row{display:flex;align-items:center;gap:13px;padding:12px;border-bottom:1px solid #ffffff09;cursor:pointer}.episode-row:last-child{border-bottom:0}.episode-row:hover{background:#ffffff04}.episode-row input{flex-shrink:0;width:21px;height:21px;accent-color:var(--red);cursor:pointer}.episode-row>span:nth-child(2){flex:1;min-width:0}.episode-row small{display:block;color:var(--muted);font-size:.65rem;letter-spacing:.08em}.episode-row strong{font-size:.85rem;font-weight:500}.episode-runtime{font-size:.75rem;color:var(--muted);white-space:nowrap}.ratings-line{display:flex;flex-wrap:wrap;gap:13px;font-size:.75rem;color:var(--muted);margin:9px 0 0}.ratings-line strong{color:#f1d48a}.ratings-line small{font-size:.7rem}.next-poster{float:left;width:90px;height:135px;object-fit:cover;border-radius:6px;margin:12px 20px 14px 0;background:var(--surface);border:1px solid var(--border)}.next-episode{font-size:.85rem;margin:12px 0 0;color:#d9dfea}.next-bottom{clear:both}.episode-dropdown[open]>summary{background:#ffffff04}@media(max-width:700px){.episode-row{gap:9px;padding:11px 9px}.episode-runtime{font-size:.7rem;white-space:normal;max-width:70px;text-align:right}.episode-dropdown>summary>span{font-size:.7rem}.next-poster{width:70px;height:105px;margin-right:14px}}



.franchise-tabs{display:flex;gap:6px;align-items:center;width:fit-content;padding:5px;border:1px solid var(--border);border-radius:10px;background:var(--surface);margin-bottom:30px}.franchise-tabs a{padding:10px 24px;min-width:120px;text-align:center;font-size:.9rem;font-weight:700;border-radius:6px;color:var(--muted)}.franchise-tabs a[aria-current=page]{background:var(--red);color:white}.franchise-tabs a:hover{color:var(--text)}body[data-franchise=starwars]{--red:#f3ce51;--red-dark:#c9a72f}body[data-franchise=starwars] .brand img{filter:brightness(0) invert(1);width:112px}body[data-franchise=starwars] .primary,body[data-franchise=starwars] .franchise-tabs a[aria-current=page],body[data-franchise=starwars] .skip-link{color:#171915}body[data-franchise=starwars] .source-list a,body[data-franchise=starwars] .text-link{color:#eddb9b}body[data-franchise=starwars] .profile-item.active{border-color:var(--red)}body[data-franchise=starwars] .watch-toggle input:checked:after{border-color:#171915}body[data-franchise=starwars] :focus-visible{outline-color:#f3ce51}body[data-franchise=starwars] .search-field:focus-within{border-color:#f3ce51}.profile-item{flex-wrap:wrap}.profile-stats{flex-basis:100%;display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;border-top:1px solid var(--border);padding:15px 3px 7px;margin-top:4px}.profile-stats>div{display:flex;flex-direction:column;gap:3px}.profile-stats .combined-time{grid-column:1/-1}.profile-stats>div>span{font-size:.7rem;color:var(--muted);letter-spacing:.06em}.profile-stats strong{font-size:.95rem;font-variant-numeric:tabular-nums}.profile-stats .combined-time strong{font-size:1.4rem;letter-spacing:-.025em;color:var(--text)}.profile-stats>p{grid-column:1/-1;font-size:.8rem;color:#c4cbd6;margin:0}.profile-stats>p.runtime-disclaimer{font-size:.7rem;color:var(--muted);margin-top:-6px}@media(max-width:700px){.franchise-tabs{margin-bottom:25px}.franchise-tabs a{padding:9px 20px;min-width:110px}.profile-stats{gap:10px 12px}.profile-stats strong{font-size:.85rem}}

/* Native dropdown menus need explicit option colours on Windows browsers. */

select,.select-field select,select option,select optgroup{color-scheme:dark;background-color:var(--surface);color:var(--text)}

select option:checked{background-color:var(--surface-raised);color:var(--text)}

/* Each universe keeps the same controls while changing its visual setting. */

/* Fill the screen with the active theme even when the page has little content. */
body{background:var(--bg);min-height:100vh;min-height:100dvh}

.franchise-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));width:fit-content;max-width:100%}

.franchise-tabs a{min-width:0!important;padding:11px 24px!important;white-space:nowrap}

.page-heading{position:relative;overflow:hidden;padding:25px 28px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);isolation:isolate}

.page-heading:after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 85% 30%,#f02b3420,transparent 45%),radial-gradient(#ffffff0a 1px,transparent 1px);background-size:auto,9px 9px}

.library-toolbar{display:flex;gap:16px;align-items:center;justify-content:space-between;margin:22px 0 18px}

.library-toolbar p{margin:0}

.choice-grid{border:1px solid var(--border);border-radius:8px;padding:16px;margin:18px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}

.choice-grid legend{font-weight:650;padding:0 6px;font-size:.9rem}

.choice-grid label{display:flex;align-items:flex-start;gap:10px;cursor:pointer;font-size:.9rem}

.choice-grid input{width:19px;height:19px;flex-shrink:0;margin:2px 0 0;accent-color:var(--red)}

.collection-choices{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}

.collection-choices small{display:block;color:var(--muted);font-size:.75rem;margin-top:3px}

.priority-pill{max-width:100%;overflow-wrap:anywhere}

body[data-franchise=starwars]{--bg:#0b0e14;--surface:#161b24;--surface-raised:#252b36;--border:#394152;--text:#f8f4e9;--muted:#b7bfd0}

body[data-franchise=starwars] .page-heading:after{background:radial-gradient(circle at 80% 120%,#b58b2840,transparent 50%),radial-gradient(circle,#ffffff40 1px,transparent 1.5px);background-size:auto,47px 43px}

body[data-franchise=starwars] .page-heading h1{letter-spacing:.025em;text-transform:uppercase;font-size:clamp(1.8rem,3.5vw,2.6rem)}

body[data-franchise=middleearth]{--bg:#101a16;--surface:#1c2a22;--surface-raised:#2b3b2e;--border:#536044;--text:#faf2d7;--muted:#c2c9b0;--red:#dfbd71;--red-dark:#be994d;--radius:10px}

body[data-franchise=middleearth] .site-header{background:#111e18}

body[data-franchise=middleearth] h1,body[data-franchise=middleearth] h2,body[data-franchise=middleearth] .entry-title{font-family:Georgia,"Times New Roman",serif;font-weight:600;letter-spacing:0}

body[data-franchise=middleearth] .brand img{width:60px;height:60px;border-radius:50%;object-fit:cover}

body[data-franchise=middleearth] .page-heading{border-color:#8b784b;min-height:148px;background:linear-gradient(120deg,#243b2c,#14271f)}

body[data-franchise=middleearth] .page-heading:after{background:linear-gradient(145deg,transparent 65%,#52664635 65%,#52664635 78%,transparent 78%),linear-gradient(30deg,transparent 58%,#d4b36b18 58%,#d4b36b18 70%,transparent 70%);background-size:auto}

body[data-franchise=middleearth] .page-heading:before{content:"";position:absolute;z-index:-1;width:160px;height:160px;border:2px solid #dfbd7140;box-shadow:0 0 0 10px #dfbd7109,inset 0 0 0 8px #dfbd710b;border-radius:50%;right:8%;top:-32px}

body[data-franchise=middleearth] .next-card{background:linear-gradient(120deg,#2a3d2c,#1c2a22);border-left-width:3px}

body[data-franchise=middleearth] .primary,body[data-franchise=middleearth] .watch-toggle input:checked:after{color:#152019}

body[data-franchise=middleearth] .watch-toggle input:checked:after{border-color:#152019}

body[data-franchise=middleearth] .text-link,body[data-franchise=middleearth] .source-list a{color:#efd399}

body[data-franchise=middleearth] .guide-card p,body[data-franchise=middleearth] .guide-card dd{color:#d1d5bf}

body[data-franchise=middleearth] .franchise-tabs a[aria-current=page]{color:#dfbd71;border-color:#8b784b;background:#dfbd7115}

body[data-franchise=middleearth] .priority-pill{background:#344334;color:#e7d7a7}

body[data-franchise=dc]{--bg:#0c1524;--surface:#15243a;--surface-raised:#213550;--border:#3c5373;--text:#f0f6ff;--muted:#b4c6df;--red:#63afff;--red-dark:#3c91ec;--radius:6px}

body[data-franchise=dc] .site-header{background:#0c1728}

body[data-franchise=dc] .brand img{width:56px;height:56px;object-fit:contain}

body[data-franchise=dc] h1,body[data-franchise=dc] h2{font-family:"Arial Narrow",Impact,"Segoe UI",sans-serif;letter-spacing:.01em}

body[data-franchise=dc] .page-heading{border-top:3px solid #63afff;min-height:148px;background:linear-gradient(120deg,#1b3559,#122038)}

body[data-franchise=dc] .page-heading:after{background:linear-gradient(120deg,transparent 55%,#63afff15 55%,#63afff15 62%,transparent 62%),radial-gradient(#63afff25 1.5px,transparent 2px);background-size:auto,9px 9px}

body[data-franchise=dc] .next-card{background:linear-gradient(110deg,#203956,#15243a)}

body[data-franchise=dc] .primary{color:#07192a}

body[data-franchise=dc] .watch-toggle input:checked:after{border-color:#07192a}

body[data-franchise=dc] .text-link,body[data-franchise=dc] .source-list a{color:#91c7ff}

body[data-franchise=dc] .guide-card p,body[data-franchise=dc] .guide-card dd{color:#c4d2e6}

body[data-franchise=dc] .franchise-tabs a[aria-current=page]{color:#a7d3ff;border-color:#63afff;background:#63afff15}

body[data-franchise=dc] .priority-pill{background:#263e5c;color:#bbd9ff}

body[data-franchise=dc] .priority-pill.dcu{background:#2d5682;color:white}

body[data-franchise=middleearth] :focus-visible,body[data-franchise=dc] :focus-visible,body[data-franchise=starwars] :focus-visible{outline-color:var(--red)}

body[data-franchise=middleearth] .search-field:focus-within,body[data-franchise=dc] .search-field:focus-within{border-color:var(--red)}

@media(max-width:650px){.franchise-tabs{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}.franchise-tabs a{padding:10px 12px!important}.page-heading{padding:22px 18px;align-items:flex-start}.library-toolbar{flex-direction:column;align-items:flex-start;gap:10px}.library-toolbar .button{width:100%}.collection-choices{grid-template-columns:1fr}.choice-grid{gap:14px 10px;padding:12px}.choice-grid label{font-size:.85rem}body[data-franchise=middleearth] .brand img{width:46px;height:46px}body[data-franchise=dc] .brand img{width:44px;height:44px}}

/* Seven destinations, with a clear active page and room for longer names. */

.entry-overview-content{min-width:0}

.entry-overview.has-poster{display:grid;grid-template-columns:64px minmax(0,1fr);gap:16px;align-items:start;margin-bottom:10px}

.entry-poster{display:block;width:64px;height:96px;object-fit:cover;border:1px solid var(--border);border-radius:6px;background:var(--surface-raised)}

@media(max-width:650px){.entry-overview.has-poster{grid-template-columns:52px minmax(0,1fr);gap:12px}.entry-poster{width:52px;height:78px}}

.franchise-tabs{width:100%;grid-template-columns:repeat(7,minmax(0,1fr))}

.franchise-tabs a{padding:11px 12px!important}

body[data-franchise=doctorwho]{--bg:#0b1227;--surface:#151f3b;--surface-raised:#243353;--border:#455c87;--text:#f1f7ff;--muted:#b8cbea;--red:#75d7ef;--red-dark:#48b7d3;--radius:14px}

body[data-franchise=doctorwho] .site-header{background:#0c1630}

body[data-franchise=doctorwho] .brand img{width:82px;height:66px;object-fit:cover;filter:brightness(1.15) drop-shadow(0 0 8px #6baaff35)}

body[data-franchise=doctorwho] .page-heading{min-height:150px;background:linear-gradient(115deg,#152f54,#201e48);border-color:#6b92c0}

body[data-franchise=doctorwho] .page-heading:after{background:radial-gradient(ellipse at 84% 50%,#74d7ee20,transparent 43%),repeating-radial-gradient(ellipse at 84% 50%,transparent 0 17px,#9b9cf51c 18px 20px,transparent 21px 38px);background-size:auto}

body[data-franchise=doctorwho] .next-card{background:linear-gradient(110deg,#1c3356,#191e3d)}

body[data-franchise=doctorwho] h1,body[data-franchise=doctorwho] h2{letter-spacing:-.025em}

body[data-franchise=doctorwho] .priority-pill{background:#2b3c60;color:#c6e7ff}

body[data-franchise=gameofthrones]{--bg:#11191d;--surface:#1d2a30;--surface-raised:#2e4048;--border:#526b75;--text:#f2f4ef;--muted:#bed0d5;--red:#dcb578;--red-dark:#b89359;--radius:5px}

body[data-franchise=gameofthrones] .site-header{background:#141f25}

body[data-franchise=gameofthrones] .brand img{width:136px;height:52px;object-fit:contain;filter:brightness(0) invert(1)}

body[data-franchise=gameofthrones] h1,body[data-franchise=gameofthrones] h2,body[data-franchise=gameofthrones] .entry-title{font-family:Georgia,"Times New Roman",serif;letter-spacing:0;font-weight:600}

body[data-franchise=gameofthrones] .page-heading{min-height:150px;background:linear-gradient(110deg,#2d3e45,#18232b);border-top:2px solid #c7a474}

body[data-franchise=gameofthrones] .page-heading:after{background:linear-gradient(115deg,transparent 57%,#adcbd219 57%,#adcbd219 59%,transparent 59%),linear-gradient(75deg,transparent 71%,#adcbd219 71%,#adcbd219 73%,transparent 73%),radial-gradient(ellipse at 94% 90%,#cf914f25,transparent 40%);background-size:auto}

body[data-franchise=gameofthrones] .next-card{background:linear-gradient(115deg,#2c3d44,#1d2a30)}

body[data-franchise=gameofthrones] .priority-pill{background:#36484e;color:#efdbbb;letter-spacing:.045em}

body[data-franchise=startrek]{--bg:#0c111c;--surface:#182235;--surface-raised:#2a3a52;--border:#4e6481;--text:#f5eadb;--muted:#c1cede;--red:#e4b27c;--red-dark:#c58d55;--radius:18px}

body[data-franchise=startrek] .site-header{background:#101a2b;border-bottom:3px solid #7d9ebb}

body[data-franchise=startrek] .brand img{width:120px;height:48px;object-fit:contain}

body[data-franchise=startrek] .page-heading{min-height:150px;border-left:22px solid #e4b27c;border-bottom:7px solid #e4b27c;border-radius:30px 12px 12px 30px;background:linear-gradient(110deg,#182944,#111b2b)}

body[data-franchise=startrek] .page-heading:after{background:linear-gradient(90deg,transparent 67%,#80aec130 67%,#80aec130 68%,transparent 68%),radial-gradient(circle,#eef3ff45 1px,transparent 1.5px);background-size:auto,53px 47px}

body[data-franchise=startrek] .page-heading h1{font-family:"Arial Narrow","Segoe UI",sans-serif;text-transform:uppercase;letter-spacing:.035em;font-size:clamp(1.8rem,3.5vw,2.5rem)}

body[data-franchise=startrek] .next-card{background:linear-gradient(110deg,#253750,#182235);border-left-width:12px;border-radius:24px 12px 12px 24px}

body[data-franchise=startrek] .priority-pill{background:#324d68;color:#d8e5ed;border-radius:20px}

body:is([data-franchise=doctorwho],[data-franchise=gameofthrones],[data-franchise=startrek]) .primary,body:is([data-franchise=doctorwho],[data-franchise=gameofthrones],[data-franchise=startrek]) .franchise-tabs a[aria-current=page]{color:var(--bg)}

body:is([data-franchise=doctorwho],[data-franchise=gameofthrones],[data-franchise=startrek]) .watch-toggle input:checked:after{border-color:var(--bg)}

body:is([data-franchise=doctorwho],[data-franchise=gameofthrones],[data-franchise=startrek]) .text-link,body:is([data-franchise=doctorwho],[data-franchise=gameofthrones],[data-franchise=startrek]) .source-list a{color:var(--red)}

body:is([data-franchise=doctorwho],[data-franchise=gameofthrones],[data-franchise=startrek]) .guide-card p,body:is([data-franchise=doctorwho],[data-franchise=gameofthrones],[data-franchise=startrek]) .guide-card dd{color:var(--muted)}

body:is([data-franchise=doctorwho],[data-franchise=gameofthrones],[data-franchise=startrek]) :focus-visible{outline-color:var(--red)}

body:is([data-franchise=doctorwho],[data-franchise=gameofthrones],[data-franchise=startrek]) .search-field:focus-within{border-color:var(--red)}

@media(max-width:1050px){.franchise-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}}

@media(max-width:650px){.franchise-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.franchise-tabs a{padding:9px 8px!important}.franchise-tabs a:last-child{grid-column:1/-1}body[data-franchise=doctorwho] .brand img{width:70px;height:58px}body[data-franchise=gameofthrones] .brand img{width:112px;height:46px}body[data-franchise=startrek] .brand img{width:104px;height:44px}body[data-franchise=startrek] .page-heading{border-left-width:12px}}

/* ==========================================================================

   WATCH-BEFORE DIALOG

   ========================================================================== */



#watch-before-dialog {

  width: min(760px, calc(100% - 32px));

  padding: 28px;

}





/* --------------------------------------------------------------------------
   ADHD-friendly header / intro
   -------------------------------------------------------------------------- */

#watch-before-dialog .dialog-heading {
  align-items: flex-start;
  margin-bottom: 4px;
}

#watch-before-dialog .dialog-heading > div {
  min-width: 0;
}

#watch-before-dialog .eyebrow {
  margin-bottom: 6px;
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  color: var(--red);
}

#watch-before-title {
  margin: 0;
  max-width: 620px;
  font-size: clamp(1.65rem, 4vw, 2rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

#watch-before-context {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;

  margin: 13px 0 18px;
  max-width: none;
  padding: 10px 12px;

  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 8px;

  background: color-mix(
    in srgb,
    var(--surface-raised) 88%,
    var(--red) 12%
  );

  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}


/* --------------------------------------------------------------------------
   Progress: show the useful number first
   -------------------------------------------------------------------------- */

.watch-before-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 24px;
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  background: var(--surface-raised);
}

.watch-before-progress-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "count profile";
  align-items: center;
  gap: 10px 16px;
}

.watch-before-progress-copy span {
  grid-area: count;
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.3;
  text-align: left;
}

.watch-before-progress-copy strong {
  grid-area: profile;
  justify-self: end;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffffff08;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.watch-before-progress progress {
  display: block;
  width: 100%;
  height: 9px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #303640;
}

.watch-before-progress progress::-webkit-progress-bar {
  background: #303640;
  border-radius: 999px;
}

.watch-before-progress progress::-webkit-progress-value {
  background: var(--red);
  border-radius: 999px;
}

.watch-before-progress progress::-moz-progress-bar {
  background: var(--red);
  border-radius: 999px;
}

.watch-before-progress + .watch-before-section {
  margin-top: 0;
}

/* --------------------------------------------------------------------------

   No-profile prompt

   -------------------------------------------------------------------------- */



.watch-before-profile-note {

  background: var(--surface-raised);

  border: 1px solid var(--border);

  border-left: 4px solid var(--red);

  border-radius: 10px;

  padding: 18px;

  margin-bottom: 24px;

}



.watch-before-profile-note strong {

  display: block;

  margin-bottom: 4px;

}



.watch-before-profile-note p {

  color: var(--muted);

  margin: 0 0 14px;

  font-size: 0.9rem;

}





/* --------------------------------------------------------------------------

   Sections

   -------------------------------------------------------------------------- */



.watch-before-section {

  margin-top: 26px;

}



.watch-before-section:first-of-type {

  margin-top: 0;

}



.watch-before-section > h3 {

  margin: 0 0 12px;

  font-size: 0.88rem;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  color: #d9dee7;

}



.watch-before-list {

  display: flex;

  flex-direction: column;

  gap: 10px;

}





/* --------------------------------------------------------------------------

   Movie / show cards

   -------------------------------------------------------------------------- */



.watch-before-item {

  display: grid;

  grid-template-columns: 78px minmax(0, 1fr);

  gap: 16px;

  align-items: start;



  background: #15181e;

  border: 1px solid var(--border);

  border-radius: 10px;

  padding: 12px;



  transition:

    background 0.15s ease,

    border-color 0.15s ease,

    opacity 0.15s ease;

}



.watch-before-item:hover {

  background: #191d24;

  border-color: #414957;

}



.watch-before-item.is-watched {

  background: #14171c;

  opacity: 0.78;

}



.watch-before-item.is-watched .watch-before-item-copy > p {

  color: #8f99a8;

}





/* --------------------------------------------------------------------------

   Posters

   -------------------------------------------------------------------------- */



.watch-before-poster {

  display: block;

  width: 78px;

  height: 117px;



  object-fit: cover;



  border: 1px solid var(--border);

  border-radius: 6px;



  background: var(--surface-raised);

}





/* --------------------------------------------------------------------------

   Card content

   -------------------------------------------------------------------------- */



.watch-before-item-copy {

  min-width: 0;

}



.watch-before-item-heading {

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 14px;

  margin-bottom: 6px;

}



.watch-before-item-heading > strong {

  min-width: 0;



  font-size: 0.96rem;

  line-height: 1.35;



  overflow-wrap: anywhere;

}



.watch-before-item-copy > p {

  margin: 0;



  color: var(--muted);

  font-size: 0.85rem;

  line-height: 1.55;

}





/* --------------------------------------------------------------------------

   Watched checkbox

   -------------------------------------------------------------------------- */



.watch-before-toggle {

  display: inline-flex;

  align-items: center;

  gap: 7px;



  flex-shrink: 0;



  color: #d9dee7;

  font-size: 0.78rem;

  font-weight: 650;



  cursor: pointer;

}



.watch-before-toggle input {

  appearance: none;



  width: 20px;

  height: 20px;



  margin: 0;



  display: grid;

  place-items: center;



  border: 2px solid #5b6577;

  border-radius: 5px;



  background: transparent;



  cursor: pointer;

}



.watch-before-toggle input:checked {

  background: var(--red);

  border-color: var(--red);

}



.watch-before-toggle input:checked::after {

  content: "";



  width: 8px;

  height: 5px;



  border-left: 2px solid white;

  border-bottom: 2px solid white;



  transform: rotate(-45deg) translateY(-1px);

}





/* --------------------------------------------------------------------------

   Upcoming recommendation label

   -------------------------------------------------------------------------- */



.watch-before-status {

  display: inline-flex;

  align-items: center;



  flex-shrink: 0;



  border-radius: 5px;

  padding: 4px 8px;



  font-size: 0.7rem;

  font-weight: 700;

  letter-spacing: 0.04em;

  text-transform: uppercase;

}



.watch-before-status.upcoming {

  color: #d8beff;

  background: #36294b;

}





/* --------------------------------------------------------------------------

   Notes / source

   -------------------------------------------------------------------------- */



.watch-before-note {

  margin: 20px 0 0;

  padding-top: 16px;



  border-top: 1px solid var(--border);



  font-size: 0.82rem;

  line-height: 1.6;

}



.watch-before-source {

  margin: 16px 0 0;

}





/* ==========================================================================

   WATCH-BEFORE MOBILE

   ========================================================================== */



@media (max-width: 650px) {

  #watch-before-dialog {

    width: min(100% - 20px, 760px);

    padding: 20px;

    max-height: calc(100dvh - 20px);

  }



  #watch-before-context {
    margin-bottom: 16px;
    padding: 9px 10px;
    font-size: 0.75rem;
  }

  .watch-before-progress {
    padding: 13px 14px;
  }

  .watch-before-progress-copy {
    grid-template-columns: 1fr;
    grid-template-areas:
      "count"
      "profile";
    gap: 5px;
  }

  .watch-before-progress-copy span {
    font-size: 0.95rem;
  }

  .watch-before-progress-copy strong {
    justify-self: start;
    max-width: 100%;
  }



  .watch-before-item {

    grid-template-columns: 60px minmax(0, 1fr);

    gap: 12px;

    padding: 10px;

  }



  .watch-before-poster {

    width: 60px;

    height: 90px;

  }



  .watch-before-item-heading {

    flex-direction: column;

    gap: 8px;

  }



  .watch-before-toggle {

    font-size: 0.75rem;

  }



  .watch-before-section > h3 {

    font-size: 0.8rem;

  }

}

.watch-before-launch {
  display: block;
  margin: 8px 0 4px;
  text-align: left;
  font-size: 0.8rem;
}

.watch-before-item > .watch-before-item-copy:first-child {
  grid-column: 1 / -1;
}

.watched-confetti {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  pointer-events: none;
}
.watched-confetti-piece {
  position: absolute;
  width: 6px;
  height: 9px;
  border-radius: 1px;
  animation: watched-confetti-burst 850ms ease-out forwards;
}
@keyframes watched-confetti-burst {
  0% { transform: translate(-50%, -50%) rotate(0deg); opacity: 1; }
  40% { transform: translate(calc(-50% + var(--peak-x)), calc(-50% + var(--peak-y))) rotate(var(--spin)); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--end-x)), calc(-50% + var(--end-y))) rotate(var(--spin)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .watched-confetti { display: none; }
}

.pwa-modes { border: 0; padding: 0; margin: 24px 0 16px; }
.pwa-modes legend { font-weight: 700; margin-bottom: 12px; }
.pwa-mode { display: flex; align-items: flex-start; gap: 12px; padding: 16px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.pwa-mode:has(input:checked) { border-color: var(--red); background: var(--surface-raised); }
.pwa-mode input { flex: 0 0 auto; margin: 4px 0 0; accent-color: var(--red); }
.pwa-mode strong, .pwa-mode small { display: block; }
.pwa-mode small { color: var(--muted); margin-top: 5px; line-height: 1.5; }
#pwa-progress-bar { width: 100%; accent-color: var(--red); }
#pwa-open { font-size: 0.8rem; padding: 9px 14px; }
.site-footer { flex-wrap: wrap; gap: 16px; }

/* The shared character game has its own setting when universes are mixed. */
body[data-game-view=true] { --bg:#101019; --surface:#191923; --surface-raised:#242432; --border:#383747; --text:#f4f1fa; --muted:#b9b4cc; --red:#bfa0ff; --red-dark:#a184e0; --radius:12px; }
body[data-game-view=true] .brand img { width:48px; height:48px; object-fit:contain; }
body[data-game-view=true] .franchise-tabs { display:none!important; }
body[data-game-view=true] #guess-view h1, body[data-game-view=true] #guess-view h2 { font-family:inherit; }
body[data-game-view=true] .button.primary { color:#181021; }
.cg-hero { display:grid; grid-template-columns:1.35fr 1fr; align-items:center; position:relative; min-height:280px; overflow:hidden; padding:36px 42px; border:1px solid #4a3b66; border-radius:18px; background:radial-gradient(ellipse at 85% 45%,#60429845,transparent 60%),linear-gradient(120deg,#232032,#15141f); }
.cg-badge { display:inline-flex; align-items:center; gap:12px; font-size:.72rem; font-weight:750; letter-spacing:.13em; color:#d5c2f7; }
.cg-badge span { border:1px solid #6f588b; border-radius:5px; padding:3px 7px; letter-spacing:.07em; font-size:.6rem; }
#cg-title { margin:18px 0 14px; font-size:clamp(2.3rem,4.2vw,3.8rem); line-height:1.05; letter-spacing:-.045em; }
#cg-title>span { color:#c7a4ff; }
.cg-hero-copy>p { margin:10px 0 0; }
.cg-mystery { position:relative; display:grid; place-items:center; height:245px; }
.cg-question { display:grid; place-items:center; width:116px; height:142px; border:1px solid #9372bd; border-radius:20px; background:linear-gradient(145deg,#574071,#211c30); box-shadow:0 12px 70px #ab67ff25; font-size:5rem; font-weight:750; transform:rotate(8deg); color:#e1d0fb; }
.cg-orbit { position:absolute; border:1px solid #ac84e744; border-radius:50%; width:230px; height:230px; transform:rotate(-25deg) scaleY(.72); }
.cg-orbit-two { width:300px; height:280px; transform:rotate(25deg) scaleY(.7); border-style:dashed; }
.cg-orbit-label { position:absolute; bottom:8px; letter-spacing:.15em; font-size:.65rem; color:#c7aee7; }
.cg-stats { display:grid; grid-template-columns:repeat(3,1fr) 1.2fr; gap:20px; align-items:center; padding:20px 28px; margin:18px 0 26px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); }
.cg-stats>div { display:flex; align-items:center; justify-content:space-between; gap:14px; padding-right:20px; border-right:1px solid var(--border); }
.cg-stats span { color:var(--muted); font-size:.78rem; }
.cg-stats strong { font-size:1.6rem; }
.cg-stats p { margin:0; font-size:.75rem; color:var(--muted); line-height:1.5; }
.cg-settings { padding:25px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); }
.cg-settings fieldset { padding:0; border:0; margin:18px 0; min-width:0; }
.cg-section-heading,.cg-start-row,.cg-round-top { display:flex; justify-content:space-between; gap:20px; align-items:center; }
.cg-section-heading h2 { font-size:1.18rem; margin:0 0 4px; }
.cg-section-heading p,.cg-start-row p { margin:5px 0 0; font-size:.8rem; }
.cg-universes { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.cg-universe { display:flex; align-items:center; gap:10px; padding:13px 11px; min-width:0; border:1px solid var(--border); border-radius:9px; background:var(--bg); cursor:pointer; }
.cg-universe:has(input:checked) { border-color:var(--universe-color); background:color-mix(in srgb,var(--universe-color) 9%,var(--bg)); }
.cg-universe input { flex:0 0 auto; width:16px; height:16px; margin:0; accent-color:var(--universe-color); }
.cg-universe img { width:36px; height:35px; object-fit:contain; flex-shrink:0; }
.cg-universe input[value="starwars"] + img { filter:brightness(0) invert(1); }
.cg-universe strong,.cg-universe small { display:block; }
.cg-universe strong { font-size:.76rem; line-height:1.4; }
.cg-universe small { font-size:.65rem; color:var(--muted); margin-top:3px; }
.cg-start-row { padding-top:17px; border-top:1px solid var(--border); }
.cg-start-row>div { min-width:0; }
.cg-start-row .button { flex-shrink:0; }
.cg-idle { padding:42px 20px; text-align:center; }
.cg-idle>span { font-size:2rem; color:#bfa0ff; }
.cg-idle h2 { margin:8px 0; font-size:1.2rem; }
.cg-idle p { font-size:.85rem; }
.cg-play { margin-top:28px; }
.cg-round-top h2 { margin:5px 0; font-size:1.5rem; }
.cg-round-top p { margin:0; }
.cg-counters { display:flex; gap:22px; }
.cg-counters>div { display:flex; align-items:baseline; gap:7px; }
.cg-counters strong { font-size:2rem; color:#d5bcff; }
.cg-counters span { font-size:.75rem; color:var(--muted); }
.cg-guess-form { display:flex; gap:12px; align-items:flex-end; margin:20px 0 12px; }
.cg-search-wrap { position:relative; flex:1; min-width:0; }
.cg-search-wrap>label { display:block; font-size:.8rem; margin-bottom:7px; }
#cg-search { width:100%; height:49px; background:var(--surface); }
#cg-submit { min-height:49px; padding-inline:24px; }
.cg-suggestions { position:absolute; z-index:20; top:100%; left:0; right:0; padding:5px; margin:6px 0 0; list-style:none; background:var(--surface-raised); border:1px solid var(--border); border-radius:10px; max-height:280px; overflow:auto; box-shadow:0 15px 40px #0008; }
.cg-suggestions button { display:flex; gap:12px; align-items:center; text-align:left; padding:11px 12px; width:100%; background:transparent; border:0; color:var(--text); border-radius:6px; cursor:pointer; }
.cg-suggestions button:hover,.cg-suggestions button[aria-selected=true] { background:#bfa0ff20; }
.cg-suggestions strong,.cg-suggestions small { display:block; }
.cg-suggestions strong { font-size:.85rem; }
.cg-suggestions small { font-size:.72rem; color:var(--muted); margin-top:3px; }
.cg-option-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.cg-suggestion-empty { padding:14px; font-size:.8rem; color:var(--muted); }
.cg-assist { display:flex; justify-content:space-between; gap:14px; align-items:center; margin:12px 0 20px; }
.cg-assist>div { display:flex; gap:12px; align-items:center; }
.cg-assist .button { padding:8px 13px; font-size:.75rem; }
.cg-hint-message { padding:15px 18px; background:#bfa0ff12; border:1px solid #7c649d; border-radius:9px; font-size:.85rem; }
.cg-legend { display:flex; gap:18px; flex-wrap:wrap; font-size:.73rem; margin:24px 0 15px; color:var(--muted); }
.cg-legend-exact { color:#92e2b2; }.cg-legend-partial { color:#ebc774; }.cg-legend-none { color:#ef989d; }.cg-legend-unknown { color:#c0b8ce; }
.cg-no-guesses { padding:35px; border:1px dashed var(--border); border-radius:var(--radius); text-align:center; font-size:.85rem; }
.cg-guesses { display:grid; gap:12px; }
.cg-guess-row { display:grid; grid-template-columns:1.7fr repeat(4,1fr) 1.25fr .95fr .95fr; gap:6px; background:var(--surface); padding:9px; border:1px solid var(--border); border-radius:12px; }
.cg-character { display:flex; gap:10px; align-items:center; padding:7px; min-width:0; }
.cg-character-avatar { display:grid; place-items:center; flex:0 0 auto; width:38px; height:46px; font-size:.85rem; font-weight:800; color:var(--universe-color); border:1px solid color-mix(in srgb,var(--universe-color) 45%,transparent); border-radius:8px; background:color-mix(in srgb,var(--universe-color) 14%,transparent); }
.cg-portrait { width:64px; height:64px; object-fit:cover; border-radius:8px; border:1px solid var(--border); background:var(--surface-raised); flex-shrink:0; }
.cg-portrait-small { width:34px; height:34px; border-radius:6px; }
.cg-portrait-link { flex-shrink:0; display:flex; }
.cg-character small,.cg-character strong,.cg-character div>span,.cg-character em { display:block; }
.cg-character small { color:var(--muted); font-size:.55rem; letter-spacing:.1em; }
.cg-character strong { font-size:.78rem; margin:4px 0; }
.cg-character div>span { font-size:.62rem; color:var(--muted); }
.cg-character em { font-style:normal; color:#e1ca86; font-size:.61rem; margin-top:6px; }
.cg-clue { padding:10px 7px; display:flex; flex-direction:column; gap:7px; justify-content:space-between; border:1px solid transparent; border-radius:6px; min-width:0; overflow-wrap:anywhere; }
.cg-clue-label { font-size:.55rem; text-transform:uppercase; letter-spacing:.04em; opacity:.8; }
.cg-clue strong { font-size:.7rem; line-height:1.45; }
.cg-clue small { font-size:.55rem; }
.cg-exact { background:#17463466; border-color:#347152; color:#b0edc5; }
.cg-partial { background:#69512055; border-color:#8f713b; color:#f2d698; }
.cg-none { background:#51293066; border-color:#70434b; color:#f0b0b4; }
.cg-unknown { background:#38354266; border-color:#5a5268; color:#c9c2d5; }
.cg-revealing .cg-clue { transform-origin:center; animation:cg-clue-flip 450ms cubic-bezier(.2,.75,.3,1.15) var(--clue-delay,100ms) both; }
.cg-revealing .cg-character em { animation:cg-result-pop 350ms ease-out 1400ms both; }
@keyframes cg-clue-flip {
  from { opacity:0; transform:perspective(500px) rotateX(-85deg) translateY(10px) scale(.94); }
  70% { opacity:1; transform:perspective(500px) rotateX(8deg) translateY(-2px) scale(1.025); }
  to { opacity:1; transform:perspective(500px) rotateX(0) translateY(0) scale(1); }
}
@keyframes cg-result-pop { from { opacity:0; transform:translateY(12px) scale(.97); } to { opacity:1; transform:translateY(0) scale(1); } }
.cg-result-reveal { animation:cg-result-pop 450ms ease-out both; }
.cg-result { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:22px 0; padding:24px; border:1px solid #56876a; border-radius:12px; background:linear-gradient(120deg,#1c382b,#1b2027); }
.cg-result h2 { margin:8px 0 10px; font-size:1.8rem; }
.cg-result>div>strong { display:block; }
.cg-result .text-link { font-size:.75rem; }
.cg-result-actions { display:flex; gap:10px; flex-wrap:wrap; }
.cg-rules { margin-top:28px; border-top:1px solid var(--border); padding-top:18px; font-size:.8rem; color:var(--muted); }
.cg-rules summary { cursor:pointer; color:var(--text); font-weight:600; }
.cg-rules p { line-height:1.7; max-width:880px; }
#cg-share-text { width:100%; min-height:140px; }
@media(max-width:1000px) { .cg-universes { grid-template-columns:repeat(3,minmax(0,1fr)); } .cg-guess-row { grid-template-columns:repeat(4,minmax(0,1fr)); } .cg-character { grid-column:1/-1; } .cg-stats { grid-template-columns:repeat(3,1fr); } .cg-stats>p { display:none; } .cg-stats>div:last-of-type { border:0; } }
@media(max-width:620px) {
  .cg-hero { padding:25px 22px; min-height:250px; grid-template-columns:1fr; } .cg-hero-copy { z-index:1; } .cg-mystery { position:absolute; right:-65px; top:18px; width:240px; opacity:.25; } .cg-orbit-label { display:none; } .cg-hero-copy>p { max-width:250px; } #cg-title { font-size:2.5rem; }
  .cg-stats { padding:15px; gap:12px; } .cg-stats>div { align-items:flex-start; flex-direction:column; gap:6px; padding-right:6px; } .cg-stats span { font-size:.62rem; } .cg-stats strong { font-size:1.3rem; }
  .cg-settings { padding:16px; } .cg-section-heading { align-items:flex-start; } .cg-section-heading h2 { font-size:1rem; } .cg-section-heading .text-button { font-size:.7rem; white-space:nowrap; padding:0; }
  .cg-universes { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; } .cg-universe { gap:6px; padding:10px 8px; } .cg-universe img { width:25px; height:28px; } .cg-universe strong { font-size:.68rem; } .cg-universe small { font-size:.57rem; }
  .cg-start-row,.cg-round-top { align-items:flex-start; flex-direction:column; gap:14px; } .cg-start-row .button { width:100%; } .cg-counters { gap:25px; } .cg-counters strong { font-size:1.6rem; }
  .cg-guess-form { flex-direction:column; align-items:stretch; } .cg-assist { align-items:flex-start; } .cg-assist>div { flex-direction:column; align-items:flex-start; gap:6px; } .cg-assist>.text-button { font-size:.73rem; }
  .cg-guess-row { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; } .cg-clue { padding:12px; } .cg-clue-label { font-size:.64rem; } .cg-clue strong { font-size:.8rem; } .cg-clue small { font-size:.65rem; } .cg-character strong { font-size:.9rem; } .cg-character div>span { font-size:.75rem; }
  .cg-result { flex-direction:column; align-items:flex-start; padding:19px; } .cg-result-actions { width:100%; } .cg-result-actions>.button { flex:1; } .cg-legend { gap:10px 14px; }
}
