:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;--background: #090b10;--background-soft: #10141d;--surface: rgba(20, 25, 35, .92);--surface-strong: #171d28;--surface-muted: #121722;--surface-raised: #1c2330;--border: #2c3647;--border-strong: #3e5163;--text: #f2f5f7;--text-muted: #a7b3bf;--text-soft: #7f8c99;--accent: #41c7b9;--accent-strong: #24a89b;--accent-soft: rgba(65, 199, 185, .16);--warning: #f2b84b;--shadow: rgba(0, 0, 0, .38);background:var(--background);color:var(--text);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 18% 0%,rgba(65,199,185,.14),transparent 34%),linear-gradient(180deg,#090b10fa,#0e121bf5),repeating-linear-gradient(90deg,rgba(255,255,255,.035) 0 1px,transparent 1px 94px)}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{width:min(1680px,100%);margin:0 auto;padding:24px}.topbar,.week-toolbar,.forms-layout,.add-show-panel,.queue-panel,.library-panel{width:100%}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}.profile-chip{display:flex;min-width:0;max-width:180px;flex-direction:column;gap:2px;min-height:38px;padding:0 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface-muted);text-align:right;justify-content:center}.profile-chip strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.auth-shell{display:grid;min-height:100vh;place-items:center}.auth-panel{width:min(560px,100%);padding:24px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:0 16px 42px var(--shadow)}.auth-panel h1{margin:0 0 14px;font-size:clamp(2rem,5vw,3.6rem);line-height:.98}.auth-form{display:grid;gap:12px;margin-top:18px}.auth-mode-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:4px;border:1px solid var(--border);border-radius:8px;background:var(--surface-muted)}.auth-mode-switch button,.link-button{min-height:36px;border:0;border-radius:6px;background:transparent;color:var(--text-muted);font-weight:900}.auth-mode-switch button.active{background:var(--surface-raised);color:var(--text);box-shadow:0 8px 18px var(--shadow)}.link-button{margin-top:12px;padding:0;color:var(--accent)}.topbar h1,.panel h2,.editor-panel h2,.library-panel h2{margin:0;letter-spacing:0}.topbar h1{font-size:clamp(2rem,4vw,4.6rem);line-height:.95;max-width:920px}.eyebrow{margin:0 0 6px;color:var(--accent);font-size:.78rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.week-toolbar{display:flex;align-items:center;gap:10px;min-height:56px;margin-bottom:18px;padding:10px;border:1px solid var(--border);background:#141923c7;box-shadow:0 16px 40px var(--shadow)}.week-title{display:flex;align-items:center;justify-content:center;gap:8px;min-width:260px;min-height:38px;padding:0 14px;color:var(--text);font-weight:800}.icon-button,.secondary-button,.ghost-button,.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface-raised);color:var(--text);font-weight:800}.icon-button{width:40px;padding:0}.secondary-button,.ghost-button,.primary-button{padding:0 14px}.primary-button{border-color:var(--accent);background:var(--accent-strong);color:#06100f}.ghost-button{background:transparent}.guide-panel{min-width:0;margin-bottom:18px}.add-show-panel{margin-bottom:18px;padding:16px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:0 16px 40px var(--shadow)}.search-form{display:grid;gap:10px}.search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.status-message{margin:12px 0 0;color:var(--text-muted);font-weight:800}.status-message.error{color:#ff8b8b}.search-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:10px;margin-top:14px}.search-result{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:12px;align-items:start;min-height:118px;padding:10px;border:1px solid var(--border);border-radius:8px;background:var(--surface-muted)}.search-result img,.poster-fallback{width:58px;height:84px;border-radius:6px;object-fit:cover;background:var(--surface-raised)}.poster-fallback{display:grid;place-items:center;color:var(--text-soft)}.search-result strong,.search-result small,.search-result p{display:block}.search-result small{margin-top:3px;color:var(--text-muted)}.search-result p{display:-webkit-box;overflow:hidden;margin:8px 0 0;color:var(--text-muted);font-size:.88rem;-webkit-box-orient:vertical;-webkit-line-clamp:3}.search-result .secondary-button{min-width:78px}.guide-grid{display:grid;grid-template-columns:repeat(7,minmax(160px,1fr));gap:8px;overflow-x:auto;padding-bottom:8px}.day-column{min-height:520px;border:1px solid var(--border);background:#0d1119e0}.day-column.today{border-color:var(--accent);box-shadow:inset 0 4px 0 var(--accent)}.day-header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:54px;padding:12px;border-bottom:1px solid var(--border);background:var(--surface-strong)}.day-header span{font-size:.82rem;font-weight:900}.day-header strong{white-space:nowrap;color:var(--text-muted);font-size:.78rem}.release-stack{display:flex;flex-direction:column;gap:8px;padding:8px}.release-card,.panel,.editor-panel,.library-panel{min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.release-card{position:relative;display:flex;flex-direction:column;gap:6px;min-height:146px;padding:12px;box-shadow:0 10px 24px var(--shadow)}.release-card.watched{opacity:.58;background:var(--surface-muted)}.release-card-header,.release-card-actions,.row-actions,.rank-actions,.form-actions{display:flex;align-items:center;gap:6px}.release-card-header{justify-content:space-between}.service-pill{max-width:120px;overflow:hidden;padding:4px 7px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:.72rem;font-weight:900;text-overflow:ellipsis;white-space:nowrap}.release-card strong{display:-webkit-box;overflow:hidden;font-size:1rem;line-height:1.2;-webkit-box-orient:vertical;-webkit-line-clamp:3}.release-card p,.release-card small,.empty-day,.empty-copy{margin:0;color:var(--text-muted)}.release-card-actions{margin-top:auto;justify-content:flex-end}.release-card-actions button,.row-actions button,.rank-actions button,.check-button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface-raised);color:var(--text)}.check-button.checked{border-color:var(--accent);background:var(--accent-strong);color:#06100f}.empty-day{padding:16px 8px;color:var(--text-soft);font-size:.9rem}.side-rail{display:flex;flex-direction:column;gap:14px}.panel,.editor-panel,.library-panel{padding:16px;box-shadow:0 16px 42px var(--shadow)}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.panel-heading h2{font-size:1.22rem}.queue-list,.show-list{display:flex;flex-direction:column;gap:8px;min-width:0}.queue-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.show-list{max-height:720px;overflow-y:auto;padding-right:4px}.compact-filter{margin-bottom:10px}.compact-filter input{min-height:36px}.queue-item,.queue-show,.queue-season,.show-row{width:100%;min-width:0;min-height:58px;border:1px solid var(--border);border-radius:8px;background:var(--surface-muted)}.queue-item,.queue-show-toggle,.queue-season-summary,.queue-season-toggle,.queue-episode{display:flex;align-items:center;gap:10px;padding:10px;text-align:left}.queue-item span,.queue-show-toggle span,.queue-season-summary span,.queue-season-toggle span,.queue-episode span,.show-row-main{display:flex;min-width:0;flex-direction:column;gap:3px}.queue-item strong,.queue-show-toggle strong,.queue-season-summary strong,.queue-season-toggle strong,.queue-episode strong,.show-row-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.queue-item small,.queue-show-toggle small,.queue-season-summary small,.queue-season-toggle small,.queue-episode small,.show-row-main small{min-width:0;overflow:hidden;color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap}.ended-badge{width:fit-content;padding:2px 7px;border:1px solid var(--border-strong);border-radius:999px;background:#ffffff0a;color:var(--warning)!important;font-size:.72rem;font-weight:900}.queue-show,.queue-season{overflow:hidden}.queue-show-toggle{width:100%;min-height:62px;justify-content:space-between;border:0;background:transparent;color:var(--text)}.queue-season-list{display:flex;flex-direction:column;gap:8px;padding:0 10px 10px}.queue-season-list .queue-season{background:#ffffff06}.queue-season-summary{width:100%;min-height:58px;background:transparent;color:var(--text)}.queue-season-check{display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;border:1px solid var(--accent);border-radius:8px;background:var(--accent-strong);color:#06100f}.queue-season-toggle{flex:1;justify-content:space-between;min-width:0;padding:0;border:0;background:transparent;color:var(--text)}.queue-season-count{display:inline-flex;align-items:center;justify-content:center;min-width:46px;min-height:28px;padding:0 8px;border:1px solid var(--border-strong);border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:.72rem;font-weight:900}.queue-episode-list{display:flex;flex-direction:column;gap:6px;padding:0 10px 10px}.queue-episode{width:100%;min-height:48px;border:1px solid var(--border);border-radius:6px;background:#ffffff08;color:var(--text)}.show-row{display:grid;grid-template-columns:44px minmax(0,1fr) 30px;align-items:start;gap:10px;min-height:78px;padding:10px}.show-row:has(.ended-badge){min-height:94px}.rank-badge{display:grid;min-width:38px;height:38px;place-items:center;border-radius:6px;background:linear-gradient(135deg,var(--accent-strong),#2f4156);color:#fff;font-weight:900}.rank-actions button{font-weight:900}.show-thumb{flex:0 0 auto;width:42px;height:56px;border-radius:6px;object-fit:cover}.show-thumb.fallback{display:grid;place-items:center;background:var(--surface-raised);color:var(--text-soft)}.show-actions{display:grid;grid-column:1 / -1;grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:6px;min-width:0;padding-top:8px;border-top:1px solid var(--border)}.show-actions input,.show-actions select{min-height:30px;padding:4px 8px}.show-edit-toggle,.show-actions button,.show-actions a{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface-raised);color:var(--text);text-decoration:none}.show-edit-toggle{margin-top:2px}.show-icon-actions{display:flex;gap:6px;min-width:0}.stat-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:10px}.stat-strip span{display:flex;align-items:center;justify-content:center;min-width:0;min-height:34px;padding:8px;border:1px solid var(--border);border-radius:6px;background:var(--surface-muted);color:var(--text-muted);font-size:.78rem;font-weight:900;text-align:center;overflow-wrap:anywhere}.spin{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.forms-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}label{display:flex;flex-direction:column;gap:7px;color:var(--text-muted);font-size:.82rem;font-weight:900}input,select,textarea{width:100%;min-height:40px;border:1px solid var(--border-strong);border-radius:6px;background:#0c1119;color:var(--text);padding:9px 10px}input::placeholder,textarea::placeholder{color:var(--text-soft)}textarea{min-height:82px;resize:vertical}.wide-field{grid-column:1 / -1}.form-actions{justify-content:flex-end;margin-top:14px}.library-panel{margin-top:18px}.library-panel.is-condensed{padding-bottom:12px}.library-panel.is-condensed .panel-heading{margin-bottom:10px}.library-heading-actions{display:inline-flex;align-items:center;gap:10px}.library-heading-actions .secondary-button{min-height:34px}.release-table{display:flex;flex-direction:column;gap:8px}.release-row{display:grid;grid-template-columns:34px 90px minmax(160px,1fr) minmax(120px,.8fr) minmax(110px,.7fr) auto;align-items:center;gap:10px;min-height:48px;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--surface-muted)}.release-row span,.release-row strong{min-width:0;overflow:hidden;color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap}.release-row strong{color:var(--text)}@media(max-width:1180px){.forms-layout{grid-template-columns:1fr}}@media(max-width:760px){.app-shell{padding:16px}.topbar{align-items:stretch;flex-direction:column}.week-toolbar{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center}.week-toolbar .secondary-button{grid-column:1 / -1}.topbar-actions{align-items:stretch;flex-direction:column}.profile-chip{max-width:none;text-align:left}.week-title{min-width:0;justify-content:center;padding:0 8px;text-align:center}.form-grid,.search-row,.search-result{grid-template-columns:1fr}.search-result img,.poster-fallback{width:72px;height:104px}.release-row{grid-template-columns:34px minmax(0,1fr) auto}.release-row span:nth-of-type(2),.release-row span:nth-of-type(3){display:none}.stat-strip,.show-actions{grid-template-columns:1fr}.show-icon-actions{justify-content:flex-start}.library-heading-actions{align-items:flex-end;flex-direction:column}}
