:root{color-scheme:dark;--bg: #0b0d12;--surface: #141821;--surface-2: #1c2130;--border: #262c3b;--text: #e8eaf0;--muted: #9aa1b2;--accent: #4f7cff;--accent-hover: #6a91ff;--radius: 12px;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}a{color:var(--accent)}h1{font-size:1.6rem;margin:0 0 1.25rem;letter-spacing:-.01em}h2{font-size:1.05rem;margin:0 0 .35rem}p{margin:0 0 .75rem}.muted{color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.6rem 1.1rem;border-radius:8px;border:1px solid transparent;background:var(--accent);color:#fff;font:inherit;font-weight:600;text-decoration:none;cursor:pointer}.btn:hover{background:var(--accent-hover)}.btn-lg{padding:.8rem 1.5rem;font-size:1.05rem}.btn-ghost{background:transparent;border-color:var(--border);color:var(--text)}.btn-ghost:hover{background:var(--surface-2)}.badge{display:inline-block;padding:.1rem .55rem;border-radius:999px;background:var(--surface-2);border:1px solid var(--border);color:var(--muted);font-size:.75rem;font-weight:600}.splash{min-height:100%}.center-page{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px 16px;gap:.5rem;max-width:460px;margin:0 auto}.center-page h1{margin:.5rem 0 0}.center-page .btn,.center-page form{margin-top:1rem}.signin h1{font-size:2rem}.app{min-height:100%;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:1.5rem;padding:0 16px;height:60px;background:#0b0d12d9;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:.6rem;color:var(--text);text-decoration:none;font-weight:700}.nav{display:flex;gap:.25rem;flex:1}.nav a{color:var(--muted);text-decoration:none;padding:.4rem .75rem;border-radius:8px;font-weight:500}.nav a:hover{color:var(--text)}.nav a.active{color:var(--text);background:var(--surface-2)}.usermenu{position:relative}.usermenu summary{list-style:none;cursor:pointer}.usermenu summary::-webkit-details-marker{display:none}.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--surface-2);border:1px solid var(--border);font-weight:700}.menu{position:absolute;right:0;top:44px;min-width:240px;padding:.5rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 12px 32px #0006;display:flex;flex-direction:column}.menu-head{display:flex;flex-direction:column;gap:.15rem;padding:.5rem .6rem .75rem;border-bottom:1px solid var(--border);margin-bottom:.35rem}.menu-head .badge{align-self:flex-start;margin-top:.35rem}.menu a,.menu button{display:block;width:100%;text-align:left;padding:.5rem .6rem;border-radius:8px;color:var(--text);text-decoration:none;background:none;border:0;font:inherit;cursor:pointer}.menu a:hover,.menu button:hover{background:var(--surface-2)}.content{flex:1;width:100%;max-width:1200px;margin:0 auto;padding:28px 16px 48px}.empty{padding:48px 24px;text-align:center;border:1px dashed var(--border);border-radius:var(--radius);background:var(--surface)}.cards{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}.card{padding:20px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--border)}@media(max-width:560px){.topbar{gap:.75rem}.brand span{display:none}}:root{--ok: #3ccf8e;--warn: #f2b84b;--err: #ff6b6b}.small{font-size:.82rem}.center{text-align:center}.spacer{flex:1}.ok-text{color:var(--ok)}.error-text{color:var(--err)}.error-note{color:var(--err);background:#ff6b6b14;border:1px solid rgba(255,107,107,.3);padding:.6rem .8rem;border-radius:8px;margin:.75rem 0}.btn-sm{padding:.35rem .7rem;font-size:.85rem}.btn-danger{color:var(--err)}.btn:disabled{opacity:.5;cursor:default}.icon-btn{background:none;border:0;color:var(--muted);font:inherit;cursor:pointer;padding:.3rem .45rem;border-radius:6px}.icon-btn:hover:not(:disabled){background:var(--surface-2);color:var(--text)}.icon-btn:disabled{opacity:.3;cursor:default}input,select,textarea{width:100%;font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:.55rem .7rem}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:transparent}input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent);padding:0;flex:none}input[type=file]{padding:.45rem}.spinner{display:inline-block;width:22px;height:22px;border:2.5px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite;margin:1rem auto}.spinner-sm{width:14px;height:14px;border-width:2px;margin:0;vertical-align:-2px}@keyframes spin{to{transform:rotate(360deg)}}.pill{display:inline-flex;align-items:center;gap:.35rem;padding:.15rem .6rem;border-radius:999px;font-size:.75rem;font-weight:600;background:var(--surface-2);color:var(--muted);border:1px solid var(--border);white-space:nowrap}.pill-ok{color:var(--ok);border-color:#3ccf8e59;background:#3ccf8e14}.pill-warn{color:var(--warn);border-color:#f2b84b59;background:#f2b84b14}.pill-err{color:var(--err);border-color:#ff6b6b59;background:#ff6b6b14}.pill-run{color:var(--accent)}.toggle{position:relative;width:38px;height:22px;border-radius:999px;border:1px solid var(--border);background:var(--surface-2);cursor:pointer;padding:0;flex:none}.toggle span{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--muted);transition:transform .15s}.toggle.on{background:var(--accent);border-color:var(--accent)}.toggle.on span{transform:translate(16px);background:#fff}.thumb{display:inline-grid;place-items:center;flex:none;border-radius:8px;background:var(--surface-2);overflow:hidden;font-size:.75rem;font-weight:700;color:var(--muted)}.thumb img{width:100%;height:100%;object-fit:contain}.toasts{position:fixed;bottom:16px;left:50%;transform:translate(-50%);display:flex;flex-direction:column;gap:8px;z-index:100;width:min(440px,calc(100% - 32px))}.toast{padding:.7rem 1rem;border-radius:10px;background:var(--surface-2);border:1px solid var(--border);box-shadow:0 8px 24px #0006}.toast-error{border-color:#ff6b6b80}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.25rem;flex-wrap:wrap}.page-head h1{margin-bottom:.25rem}.page-head p{margin:0}.actions{display:flex;gap:.5rem;flex-wrap:wrap}.tabs{display:flex;gap:.25rem;border-bottom:1px solid var(--border);margin:-.5rem 0 1.5rem;overflow-x:auto}.tabs a,.tab-soon{padding:.6rem .9rem;color:var(--muted);text-decoration:none;font-weight:600;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}.tabs a.active{color:var(--text);border-bottom-color:var(--accent)}.tab-soon{opacity:.45;cursor:default}.banner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 1rem;border-radius:var(--radius);border:1px solid rgba(79,124,255,.4);background:#4f7cff14;margin-bottom:1rem;flex-wrap:wrap}.toolbar{display:flex;align-items:center;gap:.75rem;margin-bottom:.75rem;flex-wrap:wrap}.toolbar .search{flex:1;min-width:160px}.bulk{display:flex;align-items:center;gap:.35rem}.hint-line{margin:0 0 .5rem}.list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.row{display:flex;align-items:center;gap:.85rem;padding:.75rem .9rem;background:var(--surface);border:1px solid var(--border);border-radius:10px}.row-compact{padding:.5rem .75rem}.row.clickable{cursor:pointer}.row.clickable:hover{border-color:#384056}.row-disabled{opacity:.55}.row-main{flex:1;min-width:0;display:flex;flex-direction:column}.row-main>*{overflow:hidden;text-overflow:ellipsis}.row-main strong,.row-main>span:first-child{white-space:nowrap}.row-actions,.row-tags{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;justify-content:flex-end}.kind{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:.25rem .5rem;border-radius:6px;background:var(--surface-2);color:var(--muted);width:92px;text-align:center;flex:none}.kind-m3u{color:#8fb0ff}.kind-xmltv{color:#c9a0ff}.kind-manual{color:#7fdcc0}.ch-num{width:3.2rem;text-align:right;font-variant-numeric:tabular-nums;font-weight:700;color:var(--muted);flex:none}.grip{color:var(--border);cursor:grab;letter-spacing:-3px;-webkit-user-select:none;user-select:none}.row.dragging{opacity:.4}.row.drop-target{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#05060aa6;display:grid;place-items:center;padding:16px;z-index:50}.overlay-drawer{place-items:stretch end;padding:0;grid-template-rows:100%}.modal{width:min(520px,100%);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);min-height:0;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 24px 64px #00000080}.modal-wide{width:min(1000px,100%);height:min(760px,calc(100vh - 32px))}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;border-bottom:1px solid var(--border)}.modal-head h2{margin:0;font-size:1.1rem}.modal-body{padding:1.25rem;overflow:auto;flex:1;min-height:0;display:flex;flex-direction:column}.drawer{width:min(560px,100vw);height:100%;max-height:100vh;max-height:100dvh;min-height:0;overflow:hidden;background:var(--surface);border-left:1px solid var(--border);display:flex;flex-direction:column}.drawer-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:1.25rem}.drawer-foot{flex:none;display:flex;gap:.5rem;padding:1rem 1.25rem;padding-bottom:max(1rem,env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--surface)}.drawer-title{display:inline-flex;align-items:center;gap:.6rem}.form{display:flex;flex-direction:column;gap:1rem}.field{display:flex;flex-direction:column;gap:.35rem;flex:1;min-width:0}.field-label{font-size:.8rem;font-weight:600;color:var(--muted)}.field-hint{font-size:.78rem;color:var(--muted)}.field-row{display:flex;gap:.75rem;flex-wrap:wrap}.field-row>.field{min-width:140px}.check{display:flex;align-items:center;gap:.55rem;cursor:pointer}.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:.5rem}.sticky-actions{padding-top:1rem;margin-top:auto;border-top:1px solid var(--border)}.sticky-actions>span:first-child{margin-right:auto}.advanced summary{cursor:pointer;color:var(--muted);font-weight:600;margin-bottom:.75rem}.advanced[open]{display:flex;flex-direction:column;gap:1rem}.segmented{display:flex;background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:3px}.segmented button{flex:1;background:none;border:0;color:var(--muted);font:inherit;font-weight:600;padding:.45rem;border-radius:7px;cursor:pointer}.segmented button.active{background:var(--surface-2);color:var(--text)}.section-title{font-size:.95rem;margin:.75rem 0 -.5rem;padding-top:1rem;border-top:1px solid var(--border)}.browser{display:flex;gap:1rem;flex:1;min-height:0}.browser-side{width:240px;flex:none;display:flex;flex-direction:column;gap:.75rem;min-height:0}.groups{overflow:auto;display:flex;flex-direction:column;gap:2px}.groups button{display:flex;justify-content:space-between;gap:.5rem;text-align:left;background:none;border:0;color:var(--text);font:inherit;font-size:.88rem;padding:.4rem .6rem;border-radius:7px;cursor:pointer}.groups button span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.groups button:hover{background:var(--surface-2)}.groups button.active{background:#4f7cff26;color:#fff}.browser-main{flex:1;min-width:0;display:flex;flex-direction:column;min-height:0;overflow:auto}.stream-list .row{background:var(--bg)}.load-more{align-self:center;margin-top:.75rem}.stream-row{background:var(--bg);align-items:flex-start}.picker{position:relative}.picker-results{list-style:none;margin:4px 0 0;padding:4px;position:absolute;left:0;right:0;z-index:5;background:var(--surface-2);border:1px solid var(--border);border-radius:10px;max-height:260px;overflow:auto;box-shadow:0 12px 32px #00000073}.picker-results button{display:flex;flex-direction:column;width:100%;text-align:left;background:none;border:0;color:var(--text);font:inherit;padding:.45rem .6rem;border-radius:7px;cursor:pointer}.picker-results button:hover{background:var(--surface)}.guide-section{display:flex;flex-direction:column;gap:.9rem}.guide-current{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem .9rem;border-radius:10px;background:var(--bg);border:1px solid var(--border)}.suggestions{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}.suggestions .field-label{width:100%}.chips{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:1rem}.chip{display:inline-flex;align-items:center;gap:.4rem;padding:.3rem .7rem;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;font-size:.85rem;cursor:pointer}.chip img{width:18px;height:18px;object-fit:contain}.chip.active{border-color:var(--accent);background:#4f7cff26}.programmes{list-style:none;padding:0;margin:.4rem 0 0;display:flex;flex-direction:column;gap:.3rem;font-size:.9rem}.tiles{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.tile{display:flex;flex-direction:column;gap:.6rem;padding:14px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--border)}.tile-head{display:flex;align-items:center;gap:.75rem}.tile-head>div{display:flex;flex-direction:column;min-width:0}.tile-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tile-now{display:flex;flex-direction:column;gap:.3rem}.now-title{font-weight:600}.bar{height:4px;border-radius:2px;background:var(--surface-2);overflow:hidden}.bar span{display:block;height:100%;background:var(--accent)}@media(max-width:720px){.browser{flex-direction:column}.browser-side{width:auto}.groups{flex-direction:row;overflow-x:auto}.groups button{white-space:nowrap}.kind{width:auto}.row{flex-wrap:wrap}.grip{display:none}.ch-num{width:auto;min-width:1.5rem}.channel-list .row-tags{order:5;width:100%;justify-content:flex-start;padding-left:calc(16px + .85rem)}.channel-list .row-tags:empty{display:none}.row-actions{width:100%;justify-content:flex-start}}.link-card{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;flex-wrap:wrap;margin-bottom:1.25rem}.link-card>div:first-child{flex:1;min-width:0}.link{display:block;margin-top:.5rem;padding:.5rem .7rem;border-radius:8px;background:var(--bg);border:1px solid var(--border);font-size:.82rem;overflow-wrap:anywhere;color:var(--muted)}.session{padding:1rem;border-radius:var(--radius);background:var(--surface);border:1px solid var(--border);display:flex;flex-direction:column;gap:.75rem}.session-head{display:flex;align-items:center;gap:.85rem;flex-wrap:wrap}.session .ch-num{width:auto}.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.5rem;margin:0}.facts div{background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:.5rem .7rem}.facts dt{font-size:.72rem;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.04em}.facts dd{margin:.15rem 0 0;font-variant-numeric:tabular-nums}.viewers{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:.88rem}.viewers li{display:flex;gap:.9rem;flex-wrap:wrap;align-items:center;padding:.35rem .1rem;border-top:1px solid var(--border)}.tabs-inline{display:flex;gap:.25rem;margin-bottom:.75rem;flex-wrap:wrap}.tabs-inline button{background:none;border:1px solid transparent;color:var(--muted);font:inherit;font-weight:600;padding:.45rem .9rem;border-radius:999px;cursor:pointer}.tabs-inline button.active{color:var(--text);background:var(--surface-2);border-color:var(--border)}.setup{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1.25rem}.steps{margin:0;padding-left:1.3rem;display:flex;flex-direction:column;gap:.9rem}.steps li{padding-left:.25rem}.steps li>.copyable{margin-top:.4rem}.copyable{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}.copyable code{flex:1;min-width:0;padding:.45rem .65rem;border-radius:8px;background:var(--bg);border:1px solid var(--border);font-size:.82rem;overflow-wrap:anywhere}.code{margin:0;padding:.75rem .9rem;border-radius:8px;background:var(--bg);border:1px solid var(--border);font-size:.85rem;overflow-x:auto}code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.seen{margin:0}.banner-warn{display:block;border-color:#f2b84b73;background:#f2b84b14;margin:0}.linklike{background:none;border:0;padding:0;color:var(--accent);font:inherit;cursor:pointer;text-decoration:underline}.private-note{margin:.25rem 0 0;padding-top:.75rem;border-top:1px solid var(--border)}.access h2{margin:0}textarea{resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88rem}.home h2{font-size:1.15rem;margin:0 0 .75rem}.shelf{margin-bottom:1.75rem}.shelf-track{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(250px,280px);gap:12px;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x mandatory}.shelf-track .tile{scroll-snap-align:start}.row-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.row-head h2{margin:0}.tile{position:relative;padding:0}.tile-link{display:flex;flex-direction:column;gap:.6rem;padding:14px;color:inherit;text-decoration:none;border-radius:var(--radius);height:100%}.tile:hover{border-color:#3a4360}.tile-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.star{position:absolute;top:8px;right:8px;background:none;border:0;color:var(--muted);font-size:1.2rem;line-height:1;padding:6px;border-radius:8px;cursor:pointer}.star:hover{background:var(--surface-2);color:var(--text)}.star.on{color:#ffc94d}.now-head .star{position:static}.content:has(.player-page){max-width:1400px}.player-page{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}.player-main{min-width:0;display:flex;flex-direction:column;gap:1rem}.video-wrap{position:relative;background:#000;border-radius:var(--radius);overflow:hidden;aspect-ratio:16 / 9}.video{width:100%;height:100%;display:block;background:#000}.video-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.6rem;background:#0009;text-align:center;padding:16px}.video-overlay .spinner{margin:0}.unmute{position:absolute;top:12px;left:12px;background:#000000b3;color:#fff;border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:.45rem .9rem;font:inherit;font-weight:600;cursor:pointer}.now-info{display:flex;flex-direction:column;gap:.9rem}.now-head{display:flex;align-items:center;gap:.85rem;flex-wrap:wrap}.now-head h1{margin:0;font-size:1.4rem}.programme-now h2{margin:0 0 .2rem;font-size:1.1rem}.programme-now .bar{margin:.5rem 0 .75rem;max-width:420px}.later{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem}.zapper{display:flex;flex-direction:column;gap:4px;max-height:calc(100vh - 110px);overflow-y:auto;position:sticky;top:76px}.zap{display:flex;align-items:center;gap:.6rem;padding:.45rem .6rem;border-radius:10px;color:var(--text);text-decoration:none;border:1px solid transparent}.zap:hover{background:var(--surface)}.zap.active{background:#4f7cff24;border-color:#4f7cff66}.zap-num{width:2.6rem;text-align:right;color:var(--muted);font-weight:700;font-variant-numeric:tabular-nums;font-size:.85rem;flex:none}.zap-text{display:flex;flex-direction:column;min-width:0}.zap-text>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.content:has(.guide-page){max-width:none}.epg{--epg-ch: 220px;overflow:auto;max-height:calc(100vh - 230px);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.epg-grid{position:relative}.epg-times{display:flex;position:sticky;top:0;z-index:3;background:var(--surface-2);border-bottom:1px solid var(--border);height:34px}.epg-corner{width:var(--epg-ch);flex:none;position:sticky;left:0;background:var(--surface-2);z-index:1}.epg-slots{position:relative;flex:none}.epg-slots span{position:absolute;top:8px;padding-left:8px;font-size:.8rem;color:var(--muted);border-left:1px solid var(--border);height:26px}.epg-row{display:flex;height:58px;border-bottom:1px solid var(--border)}.epg-ch{width:var(--epg-ch);flex:none;display:flex;align-items:center;gap:.5rem;padding:0 .6rem;position:sticky;left:0;z-index:2;background:var(--surface);border-right:1px solid var(--border);color:var(--text);text-decoration:none}.epg-ch:hover{background:var(--surface-2)}.epg-ch .zap-num{width:2.2rem}.epg-ch-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;font-size:.9rem}.epg-line{position:relative;flex:none}.epg-prog{position:absolute;top:4px;bottom:4px;display:flex;flex-direction:column;justify-content:center;gap:2px;text-align:left;padding:0 .55rem;border-radius:8px;border:1px solid var(--border);background:var(--bg);color:var(--text);font:inherit;cursor:pointer;overflow:hidden;box-sizing:border-box;margin-right:2px}.epg-prog:hover{border-color:#3a4360;background:var(--surface-2)}.epg-prog.live{background:#4f7cff24;border-color:#4f7cff73}.epg-prog.past{opacity:.5}.epg-prog.placeholder{color:var(--muted);font-style:italic}.epg-title{font-size:.86rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.epg-time{font-size:.75rem;color:var(--muted)}.epg-now{position:absolute;top:0;bottom:0;width:2px;background:#ff5b5b;z-index:1;pointer-events:none}@media(max-width:900px){.player-page{grid-template-columns:1fr}.zapper{position:static;max-height:360px}}@media(max-width:560px){.epg{--epg-ch: 64px}.epg-ch .zap-num,.epg-ch-name{display:none}.epg-ch{justify-content:center;padding:0}.video-wrap{border-radius:0;margin:-28px -16px 0}.shelf-track{grid-auto-columns:80%}}.stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin-bottom:1.25rem}.stat{display:flex;flex-direction:column;gap:.2rem;padding:14px 16px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--border);color:var(--text);text-decoration:none}.stat:hover{border-color:#3a4360}.stat-label{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.stat-value{font-size:1.6rem;font-weight:700;font-variant-numeric:tabular-nums}.stat-ok .stat-value{color:var(--ok)}.stat-warn .stat-value{color:var(--warn)}.stat-err .stat-value{color:var(--err)}.dash-grid{display:grid;grid-template-columns:2fr 1fr;gap:12px}.dash-grid .card:first-child{grid-row:span 2}.dash-grid .card{display:flex;flex-direction:column;gap:.6rem;align-items:flex-start}.dash-grid h2{margin:0}.dash-grid .bar{width:100%}.warnings{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem;width:100%}.warning{display:flex;gap:.6rem;align-items:baseline;padding:.55rem .7rem;border-radius:8px;background:var(--bg);border:1px solid var(--border)}.warning .dot{width:8px;height:8px;border-radius:50%;flex:none;transform:translateY(-1px);background:var(--muted)}.warning-error .dot{background:var(--err)}.warning-warn .dot{background:var(--warn)}.warning-info .dot{background:var(--accent)}.health-dot{width:9px;height:9px;border-radius:50%;flex:none;background:var(--border)}.hd-ok{background:var(--ok)}.hd-degraded{background:var(--warn)}.hd-down{background:var(--err)}.section-row{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap}.section-row h2{margin:0 0 .25rem}.card.form{margin-bottom:1.25rem}.card.form h2{margin:0}.logs{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.8rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:.75rem;height:calc(100vh - 260px);min-height:300px;overflow:auto}.log{display:flex;gap:.75rem;padding:.15rem 0;white-space:pre-wrap;word-break:break-word}.log-time{color:var(--muted);flex:none}.log-level{width:3.2rem;flex:none;font-weight:700;color:var(--muted)}.log-warn .log-level{color:var(--warn)}.log-error .log-level{color:var(--err)}.log-attrs{color:var(--muted)}@media(max-width:800px){.dash-grid{grid-template-columns:1fr}.log{flex-wrap:wrap;gap:.1rem .6rem}}.row-main strong .pill{margin-left:.5rem;vertical-align:1px}.kind-xtream{color:#ffb86b}.warn-text{color:var(--warn)}.center-actions{justify-content:center;margin-top:.75rem}
