/* 3.7.1: compact discovery guide and accessible filter sheet. */
.guide-heading371{display:flex;align-items:center;justify-content:space-between;height:42px;margin:8px 0}
.guide-heading371 h1{font-size:24px;margin:0;letter-spacing:-.03em}
.guide-heading371 a{font-size:13px;color:var(--muted);padding:10px 0}
.guide-lineup-toggle{display:flex;gap:4px;margin-bottom:10px;border:1px solid var(--line);padding:3px;border-radius:12px;width:max-content}
.guide-lineup-toggle button{min-height:40px;padding:0 18px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-weight:800;cursor:pointer}
.guide-lineup-toggle button[aria-pressed=true]{background:var(--surface-3);color:var(--lime)}
.guide-shell .timeline-controls{display:block!important;margin:0 0 8px}
.guide-toolbar371{display:flex;gap:8px;align-items:center;height:44px}
.guide-toolbar371 .timeline-search{flex:1;min-width:80px;gap:0;font-size:0!important}
.guide-toolbar371 input{width:100%;font-size:14px!important}
.guide-toolbar371 .guide-filters-toggle{display:flex!important;align-items:center;justify-content:center;min-width:76px;min-height:44px;border:1px solid var(--line);background:var(--surface-3)!important;color:var(--text)!important;padding:0 12px}
.guide-active-filters{display:flex;gap:4px;max-width:40%;overflow:auto;scrollbar-width:none}
.guide-active-filters:empty{display:none}
.guide-active-filters button{white-space:nowrap;font-size:11px!important;padding:0 8px!important;min-height:32px!important;background:var(--surface-3)!important;color:var(--text)!important}
.guide-filter-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:end;margin:12px 0}
.guide-filter-fields .guide-countries{grid-column:1/-1;margin:0;display:none}
.guide-filter-fields>.guide-options{grid-column:1/-1}
.guide-shell .guide-topics{position:static;margin:0 0 6px;padding:4px 0!important;height:44px;scrollbar-width:none}
.guide-shell .guide-topics button{min-height:36px!important;padding:4px 12px!important}
.guide-shell .timeline-note{margin:4px 0 6px;height:24px;min-height:24px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px}
.guide-shell .guide-scan-callout,.guide-shell .timeline-health-summary{display:none!important}
.guide-inline-hint{height:32px;margin:0 0 6px;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px;overflow:hidden}
.guide-inline-hint button{margin-left:auto;flex:0 0 32px;height:32px;border:0;background:transparent;color:var(--muted);cursor:pointer}
.guide-narrow-card{padding:12px;margin:8px 0;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.guide-narrow-card[hidden]{display:none}
.guide-narrow-card b{display:block;font-size:13px;margin-bottom:8px}
.guide-narrow-card div{display:flex;gap:6px;flex-wrap:wrap}
.guide-narrow-card button{min-height:44px;padding:0 12px;border-radius:9px;border:1px solid var(--line);background:var(--surface-3);color:var(--text);cursor:pointer;font-size:12px}
.guide-narrow-card button:first-child{color:var(--lime)}
.guide-add-pill{min-width:76px!important;width:auto!important;min-height:44px!important;height:44px!important;border-radius:999px!important;padding:0 10px!important;border:1px solid #597f29!important;background:#182514!important;color:var(--lime)!important;font-size:12px!important;font-weight:800!important;white-space:nowrap;cursor:pointer;display:flex!important;align-items:center;justify-content:center}
.guide-add-pill.is-favorite{background:var(--surface-3)!important;border-color:var(--line)!important;color:var(--text)!important}
.guide-row-menu{width:32px!important;height:44px!important;min-height:44px;border:0!important;background:transparent!important;color:var(--muted)!important;font-size:22px;cursor:pointer}
.guide-row-menu-body{display:grid;gap:8px}
.guide-row-menu-body button,.guide-row-menu-body a{display:flex;align-items:center;min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:10px;color:var(--text);background:var(--surface-3);cursor:pointer}
.guide-shell .timeline-channel-actions{display:flex!important;position:static!important;gap:4px}
.guide-shell .timeline-channel-actions .guide-row-menu{display:block!important}
.guide-shell .timeline-channel{grid-template-columns:1fr!important;gap:4px}
.guide-shell .timeline-channel-actions button:not(.guide-add-pill):not(.guide-row-menu){display:none}
.guide-shell .timeline-grid{grid-auto-rows:104px}
.guide-shell .timeline-channel-main{padding-right:0}
.guide-shell .timeline-viewport[data-density=compact] .timeline-grid{grid-auto-rows:90px}
.guide-shell .timeline-unscheduled{border:0!important;background:var(--surface)!important;color:var(--muted)!important;font-size:12px}
.guide-filters-sheet{color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:20px 20px 0 0;padding:0;width:min(680px,100%);max-width:100%;max-height:88dvh;margin:auto auto 0;overflow:auto}
.guide-filters-sheet::backdrop{background:rgba(0,0,0,.7)}
.guide-filters-sheet>header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;position:sticky;top:0;background:var(--surface);z-index:2;border-bottom:1px solid var(--line)}
.guide-filters-sheet h2{font-size:20px;margin:0}
.guide-filters-sheet>header button{width:44px;height:44px;background:transparent;border:0;color:var(--text);font-size:24px;cursor:pointer}
#guide-filter-body{padding:0 16px}
.guide-filters-sheet .guide-filter-fields{grid-template-columns:1fr 1fr}
.guide-filters-sheet label{display:grid;gap:6px;font-size:13px;color:var(--muted)}
.guide-filters-sheet input,.guide-filters-sheet select{min-height:44px;max-width:100%;background:var(--surface-3);color:var(--text);border:1px solid var(--line);border-radius:10px;padding:8px}
.guide-filters-sheet .guide-countries{display:flex;overflow:auto}
.guide-filters-sheet .guide-options-grid{grid-template-columns:1fr 1fr}
.guide-filters-sheet .guide-options-grid button{min-height:44px;background:var(--surface-3);color:var(--text);border:1px solid var(--line);border-radius:10px;cursor:pointer}
.guide-filters-sheet>footer{position:sticky;bottom:0;display:flex;gap:8px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface);margin:0;z-index:2}
.guide-filters-sheet>footer button{min-height:48px;padding:0 14px;border-radius:10px;border:1px solid var(--line);background:var(--surface-3);color:var(--text);font-weight:800;cursor:pointer}
#guide-filters-apply{flex:1;background:var(--lime);color:var(--lime-ink)}
@media(max-width:680px){
 .guide-shell{padding-bottom:140px}
 .guide-heading371{height:32px;margin:8px 0 6px}
 .guide-heading371 h1{font-size:20px}
 .guide-lineup-toggle{width:100%;margin-bottom:8px}
 .guide-lineup-toggle button{flex:1;min-height:40px}
 #guide-filter-home{display:none}
 .guide-toolbar371{height:44px}
 .guide-shell .mobile-now-list{display:grid!important;gap:0;min-height:460px;border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden}
 .guide-shell .mobile-now-list[hidden]{display:none!important}
 .guide-shell .timeline-viewport{display:none!important}
 .guide-shell:has(#timeline-mode option[value=timeline]:checked) .mobile-now-list{display:none!important}
 .guide-shell:has(#timeline-mode option[value=timeline]:checked) .timeline-viewport:not([hidden]){display:block!important}
 .guide-shell .mobile-now-card{height:80px;min-height:80px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;padding:7px 8px!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;transition:none!important}
 .guide-shell .mobile-now-card:active{transform:none}
 .mobile-now-copy{display:grid;gap:2px;min-width:0;align-content:center}
 .mobile-now-copy>a{display:flex;gap:6px;align-items:center;min-width:0}
 .mobile-now-copy b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .mobile-now-copy .channel-initials{width:22px;height:22px;flex:0 0 22px;border-radius:6px;font-size:9px}
 .guide-shell .mobile-now-card .guide-health-badge{display:none}
 .guide-shell .mobile-now-card .mobile-programme{position:static!important;display:block!important;min-width:0;max-width:100%;border:0!important;background:transparent!important;padding:0!important;margin:0!important;font-size:12px!important;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .guide-shell .mobile-now-card small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .guide-shell .mobile-now-card .mobile-live-channel{font-size:12px;color:var(--muted)}
 .mobile-now-actions{display:flex;align-items:center;gap:0}
 .guide-shell .mobile-now-card .guide-add-pill{max-width:103px;min-width:76px;font-size:11px!important;padding:0 8px!important}
 .guide-shell .mobile-now-card .guide-row-menu{width:26px!important;min-width:26px;padding:0!important}
 .guide-shell .now-list-divider{height:36px;margin:0;padding:12px;letter-spacing:0;grid-column:1/-1}
 .guide-shell .timeline-channel-actions{flex-wrap:wrap}
 .guide-active-filters{max-width:35%}
 .guide-active-filters button{max-width:98px;overflow:hidden;text-overflow:ellipsis}
 .guide-filters-sheet .guide-filter-fields{grid-template-columns:1fr}
 .guide-filters-sheet .guide-options-grid{grid-template-columns:1fr}
 .guide-filters-sheet .guide-countries{grid-column:auto}
 .guide-shell .guide-more-banner{padding:8px;font-size:12px;margin:0 0 6px}
 .guide-shell .guide-empty-state{padding:12px;margin:0 0 8px}
 .guide-shell .guide-empty-state h2{font-size:16px}
 .ptv-now-fab{display:none!important}
}
@media(min-width:681px){
 .guide-shell .mobile-now-list[data-guide-mode=now]{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .guide-shell .mobile-now-card{display:grid;grid-template-columns:1fr auto;gap:6px;min-height:88px;padding:10px}
 .mobile-now-copy{display:grid;gap:4px;min-width:0}
 .mobile-now-actions{display:flex;align-items:center}
 .mobile-now-card .mobile-programme{position:static;padding:0;background:transparent;border:0}
}
/* Reserve async status and rows from the initial HTML render. */
.guide-shell #timeline-status{height:24px!important;min-height:24px!important;padding:0!important;line-height:24px;margin:4px 0 6px!important}
@media(max-width:680px){.guide-shell .mobile-now-list:empty{min-height:4002px;background:repeating-linear-gradient(180deg,var(--surface) 0 79px,var(--line) 79px 80px)}}
@media(min-width:681px){.guide-shell .timeline-viewport{min-height:min(70vh,580px)}}
.guide-toolbar371 .guide-filters-toggle{width:auto!important;flex:0 0 auto}
@media(max-width:680px){
 body.has-guide-mini-player .guide-shell #mobile-now-list{height:calc(100dvh - var(--guide-list-top,342px) - var(--tabbar-h) - 86px);min-height:0;max-height:none;overflow-y:auto;overscroll-behavior-y:contain;scroll-padding-bottom:12px}
}
@media(min-width:681px){.guide-mini-player{left:auto;right:18px;bottom:18px;width:360px}}
.guide-shell .timeline-grid{grid-auto-rows:104px!important}
.guide-shell .timeline-viewport[data-density=compact] .timeline-grid{grid-auto-rows:90px!important}
.guide-shell .timeline-channel .device-health{display:none}
@media(min-width:981px){.guide-heading371 a{display:none}}
