:root {
    color-scheme: light;
    --navy: #081f38;
    --text: #10263e;
    --muted: #506782;
    --accent: #ff5a15;
    --time: #bd410b;
    --background: #f5f8fb;
    --surface: #ffffff;
    --line: #dfe7ef;
    --live: #f4f8fc;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
html[data-theme="dark"] {
    color-scheme: dark;
    --navy: #071523;
    --text: #f2f6fc;
    --muted: #abbcd0;
    --accent: #ff955d;
    --time: #ffad7e;
    --background: #091827;
    --surface: #10243a;
    --line: #2c4157;
    --live: #192f45;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--background); font: 16px/1.5 var(--font); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; top: 10px; left: 10px; padding: 12px 20px; z-index: 10; background: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.masthead { color: #fff; background: var(--navy); }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; width: min(1480px,100%); margin: auto; padding: 24px 36px; }
.wordmark { display: inline-flex; align-items: baseline; flex-wrap: nowrap; min-width: 0; font-size: clamp(28px,3vw,42px); font-weight: 850; letter-spacing: -.055em; line-height: 1.1; }
.wordmark:hover { text-decoration: none; }
.brand-square { display: inline-block; flex: 0 0 .27em; width: .27em; height: .27em; margin-left: .13em; background: var(--accent); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: 0 0 48px; padding: 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; background: transparent; }
.theme-toggle:hover { background: rgba(255,255,255,.1); }
.theme-toggle svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun, html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.page { width: min(1480px,100%); margin: auto; padding: 38px 36px 44px; }
.page-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 30px; margin-bottom: 34px; }
h1 { margin: 0; font-size: clamp(36px,4.6vw,64px); font-weight: 850; line-height: 1.06; letter-spacing: -.055em; }
h1 span { color: var(--accent); }
.date { margin: 9px 0 0; font-size: clamp(16px,1.7vw,21px); color: var(--muted); }
.promise { margin: 0 0 3px; font-size: 15px; color: var(--muted); }
.section-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 12px; line-height: 1.4; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.section-rule { height: 2px; flex: 1; min-width: 20px; background: var(--accent); }
.evening-hours { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.channel-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); align-items: start; gap: 16px 12px; }
.channel { min-width: 0; padding: 18px 14px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.channel-header { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 120px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.channel-logo { display: flex; align-items: center; justify-content: center; width: 108px; height: 66px; flex: 0 0 66px; max-width: 100%; padding: 5px; border-radius: 3px; background: #fff; }
.channel-logo img { width: 100%; height: 100%; object-fit: contain; }
.channel-monogram { display: grid; place-items: center; width: 64px; height: 64px; flex: 0 0 64px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 20px; font-weight: 750; }
.channel-header h2 { margin: 0; font-size: 16px; font-weight: 750; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.schedule { list-style: none; margin: 0; padding: 0; }
.programme { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.programme:last-child { border-bottom: 0; }
.programme-time { color: var(--time); font-size: 14px; font-weight: 650; line-height: 1.4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.programme-copy { min-width: 0; }
.programme h3 { margin: 0; font-size: 16px; font-weight: 750; line-height: 1.34; letter-spacing: -.02em; overflow-wrap: anywhere; }
.programme-category { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.live-label { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; color: var(--time); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.live-label::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.channel-empty { margin: 0; padding: 20px 0; color: var(--muted); font-size: 14px; }
.notice { padding: 32px; margin-bottom: 24px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 5px; background: var(--surface); }
.notice h2 { margin: 0 0 12px; font-size: 25px; line-height: 1.2; letter-spacing: -.03em; }
.notice p { margin: 0; color: var(--muted); }
.notice a { display: inline-block; padding: 10px 0; margin-top: 10px; font-weight: 650; text-decoration: underline; }
.preview-note { margin: -12px 0 24px; padding: 8px 12px; border: 1px dashed var(--line); color: var(--muted); font-size: 12px; }
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; width: min(1480px,100%); margin: auto; padding: 20px 36px; color: var(--muted); font-size: 12px; }
.footer-inner > p { margin: 0 auto 0 0; }
.footer-inner > a { display: inline-flex; align-items: center; min-height: 44px; }
.privacy { max-width: 640px; }
.privacy summary { cursor: pointer; min-height: 44px; padding-block: 12px; }
.privacy-copy { font-size: 13px; line-height: 1.7; }
.privacy-copy p { margin: 0 0 12px; }
@media (max-width: 1150px) {
    .channel-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .masthead-inner { padding: 22px 28px; }
    .page { padding: 32px 28px 36px; }
    .footer-inner { padding-inline: 28px; }
}
@media (max-width: 820px) {
    .channel-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .page-heading { margin-bottom: 26px; gap: 14px; }
    .promise { width: 100%; font-size: 14px; }
    .channel { padding-inline: 13px; }
}
@media (max-width: 600px) {
    .masthead-inner { padding: 17px 20px; gap: 12px; }
    .wordmark { font-size: 29px; }
    .theme-toggle { width: 44px; height: 44px; flex-basis: 44px; }
    .page { padding: 26px 18px 30px; }
    h1 { font-size: clamp(33px,8.5vw,45px); }
    .page-heading { gap: 14px; margin-bottom: 24px; }
    .date { font-size: 16px; }
    .promise { font-size: 13px; }
    .section-heading { gap: 12px; margin-bottom: 15px; }
    .section-heading h2, .evening-hours { font-size: 11px; }
    .channel-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
    .channel { padding: 14px 16px 8px; }
    .channel-header { flex-direction: row; justify-content: flex-start; min-height: 0; gap: 16px; padding-bottom: 12px; border: 0; }
    .channel-logo { width: 76px; height: 48px; flex-basis: 76px; padding: 3px; }
    .channel-monogram { width: 48px; height: 48px; flex-basis: 48px; font-size: 16px; }
    .channel-header h2 { text-align: left; font-size: 17px; }
    .schedule { margin-left: 2px; }
    .programme { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 12px; margin-left: 0; padding: 10px 0 13px 18px; border: 0; }
    .programme::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--accent); }
    .programme:first-child::before { top: 20px; }
    .programme:last-child::before { bottom: calc(100% - 20px); }
    .programme::after { content: ""; position: absolute; left: -4px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
    .programme-time { padding-top: 1px; font-size: 14px; }
    .programme h3 { font-size: 17px; line-height: 1.35; }
    .programme-category { font-size: 14px; margin-top: 3px; }
    .footer-inner { padding: 16px 20px; gap: 4px 18px; }
    .footer-inner > p { width: 100%; }
    .notice { padding: 24px 20px; }
    .notice h2 { font-size: 23px; }
    .preview-note { margin-top: 0; }
}
@media (max-width: 360px) {
    .masthead-inner { padding-inline: 16px; }
    .wordmark { font-size: 26px; }
    .page { padding-inline: 14px; }
    .channel { padding-inline: 13px; }
    .programme { grid-template-columns: 48px minmax(0,1fr); gap: 9px; padding-left: 15px; }
}
@media print {
    :root { color-scheme: light; --text:#111; --muted:#555; --surface:#fff; --background:#fff; --line:#ccc; --time:#111; }
    .theme-toggle,.skip-link,.privacy,.preview-note { display:none!important; }
    .masthead { color:#111;background:#fff;border-bottom:2px solid #111; }
    .masthead-inner,.page,.footer-inner { padding:12px 0; }
    .wordmark { font-size:25px; }
    h1 { font-size:30px; }
    .channel-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .channel { break-inside:avoid; }
    .programme { break-inside:avoid; }
    .live-label { display:none; }
}
