/* == timeline.css == */
.guide-topics{display:flex;gap:8px;overflow:auto;padding:3px 1px 14px;margin:-4px 0 10px;scroll-snap-type:x proximity}.guide-topics button{scroll-snap-align:start;white-space:nowrap;border:1px solid var(--line);border-radius:999px;background:#111720;color:var(--muted);padding:9px 12px;font-weight:850;cursor:pointer}.guide-topics button small{color:#778493;margin-left:4px}.guide-topics button.active{background:var(--lime);border-color:var(--lime);color:#071000}.guide-topics button.active small{color:#314500}
.timeline-controls{display:grid;grid-template-columns:2fr repeat(4,minmax(130px,1fr));gap:10px;align-items:end;margin:0 0 10px}
.timeline-search{grid-column:auto}
.timeline-controls label{display:grid;gap:6px;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.timeline-controls select,.timeline-controls input,.timeline-controls button{min-height:44px;border:1px solid var(--line);border-radius:10px;padding:10px 13px}
.timeline-controls select,.timeline-controls input{background:#0c1017;color:var(--text)}
.timeline-controls button{background:var(--lime);color:#071000;font-weight:850;cursor:pointer}
.timeline-controls button.secondary{background:#171e29;color:var(--text)}
.timeline-file{min-height:44px;border:1px solid var(--line);border-radius:10px;padding:10px 13px;background:#171e29;color:var(--text)!important;cursor:pointer;display:flex!important;align-items:center!important;justify-content:center;text-align:center}
.timeline-file input{display:none}
.guide-options{grid-column:1/-1;border:1px solid var(--line);border-radius:10px;background:#111720}
.guide-options summary{cursor:pointer;color:var(--muted);font-size:12px;font-weight:850;padding:12px 14px;list-style-position:inside}
.guide-options[open] summary{border-bottom:1px solid var(--line);color:var(--text)}
.guide-options-grid{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:10px;align-items:end;padding:12px}
.timeline-note{color:var(--muted);font-size:13px;min-height:20px}
.guide-search-results{margin:12px 0 20px;padding:18px;border:1px solid #405266;background:linear-gradient(145deg,#111b27,#0c121b);border-radius:16px}.guide-search-results .section-heading{margin:0 0 12px}.guide-search-results .section-heading h2{margin:0}.guide-search-results .section-heading button{border:1px solid var(--line);border-radius:9px;background:#182230;color:var(--text);padding:8px 11px;cursor:pointer}.guide-search-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.guide-search-card{display:grid;gap:3px;min-width:0;border:1px solid var(--line);border-radius:11px;background:#0b1017;padding:12px}.guide-search-card:hover{border-color:var(--lime)}.guide-search-card small{color:var(--cyan);font-size:9px;font-weight:900;letter-spacing:.08em}.guide-search-card b,.guide-search-card span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.guide-search-card span{color:var(--muted);font-size:12px}.guide-search-card.programme-match{border-left:3px solid var(--lime)}.guide-search-empty{grid-column:1/-1;color:var(--muted);text-align:center;padding:20px}
.timeline-health-summary{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 12px}.timeline-health-summary span{border:1px solid var(--line);border-radius:999px;padding:5px 9px;color:var(--muted);font-size:11px;font-weight:800}.timeline-health-summary span[data-state=live]{color:var(--lime);border-color:#496d1d}.timeline-health-summary span[data-state=dead],.timeline-health-summary span[data-state=blocked]{color:#ff879b;border-color:#733444}
.timeline-viewport{--channel-width:230px;overflow:auto;max-height:70vh;border:1px solid var(--line);border-radius:14px;background:#090d13}
.timeline-grid{--slot-width:170px;--channel-width:230px;position:relative;display:grid;grid-template-columns:var(--channel-width) repeat(var(--slots),var(--slot-width));grid-auto-rows:68px;min-width:max-content}
.timeline-corner,.timeline-time{position:sticky;top:0;z-index:6;background:#101720;border-bottom:1px solid var(--line);padding:13px 12px;color:var(--cyan);font-size:12px;font-weight:850}
.timeline-corner{left:0;z-index:8;color:var(--muted);letter-spacing:.09em}
.timeline-time{border-left:1px solid var(--line)}
.timeline-channel{position:sticky;left:0;z-index:4;display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px;min-width:0;background:#111822;border-right:1px solid var(--line);border-bottom:1px solid #1d2632;padding:7px 8px}
.timeline-channel-main{display:flex;align-items:center;gap:9px;min-width:0}
.timeline-channel img{width:58px;height:42px;object-fit:cover;border-radius:7px;background:#080b10}
.timeline-channel span{display:grid;min-width:0}
.timeline-channel b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.timeline-channel-actions{display:flex;gap:3px}.timeline-channel-actions button{width:24px;height:24px;border:1px solid var(--line);border-radius:6px;background:#1a2230;color:var(--muted);cursor:pointer;padding:0}.timeline-channel-actions button.is-favorite{color:#ffd85a;border-color:#8e7530}.timeline-channel-actions button:hover{color:var(--text)}
.device-health{color:var(--muted);font-size:10px}
.device-health[data-state=live]{color:var(--lime)}
.device-health[data-state=dead],.device-health[data-state=blocked]{color:#ff879b}
.timeline-lane{position:relative;border-bottom:1px solid #1d2632;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(var(--slot-width) - 1px),#202936 calc(var(--slot-width) - 1px),#202936 var(--slot-width));overflow:hidden}
.timeline-programme{position:absolute;top:6px;bottom:6px;display:grid;align-content:center;min-width:40px;overflow:hidden;border:1px solid #334052;border-radius:8px;background:linear-gradient(145deg,#182230,#111823);padding:6px 9px}
.timeline-programme.is-now{border-color:#638d2d;background:linear-gradient(145deg,#1d2b16,#111a11)}
.timeline-programme.is-search-match{border-color:var(--cyan);box-shadow:inset 0 0 0 1px #4ce8ff55}
.timeline-programme b,.timeline-programme small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.timeline-programme small{color:var(--muted);font-size:10px}
.timeline-unscheduled{left:6px;width:calc(100% - 12px);color:var(--muted);border-style:dashed}
.timeline-now-line{position:absolute;top:0;bottom:0;z-index:5;width:2px;background:#ff496c;box-shadow:0 0 10px #ff496c;pointer-events:none}
.timeline-now-line:before{content:"NOW";position:sticky;top:2px;display:block;transform:translateX(-50%);width:max-content;background:#ff496c;color:white;font-size:9px;font-style:normal;font-weight:900;padding:2px 4px;border-radius:3px}
.timeline-load-more{display:block;margin:14px auto 0;border:1px solid var(--line);border-radius:10px;padding:12px 20px;background:#171e29;color:var(--text);font-weight:850;cursor:pointer}.timeline-load-more[hidden]{display:none}
.timeline-viewport[data-density=compact] .timeline-grid{grid-auto-rows:50px}.timeline-viewport[data-density=compact] .timeline-channel img{width:38px;height:30px}.timeline-viewport[data-density=compact] .timeline-programme{top:4px;bottom:4px}.timeline-viewport[data-density=compact] .timeline-programme small{display:none}
@media(max-width:980px){.timeline-controls{grid-template-columns:1fr 1fr}.timeline-search{grid-column:span 2}.timeline-controls button{width:100%}.guide-options-grid{grid-template-columns:1fr 1fr}.guide-search-grid{grid-template-columns:1fr 1fr}.timeline-viewport{--channel-width:180px}.timeline-grid{--channel-width:180px;--slot-width:145px}.timeline-channel img{width:38px;height:32px}.timeline-channel{padding:6px}.timeline-channel b{font-size:11px}.timeline-channel-actions button{width:21px;height:21px}}
@media(max-width:520px){.timeline-controls{grid-template-columns:1fr}.timeline-search{grid-column:auto}.guide-options-grid,.guide-search-grid{grid-template-columns:1fr}.timeline-viewport{margin-inline:-10px;border-radius:10px}.guide-search-results{padding:13px}}

/* v3.3 imported-playlist guide */
.guide-topics[hidden],.guide-search-results[hidden],.timeline-health-summary[hidden],.mobile-now-list[hidden],.timeline-viewport[hidden],.timeline-load-more[hidden],.imported-guide[hidden],.guide-options[hidden]{display:none!important}
.guide-hero-row{display:flex;justify-content:space-between;align-items:end;gap:24px}.guide-hero-row>div{max-width:820px}
.guide-import-button{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center;min-width:250px;border-radius:13px;background:var(--lime);color:#071000;padding:14px 16px}.guide-import-button>span{grid-row:1/3;font-size:25px}.guide-import-button small{font-weight:700;color:#294000}
.guide-flow{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;border:1px solid var(--line);border-radius:14px;background:#111720;padding:13px;margin:0 0 18px}.guide-flow span{display:flex;align-items:center;gap:7px;font-weight:850}.guide-flow span b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#24331a;color:var(--lime)}.guide-flow i{color:var(--muted);font-style:normal}
.imported-guide{margin:14px 0}.imported-guide-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:12px}.imported-guide-head h2,.imported-guide-head p{margin:0}.imported-guide-head>div{display:grid;gap:5px}.imported-guide-head>div>p:last-child{color:var(--muted)}.imported-guide-head label{display:grid;gap:5px;color:var(--muted);font-size:11px;font-weight:850;text-transform:uppercase}.imported-guide-head select{min-height:44px;min-width:240px;border:1px solid var(--line);border-radius:10px;background:#0c1017;color:var(--text);padding:9px 12px}
.imported-guide-list{display:grid;border:1px solid var(--line);border-radius:15px;background:#090d13;overflow:hidden}.imported-guide-row{display:grid;grid-template-columns:64px minmax(150px,.7fr) minmax(300px,1.3fr) auto;gap:12px;align-items:center;padding:11px;border-bottom:1px solid var(--line)}.imported-guide-row:last-child{border-bottom:0}.imported-guide-row>img,.imported-guide-logo{width:64px;height:44px;object-fit:contain;border-radius:8px;background:#121923}.imported-guide-logo{display:grid;place-items:center;color:var(--lime);font-weight:950}.imported-guide-channel{display:grid;min-width:0}.imported-guide-channel b,.imported-guide-channel small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.imported-guide-channel small{color:var(--muted)}.imported-guide-channel em{font-style:normal;color:var(--muted);font-size:10px;font-weight:850}.imported-guide-channel em[data-state=live]{color:var(--lime)}.imported-guide-channel em[data-state=dead],.imported-guide-channel em[data-state=blocked]{color:#ff879b}
.imported-guide-shows{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0}.imported-guide-shows span{display:grid;min-width:0;border-left:2px solid var(--line);padding-left:9px}.imported-guide-shows span:first-child{border-color:var(--lime)}.imported-guide-shows small{color:var(--muted);font-size:9px;font-weight:900}.imported-guide-shows b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.imported-guide-actions{display:flex;gap:6px}.imported-guide-actions .primary-action,.imported-guide-actions button{min-height:40px;border-radius:9px;padding:8px 11px;font-weight:850;white-space:nowrap}.imported-guide-actions button{border:1px solid var(--line);background:#17202c;color:var(--text);cursor:pointer}.imported-guide-empty{display:grid;justify-items:center;gap:9px;padding:50px 20px;text-align:center}.imported-guide-empty h2,.imported-guide-empty p{margin:0}.imported-guide-empty p{color:var(--muted)}
@media(max-width:900px){.guide-hero-row{display:grid}.guide-import-button{width:max-content}.imported-guide-row{grid-template-columns:54px minmax(0,1fr) auto}.imported-guide-row>img,.imported-guide-logo{width:54px}.imported-guide-shows{grid-column:2/4}.imported-guide-actions{grid-column:2/4}}
@media(max-width:600px){.guide-import-button{width:100%;min-width:0}.guide-flow{display:grid;justify-content:stretch}.guide-flow i{display:none}.imported-guide-head{display:grid}.imported-guide-head select{width:100%;min-width:0}.imported-guide-row{grid-template-columns:46px minmax(0,1fr);gap:9px}.imported-guide-row>img,.imported-guide-logo{width:46px;height:38px}.imported-guide-shows,.imported-guide-actions{grid-column:1/-1}.imported-guide-shows{grid-template-columns:1fr}.imported-guide-actions{display:grid;grid-template-columns:1fr 1fr}}

/* v3.3.14 guide health badges */
.guide-health-badge{display:inline-block;width:max-content;border-radius:999px;padding:2px 7px;font-size:9px;font-weight:900;letter-spacing:.05em;margin-top:2px;line-height:1.5}
.guide-health-badge[data-state=live]{color:var(--lime);border:1px solid #496d1d;background:#12200c}
.guide-health-badge[data-state=dead]{color:#ff879b;border:1px solid #733444;background:#241014}
.guide-health-badge[data-state=geo]{color:#ffd85a;border:1px solid #8e7530;background:#241d0c}
.guide-health-badge[data-state=blocked]{color:#d9a0ff;border:1px solid #7a4a9e;background:#221230}
.guide-health-badge[data-state=degraded]{color:#ffb45a;border:1px solid #8e5a30;background:#241a0c}
.guide-health-badge[data-state=unknown]{color:var(--muted);border:1px solid var(--line);background:#111720}
.timeline-channel.is-offline{opacity:.45}
.timeline-channel.is-offline .timeline-programme{opacity:.55}
.timeline-check{display:flex!important;align-items:center;gap:8px;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:10px 13px;background:#171e29;color:var(--text)!important;cursor:pointer;text-transform:none!important;letter-spacing:0!important;font-size:12px!important}
.timeline-check input{min-height:0!important;width:16px;height:16px;accent-color:var(--lime)}

/* v3.3.14 mobile vertical cards: health badges + offline dimming */
.mobile-now-card .guide-health-badge{width:max-content;margin:2px 0 0}
.mobile-now-card.is-offline{opacity:.5}
.mobile-now-card.is-offline .guide-health-badge{opacity:1}
/* == landing390.css == */
/* 3.9.0 — landing pages (country / language / category) and the Browse hub. */
.landing390-head h1{font-size:clamp(1.7rem,4.5vw,2.6rem);line-height:1.08;letter-spacing:-.02em}
.landing390-lede{color:inherit!important;font-size:1.05rem;max-width:68ch}
.landing390-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 4px}
.landing390-actions a{display:inline-flex;align-items:center;min-height:42px;padding:0 16px;border-radius:12px;font-weight:700;text-decoration:none}
.landing390-actions .primary-action{background:var(--lime,#c6ff3d);color:#0b0f17}
.landing390-actions .secondary-action{border:1px solid var(--line,#2a3349);color:inherit;background:var(--surface,#151b2b)}
.landing390-h2{margin:26px 0 10px;font-size:1.2rem}
.landing390-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr));gap:10px}
.landing390-card{display:flex;flex-direction:column;gap:8px;height:100%;padding:10px;border-radius:14px;border:1px solid var(--line,#2a3349);background:var(--surface,#151b2b);color:inherit;text-decoration:none;min-width:0}
.landing390-card:hover,.landing390-card:focus-visible{border-color:var(--lime,#c6ff3d)}
.landing390-art{position:relative;display:grid;place-items:center;aspect-ratio:16/9;border-radius:10px;background:var(--brand,#3554d1);color:var(--brand-ink,#fff);overflow:hidden}
.landing390-art.has-logo{background:#f4f6fa}
.landing390-mono{font-weight:900;font-size:clamp(1.1rem,3.5vw,1.5rem);letter-spacing:.02em}
.landing390-art.has-logo .landing390-mono{display:none}
.landing390-art img{position:absolute;inset:10%;width:80%;height:80%;object-fit:contain}
.landing390-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.landing390-copy b{font-size:.95rem;line-height:1.2;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.landing390-copy small{font-size:.78rem;color:var(--muted,#aab4c6);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.landing390-copy small.is-muted{opacity:.7}
.landing390-copy em{font-style:normal;font-size:.72rem;color:var(--muted,#aab4c6)}
.landing390-live{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--ptv-live,#ff4d5e);margin-right:5px;vertical-align:middle}
.landing390-about{margin:18px 0 4px;color:var(--muted,#aab4c6);max-width:70ch}
.landing390-about p{margin:0 0 8px}
.landing390-facets{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px;margin:22px 0}
.landing390-facets div{border:1px solid var(--line,#2a3349);border-radius:12px;background:var(--panel,#121726);padding:12px 14px}
.landing390-facets h3{margin:0 0 8px;font-size:.95rem}
.landing390-facets ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.landing390-facets li a{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border-radius:999px;border:1px solid var(--line,#2a3349);color:inherit;text-decoration:none;font-size:.86rem}
.landing390-facets li a:hover{border-color:var(--lime,#c6ff3d)}
.landing390-facets li small{color:var(--muted,#aab4c6)}
.landing390-rest{margin:10px 0 18px;border:1px solid var(--line,#2a3349);border-radius:12px;background:var(--panel,#121726);padding:0 14px}
.landing390-rest summary{cursor:pointer;padding:12px 0;font-weight:700}
.landing390-rest summary small{color:var(--muted,#aab4c6);font-weight:400;margin-left:6px}
.browse390-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:8px}
.browse390-list a{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:12px;border:1px solid var(--line,#2a3349);background:var(--surface,#151b2b);color:inherit;text-decoration:none;min-width:0}
.browse390-list a:hover,.browse390-list a:focus-visible{border-color:var(--lime,#c6ff3d)}
.browse390-list b{font-size:.98rem}
.browse390-list small{color:var(--muted,#aab4c6);font-size:.8rem}
.browse390-list span{font-size:.78rem;color:var(--muted,#aab4c6);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.browse390-list.is-compact{grid-template-columns:repeat(auto-fill,minmax(min(100%,160px),1fr))}
.browse390-list.is-compact a{flex-direction:row;align-items:center;justify-content:space-between}
/* guide: the hidden-tier note (3.9.0) */
.guide-hidden390{margin:4px 0 10px;padding:10px 12px;border-radius:12px;border:1px dashed var(--line,#2a3349);color:var(--muted,#aab4c6);font-size:.88rem;display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.guide-hidden390 button{border:1px solid var(--line,#2a3349);background:var(--surface,#151b2b);color:inherit;border-radius:999px;padding:5px 12px;font:inherit;font-size:.85rem;cursor:pointer}
.guide-hidden390 button:hover{border-color:var(--lime,#c6ff3d)}
.guide-hidden390 a{color:inherit}
.timeline-show-all390 small{color:var(--muted,#aab4c6);font-weight:400}
@media (max-width:680px){.landing390-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.landing390-card{padding:8px}}
/* guide (3.9.0): 4-letter brand monograms (CP24, ZDF…) must stay inside their badge; the 22 px phone badge made "CP24" spill into the channel name. */
i.channel-initials.is-wide{overflow:hidden;white-space:nowrap;font-size:10px;letter-spacing:-.05em}
.mobile-now-copy .channel-initials.is-wide{font-size:7px;letter-spacing:-.06em}
.timeline-channel .channel-initials.is-wide{font-size:9px}
/* == unified-guide3918.css == */
/* Unified guide: compact ~64px phone-first rows with horizontally scrollable time grid. */
.guide-shell .unified-guide-list{display:block;border:1px solid #263142;border-radius:12px;overflow:hidden;background:#0e1520}
.unified-guide-row,.unified-ruler{display:grid;grid-template-columns:220px minmax(0,1fr);min-width:0}
.unified-guide-row{border-top:1px solid #222c3c;min-height:64px;align-items:stretch}
.unified-guide-row.is-compact{min-height:52px}
.unified-channel{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 10px;min-width:0;border-right:1px solid #263142}
.unified-logo,.unified-logo-fallback{width:28px;height:28px;border-radius:7px;flex-shrink:0;object-fit:contain;background:#192334}
.unified-logo-fallback{display:grid;place-items:center;font:700 10px/1 system-ui;color:#d6e2f2;letter-spacing:.03em}
.unified-channel-meta{min-width:0;display:flex;flex-direction:column;gap:3px}
.unified-channel-name{color:#f2f5f8;font-size:13px;font-weight:650;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none}
.unified-channel-badges{display:flex;align-items:center;gap:5px;min-width:0}
.guide-shell .unified-source-chip{font:600 10px/1.2 system-ui;border:1px solid #3c4d3a;border-radius:999px;padding:2px 7px;color:#d6efa1;background:#1d2a1d;white-space:nowrap}
.guide-shell .unified-source-chip:disabled{opacity:.78;cursor:default}
.guide-shell .unified-more-btn{width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border-radius:8px;border:1px solid #303d52;background:#162030;color:#d4e0ee;font:700 15px/1 system-ui;display:grid;place-items:center;cursor:pointer}
.unified-timeline{position:relative;overflow-x:auto;overflow-y:hidden;min-width:0;min-height:64px;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(50% - 1px),#222c3c 50%);scrollbar-width:none;-webkit-overflow-scrolling:touch}
.unified-timeline::-webkit-scrollbar{display:none}
.unified-guide-row.is-compact .unified-timeline{min-height:52px;display:flex;align-items:center;padding:6px 10px;overflow:hidden;background:none}
.unified-timeline-track{position:relative;min-width:100%;height:100%;min-height:64px}
.unified-programme{position:absolute;top:6px;bottom:6px;box-sizing:border-box;overflow:hidden;text-decoration:none;background:#1a2736;border:1px solid #314256;border-radius:7px;color:#f1f5f9;padding:6px 9px;display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0}
.unified-programme.is-now{background:#203247;border-color:#4b6a8e}
.unified-programme.is-tiny{padding:0;border:0}.unified-programme.is-tiny>*{display:none}
.unified-programme small{overflow:hidden;text-overflow:ellipsis}
.unified-programme small{font-size:10px;color:#a7b7c9;white-space:nowrap}
.unified-programme.is-narrow{padding-inline:5px}.unified-programme.is-narrow small{display:none}
.unified-programme b{font-size:12px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.unified-live-bar{display:inline-flex;align-items:center;gap:8px;padding:5px 10px;border-radius:999px;background:#18212d;border:1px solid #2e3b4d;color:#d5e0ec;font-size:12px;text-decoration:none;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.unified-live-badge{font:700 10px/1 system-ui;letter-spacing:.04em;text-transform:uppercase;color:#a9e34b;background:#21311f;border-radius:999px;padding:3px 7px}
.unified-ruler{color:#a9b8c9;font-size:11px;line-height:20px;padding:6px 0;background:#151e2b}
.unified-ruler>b{padding-left:12px;font-size:10px;letter-spacing:.08em}
.unified-ruler>div{display:flex;justify-content:space-around;min-width:0}
.unified-group-heading{font-size:12px;color:#d5e4b9;background:#1a2422;padding:7px 12px;margin:0!important;letter-spacing:.02em;border-top:1px solid #263142}
.unified-unscheduled-heading{color:#b7c5d6;background:#141b26}
.guide-shell .guide-imported-pagination{display:none!important}
.unified-scroll-footer{display:flex;align-items:center;justify-content:center;padding:12px;gap:10px}
.unified-scroll-sentinel{height:1px;width:100%}
.unified-load-more{background:#1b2838;color:#f0f5fb;border:1px solid #3c4d66;border-radius:999px;font:600 13px system-ui;padding:10px 18px;min-height:40px;cursor:pointer}
.unified-group-editor{display:grid;gap:14px;max-height:65vh;overflow:auto}
.unified-group-editor>div{display:grid;grid-template-columns:minmax(0,1fr) auto 65px auto;gap:8px;align-items:center}
.unified-group-editor input{min-width:0;width:100%}
.unified-group-editor label{display:flex;gap:5px;align-items:center}
.unified-group-editor input[type=checkbox]{width:auto}
.unified-provider-status,.imported-browser-hint{color:#b9c7d6;font-size:12px;line-height:1.5}
.unified-manage-line{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#c7d3e2;margin:4px 0 6px;padding:4px 2px}
.unified-manage-line[hidden]{display:none!important}
.unified-manage-line a{color:#a9e34b;font-weight:700;text-decoration:none}
.guide-shell .guide-controls-bar{position:sticky;top:var(--header-h,56px);z-index:45;display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:6px;margin:0 0 6px;padding:6px 0;background:rgba(5,6,10,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line-soft,#222c3c)}
.guide-shell .guide-controls-bar .timeline-search{min-width:0;margin:0}
.guide-shell .guide-controls-bar .timeline-search input{width:100%;min-width:0;min-height:38px;padding:6px 10px;border-radius:9px;font-size:13px}
.guide-shell .guide-controls-bar button,.guide-shell .guide-controls-bar select{min-height:38px;padding:6px 10px;border-radius:9px;border:1px solid #324055;background:#141d2b;color:#eef3f8;font:600 12px/1.2 system-ui;white-space:nowrap}
.guide-shell .guide-day-picker{margin:0}
/* 3.9.50 review: guide notices sit inline (never fixed over the rows) */
.guide-shell .ux-notice-slot{position:static;margin:4px 0 8px}
.guide-shell .ux-notice-slot:empty{display:none;margin:0}
.guide-shell .ux-notice-slot .ux-notice{border-radius:12px}
.guide-sheet-section{display:grid;gap:6px;margin-bottom:10px}
.guide-sheet-label{font-size:12px;font-weight:700;color:#9fb0c3;text-transform:uppercase;letter-spacing:.05em}
.guide-lineup-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.guide-lineup-switch button{min-height:38px;border:1px solid #334155;border-radius:9px;background:#141d2b;color:#d6e0ec;font:600 12px system-ui;padding:6px 8px;cursor:pointer}
.guide-lineup-switch button.active{background:#233322;border-color:#5a8b38;color:#d9f99d}
.guide-category-grid{display:flex;flex-wrap:wrap;gap:6px}
.guide-category-grid button{min-height:34px;border:1px solid #303d52;border-radius:999px;background:#141d2b;color:#d6e0ec;font:600 12px system-ui;padding:5px 11px;cursor:pointer}
.guide-category-grid button.active{background:#233322;border-color:#5a8b38;color:#d9f99d}
.guide-sheet-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.guide-time-step{display:flex;align-items:center;gap:6px;flex-wrap:wrap;grid-column:1/-1}
.guide-seo-details{margin:18px 0 8px;padding:10px 12px;border:1px solid #243041;border-radius:10px;background:#0d131d;color:#b8c7d8}
.guide-seo-details>summary{cursor:pointer;font-weight:600;font-size:13px}
.manage-shell{max-width:760px;margin:0 auto;padding:16px;display:grid;gap:16px}
.manage-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.manage-card{background:#101722;border:1px solid #263142;border-radius:12px;padding:16px;display:grid;gap:12px}
.manage-controls-row{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
.manage-controls-row select{min-height:40px;background:#141d2b;color:#eef3f8;border:1px solid #324055;border-radius:9px;padding:6px 10px}
@media(max-width:680px){
 .unified-guide-row,.unified-ruler{grid-template-columns:150px minmax(0,1fr)}
 .unified-logo,.unified-logo-fallback{width:24px;height:24px;border-radius:6px}
 .unified-channel-name{font-size:11px;line-height:1.18;white-space:normal;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow-wrap:anywhere;word-break:normal}
 /* 3.9.51: a source pill that cannot switch says nothing on a phone; its space goes to the 2-line name */
 .guide-shell .unified-source-chip:disabled{display:none}
 .unified-channel-badges:not(:has(.unified-source-chip:not(:disabled))){display:none}
 .unified-channel{grid-template-columns:24px minmax(0,1fr) 24px;gap:5px;padding:6px 4px 6px 6px}
 .guide-shell .unified-more-btn{width:24px;height:28px;min-width:24px;min-height:28px;font-size:14px}
 .unified-timeline{min-height:62px}
 .unified-timeline-track{min-width:420px;min-height:62px}
 .unified-programme{padding:5px 7px}
 .unified-programme b{font-size:11.5px}
 .unified-ruler>b{padding-left:8px}
 .unified-group-heading{padding:7px 10px;font-size:11px}
 .unified-group-editor>div{grid-template-columns:minmax(0,1fr) 60px}.unified-group-editor>div>input:first-child{grid-column:1/-1}
}

/* 3.9.51: row logos sit on a neutral dark tile (white logos stay visible; no white blank tiles) */
.unified-logo{background:#2b3546!important;padding:2px;box-sizing:border-box}
/* == my-groups3942.css == */
/* 3.9.42 (T858) My groups: chip row, picker and manager. */
.my-groups-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:14px 0 6px}
.my-groups-chip{--group-color:var(--lime,#c6f432);display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:8px 14px;border:1px solid var(--line,#2a3446);border-radius:999px;background:#0d131d;color:var(--text,#eef3fb);font:700 14px/1.1 inherit;cursor:pointer}
.my-groups-chip[data-group]::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--group-color);flex:0 0 auto}
.my-groups-chip.is-active[data-group]::before{background:#071000}
.my-groups-chip:hover{border-color:var(--group-color)}
.my-groups-chip.is-active{background:var(--group-color);border-color:var(--group-color);color:#071000}
.my-groups-chip:focus-visible,.my-groups-pick:focus-visible,.my-groups-edit button:focus-visible{outline:3px solid #fff;outline-offset:2px}
.my-groups-manage{border-style:dashed;color:var(--muted,#9aa7bd)}
.my-groups-picker,.my-groups-manager{display:grid;gap:12px}
.my-groups-picker-list{display:grid;gap:8px}
.my-groups-pick{--group-color:var(--lime,#c6f432);display:flex;justify-content:flex-start;min-height:44px;padding:10px 14px;border:1px solid var(--line,#2a3446);border-left:4px solid var(--group-color);border-radius:12px;background:#0d131d;color:var(--text,#eef3fb);font-weight:700;text-align:left;cursor:pointer}
.my-groups-pick.is-in{background:color-mix(in srgb,var(--group-color) 18%,#0d131d)}
.my-groups-new{display:flex;flex-wrap:wrap;gap:8px;padding:12px;border:1px dashed var(--line,#2a3446);border-radius:12px}
.my-groups-new input{flex:1 1 12rem;width:auto}
.my-groups-new .my-groups-emoji,.my-groups-edit .my-groups-emoji{flex:0 0 3.4rem;width:3.4rem;text-align:center;padding:8px 4px}
.my-groups-edit{--group-color:var(--lime,#c6f432);display:grid;grid-template-columns:auto 3.4rem minmax(0,1fr);grid-template-areas:"colour emoji name" "words words words" "meta meta meta";gap:8px;align-items:center;padding:12px;border:1px solid var(--line,#2a3446);border-left:4px solid var(--group-color);border-radius:12px;background:#0d131d;min-width:0}
.my-groups-edit>.my-groups-colour{grid-area:colour}.my-groups-edit>.my-groups-emoji{grid-area:emoji}.my-groups-edit>.my-groups-name{grid-area:name}.my-groups-edit>.my-groups-words{grid-area:words}
.my-groups-edit-actions{grid-area:meta;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.my-groups-edit-actions small{flex:1 0 100%}   /* T865: count line on its own row, so every card's buttons line up the same at 412 px */
.my-groups-edit-actions button{min-height:38px;min-width:38px;padding:6px 12px;border:1px solid var(--line,#2a3446);border-radius:10px;background:#141c29;color:var(--text,#eef3fb);font-weight:700;cursor:pointer}
.my-groups-edit-actions button:disabled{opacity:.4;cursor:default}
.my-groups-manager input,.my-groups-picker input{box-sizing:border-box;min-width:0;width:100%;min-height:42px;padding:8px 12px;border:1px solid var(--line,#2a3446);border-radius:10px;background:#070b12;color:var(--text,#eef3fb);font:inherit}
.my-groups-manager input:focus-visible,.my-groups-picker input:focus-visible{outline:3px solid #fff;outline-offset:1px}
.my-groups-manager,.my-groups-picker{max-width:100%;box-sizing:border-box}
.my-groups-edit small{color:var(--muted,#9aa7bd)}
.my-groups-colour{color:var(--group-color);font-size:20px;background:none;border:0;cursor:pointer}
.my-groups-empty{color:var(--muted,#9aa7bd);margin:0}
.my-groups-section{margin:18px 0 8px}
.my-groups-section .section-heading{display:flex;justify-content:space-between;align-items:end;gap:12px}
.my-groups-section .lineup-grid{margin-top:10px}
.lineup-card .channel-group-button,.unified-group-chip{border:1px solid var(--line,#2a3446);border-radius:999px;background:#0d131d;color:var(--text,#eef3fb);font-weight:700;cursor:pointer}
.lineup-card .channel-group-button{min-width:36px;min-height:36px}

.my-groups-edit-actions .danger-button{color:#ff9a9a;border-color:#6a2a35}.my-groups-edit-actions .secondary-action{border-color:var(--group-color)}
