:root{--bg:#0a0e17;--surface:#121826;--surface2:#1a2234;--border:#2a3548;--text:#e8edf5;--muted:#8b9ab5;--accent:#6366f1;--accent-hover:#4f46e5;--accent-glow:#6366f140;--star:#fbbf24;--ok:#22c55e;--danger:#ef4444;--radius:12px}*{box-sizing:border-box;margin:0;padding:0}body{background:var(--bg);color:var(--text);min-height:100vh;font-family:Segoe UI,system-ui,-apple-system,sans-serif;line-height:1.5}a{color:var(--accent)}a:hover{color:var(--accent-hover)}.app{flex-direction:column;min-height:100vh;display:flex}.header{background:var(--surface);border-bottom:1px solid var(--border);z-index:100;padding:1rem 1.5rem 0;position:sticky;top:0}.header-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.75rem;display:flex}.header h1{letter-spacing:-.02em;font-size:1.35rem;font-weight:700}.header-actions{align-items:center;gap:.5rem;display:flex}.notify-on{color:var(--ok);font-size:.875rem}.tabs{gap:.25rem;padding-bottom:0;display:flex;overflow-x:auto}.tab{color:var(--muted);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-bottom:2px solid #0000;padding:.65rem 1rem;font-size:.9rem;transition:color .15s,border-color .15s}.tab:hover{color:var(--text)}.tab.active{color:var(--accent);border-bottom-color:var(--accent)}.main{flex:1;width:100%;max-width:1400px;margin:0 auto;padding:1.25rem 1.5rem 2rem}.section-desc{color:var(--muted);margin-bottom:0;font-size:.9rem}.section-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.25rem;display:flex}.checkbox-label{color:var(--text);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;align-items:center;gap:.5rem;font-size:.9rem;display:inline-flex}.checkbox-label input{width:1rem;height:1rem;accent-color:var(--accent);cursor:pointer}.search-bar{margin-bottom:1.25rem}.search-bar input{background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius);width:100%;max-width:480px;color:var(--text);outline:none;padding:.75rem 1rem;font-size:1rem}.search-bar input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-glow)}.show-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.25rem;display:grid}.show-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);cursor:pointer;transition:transform .15s,box-shadow .15s,border-color .15s;overflow:hidden}.show-card:hover{border-color:var(--accent);transform:translateY(-2px);box-shadow:0 8px 24px #00000059}.show-card-poster{aspect-ratio:2/3;background:var(--surface2);position:relative;overflow:hidden}.show-card-poster img{object-fit:cover;width:100%;height:100%}.show-poster-placeholder{opacity:.4;justify-content:center;align-items:center;height:100%;font-size:3rem;display:flex}.show-rank{color:var(--star);background:#000000bf;border-radius:6px;padding:.2rem .5rem;font-size:.85rem;font-weight:700;position:absolute;top:.5rem;left:.5rem}.favorite-btn{color:#fff;cursor:pointer;background:#000000a6;border:none;border-radius:50%;width:2.25rem;height:2.25rem;font-size:1.1rem;transition:background .15s,transform .15s;position:absolute;top:.5rem;right:.5rem}.favorite-btn:hover{background:#000000d9;transform:scale(1.08)}.favorite-btn.active{color:var(--star)}.show-card-body{padding:.85rem 1rem 1rem}.show-card-body h3{-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-bottom:.35rem;font-size:1rem;font-weight:600;display:-webkit-box;overflow:hidden}.show-meta{color:var(--muted);gap:.75rem;margin-bottom:.5rem;font-size:.8rem;display:flex}.rating{color:var(--star)}.air-date{color:var(--accent);font-weight:500}.show-episode{color:var(--muted);margin-bottom:.35rem;font-size:.82rem}.show-overview{color:var(--muted);-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:.82rem;display:-webkit-box;overflow:hidden}.btn{cursor:pointer;border:none;border-radius:8px;align-items:center;gap:.35rem;padding:.5rem 1rem;font-size:.875rem;font-weight:500;transition:background .15s;display:inline-flex}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-hover)}.btn-secondary{background:var(--surface2);color:var(--text);border:1px solid var(--border)}.btn-secondary:hover{border-color:var(--accent)}.btn-notify{background:var(--surface2);color:var(--text);border:1px solid var(--border)}.btn-notify:hover{border-color:var(--ok);color:var(--ok)}.btn-sm{padding:.35rem .75rem;font-size:.8rem}.modal-backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:200;background:#000000b3;justify-content:center;align-items:flex-start;padding:2rem 1rem;display:flex;position:fixed;inset:0;overflow-y:auto}.modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);width:100%;max-width:640px;position:relative;overflow:hidden}.modal-hero{background-position:top;background-size:cover;height:160px;-webkit-mask-image:linear-gradient(#000 30%,#0000);mask-image:linear-gradient(#000 30%,#0000)}.modal-content{padding:0 1.5rem 1.5rem;position:relative}.modal-close{color:#fff;cursor:pointer;z-index:1;background:#00000080;border:none;border-radius:50%;width:2rem;height:2rem;font-size:1.25rem;position:absolute;top:.75rem;right:.75rem}.modal-header{gap:1rem;margin-top:-3rem;margin-bottom:1rem;display:flex;position:relative}.modal-poster{border-radius:8px;flex-shrink:0;width:100px;box-shadow:0 4px 16px #00000080}.modal-header h2{margin-bottom:.35rem;font-size:1.35rem}.modal-status{color:var(--muted);margin-bottom:.75rem;font-size:.85rem}.modal-overview{color:var(--muted);margin-bottom:1rem;font-size:.9rem}.episode-box{background:var(--surface2);border:1px solid var(--border);border-radius:8px;margin-top:.75rem;padding:1rem}.episode-box.next{border-color:var(--accent);background:#6366f114}.episode-box h4{text-transform:uppercase;letter-spacing:.05em;color:var(--accent);margin-bottom:.35rem;font-size:.75rem}.episode-title{margin-bottom:.25rem;font-weight:600}.episode-date{color:var(--muted);margin-bottom:.5rem;font-size:.85rem}.episode-overview{color:var(--muted);font-size:.85rem}.state-message{text-align:center;color:var(--muted);padding:3rem 1rem}.error{color:var(--danger)}.muted{color:var(--muted);font-size:.9rem}.setup-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);max-width:560px;margin:2rem auto;padding:2rem}.setup-panel h2{margin-bottom:.75rem}.setup-panel p{color:var(--muted);margin-bottom:1rem}.setup-panel ol{color:var(--muted);padding-left:1.25rem}.setup-panel li{margin-bottom:.5rem}.setup-panel code{background:var(--surface2);border-radius:4px;padding:.15rem .4rem;font-size:.85rem}.footer{text-align:center;color:var(--muted);border-top:1px solid var(--border);padding:1rem;font-size:.8rem}.sync-modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);width:100%;max-width:420px;padding:1.5rem}.sync-modal h2{margin-bottom:.5rem}.sync-field{color:var(--muted);flex-direction:column;gap:.35rem;margin-bottom:1rem;font-size:.85rem;display:flex}.sync-field input{background:var(--surface2);border:1px solid var(--border);color:var(--text);border-radius:8px;padding:.65rem .85rem;font-size:.95rem}.sync-actions{gap:.5rem;margin-top:.5rem;display:flex}.modal-backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:200;background:#000000b3;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}@media (width<=600px){.header{padding:.75rem 1rem 0}.main{padding:1rem}.modal-header{flex-direction:column;margin-top:0}.modal-poster{width:80px}}
