:root{
  color-scheme:dark;
  --bg:#070a11;
  --surface:#0f1520;
  --surface-2:#151c29;
  --surface-3:#1b2433;
  --line:rgba(255,255,255,.1);
  --text:#f8fafc;
  --muted:#94a3b8;
  --soft:#c7d2fe;
  --accent:#22d3ee;
  --accent-2:#6366f1;
  --warm:#f59e0b;
  --danger:#ef4444;
  --good:#10b981;
  --radius:8px;
  font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}
body{font-size:14px;line-height:1.45}
button,input,select{font:inherit}
button{cursor:pointer}
.app-shell{min-height:100vh;padding:16px;display:flex;flex-direction:column;gap:16px}
.topbar{height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);background:rgba(9,13,21,.92);border-radius:var(--radius);padding:10px 12px;box-shadow:0 18px 40px rgba(0,0,0,.26)}
.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;min-width:0}
.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:8px;background:linear-gradient(135deg,#6366f1,#22d3ee);color:white;font-weight:950}
.brand strong{display:block;font-size:17px;letter-spacing:.02em}
.brand small{display:block;color:var(--muted);font-size:12px}
.topbar-actions,.guide-actions,.channel-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.status-pill{display:inline-flex;align-items:center;min-height:34px;padding:0 10px;border:1px solid rgba(34,211,238,.28);border-radius:999px;color:#cffafe;background:rgba(34,211,238,.08);font-size:12px}
.control-strip{display:grid;grid-template-columns:180px 160px minmax(220px,1fr) auto auto;gap:10px;align-items:end;border:1px solid var(--line);background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.02)),var(--surface);border-radius:var(--radius);padding:12px}
.source-mix{display:flex;align-items:center;gap:7px;overflow:auto;border:1px solid var(--line);background:rgba(15,21,32,.82);border-radius:var(--radius);padding:8px 10px}
.source-mix span{flex:0 0 auto;color:#67e8f9;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.12em;margin-right:4px}
.source-mix button{flex:0 0 auto;height:34px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.035);color:#cbd5e1;padding:0 11px;font-size:12px;font-weight:850}
.source-mix button.active{border-color:rgba(34,211,238,.45);background:rgba(34,211,238,.1);color:#cffafe}
.source-mix .all-btn{border-color:rgba(245,158,11,.36);color:#fde68a}

.provider-facts{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.provider-fact{position:relative;min-width:0;border:1px solid var(--line);border-radius:var(--radius);padding:11px 12px;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.018)),var(--surface);overflow:hidden}
.provider-fact::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#22d3ee;opacity:.9}
.provider-fact.waipu::before{background:#22d3ee}
.provider-fact>span{display:block;color:#cbd5e1;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.1em}
.provider-fact>strong{display:block;margin-top:4px;font-size:16px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
.provider-fact>small{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.35;overflow-wrap:anywhere}
label span{display:block;margin-bottom:6px;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em}
input,select{width:100%;height:40px;border:1px solid var(--line);border-radius:7px;background:rgba(0,0,0,.22);color:var(--text);padding:0 10px;outline:none}
input:focus,select:focus{border-color:rgba(34,211,238,.5);box-shadow:0 0 0 2px rgba(34,211,238,.13)}
.primary-btn,.soft-btn,.link-btn,.icon-btn{height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;border:1px solid var(--line);background:#161720;color:var(--text);padding:0 12px;text-decoration:none}
.primary-btn{border-color:transparent;background:#6366f1;color:white;font-weight:850}
.primary-btn:hover{background:#5558e8}
.soft-btn:hover,.link-btn:hover,.icon-btn:hover{border-color:#5a5d6b;background:#20232e}
.link-btn{border-color:transparent;background:transparent;color:#67e8f9;font-weight:800}
.icon-btn{width:38px;padding:0}
.metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.metrics article{border:1px solid var(--line);background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.018)),var(--surface);border-radius:var(--radius);padding:12px}
.metrics span,.metrics small{display:block;color:var(--muted);font-size:12px}
.metrics strong{display:block;margin:4px 0;font-size:26px;line-height:1}
.app-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;border:1px solid var(--line);background:rgba(15,21,32,.86);border-radius:var(--radius);padding:8px}
.app-nav button{height:42px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted);font-weight:900}
.app-nav button.active{border-color:rgba(34,211,238,.45);background:rgba(34,211,238,.11);color:#cffafe}
.nav-count{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:5px;padding:0 5px;border-radius:999px;background:#facc15;color:#111827;font-size:10px;font-weight:950;vertical-align:middle}
.workspace{display:block;height:clamp(560px,calc(100vh - 360px),820px);min-height:0;overflow:hidden}
.channel-panel,.guide-panel{border:1px solid var(--line);background:rgba(15,21,32,.94);border-radius:var(--radius);height:100%;min-height:0;box-shadow:0 18px 42px rgba(0,0,0,.22)}
.channel-panel{display:none;flex-direction:column;overflow:hidden}
.guide-panel{display:flex;flex-direction:column;padding:12px;overflow:hidden}
body[data-page="channels"] .channel-panel{display:flex}
body[data-page="channels"] .guide-panel{display:none}
body[data-page="now"] .program-search,
body[data-page="now"] #searchResults,
body[data-page="now"] #streamingPanel,
body[data-page="now"] #guideTabs,
body[data-page="now"] #message,
body[data-page="now"] #guideRows{display:none}
body[data-page="guide"] .now-strip,
body[data-page="guide"] .program-search,
body[data-page="guide"] #searchResults,
body[data-page="guide"] #streamingPanel{display:none}
body[data-page="search"] .now-strip,
body[data-page="search"] #guideTabs,
body[data-page="search"] #message,
body[data-page="search"] #guideRows{display:none}
body[data-page="watchlist"] .now-strip,
body[data-page="watchlist"] .program-search,
body[data-page="watchlist"] #searchResults,
body[data-page="watchlist"] #streamingPanel,
body[data-page="watchlist"] #guideTabs,
body[data-page="watchlist"] #message,
body[data-page="watchlist"] #guideRows,
body[data-page="watchlist"] .guide-actions{display:none}
body[data-page="watchlist"] .workspace{height:auto;min-height:0;overflow:visible}
body[data-page="watchlist"] .guide-panel{height:auto;min-height:0;overflow:visible}
body[data-page="watchlist"] #reminderPanel{margin:0}
body[data-page="now"] .workspace{height:auto;min-height:0;overflow:visible}
body[data-page="now"] .guide-panel{height:auto;min-height:0;overflow:visible}
body[data-page="now"] .now-strip{display:block;min-height:0;overflow:visible;margin-bottom:0}
body[data-page="now"] .now-strip .section-label{flex:0 0 auto}
body[data-page="now"] .now-rail{display:block;min-height:0;overflow:visible;padding:0}
body[data-page="now"] .now-card{width:100%;min-width:0}
.panel-head,.guide-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px}
.panel-head{flex:0 0 auto}
.guide-head{padding:2px 2px 12px}
.eyebrow{margin:0 0 3px;color:#67e8f9;font-size:11px;text-transform:uppercase;letter-spacing:.14em;font-weight:900}
h1,h2{margin:0;font-size:20px;line-height:1.1}
h2{font-size:18px}
.muted{color:var(--muted)}
.tab-row{display:flex;gap:6px;flex:0 0 auto;align-items:center;min-height:48px;padding:0 12px 12px;overflow-x:auto;overflow-y:hidden}
.guide-panel .tab-row{padding:0 0 10px}
.tab-row button{flex:0 0 auto;white-space:nowrap;border:1px solid var(--line);border-radius:999px;background:#12131a;color:var(--muted);height:34px;min-height:34px;padding:0 11px;font-size:12px}
.tab-row button.active{border-color:rgba(34,211,238,.45);background:rgba(34,211,238,.09);color:#cffafe}
.channel-actions{position:relative;z-index:2;flex:0 0 auto;padding:0 12px 12px;background:rgba(15,21,32,.98);border-bottom:1px solid rgba(255,255,255,.07)}
.channel-actions .soft-btn{height:34px;font-size:12px}
.channel-list{flex:1 1 auto;min-height:0;overflow:auto;padding:8px 8px 10px;display:flex;flex-direction:column;gap:6px;scrollbar-gutter:stable}
body[data-page="channels"] .channel-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));align-content:start}
.channel-item{display:grid;grid-template-columns:24px 40px minmax(0,1fr) auto;gap:8px;align-items:center;min-height:54px;border:1px solid transparent;border-radius:7px;background:rgba(255,255,255,.035);padding:7px}
.channel-item:hover{border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.06)}
.channel-item input{width:18px;height:18px}
.logo{display:grid;place-items:center;width:40px;height:40px;border-radius:7px;background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.02)),#111827;color:#f8fafc;font-size:11px;font-weight:950;letter-spacing:.02em}
.channel-name{min-width:0}
.channel-name strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.channel-name small{display:flex;gap:5px;flex-wrap:wrap;margin-top:4px}
.tag{display:inline-flex;align-items:center;height:20px;border-radius:999px;padding:0 7px;background:#272a34;color:#c9c5d1;font-size:11px}
.tag.pay{background:rgba(255,190,85,.15);color:#ffdca1}
.tag.free{background:rgba(102,184,255,.15);color:#bde0ff}
.tag.good{background:rgba(16,185,129,.15);color:#a7f3d0}
.tag.missing{background:rgba(255,107,107,.15);color:#ffb8b8}
.fav-btn{width:34px;height:34px;border:1px solid transparent;border-radius:7px;background:transparent;color:#817d8b}
.fav-btn.active{color:#facc15}
.message{margin:0 0 8px;border:1px solid rgba(255,190,85,.35);background:rgba(255,190,85,.09);border-radius:7px;padding:8px 10px;color:#ffe2b0}
.message.error{border-color:rgba(255,107,107,.45);background:rgba(255,107,107,.1);color:#ffc4c4}
.now-strip{flex:0 0 auto;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.03);border-radius:var(--radius);padding:9px;margin:0 0 9px}
.section-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.section-label span{font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.11em;color:#facc15}
.section-label small{color:var(--muted)}
.now-rail{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;padding:0 0 2px;scroll-snap-type:x proximity}
.now-card{flex:0 0 260px;display:grid;grid-template-columns:78px minmax(0,1fr);gap:9px;align-items:center;min-width:0;min-height:104px;border:1px solid rgba(255,255,255,.1);background:linear-gradient(145deg,rgba(239,68,68,.18),rgba(99,102,241,.1)),#111827;border-radius:8px;color:inherit;text-align:left;padding:9px;scroll-snap-align:start;overflow:hidden}
.now-card:hover{border-color:rgba(255,255,255,.24);filter:brightness(1.07)}
.now-card strong,.search-item strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.now-card small,.search-item small{display:block;color:var(--muted);margin-top:4px}
.now-card-copy{min-width:0}
.program-thumb{display:grid;place-items:center;width:78px;aspect-ratio:16/10;border-radius:7px;overflow:hidden;border:1px solid rgba(255,255,255,.12);background:linear-gradient(135deg,rgba(34,211,238,.18),rgba(99,102,241,.16)),#0b1220;color:#e0f2fe;font-weight:950;font-size:17px}
.program-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.program-thumb.has-image{background:rgba(0,0,0,.28)}
.program-thumb.movie{background:linear-gradient(135deg,rgba(245,158,11,.34),rgba(127,29,29,.38)),#111827;color:#fff7ed}
.program-thumb.sport{background:linear-gradient(135deg,rgba(16,185,129,.28),rgba(34,211,238,.18)),#071a18;color:#dcfce7}
.program-thumb.news{background:linear-gradient(135deg,rgba(59,130,246,.28),rgba(99,102,241,.2)),#0b1220;color:#dbeafe}
.program-thumb.kids{background:linear-gradient(135deg,rgba(236,72,153,.26),rgba(34,211,238,.18)),#15111f;color:#fce7f3}
.progress-line{display:block;width:100%;height:5px;background:rgba(255,255,255,.09);border-radius:999px;margin-top:9px;overflow:hidden}
.progress-line i{display:block;height:100%;background:linear-gradient(90deg,#ef4444,#f59e0b);border-radius:inherit}
.now-card .progress-line{grid-column:1/-1;margin-top:0}
.program-search{flex:0 0 auto;display:grid;grid-template-columns:minmax(220px,1fr) 112px 118px;gap:8px;align-items:end;margin:0 0 9px}
.check-label{height:40px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:7px;background:rgba(255,255,255,.035);padding:0 10px;color:#cbd5e1}
.check-label input{width:16px;height:16px;accent-color:#6366f1}
.search-results{flex:0 0 auto;max-height:180px;overflow:auto;border:1px solid rgba(34,211,238,.25);background:rgba(34,211,238,.06);border-radius:8px;margin:0 0 8px;padding:9px}
.search-results-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.search-results-head strong{color:#cffafe}
.search-results-head span small{display:block;color:var(--muted);margin-top:2px}
.search-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.search-item{border:1px solid rgba(255,255,255,.1);border-radius:8px;background:rgba(0,0,0,.2);color:inherit;text-align:left;padding:10px}
.search-item.movie{border-color:rgba(245,158,11,.35);background:rgba(245,158,11,.08)}
.streaming-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}

.streaming-link{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid rgba(255,255,255,.11);border-radius:8px;background:rgba(0,0,0,.22);color:inherit;text-decoration:none;padding:10px}
.streaming-link strong{display:block}
.streaming-link small{display:block;color:var(--muted);margin-top:2px}
.streaming-link span:last-child{color:#fde68a;font-weight:950}
.reminder-panel{flex:0 0 auto;border:1px solid rgba(250,204,21,.24);background:linear-gradient(135deg,rgba(250,204,21,.08),rgba(34,211,238,.055)),rgba(15,21,32,.96);border-radius:8px;margin:0 0 9px;padding:10px}
.reminder-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.reminder-head strong{display:block;font-size:15px}
.reminder-head small{display:block;color:var(--muted);margin-top:2px}
.reminder-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.reminder-actions .soft-btn{height:34px;font-size:12px}
.watch-chip-row{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px}
.watch-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(250,204,21,.26);border-radius:999px;background:rgba(250,204,21,.08);color:#fde68a;min-height:30px;padding:0 8px;font-size:12px;font-weight:850}
.watch-chip button{display:grid;place-items:center;width:20px;height:20px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(0,0,0,.24);color:#fff;padding:0}
.reminder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.reminder-item{min-width:0;border:1px solid rgba(255,255,255,.12);border-radius:7px;background:rgba(0,0,0,.2);color:inherit;text-align:left;padding:9px}
.reminder-item:hover{border-color:rgba(250,204,21,.42);background:rgba(250,204,21,.08)}
.reminder-item small,.reminder-item span{display:block;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reminder-item strong{display:block;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.now-card.watched,.slot.watched,.search-item.watched{border-color:rgba(250,204,21,.58);box-shadow:inset 0 0 0 1px rgba(250,204,21,.22),0 0 0 1px rgba(250,204,21,.05)}
.reminder-panel--compact{padding:0;overflow:hidden}
.watchlist-summary-link{display:flex;align-items:center;justify-content:space-between;gap:16px;color:inherit;text-decoration:none;padding:11px 12px}
.watchlist-summary-link:hover{background:rgba(250,204,21,.055)}
.watchlist-summary-copy{min-width:0}
.watchlist-summary-copy .eyebrow{display:block;margin-bottom:2px;color:#fde047}
.watchlist-summary-copy strong{display:block;font-size:15px}
.watchlist-summary-copy small{display:block;margin-top:2px;color:var(--muted)}
.watchlist-summary-open{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(250,204,21,.3);border-radius:7px;background:rgba(250,204,21,.08);color:#fde68a;padding:8px 10px;font-size:12px;font-weight:900}
.watchlist-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:4px 2px 12px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:12px}
.watchlist-page-head strong{display:block;font-size:20px}
.watchlist-page-head small{display:block;color:var(--muted);margin-top:3px}
.watchlist-library{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:9px}
.watchlist-section-head{display:flex;align-items:center;justify-content:space-between;margin:2px 0 9px;padding:0 2px}
.watchlist-section-head span{display:block;color:#fde047;font-size:11px;font-weight:950;letter-spacing:.11em}
.watchlist-section-head small{display:block;color:var(--muted);margin-top:2px}
.watchlist-library--alphabetical{display:block}
.watchlist-alpha-group{margin:0 0 14px}
.watchlist-alpha-head{display:flex;align-items:center;gap:8px;margin:0 0 7px;padding:6px 2px;border-bottom:1px solid rgba(255,255,255,.07)}
.watchlist-alpha-head>span{display:grid;place-items:center;min-width:32px;height:28px;border:1px solid rgba(250,204,21,.3);border-radius:7px;background:rgba(250,204,21,.09);color:#fde047;font-size:15px;font-weight:950}
.watchlist-alpha-head small{color:var(--muted);font-size:11px;font-weight:800}
.watchlist-alpha-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:9px}
.watchlist-title-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center;border:1px solid rgba(250,204,21,.18);border-radius:8px;background:rgba(250,204,21,.035);padding:11px}
.watchlist-title-main{min-width:0}
.watchlist-title-main strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}
.watchlist-title-main small{display:block;margin-top:4px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.watchlist-type{display:inline-flex;margin-bottom:5px;border-radius:999px;background:rgba(99,102,241,.16);color:#c7d2fe;padding:2px 7px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.watchlist-hit-count{align-self:start;border-radius:999px;background:rgba(34,211,238,.09);color:#a5f3fc;padding:4px 7px;font-size:10px;font-weight:900;white-space:nowrap}
.watchlist-remove{grid-column:1/-1;height:32px;border:1px solid rgba(239,68,68,.2);border-radius:6px;background:rgba(239,68,68,.055);color:#fecaca;font-size:11px;font-weight:850}
.watchlist-remove:hover{border-color:rgba(239,68,68,.45);background:rgba(239,68,68,.11)}
.watchlist-upcoming-head{display:flex;align-items:center;justify-content:space-between;margin:16px 0 8px;padding:0 2px}
.watchlist-upcoming-head span{display:block;color:#67e8f9;font-size:11px;font-weight:950;letter-spacing:.11em}
.watchlist-upcoming-head small{display:block;color:var(--muted);margin-top:2px}
.watchlist-reminder-grid{grid-template-columns:repeat(auto-fill,minmax(330px,1fr))}
.watchlist-upcoming-groups{display:grid;gap:12px}
.watchlist-upcoming-group{border:1px solid rgba(103,232,249,.15);border-radius:9px;background:rgba(15,23,42,.34);padding:10px}
.watchlist-upcoming-group-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px;padding:1px 2px 8px;border-bottom:1px solid rgba(255,255,255,.07)}
.watchlist-upcoming-group-head>div{min-width:0}
.watchlist-upcoming-group-head strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}
.watchlist-upcoming-group-head small{display:block;color:var(--muted);margin-top:4px}
.watchlist-upcoming-group-head .watchlist-type{margin-bottom:5px}
.watchlist-group-empty{border:1px dashed rgba(255,255,255,.1);border-radius:7px;padding:11px;color:var(--muted);font-size:12px;background:rgba(255,255,255,.018)}
.watchlist-empty{min-height:260px}
.watchlist-empty>div{display:grid;justify-items:center;gap:8px}
.watchlist-empty strong{font-size:18px}
.watchlist-empty span{color:var(--muted)}
.watchlist-empty .primary-btn{margin-top:6px}

body[data-page="search"][data-search-active="1"] .search-results{flex:1 1 auto;max-height:none;min-height:0}
.guide-rows{flex:1 1 auto;height:auto;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:8px;padding-right:4px}
.guide-row{display:grid;grid-template-columns:minmax(150px,210px) minmax(180px,1fr) minmax(180px,1fr) minmax(220px,1.3fr);gap:8px;align-items:stretch;border:1px solid var(--line);background:rgba(255,255,255,.035);border-radius:var(--radius);padding:8px}
.station{display:flex;align-items:center;gap:10px;min-width:0}
.station .logo{background:linear-gradient(135deg,#1e293b,#312e81)}
.station strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.station small{display:block;margin-top:4px;color:var(--muted);font-size:12px}
.slot{border:1px solid var(--line);background:#111827;border-radius:7px;text-align:left;color:inherit;padding:9px;min-width:0}
.slot:hover{border-color:rgba(255,255,255,.22);background:#182233}
.slot b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.slot small{display:block;margin-top:4px;color:var(--muted)}
.slot.now{border-color:rgba(239,68,68,.42);box-shadow:inset 3px 0 #ef4444}
.slot.prime{border-color:rgba(245,158,11,.42)}
.slot.movie{border-color:rgba(245,158,11,.5);background:linear-gradient(135deg,rgba(127,29,29,.55),rgba(67,20,7,.7))}
.slot.empty{cursor:default;color:#7d7988}
.later-list{display:flex;flex-direction:column;gap:5px;min-width:0}
.later-list button{height:auto;min-height:36px;text-align:left;border:1px solid var(--line);border-radius:7px;background:#111827;color:inherit;padding:6px 8px}
.later-list b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
.later-list small{color:var(--muted)}
.empty-state{display:grid;place-items:center;min-height:140px;border:1px dashed #3a3d49;border-radius:var(--radius);color:var(--muted);text-align:center;padding:18px}
.now-rail .empty-state{flex:1 1 auto;min-height:72px}
.program-dialog{width:min(680px,calc(100vw - 28px));border:1px solid var(--line);border-radius:8px;background:#0f1520;color:var(--text);padding:0}
.program-dialog::backdrop{background:rgba(0,0,0,.62)}
.program-dialog form{margin:0}
.dialog-head{display:flex;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid var(--line)}
.dialog-description{padding:16px;margin:0;color:#d8d3df;line-height:1.65}
.dialog-actions{display:flex;gap:8px;flex-wrap:wrap;padding:0 16px 16px}
.dialog-actions .primary-btn.active{background:#f59e0b;color:#111827}
.legal-topbar{height:auto;min-height:64px}
.legal-nav{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.legal-nav a{display:inline-flex;align-items:center;min-height:34px;border:1px solid var(--line);border-radius:999px;color:#cbd5e1;text-decoration:none;padding:0 12px;font-size:12px;font-weight:850;background:rgba(255,255,255,.035)}
.legal-nav a.active,.legal-nav a:hover{border-color:rgba(34,211,238,.45);background:rgba(34,211,238,.1);color:#cffafe}
.site-footer{border:1px solid var(--line);background:rgba(9,13,21,.92);border-radius:var(--radius);padding:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--muted)}
.site-footer nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.site-footer a{color:#cffafe;text-decoration:none;font-size:12px;font-weight:800}
.site-footer a:hover{color:#fff}
.site-footer small{font-size:12px}
.app-footer{margin-top:0}
.legal-shell{min-height:100vh}
.legal-main{display:flex;flex-direction:column;gap:16px}
.legal-hero{border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(135deg,rgba(34,211,238,.1),rgba(245,158,11,.06)),var(--surface);padding:22px}
.legal-hero h1{font-size:clamp(30px,4vw,52px);line-height:1;margin:0 0 10px}
.legal-hero p:last-child{max-width:780px;margin:0;color:#cbd5e1;font-size:16px}
.legal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.legal-card{border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.018)),var(--surface);padding:16px;min-width:0}
.legal-card h2{font-size:17px;margin:0 0 10px}
.legal-card p{margin:0;color:#cbd5e1}
.legal-card p+p{margin-top:10px}
.legal-card a{color:#67e8f9}
.magazine-hero{display:grid;grid-template-columns:minmax(280px,.78fr) minmax(420px,1.22fr);gap:16px;align-items:stretch}
.magazine-copy,.cover-frame{border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(135deg,rgba(34,211,238,.12),rgba(99,102,241,.06)),var(--surface);min-width:0}
.magazine-copy{padding:22px;display:flex;flex-direction:column;justify-content:center}
.magazine-copy h1{font-size:clamp(34px,4.6vw,66px);line-height:1;margin:0 0 12px}
.magazine-copy p{margin:0;color:#dbeafe;font-size:16px}
.magazine-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.cover-frame{margin:0;padding:8px;overflow:hidden}
.cover-frame img{display:block;width:100%;height:100%;min-height:320px;object-fit:cover;border-radius:6px}
.magazine-notes{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1050px){
  .control-strip{grid-template-columns:1fr 1fr}
  .search-field{grid-column:1/-1}
  .workspace{height:auto;min-height:560px;overflow:visible}
  .channel-panel,.guide-panel{height:auto}
  .channel-list{max-height:460px}
  .guide-panel{min-height:560px}
  .now-card{flex-basis:240px}
  .search-grid{grid-template-columns:1fr}
  .reminder-grid{grid-template-columns:1fr}
  .guide-rows{height:auto;min-height:280px;max-height:620px}
  .magazine-hero,.legal-grid{grid-template-columns:1fr}
  .magazine-notes{grid-template-columns:1fr}
  .cover-frame img{height:auto;min-height:0}
}
@media(max-width:760px){
  .app-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .app-nav button:last-child{grid-column:1/-1}
  .watchlist-summary-link{align-items:flex-start;flex-direction:column;gap:9px}
  .watchlist-summary-open{width:100%;justify-content:center}
  .watchlist-page-head{flex-direction:column}
  .watchlist-page-head .reminder-actions{width:100%;justify-content:stretch}
  .watchlist-page-head .reminder-actions .soft-btn{flex:1 1 auto}
  .watchlist-library,.watchlist-reminder-grid{grid-template-columns:1fr}
  .app-shell{padding:8px}
  .topbar{height:auto;align-items:flex-start;position:sticky;top:0;z-index:20}
  .brand small{display:none}
  .topbar-actions .soft-btn{display:none}
  .control-strip,.metrics{grid-template-columns:1fr}
  .control-strip{position:relative}
  .source-mix{position:relative;padding:7px}
  .source-mix span{display:none}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .metrics article{padding:10px}
  .metrics strong{font-size:22px}
  .app-nav{position:sticky;top:72px;z-index:17;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px;background:var(--surface)}
  .app-nav button{height:38px}
  .workspace{min-height:0;height:auto}
  .channel-panel,.guide-panel{min-height:0}
  .channel-list{max-height:calc(100vh - 350px)}
  .guide-row{grid-template-columns:1fr}
  .guide-panel{padding:10px}
  .now-rail{display:flex;overflow:auto;scroll-snap-type:x mandatory}
  .now-card{flex-basis:78vw;scroll-snap-align:start}
  .program-search{grid-template-columns:1fr}
  .streaming-grid{grid-template-columns:1fr}
  .check-label{justify-content:center}
  .guide-rows{min-height:260px;max-height:60vh}
  .reminder-head{align-items:flex-start;flex-direction:column}
  .reminder-actions{width:100%;justify-content:flex-start}
  .dialog-actions{flex-direction:column}
  .dialog-actions .primary-btn,.dialog-actions .soft-btn{width:100%}
  .panel-head,.guide-head{flex-direction:column}
  .topbar-actions{justify-content:flex-end}
  .topbar-actions a.soft-btn{display:none}
  .legal-topbar{position:relative;top:auto;z-index:auto}
  .legal-nav{width:100%;justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}
  .legal-nav a{flex:0 0 auto}
  .legal-hero,.magazine-copy{padding:16px}
  .legal-hero h1,.magazine-copy h1{font-size:32px}
  .site-footer{align-items:flex-start;flex-direction:column}
}

/* Release-Komponente */
.live-clock{display:inline-flex;align-items:center;justify-content:center;min-width:88px;min-height:34px;padding:0 10px;border:1px solid rgba(250,204,21,.34);border-radius:999px;background:rgba(250,204,21,.08);color:#fef3c7;font-size:13px;font-weight:950;font-variant-numeric:tabular-nums;letter-spacing:.04em}
.mobile-fullscreen{display:none}
.channel-group-filter{flex:0 0 auto;padding:0 12px 10px;background:rgba(15,21,32,.98)}
.channel-group-filter label span{margin-bottom:5px}
.channel-group-filter select{height:36px}
.channel-group-title{grid-column:1/-1;display:flex;align-items:center;min-height:30px;padding:4px 7px;border-bottom:1px solid rgba(34,211,238,.2);color:#67e8f9;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.11em}
.tag.group{background:rgba(99,102,241,.15);color:#c7d2fe}
.now-card{grid-template-columns:1fr;align-content:start}
.now-card-main{width:100%;display:grid;grid-template-columns:78px minmax(0,1fr);gap:9px;align-items:center;border:0;background:transparent;color:inherit;text-align:left;padding:0;min-width:0}
.now-card-main:hover strong{color:#fff}
.now-card-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;width:100%;min-width:0}
.now-card-progress .progress-line{grid-column:auto;width:100%;min-width:0;margin:0}
.now-card-progress small{margin:0;color:#cbd5e1;font-size:10px;font-variant-numeric:tabular-nums}
.now-watch-btn{width:100%;height:30px;border:1px solid rgba(250,204,21,.24);border-radius:6px;background:rgba(250,204,21,.06);color:#fde68a;font-size:11px;font-weight:900}
.now-watch-btn:hover,.now-watch-btn.active{border-color:rgba(250,204,21,.55);background:rgba(250,204,21,.15);color:#fff7cc}
.now-groups{display:flex;flex-direction:column;gap:14px}
.now-group{min-width:0;border:1px solid rgba(255,255,255,.08);border-radius:8px;background:rgba(0,0,0,.12);padding:10px}
.now-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 9px;padding:0 2px 8px;border-bottom:1px solid rgba(255,255,255,.08)}
.now-group-head span{color:#67e8f9;font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.1em}
.now-group-head small{color:var(--muted);font-size:11px}
.now-group-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px;align-items:stretch}
.now-group[data-now-group="pay"]{border-color:rgba(245,158,11,.22);background:rgba(245,158,11,.035)}
.now-group[data-now-group="pay"] .now-group-head span{color:#fcd34d}
body.app-focus-mode{overflow:hidden}
body.app-focus-mode .app-shell{position:fixed;inset:0;z-index:9999;overflow:auto;background:var(--bg);padding:8px}
body.app-focus-mode .site-footer{display:none}

@media(max-width:760px){
  .app-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .app-nav button:last-child{grid-column:1/-1}
  .watchlist-summary-link{align-items:flex-start;flex-direction:column;gap:9px}
  .watchlist-summary-open{width:100%;justify-content:center}
  .watchlist-page-head{flex-direction:column}
  .watchlist-page-head .reminder-actions{width:100%;justify-content:stretch}
  .watchlist-page-head .reminder-actions .soft-btn{flex:1 1 auto}
  .watchlist-library,.watchlist-reminder-grid{grid-template-columns:1fr}
  .topbar-actions{gap:6px;flex-wrap:nowrap}
  .topbar-actions .mobile-fullscreen{display:inline-flex;height:34px;padding:0 9px;font-size:11px}
  .topbar-actions .live-clock{min-width:76px;min-height:34px;padding:0 7px;font-size:12px}
  .topbar-actions .status-pill{display:none}
  .channel-group-filter{padding:0 8px 8px}
  body[data-page="channels"] .channel-list{grid-template-columns:1fr}
  .channel-group-title{position:sticky;top:0;z-index:1;background:rgba(15,21,32,.98)}
  .now-card{flex-basis:82vw;min-height:140px}
  .now-card-main{grid-template-columns:72px minmax(0,1fr)}
  .program-thumb{width:72px}
  body[data-page="now"] .now-rail{display:block;overflow:visible;scroll-snap-type:none}
  body[data-page="now"] .now-group{padding:8px}
  body[data-page="now"] .now-group-grid{grid-template-columns:1fr;gap:8px}
  body[data-page="now"] .now-card{min-height:0;flex-basis:auto}
  body[data-page="now"] .now-card-main{grid-template-columns:72px minmax(0,1fr)}
  body[data-page="now"] .now-group-head{align-items:flex-start}

}

@media (max-width:700px){
  .watchlist-alpha-grid{grid-template-columns:1fr}
  .watchlist-upcoming-group{padding:8px}
  .watchlist-upcoming-group-head{align-items:flex-start}
  .watchlist-upcoming-group-head strong{white-space:normal}
}

/* Release-Komponente */
.episode-badge{display:inline-flex!important;align-items:center;width:max-content;max-width:100%;min-height:20px;margin-top:5px!important;padding:2px 7px;border:1px solid rgba(34,211,238,.32);border-radius:999px;background:rgba(34,211,238,.09);color:#a5f3fc!important;font-size:10px!important;font-weight:950;line-height:1.2;letter-spacing:.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.now-card .episode-badge{margin-top:5px!important}
.slot .episode-badge{margin-top:5px!important}
.search-item .episode-badge{margin-top:6px!important}
.reminder-item .episode-badge{margin-top:5px!important;color:#a5f3fc!important}
@media(max-width:760px){
  .episode-badge{font-size:9px!important;min-height:19px;padding:2px 6px}
}

/* Release-Komponente */
.episode-title{display:block!important;margin-top:4px!important;color:#dbeafe!important;font-size:10px!important;line-height:1.35!important;white-space:normal!important}
.episode-title>span{display:inline-block;margin-right:5px;color:#67e8f9;font-size:9px;font-weight:950;letter-spacing:.05em;text-transform:uppercase}
.now-card .episode-title{max-width:100%;overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){.episode-title{font-size:9px!important}.episode-title>span{font-size:8px}}

/* Release-Komponente */
.now-searchbar{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;gap:8px;align-items:center;margin:0 0 5px;padding:8px;border:1px solid rgba(34,211,238,.18);border-radius:8px;background:rgba(2,6,23,.34)}
.now-search-field{position:relative;display:block;min-width:0}
.now-search-field input{width:100%;height:40px;padding:0 12px 0 39px;border:1px solid rgba(255,255,255,.14);border-radius:7px;background:#0b1220;color:#f8fafc;font:inherit;outline:none}
.now-search-field input::placeholder{color:#7f8ca3}
.now-search-field input:focus{border-color:rgba(34,211,238,.65);box-shadow:0 0 0 3px rgba(34,211,238,.09)}
.now-search-icon{position:absolute;left:13px;top:50%;translate:0 -50%;z-index:1;color:#67e8f9;font-size:20px;line-height:1;pointer-events:none}
.now-search-count{display:inline-flex;align-items:center;justify-content:center;min-width:70px;height:32px;padding:0 10px;border:1px solid rgba(34,211,238,.24);border-radius:999px;background:rgba(34,211,238,.08);color:#a5f3fc;font-size:11px;font-weight:950;font-variant-numeric:tabular-nums;white-space:nowrap}
.now-search-clear{height:36px;white-space:nowrap}
.now-search-hint{margin:0 1px 9px;color:#7f8ca3;font-size:10px;line-height:1.35}
body[data-page="now"] .now-searchbar{display:grid}
body:not([data-page="now"]) .now-searchbar,body:not([data-page="now"]) .now-search-hint{display:none}
body[data-page="now"] .now-rail>.empty-state{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:130px;justify-content:center}
body[data-page="now"] .now-rail>.empty-state span{color:var(--muted)}

@media(max-width:760px){
  .now-searchbar{grid-template-columns:minmax(0,1fr) auto;padding:7px;gap:7px}
  .now-search-field{grid-column:1/-1}
  .now-search-field input{height:44px;font-size:16px}
  .now-search-count{justify-self:start}
  .now-search-clear{justify-self:end}
  .now-search-hint{font-size:9px;margin-bottom:8px}
}

/* Release-Komponente */
.time-sync-panel{display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px;margin:0 1px 10px;padding:8px 10px;border:1px solid rgba(250,204,21,.18);border-radius:8px;background:rgba(250,204,21,.045);color:#aeb9cb;font-size:10px;font-variant-numeric:tabular-nums}
.time-sync-panel>span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.time-sync-panel strong{color:#f8fafc;font-size:11px;letter-spacing:.025em}
.time-sync-status{padding:4px 7px;border:1px solid rgba(74,222,128,.3);border-radius:999px;background:rgba(74,222,128,.08);color:#86efac!important;font-weight:950;letter-spacing:.05em}
.time-sync-status.warn{border-color:rgba(248,113,113,.4);background:rgba(248,113,113,.09);color:#fca5a5!important}
.time-sync-zone{margin-left:auto;color:#fde68a}
body:not([data-page="now"]) .time-sync-panel{display:none}
@media(max-width:720px){.time-sync-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;padding:8px}.time-sync-panel>span{white-space:normal}.time-sync-status,.time-sync-zone{grid-column:1/-1}.time-sync-zone{margin-left:0}}

/* Release-Komponente */
.metric-pageviews{border-color:rgba(34,211,238,.24)!important;background:linear-gradient(180deg,rgba(34,211,238,.055),rgba(255,255,255,.018)),var(--surface)!important}
.metric-pageviews strong{font-variant-numeric:tabular-nums}
@media (min-width:761px) and (max-width:1180px){.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Release-Komponente */
@media (min-width:1051px){
  /* Auf Desktop nicht mehr auf einen zu kleinen Restbereich des Viewports begrenzen. */
  .workspace{
    height:clamp(780px,82vh,1120px);
    min-height:780px;
  }

  .guide-panel{
    min-height:780px;
  }

  /* Der eigentliche Programmbereich bekommt den zusätzlichen Platz. */
  body[data-page="guide"] .guide-rows{
    min-height:560px;
    scrollbar-gutter:stable;
  }

  /* Auch aktive Suchergebnisse dürfen die größere Panelhöhe wirklich nutzen. */
  body[data-page="search"][data-search-active="1"] .search-results{
    min-height:520px;
    scrollbar-gutter:stable;
  }

  /* Senderverwaltung profitiert auf großen Bildschirmen ebenfalls von der Höhe. */
  body[data-page="channels"] .channel-list{
    min-height:560px;
    scrollbar-gutter:stable;
  }
}

/* Sehr hohe Desktop-Monitore dürfen noch etwas mehr vom verfügbaren Raum nutzen. */
@media (min-width:1051px) and (min-height:1000px){
  .workspace{
    height:clamp(880px,86vh,1260px);
    min-height:880px;
  }
  .guide-panel{min-height:880px}
  body[data-page="guide"] .guide-rows{min-height:650px}
  body[data-page="search"][data-search-active="1"] .search-results{min-height:610px}
  body[data-page="channels"] .channel-list{min-height:650px}
}

/* Finaler Tagesprogramm-Ausbau */
.program-dashboard-head{border:1px solid rgba(103,232,249,.12);border-radius:10px;background:linear-gradient(135deg,rgba(34,211,238,.055),rgba(99,102,241,.035)),rgba(10,15,25,.72);padding:13px 14px;margin-bottom:9px}
.program-dashboard-copy{min-width:0;flex:1 1 auto}
.guide-title-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.guide-package-badge{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border:1px solid rgba(250,204,21,.25);border-radius:999px;background:rgba(250,204,21,.07);color:#fde68a;font-size:10px;font-weight:900}
.guide-meta{margin:7px 0 0;font-size:12px}
.guide-context{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:9px}
.guide-context-chip{display:inline-flex;align-items:center;min-height:25px;padding:0 8px;border:1px solid rgba(255,255,255,.09);border-radius:999px;background:rgba(255,255,255,.025);color:#cbd5e1;font-size:10px;font-weight:800}
.guide-context-chip.epg{color:#a5f3fc;border-color:rgba(34,211,238,.18);background:rgba(34,211,238,.05)}
.guide-context-chip.epg.stale{color:#fde68a;border-color:rgba(250,204,21,.22);background:rgba(250,204,21,.06)}
.guide-actions{justify-content:flex-end;align-self:flex-start;max-width:620px}
.guide-actions>button{height:auto;min-height:46px;padding:7px 12px;display:grid;align-content:center;justify-items:start;gap:2px;line-height:1}
.guide-actions .action-kicker{display:block;color:#7dd3fc;font-size:8px;font-weight:950;letter-spacing:.09em}
.guide-actions strong{display:block;font-size:12px;line-height:1.1}
.guide-actions .primary-btn .action-kicker{color:#e0e7ff}
.guide-all-channels-btn{border-color:rgba(250,204,21,.25)!important;color:#fde68a!important}
.guide-all-channels-btn[hidden]{display:none!important}
.guide-day-help{display:none;margin:0 0 8px;padding:8px 10px;border:1px solid rgba(103,232,249,.12);border-radius:8px;background:rgba(34,211,238,.035);color:#9fb1c8;font-size:11px;line-height:1.45}
body[data-page="guide"] .guide-day-help{display:block}
.guide-channel-group{display:grid;gap:7px}
.guide-channel-group+.guide-channel-group{margin-top:6px}
.guide-channel-group-head{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 9px;border:1px solid rgba(103,232,249,.12);border-radius:7px;background:rgba(12,18,29,.96);backdrop-filter:blur(8px)}
.guide-channel-group-head span{color:#67e8f9;font-size:10px;font-weight:950;letter-spacing:.10em;text-transform:uppercase}
.guide-channel-group-head small{color:#8fa0b7;font-size:10px}
.guide-channel-group-body{display:grid;gap:7px}
.guide-row.guide-row-timeline{grid-template-columns:minmax(170px,210px) minmax(0,1fr);gap:10px;min-height:150px;padding:9px}
.guide-station{align-items:flex-start;padding:5px 2px}
.guide-station-copy{min-width:0;display:block}
.guide-station-title{display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0}
.guide-station-title>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.guide-fav-btn{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid rgba(255,255,255,.10);border-radius:7px;background:rgba(255,255,255,.025);color:#6f7480;font-size:17px;line-height:1;cursor:pointer;transition:border-color .15s ease,background .15s ease,color .15s ease,transform .15s ease}
.guide-fav-btn:hover{border-color:rgba(250,204,21,.38);background:rgba(250,204,21,.07);color:#fde68a;transform:translateY(-1px)}
.guide-fav-btn.active{border-color:rgba(250,204,21,.36);background:rgba(250,204,21,.10);color:#facc15;box-shadow:inset 0 0 0 1px rgba(250,204,21,.06)}
.guide-station-copy em{display:block;margin-top:8px;color:#fbbf24;font-size:10px;font-style:normal;line-height:1.4}
.guide-day-column{min-width:0;display:grid;align-content:start;gap:7px}
.guide-row-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:29px;color:#91a1b7;font-size:10px}
.guide-row-toolbar>span strong{color:#e2e8f0}
.guide-row-nav{display:flex;align-items:center;gap:5px;flex:0 0 auto}
.mini-guide-btn{height:28px;border:1px solid rgba(255,255,255,.1);border-radius:6px;background:rgba(255,255,255,.035);color:#cbd5e1;padding:0 8px;font-size:10px;font-weight:850;white-space:nowrap}
.mini-guide-btn:hover:not(:disabled){border-color:rgba(34,211,238,.3);background:rgba(34,211,238,.07);color:#cffafe}
.mini-guide-btn.full{border-color:rgba(250,204,21,.2);color:#fde68a;background:rgba(250,204,21,.045)}
.mini-guide-btn:disabled{opacity:.34;cursor:default}
.guide-timeline{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(170px,1fr);gap:6px;min-width:0;overflow-x:auto;overflow-y:hidden;padding:1px 1px 5px;scroll-snap-type:x proximity;scrollbar-gutter:stable}
.guide-timeline.expanded{grid-auto-columns:minmax(185px,220px)}
.timeline-program{position:relative;min-width:0;min-height:91px;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:#111827;color:inherit;text-align:left;padding:9px;overflow:hidden;scroll-snap-align:start}
.timeline-program:hover{border-color:rgba(103,232,249,.28);background:#172235}
.timeline-program strong{display:block;margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:1.25}
.timeline-program .program-subtitle{display:block;margin-top:5px;color:#97a6ba;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.timeline-time{display:flex;align-items:center;gap:6px;color:#8fa0b7;font-size:9px;font-variant-numeric:tabular-nums}
.timeline-live-badge,.timeline-prime-badge{display:inline-flex;align-items:center;min-height:18px;padding:0 5px;border-radius:999px;font-size:8px;font-weight:950;letter-spacing:.05em}
.timeline-live-badge{background:#f59e0b;color:#111827}
.timeline-prime-badge{background:rgba(250,204,21,.12);color:#fde68a;border:1px solid rgba(250,204,21,.2)}
.timeline-program.current{border-color:#f59e0b;background:linear-gradient(135deg,rgba(245,158,11,.20),rgba(127,29,29,.12)),#141821;box-shadow:inset 4px 0 #f59e0b,0 0 0 1px rgba(245,158,11,.08)}
.timeline-program.prime:not(.current){border-color:rgba(250,204,21,.4)}
.timeline-program.past{opacity:.64}
.timeline-program.movie{background:linear-gradient(135deg,rgba(127,29,29,.28),rgba(67,20,7,.22)),#111827}
.timeline-program.watched{box-shadow:inset 0 0 0 1px rgba(250,204,21,.23)}
.guide-timeline-empty{display:grid;align-items:center;min-height:90px;padding:10px;border:1px dashed rgba(255,255,255,.1);border-radius:8px;color:#7f8ca3;font-size:11px}

@media(min-width:1051px){
  body[data-page="guide"] .guide-row.guide-row-timeline{min-height:158px}
  body[data-page="guide"] .guide-rows{min-height:620px}
}
@media(max-width:1050px){
  .program-dashboard-head{display:grid;gap:10px}
  .guide-actions{justify-content:flex-start;max-width:none}
  .guide-row.guide-row-timeline{grid-template-columns:1fr;min-height:0}
  .guide-station{padding-bottom:0}
  .guide-row-toolbar{align-items:flex-start;flex-direction:column}
  .guide-row-nav{width:100%;overflow-x:auto;padding-bottom:2px}
  .guide-timeline{grid-auto-columns:minmax(190px,72vw)}
}
@media(max-width:620px){
  .program-dashboard-head{padding:10px}
  .guide-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .guide-actions>button{width:100%;min-width:0}
  .guide-title-line h2{font-size:17px}
  .guide-context{gap:5px}
  .guide-context-chip{font-size:9px;padding:0 6px}
  .guide-timeline{grid-auto-columns:minmax(180px,82vw)}
}

/* Waipu-Senderverwaltung: übersichtlicher Katalog auf großen Bildschirmen */
.channel-browser-head{align-items:center}
.channel-browser-summary{margin:6px 0 0;font-size:11px;line-height:1.35}
.channel-select-visible{min-width:max-content}
.channel-filter-tabs .filter-count{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:5px;padding:0 5px;border-radius:999px;background:rgba(255,255,255,.07);color:#cbd5e1;font-size:9px;font-weight:950}
.channel-filter-tabs button.active .filter-count{background:rgba(34,211,238,.14);color:#cffafe}
.tag.neutral{background:rgba(148,163,184,.10);color:#cbd5e1}
.channel-group-title{justify-content:space-between;gap:12px}
.channel-group-title small{margin-left:auto;color:#8fa0b7;font-size:10px;font-weight:800;text-transform:none;letter-spacing:0}

@media (min-width:1051px){
  body[data-page="channels"] .channel-list{
    grid-template-columns:repeat(auto-fit,minmax(310px,1fr));
    gap:8px;
    padding:10px;
  }
  body[data-page="channels"] .channel-item{
    min-height:72px;
    padding:9px 10px;
    gap:10px;
    border-color:rgba(255,255,255,.045);
  }
  body[data-page="channels"] .channel-item .logo{
    width:42px;
    height:42px;
    font-size:11px;
  }
  body[data-page="channels"] .channel-name strong{
    font-size:12px;
    line-height:1.25;
  }
  body[data-page="channels"] .channel-name small{
    margin-top:6px;
    gap:4px;
  }
  body[data-page="channels"] .channel-name .tag{
    height:18px;
    padding:0 6px;
    font-size:9px;
  }
  body[data-page="channels"] .channel-group-title{
    min-height:36px;
    padding:6px 9px;
    background:rgba(12,18,29,.98);
  }
}

@media (max-width:1050px){
  .channel-browser-head{align-items:flex-start}
  .channel-browser-summary{max-width:60ch}
  .channel-filter-tabs{padding-bottom:9px}
  .channel-group-title small{font-size:9px}
}

@media (max-width:700px){
  .channel-browser-head{display:grid;grid-template-columns:1fr;gap:9px}
  .channel-select-visible{width:100%}
  .channel-group-title{align-items:flex-start;flex-direction:column;gap:2px}
  .channel-group-title small{margin-left:0}
  body[data-page="channels"] .channel-item{min-height:68px;padding:8px}
}

/* Programm-Sendersuche + direkter Einstieg in den aktuellen Tagesabschnitt */
.guide-channel-searchbar{display:none;align-items:center;gap:8px;margin:0 0 8px;padding:8px;border:1px solid rgba(103,232,249,.12);border-radius:8px;background:rgba(34,211,238,.03)}
body[data-page="guide"] .guide-channel-searchbar{display:flex}
.guide-channel-search-field{display:flex;align-items:center;gap:7px;flex:1 1 320px;min-width:180px;height:38px;padding:0 10px;border:1px solid rgba(255,255,255,.11);border-radius:7px;background:rgba(8,13,22,.82);color:#7dd3fc}
.guide-channel-search-field:focus-within{border-color:rgba(34,211,238,.42);box-shadow:0 0 0 2px rgba(34,211,238,.07)}
.guide-channel-search-field>span{font-size:16px;font-weight:900;line-height:1}
.guide-channel-search-field input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:12px}
.guide-channel-search-field input::placeholder{color:#748399}
.guide-channel-search-count{flex:0 0 auto;display:inline-flex;align-items:center;min-height:32px;padding:0 9px;border:1px solid rgba(255,255,255,.09);border-radius:999px;background:rgba(255,255,255,.025);color:#a5b4c7;font-size:10px;font-weight:850;white-space:nowrap}
.guide-channel-searchbar .soft-btn{height:34px;font-size:11px;white-space:nowrap}
.guide-channel-searchbar .guide-jump-now{border-color:rgba(245,158,11,.28);background:rgba(245,158,11,.07);color:#fde68a}
.guide-channel-searchbar .guide-jump-now:disabled{opacity:.42;cursor:default}

@media(max-width:760px){
  .guide-channel-searchbar{align-items:stretch;flex-wrap:wrap}
  .guide-channel-search-field{flex:1 1 100%;width:100%}
  .guide-channel-search-count{flex:1 1 auto;justify-content:center}
  .guide-channel-searchbar .soft-btn{flex:1 1 auto}
}


@media (max-width:760px){
  .provider-facts{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;padding-bottom:7px;scroll-snap-type:x proximity}
  .provider-fact{flex:0 0 min(86vw,340px);scroll-snap-align:start;padding:10px 11px}
  .streaming-panel{max-height:46dvh}
  .streaming-service-grid{grid-template-columns:1fr}
}

/* Accessibility: große, deutlich erkennbare Scrollflächen und Neon-Scrollbars */
:root{
  --scroll-neon:#39ff14;
  --scroll-neon-hover:#76ff5d;
  --scroll-track:#07110b;
}

html,
body,
.source-mix,
.provider-facts,
.tab-row,
.channel-list,
.now-rail,
.search-results,
.streaming-panel,
.watch-chip-row,
.guide-rows,
.legal-nav,
.app-focus-mode .app-shell,
.guide-timeline,
.guide-row-nav{
  scrollbar-color:var(--scroll-neon) var(--scroll-track);
  scrollbar-width:auto;
}

::-webkit-scrollbar{
  width:16px;
  height:16px;
}
::-webkit-scrollbar-track{
  background:var(--scroll-track);
  border-radius:999px;
}
::-webkit-scrollbar-thumb{
  min-width:42px;
  min-height:42px;
  background:var(--scroll-neon);
  border:3px solid var(--scroll-track);
  border-radius:999px;
  box-shadow:0 0 8px rgba(57,255,20,.48);
}
::-webkit-scrollbar-thumb:hover{
  background:var(--scroll-neon-hover);
  box-shadow:0 0 11px rgba(57,255,20,.72);
}
::-webkit-scrollbar-corner{background:var(--scroll-track)}

.channel-list,
.guide-rows,
.search-results,
.streaming-panel,
.guide-timeline{
  scrollbar-gutter:stable;
}

/* Mehr nutzbare Scrollhöhe für Sender, Programm und Suche auf Desktop. */
@media (min-width:1051px){
  .workspace{
    height:clamp(840px,88dvh,1280px);
    min-height:840px;
  }
  .channel-panel,
  .guide-panel{min-height:840px}

  body[data-page="channels"] .channel-list{
    min-height:650px;
    max-height:none;
  }
  body[data-page="guide"] .guide-rows{
    min-height:650px;
    max-height:none;
  }
  body[data-page="search"][data-search-active="1"] .search-results{
    min-height:610px;
    max-height:none;
  }
}

/* Hohe PC-Monitore sollen den vorhandenen Platz noch konsequenter nutzen. */
@media (min-width:1051px) and (min-height:1000px){
  .workspace{
    height:clamp(980px,90dvh,1380px);
    min-height:980px;
  }
  .channel-panel,
  .guide-panel{min-height:980px}
  body[data-page="channels"] .channel-list{min-height:760px}
  body[data-page="guide"] .guide-rows{min-height:760px}
  body[data-page="search"][data-search-active="1"] .search-results{min-height:720px}
}

/* Tablet: deutlich mehr Listenhöhe, ohne die Bedienleiste aus dem Blick zu drängen. */
@media (min-width:761px) and (max-width:1050px){
  body[data-page="channels"] .channel-panel,
  body[data-page="guide"] .guide-panel,
  body[data-page="search"] .guide-panel{min-height:720px}

  body[data-page="channels"] .channel-list{
    min-height:560px;
    max-height:76dvh;
  }
  body[data-page="guide"] .guide-rows{
    min-height:520px;
    max-height:72dvh;
  }
  body[data-page="search"][data-search-active="1"] .search-results{
    min-height:500px;
    max-height:72dvh;
  }
}

/* Handy: mehr Fläche für Sender/Programm; dvh berücksichtigt die Browserleisten besser. */
@media (max-width:760px){
  ::-webkit-scrollbar{width:14px;height:14px}

  body[data-page="channels"] .channel-list{
    min-height:58vh;
    min-height:58dvh;
    max-height:74vh;
    max-height:74dvh;
  }
  body[data-page="guide"] .guide-rows{
    min-height:54vh;
    min-height:54dvh;
    max-height:72vh;
    max-height:72dvh;
  }
  body[data-page="search"][data-search-active="1"] .search-results{
    min-height:50vh;
    min-height:50dvh;
    max-height:70vh;
    max-height:70dvh;
  }

  .now-rail,
  .tab-row,
  .source-mix,
  .watch-chip-row,
  .legal-nav,
  .guide-timeline,
  .guide-row-nav{
    padding-bottom:8px;
  }
}

/* Querformat auf kleinen Geräten: ausreichend Scrollraum trotz geringer Displayhöhe. */
@media (max-width:900px) and (orientation:landscape){
  body[data-page="channels"] .channel-list{
    min-height:360px;
    max-height:78dvh;
  }
  body[data-page="guide"] .guide-rows{
    min-height:340px;
    max-height:76dvh;
  }
  body[data-page="search"][data-search-active="1"] .search-results{
    min-height:320px;
    max-height:74dvh;
  }
}

/* Anbieter-Live-TV: gut erkennbare Aktionsflächen */
.streaming-service-card>div>small{display:block;margin:5px 0 9px;color:var(--muted);font-size:12px;line-height:1.4}
.streaming-action{display:inline-flex;align-items:center;justify-content:center;min-height:36px;border:1px solid rgba(56,189,248,.38);border-radius:7px;background:rgba(56,189,248,.12);color:#dff7ff;text-decoration:none;font-size:12px;font-weight:900;padding:7px 11px}
.streaming-action:hover{border-color:rgba(56,189,248,.7);background:rgba(56,189,248,.2)}
.streaming-action.secondary{border-color:rgba(255,255,255,.13);background:rgba(255,255,255,.045);color:#e2e8f0}
.streaming-action.secondary:hover{border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.08)}

/* Senderreihenfolge: Public Value 2025 + persönliche Sortierung */
.channel-order-strip{
  display:grid;
  grid-template-columns:minmax(180px,.85fr) minmax(210px,.8fr) minmax(220px,1fr) minmax(260px,1.45fr);
  gap:10px;
  align-items:end;
  margin:10px 0;
  padding:10px 12px;
  border:1px solid rgba(57,255,20,.18);
  border-radius:10px;
  background:linear-gradient(90deg,rgba(57,255,20,.045),rgba(56,189,248,.035)),rgba(10,15,24,.92);
}
.channel-order-title{display:flex;flex-direction:column;gap:3px;align-self:center;min-width:0}
.channel-order-title .eyebrow{margin:0;color:#39ff14;font-size:10px;letter-spacing:.14em}
.channel-order-title strong{font-size:13px;line-height:1.25}
.channel-order-strip label{display:flex;flex-direction:column;gap:5px;min-width:0}
.channel-order-strip label>span{color:#93a4b8;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.channel-order-strip select{width:100%;height:38px;min-width:0}
.channel-order-strip p{margin:0;align-self:center;color:#a8b6c8;font-size:11px;line-height:1.45}
.channel-group-title.public-value,
.guide-channel-group.public-value .guide-channel-group-head,
.now-group.public-value{
  border-color:rgba(57,255,20,.28);
  background:linear-gradient(90deg,rgba(57,255,20,.07),rgba(56,189,248,.025)),rgba(10,18,18,.94);
}
.channel-group-title.public-value span,
.guide-channel-group.public-value .guide-channel-group-head span,
.now-group.public-value .now-group-head span{color:#76ff5d}

@media(max-width:1050px){
  .channel-order-strip{grid-template-columns:1fr 1fr}
  .channel-order-title,.channel-order-strip p{grid-column:1/-1}
}
@media(max-width:620px){
  .channel-order-strip{grid-template-columns:1fr;padding:9px;margin:8px 0}
  .channel-order-title,.channel-order-strip p{grid-column:auto}
  .channel-order-strip select{height:42px;font-size:14px}
  .channel-order-strip p{font-size:10px}
}


/* =========================================================
   SO-TVviewer Cover UI 2026
   Dunkles TV-Magazin-Layout mit Neon-Akzenten und Mobile-First
   ========================================================= */
:root{
  --bg:#03080c;
  --surface:#09111a;
  --surface-2:#0d1722;
  --surface-3:#111d2a;
  --line:rgba(125,211,252,.15);
  --text:#f8fafc;
  --muted:#91a3b7;
  --soft:#d8f3ff;
  --accent:#35f15a;
  --accent-strong:#39ff14;
  --accent-2:#22d3ee;
  --warm:#facc15;
  --danger:#fb4c5c;
  --good:#35f15a;
  --radius:12px;
}
html{background:#020609}
body{
  background:
    radial-gradient(circle at 78% -10%,rgba(14,165,233,.15),transparent 34rem),
    radial-gradient(circle at 8% 115%,rgba(57,255,20,.10),transparent 36rem),
    linear-gradient(180deg,#050a0f 0,#03080c 42%,#020609 100%);
  background-attachment:fixed;
}
main{display:flex;flex-direction:column;gap:10px;min-width:0}
.app-shell{max-width:1920px;margin:0 auto;padding:12px;gap:10px}
.mobile-control-area{display:contents}
.mobile-controls-toggle{display:none}

.topbar{
  min-height:66px;height:auto;
  border-color:rgba(34,211,238,.24);
  background:linear-gradient(180deg,rgba(11,20,30,.96),rgba(5,11,17,.96));
  box-shadow:0 14px 45px rgba(0,0,0,.34),inset 0 1px rgba(255,255,255,.025);
}
.brand-mark{
  width:44px;height:44px;border-radius:12px;
  background:linear-gradient(145deg,rgba(57,255,20,.19),rgba(34,211,238,.13));
  border:1px solid rgba(57,255,20,.55);
  color:#75ff68;text-shadow:0 0 15px rgba(57,255,20,.75);
  box-shadow:inset 0 0 24px rgba(34,211,238,.07),0 0 20px rgba(57,255,20,.08);
}
.brand strong{font-size:20px;font-weight:950;letter-spacing:-.02em}
.brand strong em{font-style:normal;color:#48ff58;text-shadow:0 0 16px rgba(57,255,20,.28)}
.brand small{margin-top:1px;color:#9eb2c7;font-size:11px}
.live-clock{border-color:rgba(57,255,20,.34);background:rgba(57,255,20,.07);color:#baffb1}
.status-pill{border-color:rgba(34,211,238,.28);background:rgba(34,211,238,.07)}

.primary-btn{
  background:linear-gradient(135deg,#1fd85a,#10a9c7);
  color:#031009;text-shadow:0 1px rgba(255,255,255,.2);
  font-weight:950;
  box-shadow:0 0 18px rgba(57,255,20,.08);
}
.primary-btn:hover{background:linear-gradient(135deg,#49ef70,#2bc6e0)}
.soft-btn,.link-btn,.icon-btn{background:#0d1721;border-color:rgba(148,163,184,.18)}
.soft-btn:hover,.link-btn:hover,.icon-btn:hover{border-color:rgba(57,255,20,.38);background:#12202b}
input,select{background:#071019;border-color:rgba(148,163,184,.18);min-height:42px}
input:focus,select:focus{border-color:rgba(57,255,20,.55);box-shadow:0 0 0 3px rgba(57,255,20,.08)}

/* Navigation wie auf dem neuen Cover */
.app-nav{
  order:-20;
  grid-template-columns:repeat(5,minmax(0,1fr));
  padding:5px;
  gap:5px;
  border-color:rgba(34,211,238,.22);
  background:linear-gradient(180deg,rgba(10,18,28,.96),rgba(6,12,19,.96));
  box-shadow:0 8px 28px rgba(0,0,0,.22);
}
.app-nav button{
  min-height:48px;height:auto;padding:6px 9px;
  display:flex;align-items:center;justify-content:center;gap:7px;
  border-radius:9px;color:#bac8d8;font-size:12px;
}
.app-nav button.active{
  color:#dfffff;border-color:rgba(34,211,238,.55);
  background:linear-gradient(180deg,rgba(34,211,238,.13),rgba(57,255,20,.055));
  box-shadow:inset 0 -2px rgba(57,255,20,.7),0 0 15px rgba(34,211,238,.06);
}
.nav-icon{font-size:17px;line-height:1;color:#6fe7ff}
.app-nav button.active .nav-icon{color:#58ff66;text-shadow:0 0 12px rgba(57,255,20,.5)}

.control-strip,.source-mix,.channel-order-strip,.provider-fact,.metrics article,
.channel-panel,.guide-panel,.now-strip{
  border-color:rgba(125,211,252,.14);
  background:linear-gradient(180deg,rgba(17,29,42,.94),rgba(7,14,22,.96));
}
.control-strip{box-shadow:inset 0 1px rgba(255,255,255,.025)}
.source-mix button.active{border-color:rgba(57,255,20,.42);background:rgba(57,255,20,.08);color:#c8ffc5}
.channel-order-strip{margin:0;border-color:rgba(57,255,20,.18)}
.channel-order-title .eyebrow,.eyebrow{color:#55f9ff}
.provider-fact.waipu::before{background:linear-gradient(#39ff14,#22d3ee)}
.metrics{gap:8px}
.metrics article{padding:10px 12px}
.metrics strong{color:#f4fbff}

/* Senderlogo-Fläche: standardmäßig eigene Wortmarke; echte Bilddateien nur bei dokumentierter Freigabe */
.channel-logo{
  position:relative;display:grid;place-items:center;flex:0 0 auto;
  width:56px;height:42px;padding:5px;border-radius:10px;overflow:hidden;
  border:1px solid rgba(148,163,184,.17);
  background:linear-gradient(145deg,rgba(255,255,255,.06),rgba(255,255,255,.012)),#0b1621;
  color:#ecfaff;font-size:11px;font-weight:950;letter-spacing:.035em;text-align:center;
  box-shadow:inset 0 1px rgba(255,255,255,.03);
}
.channel-logo img{position:relative;z-index:2;display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.channel-logo.has-image{background:linear-gradient(145deg,#f8fafc,#dce7ee);border-color:rgba(255,255,255,.22)}
.channel-logo.has-image .channel-logo-fallback{display:none}
.channel-logo-fallback{position:relative;z-index:1;overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}
.channel-logo.tone-blue{border-color:rgba(59,130,246,.35);background:linear-gradient(145deg,rgba(30,64,175,.46),rgba(8,24,48,.9))}
.channel-logo.tone-orange{border-color:rgba(249,115,22,.42);background:linear-gradient(145deg,rgba(194,65,12,.46),rgba(44,20,5,.92))}
.channel-logo.tone-red{border-color:rgba(248,113,113,.4);background:linear-gradient(145deg,rgba(185,28,28,.42),rgba(45,10,16,.9))}
.channel-logo.tone-cyan{border-color:rgba(34,211,238,.42);background:linear-gradient(145deg,rgba(8,145,178,.37),rgba(4,29,42,.93))}
.channel-logo.tone-violet{border-color:rgba(168,85,247,.38);background:linear-gradient(145deg,rgba(107,33,168,.38),rgba(29,13,48,.93))}
.channel-logo.tone-magenta{border-color:rgba(236,72,153,.4);background:linear-gradient(145deg,rgba(157,23,77,.4),rgba(45,8,27,.93))}
.channel-logo.tone-green{border-color:rgba(57,255,20,.35);background:linear-gradient(145deg,rgba(22,101,52,.5),rgba(4,32,21,.94))}

/* Jetzt läuft: schnelle TV-Zeitschriftenkarten */
.now-strip{padding:11px;border-radius:13px}
.section-label span{color:#59ff69;font-size:13px}
.now-searchbar{border-color:rgba(34,211,238,.2);background:rgba(1,8,13,.42)}
.now-group{border-radius:11px;padding:10px;background:rgba(3,10,15,.58)}
.now-group.public-value{border-color:rgba(57,255,20,.32)}
.now-group-grid{grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:9px}
.now-card{
  border-radius:11px;border-color:rgba(125,211,252,.14);
  background:linear-gradient(135deg,rgba(13,26,39,.98),rgba(15,20,37,.98));
  box-shadow:0 8px 24px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.025);
  padding:10px;gap:9px;min-height:132px;
}
.now-card:hover{border-color:rgba(57,255,20,.35);filter:none;transform:translateY(-1px)}
.now-card-main{grid-template-columns:82px minmax(0,1fr);gap:10px}
.program-thumb{
  width:82px;aspect-ratio:16/10;border:0;background:transparent!important;overflow:visible;
}
.program-thumb .channel-logo{width:82px;height:52px;border-radius:10px}
.now-card-copy strong{font-size:13px;line-height:1.3;color:#fff}
.now-card-meta{font-size:10px!important;color:#9ab0c7!important}
.progress-line{height:5px;background:rgba(148,163,184,.14)}
.progress-line i{background:linear-gradient(90deg,#39ff14,#22d3ee);box-shadow:0 0 10px rgba(57,255,20,.22)}
.now-watch-btn{min-height:36px;height:36px;border-color:rgba(250,204,21,.3);background:rgba(250,204,21,.055)}
.now-watch-btn:hover,.now-watch-btn.active{border-color:rgba(250,204,21,.62);background:rgba(250,204,21,.14)}

/* Senderbrowser */
body[data-page="channels"] .channel-list{grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:8px}
.channel-item{
  grid-template-columns:26px 62px minmax(0,1fr) 44px;gap:9px;min-height:72px;
  border-color:rgba(125,211,252,.08);border-radius:11px;background:rgba(7,16,24,.72);padding:8px;
}
.channel-item:hover{border-color:rgba(57,255,20,.28);background:rgba(11,24,31,.9)}
.channel-item input{width:20px;height:20px;accent-color:#39ff14}
.browser-channel-logo{width:60px;height:44px}
.channel-name strong{font-size:12px;color:#f6fbff}
.fav-btn{width:42px;height:42px;font-size:20px;border-radius:10px}
.fav-btn:hover{background:rgba(250,204,21,.07);border-color:rgba(250,204,21,.2)}
.fav-btn.active{color:#ffe13b;text-shadow:0 0 12px rgba(250,204,21,.38)}

/* Tagesprogramm */
.program-dashboard-head{border-bottom:1px solid rgba(125,211,252,.10);margin-bottom:8px}
.guide-context-chip{border-color:rgba(125,211,252,.14)!important;background:rgba(8,18,28,.72)!important}
.guide-rows{gap:9px}
.guide-row.guide-row-timeline{
  border-radius:12px;border-color:rgba(125,211,252,.11);
  background:linear-gradient(135deg,rgba(7,16,25,.95),rgba(10,17,30,.95));
}
.guide-station{align-items:center}
.guide-channel-logo{width:66px;height:48px}
.guide-station-title strong{font-size:13px}
.guide-fav-btn{min-width:40px;min-height:40px}
.guide-timeline{gap:7px}
.timeline-program{border-radius:10px;border-color:rgba(125,211,252,.12);background:#101b28}
.timeline-program.current{border-color:rgba(57,255,20,.55);box-shadow:inset 3px 0 #39ff14,0 0 16px rgba(57,255,20,.07)}
.timeline-program.current strong{color:#fff}
.timeline-live-badge{background:#21d450!important;color:#041008!important}

/* Die Fremd-EPG-Bilder werden nicht automatisch gezeigt. Die vorhandenen
   Genreflächen bleiben als visuelle Hierarchie ohne Rechte-Risiko. */
.program-thumb.has-image img{display:none!important}

.site-footer{border-top-color:rgba(34,211,238,.14)}
.site-footer small{max-width:95ch;line-height:1.45}

@media (min-width:1200px){
  .now-group-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
  body[data-page="channels"] .channel-list{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
}

/* Smartphone: Bedienung vor Informationsdichte */
@media (max-width:760px){
  body{padding-bottom:max(8px,env(safe-area-inset-bottom))}
  .app-shell{padding:6px;gap:6px}
  main{gap:6px}
  .topbar{
    min-height:58px;padding:7px 8px;align-items:center;top:0;border-radius:10px;
  }
  .brand{gap:8px}
  .brand-mark{width:38px;height:38px;border-radius:10px;font-size:12px}
  .brand strong{font-size:16px;white-space:nowrap}
  .brand small{display:none}
  .topbar-actions{margin-left:auto}
  .topbar-actions .live-clock{display:inline-flex;min-width:68px;min-height:34px;font-size:11px;padding:0 6px}
  .topbar-actions .mobile-fullscreen{display:inline-flex;min-width:42px;width:42px;padding:0;font-size:0}
  .topbar-actions .mobile-fullscreen::before{content:"⛶";font-size:17px}

  .app-nav{
    position:sticky;top:64px;z-index:19;display:flex;grid-template-columns:none;
    gap:3px;padding:4px;overflow-x:auto;overflow-y:hidden;border-radius:10px;
    scroll-snap-type:x proximity;
  }
  .app-nav button,.app-nav button:last-child{
    grid-column:auto;flex:1 0 66px;min-width:66px;min-height:52px;padding:5px 4px;
    flex-direction:column;gap:2px;font-size:9px;scroll-snap-align:start;
  }
  .nav-icon{font-size:16px}
  .nav-count{min-width:16px;height:16px;font-size:8px;margin-left:2px}

  .mobile-controls-toggle{
    display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:44px;
    border:1px solid rgba(57,255,20,.22);border-radius:10px;
    background:linear-gradient(90deg,rgba(57,255,20,.075),rgba(34,211,238,.055));
    color:#d7fce0;font-weight:900;font-size:12px;
  }
  .mobile-controls-toggle[aria-expanded="true"]{border-color:rgba(57,255,20,.48);background:rgba(57,255,20,.10)}
  .mobile-control-area{display:none}
  body.mobile-controls-open .mobile-control-area{display:flex;flex-direction:column;gap:6px}
  body.mobile-controls-open .mobile-controls-toggle{position:sticky;top:122px;z-index:18}

  .control-strip{grid-template-columns:1fr;padding:9px;gap:8px}
  .control-strip .search-field{grid-column:auto}
  .control-strip .primary-btn,.control-strip .soft-btn{min-height:44px}
  .source-mix{padding:6px;gap:5px}
  .source-mix button{min-height:40px;height:40px}
  .channel-order-strip{margin:0;padding:8px}
  .provider-facts{padding-bottom:4px}
  .provider-fact{flex-basis:100%}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  .metrics article{padding:8px 9px}
  .metrics article:nth-child(n+5){display:none}

  .workspace{width:100%;min-width:0}
  .guide-panel{padding:7px;border-radius:10px}
  .guide-head{padding:4px 3px 8px}
  .guide-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:5px}
  .guide-actions .soft-btn,.guide-actions .primary-btn{width:100%;min-height:44px;height:auto;padding:6px}
  .action-kicker{font-size:7px!important}

  .now-strip{padding:7px;margin:0;border-radius:10px}
  .section-label{align-items:flex-start;flex-direction:column;gap:2px;margin-bottom:6px}
  .section-label span{font-size:12px}
  .section-label small{font-size:9px}
  .now-searchbar{grid-template-columns:1fr auto;padding:6px;gap:5px}
  .now-search-field{grid-column:1/-1}
  .now-search-field input{height:44px;font-size:14px}
  .now-search-count{min-height:34px}
  .now-search-clear{min-height:34px}
  .now-search-hint{display:none}
  .time-sync-panel{font-size:8px;padding:5px 6px;gap:5px;overflow-x:auto;white-space:nowrap}
  .time-sync-zone{margin-left:0!important}

  body[data-page="now"] .now-group{padding:6px;border-radius:9px}
  body[data-page="now"] .now-group-head{margin-bottom:6px;padding-bottom:5px}
  body[data-page="now"] .now-group-head span{font-size:10px}
  body[data-page="now"] .now-group-head small{font-size:9px}
  body[data-page="now"] .now-group-grid{gap:6px}
  body[data-page="now"] .now-card{min-height:116px;padding:8px;gap:7px;border-radius:9px}
  body[data-page="now"] .now-card-main{grid-template-columns:68px minmax(0,1fr);gap:8px;min-height:52px}
  body[data-page="now"] .program-thumb{width:68px}
  body[data-page="now"] .program-thumb .channel-logo{width:68px;height:46px;border-radius:8px}
  body[data-page="now"] .now-card-copy strong{font-size:13px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  body[data-page="now"] .now-card-meta{font-size:9px!important;white-space:normal}
  body[data-page="now"] .now-watch-btn{min-height:42px;height:42px;font-size:11px}
  body[data-page="now"] .now-card-progress small{font-size:9px}

  body[data-page="channels"] .channel-list{padding:6px;gap:6px;grid-template-columns:1fr}
  body[data-page="channels"] .channel-item{grid-template-columns:24px 58px minmax(0,1fr) 44px;min-height:70px;padding:7px;gap:7px}
  .browser-channel-logo{width:56px;height:42px}
  .channel-item input{width:20px;height:20px}
  .fav-btn{width:44px;height:44px}
  .channel-name strong{font-size:12px}
  .channel-name .tag{font-size:9px;height:18px;padding:0 5px}

  .guide-channel-searchbar{padding:6px;gap:5px}
  .guide-channel-search-field{height:44px}
  .guide-row.guide-row-timeline{padding:7px;gap:7px;border-radius:10px}
  .guide-station{display:grid!important;grid-template-columns:68px minmax(0,1fr);gap:8px;align-items:center}
  .guide-channel-logo{width:66px;height:46px}
  .guide-station-copy{min-width:0}
  .guide-station-title{align-items:center}
  .guide-station-title strong{font-size:13px}
  .guide-fav-btn{min-width:44px;min-height:44px}
  .guide-station-copy em{font-size:9px}
  .guide-row-nav .mini-guide-btn{min-height:40px;padding:0 10px}
  .timeline-program{min-width:150px;min-height:92px;padding:9px}
  .timeline-program strong{font-size:11px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .timeline-time{font-size:9px}

  .site-footer{font-size:10px;padding:10px 4px}
  .site-footer nav{display:flex;gap:10px;overflow-x:auto;white-space:nowrap;width:100%}
}

@media (max-width:400px){
  .brand strong{font-size:15px}
  .topbar-actions .live-clock{min-width:62px;font-size:10px}
  .app-nav button,.app-nav button:last-child{flex-basis:62px;min-width:62px;font-size:8px}
  body[data-page="now"] .now-card-main{grid-template-columns:62px minmax(0,1fr)}
  body[data-page="now"] .program-thumb{width:62px}
  body[data-page="now"] .program-thumb .channel-logo{width:62px;height:43px}
}

@media (max-width:900px) and (orientation:landscape){
  .topbar{position:relative}
  .app-nav{top:0}
  body.mobile-controls-open .mobile-controls-toggle{top:58px}
  body[data-page="now"] .now-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-page="now"] .now-card{min-height:110px}
}

/* Noch kompaktere Startansicht auf kleinen Displays */
@media (max-width:760px){
  body[data-page="now"] .program-dashboard-head{display:none}
  .time-sync-panel>span:not(.time-sync-status):not(.time-sync-zone){display:none}
  .time-sync-panel .time-sync-zone{display:inline-flex!important}
  .time-sync-panel{min-height:30px;align-items:center}
  .app-shell{
    padding-left:max(6px,env(safe-area-inset-left));
    padding-right:max(6px,env(safe-area-inset-right));
    padding-bottom:max(6px,env(safe-area-inset-bottom));
  }
}
