/* A readable six-hour timeline, with controls that stay in reach while browsing. */
.guide-navigation{position:sticky;top:0;z-index:7;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:12px 0;background:#101115f5;backdrop-filter:blur(14px);border-bottom:1px solid var(--line);margin-top:6px}
.guide-navigation>div:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:5px 14px;min-width:0}
.guide-navigation strong{font-size:12px;line-height:1.5}
.guide-navigation span{color:var(--muted);font-size:11px;line-height:1.5}
.guide-scroll-actions{display:flex;gap:7px;flex-shrink:0}
.guide-scroll-actions .icon-button{width:36px;height:36px;background:#20222b;border:1px solid #393d49;border-radius:7px;color:#eee}
.guide-scroll-actions .icon-button:disabled{opacity:.3;cursor:default}
.guide-scroll-actions .icon-button .icon{width:18px;height:18px}
.guide-scroll-actions [data-guide-scroll="-1"] .icon{transform:rotate(180deg)}
.guide-scroll{--guide-channel-width:165px;overscroll-behavior-x:contain;scrollbar-width:auto;scrollbar-color:#757d90 #20222a;border-top-left-radius:0;border-top-right-radius:0}
.guide-scroll::-webkit-scrollbar{height:13px}
.guide-scroll::-webkit-scrollbar-track{background:#20222a}
.guide-scroll::-webkit-scrollbar-thumb{background:#757d90;border:3px solid #20222a;border-radius:9px}
.guide-scroll .guide-grid{width:calc(var(--guide-channel-width) + max(1800px,150vw));min-width:0}
.guide-scroll .guide-scale,.guide-scroll .guide-row{grid-template-columns:var(--guide-channel-width) minmax(0,1fr)}
.guide-scroll .guide-hours{grid-template-columns:repeat(12,minmax(0,1fr));min-height:48px}
.guide-hours>span{display:flex;align-items:center;gap:8px;padding-left:14px}
.guide-hours small{font-size:9px;color:#e6e9ef}
.guide-scroll .guide-channel{box-shadow:5px 0 12px #0002;z-index:4;padding:10px 9px;gap:5px}
.guide-scroll .guide-channel>a{flex:1;min-width:0;gap:9px}
.guide-scroll .guide-channel strong{font-size:11px;line-height:1.3}
.guide-scroll .guide-channel .channel-badge{width:38px;height:38px;flex-shrink:0}
.guide-scroll .guide-channel .favorite{width:27px;padding:4px}
.guide-scroll .guide-channel .favorite .icon{width:18px;height:18px}
.guide-scroll .guide-track{min-height:106px;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(8.33333% - 1px),#292b3355 calc(8.33333% - 1px),#292b3355 8.33333%)}
.guide-scroll .guide-program{top:7px;bottom:7px;padding:11px 14px;gap:0;transition:background .15s}
.guide-scroll .guide-program:hover{background:#2c303b}
.guide-scroll .guide-program.now:hover{background:#472733}
.guide-scroll .guide-program small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin-bottom:7px}
.guide-scroll .guide-program strong{font-size:13px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%;flex-shrink:0}
.guide-scroll .guide-program>span{font-size:9px;margin-top:4px}
.guide-scroll .guide-program.has-poster{padding-left:76px;padding-right:14px}
.guide-scroll .guide-program-poster{left:11px;right:auto;top:50%;bottom:auto;transform:translateY(-50%);width:48px;height:72px;object-fit:cover;mask-image:none;border-radius:4px}
.guide-scroll.is-dragging,.guide-scroll.is-dragging *{cursor:grabbing!important;user-select:none}
.guide-scroll.list-layout .guide-grid{width:100%}
.guide-scroll.list-layout .guide-row{grid-template-columns:var(--guide-channel-width) minmax(0,1fr)}
.guide-scroll.list-layout .guide-track{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));background:none;min-height:0;padding:8px;gap:8px}
.guide-scroll.list-layout .guide-program{position:relative;left:auto!important;top:auto;bottom:auto;min-height:94px;width:auto!important;min-width:0}
.guide-scroll.list-layout .guide-channel{position:static;box-shadow:none}
.guide-scroll.list-layout .guide-unavailable{grid-column:1/-1;min-height:75px}
/* The channel's next broadcasts: one date heading, a clear time column, no repeated credits. */
.channel-agenda{padding-top:20px}
.channel-agenda>.results-note{margin:0 0 13px;font-size:11px}
.channel-agenda-days{display:grid;gap:13px}
.channel-agenda-day>h3{font-size:13px;font-weight:600;color:#d3d6df;letter-spacing:.1px;margin:0 0 8px}
.channel-agenda .channel-agenda-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px}
.channel-agenda .channel-agenda-item{padding:0;background:#191b22;border:1px solid #2c303b;border-radius:10px;overflow:hidden;min-width:0;position:relative}
.channel-agenda .channel-agenda-item:hover{border-color:#555d70;background:#20232d}
.channel-agenda .channel-agenda-item.is-current{background:linear-gradient(110deg,#301d25,#191b22);border-color:#79404e}
.agenda-program{display:flex;align-items:center;text-align:left;width:100%;min-height:64px;padding:9px 12px;gap:12px;background:none}
.agenda-time{display:block;width:52px;flex-shrink:0;align-self:center;font-size:18px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.agenda-time small{display:block;color:#9198a8;font-size:11px;font-weight:400;letter-spacing:0;margin-top:3px}
.agenda-art{width:44px;height:44px;object-fit:cover;border-radius:4px;flex:0 0 auto}
.agenda-art.is-poster{width:30px;height:45px}
.agenda-copy{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:4px 8px;min-width:0;flex:1}
.agenda-program-status{grid-row:2;grid-column:1;display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:10px;line-height:1.4;color:#a6adbb}
.agenda-program-status:empty{display:none}
.agenda-live{display:inline-flex;align-items:center;gap:5px;color:#ff8493;font-weight:700}
.agenda-live i{display:block;width:5px;height:5px;border-radius:50%;background:#ff4f66}
.agenda-next{color:#e3e5ec;font-weight:600}
.agenda-copy>strong{grid-row:1;grid-column:1/-1;font-size:14px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-wrap:pretty}
.agenda-copy>small{grid-row:2;grid-column:2;font-size:10px;line-height:1.4;color:#929aa9}
.agenda-program-status:empty~small{grid-column:1/-1}
.agenda-program>.icon{width:15px;height:15px;color:#989faf;flex-shrink:0}
.agenda-progress{position:absolute;left:0;right:0;bottom:0;height:2px;background:#ffffff08;pointer-events:none}
.agenda-progress>i{display:block;height:100%;background:var(--red)}
.channel-agenda-footer{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:7px 18px;margin-top:10px}
.channel-agenda-footer .source-line{margin:0;font-size:10px;color:#8f96a5}
.channel-agenda-footer .channel-agenda-source{font-size:10px;color:#a1a8b8}
.channel-agenda-footer .channel-agenda-source .icon{width:12px;height:12px}
@media(max-width:950px){.guide-scroll{--guide-channel-width:145px}.guide-scroll .guide-channel strong{font-size:10px}.guide-scroll .guide-channel .channel-badge{width:31px;height:32px}.guide-scroll .guide-channel>a{gap:6px}.agenda-program{gap:10px}.agenda-time{width:50px;font-size:18px}.agenda-copy>strong{font-size:13px}}
@media(max-width:720px){.guide-navigation{padding:10px 5%;gap:12px;margin:0}.guide-navigation>div:first-child{display:block}.guide-navigation strong{font-size:11px}.guide-navigation>div:first-child>span{display:block;font-size:9px;margin-top:2px}.guide-scroll-actions .icon-button{width:33px;height:33px}.guide-scroll{--guide-channel-width:104px}.guide-scroll .guide-channel{padding:9px 7px;gap:1px}.guide-scroll .guide-channel>a{flex-direction:column;align-items:flex-start;gap:5px}.guide-scroll .guide-channel strong{font-size:9px}.guide-scroll .guide-channel .favorite{width:23px}.guide-scroll .guide-channel .favorite .icon{width:16px;height:16px}.guide-scroll .guide-program strong{font-size:12px}.guide-scroll .guide-program small{font-size:9px}.guide-scroll.list-layout{--guide-channel-width:85px}.guide-scroll.list-layout .guide-track{grid-template-columns:minmax(0,1fr);padding:5px;gap:5px}.guide-scroll.list-layout .guide-program{padding:10px;min-height:94px}.guide-scroll.list-layout .guide-program.has-poster{padding-left:58px}.guide-scroll.list-layout .guide-program-poster{left:8px;width:40px;height:60px}.guide-scroll.list-layout .guide-program small{white-space:normal;font-size:8px}.guide-scroll.list-layout .guide-program strong{font-size:11px}.guide-scroll.list-layout .guide-channel{padding:8px 5px;flex-wrap:wrap;align-content:center}.guide-scroll.list-layout .guide-channel .favorite{width:23px}.channel-agenda>.results-note{font-size:10px;margin-bottom:12px}.channel-agenda .channel-agenda-list{grid-template-columns:minmax(0,1fr);gap:7px}.channel-agenda-day>h3{font-size:12px;margin-bottom:8px}.agenda-program{min-height:64px;padding:9px 10px;gap:10px}.agenda-time{width:45px;font-size:18px}.agenda-time small{font-size:10px}.agenda-art.is-poster{width:30px;height:45px}.agenda-copy>strong{font-size:13px}.agenda-copy>small{font-size:9px}.agenda-program-status{font-size:9px;gap:6px}.channel-agenda-footer{display:block}.channel-agenda-footer .source-line{margin-top:7px;line-height:1.6;font-size:9px}}
@media(max-width:380px){.agenda-program{padding:9px;gap:9px}.agenda-time{width:43px;font-size:17px}.agenda-art.is-poster{width:28px;height:42px}.agenda-copy>strong{font-size:12px}.agenda-program>.icon{width:12px;height:12px}}
@media(prefers-reduced-motion:reduce){.guide-scroll .guide-program{transition:none}}
/* Keep both scrollbars and the time ruler accessible even with many channels. */
.guide-scroll{max-height:70svh}
.guide-scroll .guide-scale{position:sticky;top:0;z-index:6;background:#20222b;box-shadow:0 3px 7px #0003}
.guide-scroll .guide-scale .guide-channel{background:#1b1d25;z-index:7}
.guide-scroll::-webkit-scrollbar{width:11px;height:13px}
.guide-scroll.list-layout{max-height:none}
/* Keep a continuing programme's information in the visible part of its card. */
.guide-content-ready:not(.list-layout) .guide-program{--guide-text-inset:28px}
.guide-content-ready:not(.list-layout) .guide-program.has-poster{--guide-text-inset:90px}
.guide-content-ready:not(.list-layout) .guide-program>small,
.guide-content-ready:not(.list-layout) .guide-program>strong,
.guide-content-ready:not(.list-layout) .guide-program>span{transform:translateX(var(--guide-label-offset,0px));width:max(0px,calc(var(--guide-label-width,100%) - var(--guide-text-inset)));max-width:none}
.guide-content-ready:not(.list-layout) .guide-program-poster{left:calc(11px + var(--guide-label-offset,0px))}
.guide-content-ready:not(.list-layout) .guide-program.guide-narrow.has-poster{padding-left:14px;--guide-text-inset:28px}
.guide-content-ready:not(.list-layout) .guide-narrow>.guide-program-poster{display:none}
