:root,.appearance-preview{--surface:#101925;--surface-raised:#192536;--input-surface:#080f1a;--border:#344257;--muted:#9aacc1;--text:#edf4ff;--accent-wash:#55dbe914;--accent-line:#55dbe955;--action-background:linear-gradient(110deg,#5adee9,#43bfcf);--action-ink:#06232d;--theme-background:radial-gradient(ellipse at 65% 0%,#11233680,transparent 45%),#080e18}
[data-theme="midnight"]{--surface:#101925;--surface-raised:#192536;--input-surface:#080f1a;--theme-background:radial-gradient(ellipse at 65% 0%,#11233680,transparent 45%),#080e18}
[data-theme="charcoal"]{--bg:#101113;--surface:#1b1d21;--surface-raised:#25282d;--input-surface:#111316;--border:#454b55;--muted:#acb8c8;--text:#f0f3f8;--theme-background:#101113}
[data-theme="oled"]{--bg:#000;--surface:#090b0e;--surface-raised:#15191f;--input-surface:#000;--border:#3a434f;--muted:#a9b7c9;--text:#f1f5fb;--theme-background:#000}
[data-accent="cyan"]{--glow-rgb:85,219,233;--cyan:#55dbe9;--accent-wash:#55dbe914;--accent-line:#55dbe955;--action-background:linear-gradient(110deg,#5adee9,#43bfcf);--action-ink:#06232d}
[data-accent="blue"]{--glow-rgb:109,176,255;--cyan:#6db0ff;--accent-wash:#6db0ff14;--accent-line:#6db0ff55;--action-background:linear-gradient(110deg,#8ac1ff,#6baafb);--action-ink:#071827}
[data-accent="neon-blue"]{--glow-rgb:67,169,255;--cyan:#43a9ff;--accent-wash:#43a9ff14;--accent-line:#43a9ff55;--action-background:linear-gradient(110deg,#60b9ff,#389cf3);--action-ink:#071827}
html[data-theme] body{background:var(--theme-background);color:var(--text)}
html:is([data-theme="charcoal"],[data-theme="oled"]) :is(header,.panel,.modal,.stats>div,.queue-show,.queue-show-header,.show-overview,.settings-info,.queue-toolbar,.continue-card,.release-card,.calendar-cell,.telegram-shared-note,.telegram-command-grid>div,.login-story,.login-panel,.show-detail-modal>.section-head,.poster-picker-modal>.section-head,.poster-preview-panel,.picker-source,.picker-footer,.picker-tabs,.show-episodes){background:var(--surface);border-color:var(--border)}
html:is([data-theme="charcoal"],[data-theme="oled"]) :is(.show-card,.show-badge,.settings-summary>span,.calendar-day,.queue-summary>span,.account-avatar,.header-signout,.poster-preview-frame,.poster-gallery button){background:var(--surface-raised);border-color:var(--border)}
html:is([data-theme="charcoal"],[data-theme="oled"]) :is(.overview-ready-empty,.telegram-setup-help,.calendar-grid,.show-detail-header-actions,.picker-intro,#toast){background:var(--surface);border-color:var(--border)}
html:is([data-theme="charcoal"],[data-theme="oled"]) :is(.episode-row,.queue-episode,.detail-episode,.feed-row,.planned-season-row,.overview-download-row,.season-heading,.settings-sidebar,.account-button){border-color:var(--border)}
html[data-theme] :is(input:not([type="radio"]):not([type="checkbox"]):not([type="range"]),select){background:var(--input-surface);border-color:var(--border);color:var(--text)}
html:is([data-theme="charcoal"],[data-theme="oled"]) :is(.secondary,.file-label){background:var(--surface-raised);border-color:var(--border);color:var(--text)}
html:is([data-theme="charcoal"],[data-theme="oled"]) :is(.show-info p,.show-info small,.episode-info small,.episode-date,.detail-airdate,.stats small,.stats em,.queue-episode p,.queue-episode small,.queue-show-header p,.settings-fields label,.show-synopsis,.bulk-hint,.account-copy small,.calendar-cell button small){color:var(--muted)}
html[data-accent] .primary{background:var(--action-background);color:var(--action-ink);border-color:var(--cyan)}
html[data-accent] :is(nav button.active,.settings-sidebar button.active,.tabs button.active,.season-tabs button.active,.picker-tabs button.active){background:var(--accent-wash);color:var(--cyan);border-color:var(--accent-line)}
html[data-accent] :is(.stat-icon,.pill,.queue-special,.download-availability,.check.checked){background:var(--accent-wash);border-color:var(--accent-line);color:var(--cyan)}
html[data-accent] :is(.release-plan-status,.overview-planned-label,.queue-watch,.download-link,.download-release-meta,.planned-season-row){color:var(--cyan)}
html[data-accent] :is(.progress i,.dot){background:var(--cyan)}
html[data-accent] .countdown b:not(.countdown-placeholder){color:var(--cyan)}
html[data-glow="on"][data-accent="cyan"] .countdown b:not(.countdown-placeholder){text-shadow:0 0 6px rgba(85,219,233,0.565),0 0 16px rgba(85,219,233,0.376),0 0 30px rgba(85,219,233,0.208)}
html[data-glow="on"][data-accent="blue"] .countdown b:not(.countdown-placeholder){text-shadow:0 0 6px rgba(109,176,255,0.565),0 0 16px rgba(109,176,255,0.376),0 0 30px rgba(109,176,255,0.208)}
html[data-glow="on"][data-accent="neon-blue"] .countdown b:not(.countdown-placeholder){text-shadow:0 0 6px rgba(67,169,255,0.565),0 0 16px rgba(67,169,255,0.376),0 0 30px rgba(67,169,255,0.208)}
html[data-glow="on"][data-accent="cyan"] .primary{box-shadow:0 0 0 1px rgba(85,219,233,0.267),0 0 14px rgba(85,219,233,0.333),0 0 30px rgba(85,219,233,0.145)}
html[data-glow="on"][data-accent="blue"] .primary{box-shadow:0 0 0 1px rgba(109,176,255,0.267),0 0 14px rgba(109,176,255,0.333),0 0 30px rgba(109,176,255,0.145)}
html[data-glow="on"][data-accent="neon-blue"] .primary{box-shadow:0 0 0 1px rgba(67,169,255,0.267),0 0 14px rgba(67,169,255,0.333),0 0 30px rgba(67,169,255,0.145)}
html[data-glow="on"][data-accent="cyan"] :is(nav button.active,.settings-sidebar button.active,.tabs button.active,.season-tabs button.active,.picker-tabs button.active){box-shadow:inset 0 0 12px rgba(85,219,233,0.071),0 0 12px rgba(85,219,233,0.251),0 0 26px rgba(85,219,233,0.125);border-color:rgba(85,219,233,0.565)}
html[data-glow="on"][data-accent="blue"] :is(nav button.active,.settings-sidebar button.active,.tabs button.active,.season-tabs button.active,.picker-tabs button.active){box-shadow:inset 0 0 12px rgba(109,176,255,0.071),0 0 12px rgba(109,176,255,0.251),0 0 26px rgba(109,176,255,0.125);border-color:rgba(109,176,255,0.565)}
html[data-glow="on"][data-accent="neon-blue"] :is(nav button.active,.settings-sidebar button.active,.tabs button.active,.season-tabs button.active,.picker-tabs button.active){box-shadow:inset 0 0 12px rgba(67,169,255,0.071),0 0 12px rgba(67,169,255,0.251),0 0 26px rgba(67,169,255,0.125);border-color:rgba(67,169,255,0.565)}
html[data-glow="on"][data-accent="cyan"] :is(.stat-icon,.check.checked){box-shadow:inset 0 0 12px rgba(85,219,233,0.094),0 0 16px rgba(85,219,233,0.208);border-color:rgba(85,219,233,0.376)}
html[data-glow="on"][data-accent="blue"] :is(.stat-icon,.check.checked){box-shadow:inset 0 0 12px rgba(109,176,255,0.094),0 0 16px rgba(109,176,255,0.208);border-color:rgba(109,176,255,0.376)}
html[data-glow="on"][data-accent="neon-blue"] :is(.stat-icon,.check.checked){box-shadow:inset 0 0 12px rgba(67,169,255,0.094),0 0 16px rgba(67,169,255,0.208);border-color:rgba(67,169,255,0.376)}
html[data-glow="on"][data-accent="cyan"] :is(.progress i,.dot){box-shadow:0 0 8px rgba(85,219,233,0.533),0 0 18px rgba(85,219,233,0.267)}
html[data-glow="on"][data-accent="blue"] :is(.progress i,.dot){box-shadow:0 0 8px rgba(109,176,255,0.533),0 0 18px rgba(109,176,255,0.267)}
html[data-glow="on"][data-accent="neon-blue"] :is(.progress i,.dot){box-shadow:0 0 8px rgba(67,169,255,0.533),0 0 18px rgba(67,169,255,0.267)}
.appearance-preview[data-glow="on"][data-accent="cyan"] .appearance-preview-button{box-shadow:0 0 12px rgba(85,219,233,0.333),0 0 28px rgba(85,219,233,0.145)}
.appearance-preview[data-glow="on"][data-accent="blue"] .appearance-preview-button{box-shadow:0 0 12px rgba(109,176,255,0.333),0 0 28px rgba(109,176,255,0.145)}
.appearance-preview[data-glow="on"][data-accent="neon-blue"] .appearance-preview-button{box-shadow:0 0 12px rgba(67,169,255,0.333),0 0 28px rgba(67,169,255,0.145)}
.appearance-preview[data-glow="on"][data-accent="cyan"] .appearance-preview-tabs .selected{box-shadow:0 0 12px rgba(85,219,233,0.251),0 0 26px rgba(85,219,233,0.125);border-color:rgba(85,219,233,0.565)}
.appearance-preview[data-glow="on"][data-accent="blue"] .appearance-preview-tabs .selected{box-shadow:0 0 12px rgba(109,176,255,0.251),0 0 26px rgba(109,176,255,0.125);border-color:rgba(109,176,255,0.565)}
.appearance-preview[data-glow="on"][data-accent="neon-blue"] .appearance-preview-tabs .selected{box-shadow:0 0 12px rgba(67,169,255,0.251),0 0 26px rgba(67,169,255,0.125);border-color:rgba(67,169,255,0.565)}
.appearance-preview[data-glow="on"][data-accent="cyan"] .appearance-preview-tag{text-shadow:0 0 8px rgba(85,219,233,0.376)}
.appearance-preview[data-glow="on"][data-accent="blue"] .appearance-preview-tag{text-shadow:0 0 8px rgba(109,176,255,0.376)}
.appearance-preview[data-glow="on"][data-accent="neon-blue"] .appearance-preview-tag{text-shadow:0 0 8px rgba(67,169,255,0.376)}
body.compact :is(.show-grid,.library-grid,.queue-groups){gap:16px}
body.compact :is(.panel,.settings-content){padding:20px}
body.compact .stats>div{padding:16px}
body.compact .show-info{padding:10px 2px}
body.compact :is(.episode-row,.queue-episode,.detail-episode){padding-top:12px;padding-bottom:12px}
body.compact :is(.release-card-body,.continue-copy){padding:16px}
body.compact .queue-show-header{padding:16px}
body.compact .section-head{margin-bottom:16px}
.appearance-options{border:0;padding:0;margin:0 0 26px;min-width:0}
.appearance-options legend{font-size:15px;font-weight:600;margin-bottom:12px}
.appearance-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.appearance-options .appearance-choice{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:10px;margin:0;padding:14px;border:1px solid var(--border);border-radius:11px;background:var(--input-surface);cursor:pointer;font-size:14px}
.settings-content .appearance-choice input{width:16px;height:16px;min-height:0!important;margin:0;accent-color:var(--cyan)}
.appearance-choice>input{grid-column:1;grid-row:1}
.appearance-choice>span:last-child{grid-column:2;grid-row:1;min-height:40px;display:flex;align-items:center;line-height:1.4;overflow-wrap:normal}
.appearance-choice:has(input:checked){outline:2px solid var(--cyan);outline-offset:2px}
.appearance-choice-sample{grid-column:1/-1;grid-row:2;display:flex;gap:8px;align-items:center;height:54px;padding:12px;border-radius:7px;border:1px solid #47596e}
.background-sample{background:#080e18}.background-sample i,.background-sample b{display:block;border-radius:3px;height:25px;background:#192536;flex:1}
.background-sample[data-sample="charcoal"]{background:#101113}.background-sample[data-sample="charcoal"] :is(i,b){background:#2b2e34}
.background-sample[data-sample="oled"]{background:#000}.background-sample[data-sample="oled"] :is(i,b){background:#15191f}
.accent-sample{background:#0c1522;justify-content:center;color:#55dbe9}.accent-sample i{width:24px;height:24px;border-radius:50%;background:currentColor}.accent-sample b{height:8px;width:42px;background:currentColor;border-radius:5px}
.accent-sample[data-sample="blue"]{color:#6db0ff}.accent-sample[data-sample="neon-blue"]{color:#43a9ff}
.appearance-selects{margin-bottom:28px}.appearance-selects label small{display:block;color:var(--muted);margin-top:9px;font-size:13px;line-height:1.6}
.appearance-preview{background:var(--theme-background);color:var(--text);padding:24px;border:1px solid var(--border);border-radius:12px;overflow:hidden}
.appearance-preview-heading{display:flex;justify-content:space-between;gap:12px;margin-bottom:18px}.appearance-preview-heading>span{font-size:13px;color:var(--muted)}
.appearance-preview-tabs{display:flex;gap:10px;margin-bottom:18px;font-size:14px}.appearance-preview-tabs span{padding:9px 12px;color:var(--muted);border:1px solid transparent;border-radius:8px}.appearance-preview-tabs .selected{color:var(--cyan);background:var(--accent-wash);border-color:var(--accent-line)}
.appearance-preview-card{display:flex;align-items:center;gap:18px;padding:22px;background:var(--surface);border:1px solid var(--border);border-radius:10px;margin-bottom:18px}.appearance-preview-art{display:grid;place-items:center;flex-shrink:0;width:60px;height:80px;border-radius:8px;background:var(--surface-raised);color:var(--cyan);font-size:22px;font-weight:700}.appearance-preview-card h3{font-size:18px;margin:0 0 8px}.appearance-preview-card p{font-size:14px;color:var(--muted);margin:0 0 10px}.appearance-preview-tag{font-size:13px;color:var(--cyan)}
.appearance-preview-episode{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:16px 0;font-size:14px;border-top:1px solid var(--border)}
.appearance-preview-button{border:1px solid var(--cyan);background:var(--action-background);color:var(--action-ink);border-radius:8px;padding:11px 16px;font-size:14px;font-weight:600;cursor:default;min-height:44px}
.appearance-preview-motion{display:block;width:48px;height:3px;background:var(--cyan);margin-top:12px;border-radius:4px;animation:appearance-sample 2.5s ease-in-out infinite alternate}
.appearance-preview[data-density="compact"]{padding:16px}.appearance-preview[data-density="compact"] .appearance-preview-card{padding:14px;gap:12px;margin-bottom:10px}.appearance-preview[data-density="compact"] .appearance-preview-episode{padding:10px 0}.appearance-preview[data-density="compact"] .appearance-preview-tabs{margin-bottom:12px}
.appearance-preview[data-motion="reduced"] *,.appearance-preview[data-motion="reduced"] *::before,.appearance-preview[data-motion="reduced"] *::after{animation:none!important;transition:none!important}
html[data-motion="reduced"] *,html[data-motion="reduced"] *::before,html[data-motion="reduced"] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
.appearance-preview[data-motion="full"] .appearance-preview-motion{animation:appearance-sample 2.5s ease-in-out infinite alternate!important}
@keyframes appearance-sample{from{transform:translateX(0)}to{transform:translateX(36px)}}
#appearance-status{font-size:14px;min-height:1.5em;margin:16px 0 0}
@media(max-width:700px){.appearance-choices{gap:10px}.appearance-options .appearance-choice{padding:10px;font-size:13px}.appearance-choice-sample{padding:8px;height:44px}.appearance-preview{padding:16px}.appearance-preview-card{padding:14px;gap:12px}.appearance-preview-art{width:44px;height:64px}.appearance-preview-heading{flex-wrap:wrap}}
@media(max-width:420px){.appearance-choices{grid-template-columns:1fr}.appearance-options .appearance-choice{grid-template-columns:18px 60px minmax(0,1fr)}.appearance-choice-sample{grid-column:2;grid-row:1;height:36px}.appearance-choice>span:last-child{grid-column:3;min-height:36px}.accent-sample b,.background-sample b{display:none}}

html[data-glow="off"] :is(.primary,nav button.active,.settings-sidebar button.active,.tabs button.active,.season-tabs button.active,.picker-tabs button.active){box-shadow:none}
.accent-sample[data-sample="cyan"]{--swatch-rgb:85,219,233}.accent-sample[data-sample="blue"]{--swatch-rgb:109,176,255}.accent-sample[data-sample="neon-blue"]{--swatch-rgb:67,169,255}
#preferences[data-glow="on"] .accent-sample :is(i,b){box-shadow:0 0 12px currentColor}
