:root {
    --bg: #0b0c0e;
    --panel: #141518;
    --panel-2: #1a1b1f;
    --panel-3: #202126;
    --text: #f6f6f6;
    --muted: #a7a8ad;
    --muted-2: #72747b;
    --line: rgba(255,255,255,.10);
    --line-strong: rgba(255,255,255,.18);
    --red: #ec243b;
    --red-dark: #bd1429;
    --green: #53d586;
    --blue: #2186ff;
    --blue-light: #69b2ff;
    --now-yellow: #ffd400;
    --radius: 15px;
    --shadow: 0 18px 55px rgba(0,0,0,.32);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--text); background: radial-gradient(circle at 50% -20%, #25272d 0, var(--bg) 43rem); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.site-header { position: sticky; z-index: 40; top: 0; min-height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 10px max(18px, calc((100vw - 1540px) / 2)); border-bottom: 1px solid var(--line); background: rgba(11,12,14,.92); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-screen { position: relative; width: 43px; height: 35px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 8px; }
.brand-screen::before, .brand-screen::after { content: ""; position: absolute; top: -6px; width: 11px; height: 2px; background: #fff; }
.brand-screen::before { left: 8px; transform: rotate(32deg); }
.brand-screen::after { right: 8px; transform: rotate(-32deg); }
.brand-screen i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 12px 0 0 rgba(255,255,255,.75); }
.brand-text strong, .brand-text small { display: block; }
.brand-text strong { font-size: 17px; letter-spacing: .12em; }
.brand-text small { margin-top: 1px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .23em; }
.header-clock { text-align: center; }
.header-clock strong { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.header-clock span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; text-transform: capitalize; }
.header-actions { display: flex; justify-content: flex-end; gap: 8px; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; color: #fff; cursor: pointer; font-size: 13px; font-weight: 750; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--red); }
.button-primary:hover { background: #ff3049; }
.button-quiet { border-color: var(--line); background: rgba(255,255,255,.045); }
.button-quiet:hover, .button-secondary:hover { background: rgba(255,255,255,.09); }
.button-secondary { border-color: var(--line); background: #222328; }
.full-width { width: 100%; }

.page-shell { width: min(1540px, calc(100% - 32px)); margin: 0 auto; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 42px 4px 26px; }
.kicker { margin: 0 0 7px; color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .20em; }
.intro h1 { margin: 0; font-size: clamp(31px, 4vw, 52px); line-height: 1; letter-spacing: -.045em; }
.intro > p { max-width: 470px; margin: 0 0 4px; color: var(--muted); font-size: 14px; text-align: right; }

.day-bar { position: sticky; z-index: 30; top: 74px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: rgba(20,21,24,.96); box-shadow: 0 12px 30px rgba(0,0,0,.20); backdrop-filter: blur(14px); }
.now-jump, .day-tab { min-height: 44px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 800; }
.now-jump { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; color: #fff; background: #25262b; }
.now-jump i, .update-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(236,36,59,.13); }
.day-tabs { min-width: 0; display: flex; overflow-x: auto; scrollbar-width: none; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab { min-width: 130px; flex: 1 0 130px; padding: 5px 16px; }
.day-tab strong, .day-tab small { display: block; }
.day-tab strong { color: currentColor; font-size: 13px; }
.day-tab small { margin-top: 2px; color: var(--muted-2); font-size: 10px; font-weight: 650; }
.day-tab.is-active { color: #fff; background: var(--red); }
.day-tab.is-active small { color: rgba(255,255,255,.72); }
.selection-summary { padding: 0 13px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.selection-summary strong { color: #fff; }
.group-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; padding: 6px; border: 1px solid var(--line); border-radius: 13px; background: rgba(20,21,24,.88); }
.group-filter-button { min-height: 45px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 850; }
.group-filter-button:hover { color: #fff; background: rgba(255,255,255,.045); }
.group-filter-button strong { min-width: 25px; height: 23px; display: grid; place-items: center; padding: 0 6px; border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.07); font-size: 10px; }
.group-filter-button.is-active { color: #fff; border-color: rgba(33,134,255,.58); background: linear-gradient(120deg, rgba(33,134,255,.42), rgba(33,134,255,.14)); box-shadow: inset 3px 0 0 var(--blue); }
.group-filter-button.is-active strong { color: #fff; background: var(--blue); }

.update-strip { min-height: 39px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(20,21,24,.74); font-size: 11px; }
.update-strip .update-dot { width: 6px; height: 6px; background: var(--green); box-shadow: 0 0 0 4px rgba(83,213,134,.10); }
.update-note { margin-left: auto; color: var(--muted-2); }
.status-panel { display: none; align-items: center; gap: 16px; margin: 18px 0; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.status-panel.is-visible { display: flex; }
.status-panel strong { font-size: 14px; }
.status-panel p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.loader { width: 27px; height: 27px; flex: 0 0 auto; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.epg-list { display: grid; gap: 22px; }
.channel-group { min-width: 0; }
.channel-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 3px 9px; padding: 0 2px; }
.channel-group-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.channel-group-heading span { color: var(--muted-2); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.channel-group-sport .channel-group-heading h2 { color: var(--blue-light); }
.channel-group-list { position: relative; display: grid; gap: 8px; }
.channel-group-list.has-current-time { padding-top: 31px; }
.group-empty-state { display: grid; place-items: center; min-height: 230px; padding: 35px 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(20,21,24,.66); text-align: center; }
.group-empty-state h2 { margin: 0; font-size: 22px; }
.group-empty-state p { max-width: 540px; margin: 10px 0 20px; color: var(--muted); line-height: 1.55; }
.channel-row { min-width: 0; display: grid; grid-template-columns: 205px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 7px 18px rgba(0,0,0,.12); }
.channel-row.is-current { border-color: var(--line); box-shadow: 0 7px 18px rgba(0,0,0,.12); }
.channel-cell { position: relative; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 15px 40px 15px 15px; border-right: 1px solid var(--line); background: #18191d; }
.channel-logo-box { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; color: #fff; background: #24252a; }
.channel-logo { width: 100%; height: 100%; display: none; object-fit: contain; padding: 5px; background: #fff; }
.channel-logo.is-visible { display: block; }
.channel-initials { font-size: 12px; font-weight: 900; letter-spacing: .03em; }
.channel-name-wrap { min-width: 0; }
.channel-name-wrap h2 { overflow: hidden; margin: 0; font-size: 14px; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.channel-state { display: block; margin-top: 5px; color: var(--muted-2); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.channel-row.is-current .channel-state { color: var(--muted-2); }
.remove-channel { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 8px; color: var(--muted-2); background: transparent; cursor: pointer; font-size: 21px; line-height: 1; }
.remove-channel:hover { color: #fff; background: rgba(255,255,255,.07); }
.programmes-cell { position: relative; min-width: 0; display: block; overflow-x: auto; overflow-y: hidden; scrollbar-color: rgba(255,255,255,.16) transparent; overscroll-behavior-x: contain; }
.programmes-track { position: relative; height: 78px; min-height: 78px; }
.programme-block { position: absolute; top: 0; bottom: 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; overflow: hidden; padding: 14px 16px; border-right: 1px solid var(--line); color: inherit; background: transparent; cursor: pointer; box-sizing: border-box; }
.programme-block:last-child { border-right: 0; }
.programme-block:hover { background: rgba(255,255,255,.035); }
.programme-block.is-live { background: transparent; box-shadow: none; }
.programme-block.is-past { opacity: .48; }
.programme-time { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 850; font-variant-numeric: tabular-nums; }
.programme-title { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.30; font-weight: 800; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.programme-subtitle { overflow: hidden; color: var(--muted-2); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.current-time-line { position: absolute; z-index: 12; top: 31px; bottom: 0; width: 5px; transform: translateX(-50%); border-radius: 999px; background: var(--now-yellow); box-shadow: 0 0 0 1px rgba(0,0,0,.32), 0 0 13px rgba(255,212,0,.78); pointer-events: none; }
.current-time-label { position: absolute; top: -29px; left: 50%; min-width: 58px; height: 24px; display: grid; place-items: center; transform: translateX(-50%); padding: 0 8px; border: 1px solid rgba(0,0,0,.58); border-radius: 7px; color: #111; background: var(--now-yellow); box-shadow: 0 3px 10px rgba(0,0,0,.42), 0 0 10px rgba(255,212,0,.35); font-size: 12px; font-weight: 950; font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; }
.current-time-label::after { content: ""; position: absolute; top: 100%; left: 50%; width: 9px; height: 9px; transform: translate(-50%, -50%) rotate(45deg); border-right: 1px solid rgba(0,0,0,.58); border-bottom: 1px solid rgba(0,0,0,.58); background: var(--now-yellow); }
.no-programmes { min-height: 78px; display: grid; place-items: center; flex: 1; padding: 18px; color: var(--muted-2); font-size: 12px; }

.empty-state { max-width: 650px; margin: 48px auto; padding: 48px 25px; border: 1px dashed var(--line-strong); border-radius: 18px; background: rgba(20,21,24,.8); text-align: center; }
.empty-icon { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 14px; background: var(--red); font-size: 31px; }
.empty-state h2 { margin: 0; font-size: 24px; }
.empty-state p { margin: 9px auto 20px; color: var(--muted); }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 4px calc(32px + var(--safe-bottom)); color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: .10em; }
.footer button { border: 0; color: var(--muted); background: transparent; cursor: pointer; text-transform: uppercase; }

.modal, .programme-dialog { position: fixed; z-index: 100; inset: 0; display: none; place-items: center; padding: 22px; }
.modal.is-open, .programme-dialog.is-open { display: grid; }
.modal-backdrop, .programme-dialog-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(9px); }
.modal-card { position: relative; width: min(1020px, 100%); height: min(820px, calc(100vh - 44px)); max-height: min(820px, calc(100vh - 44px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: #121316; box-shadow: var(--shadow); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 25px; }
.close-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #222328; cursor: pointer; font-size: 25px; line-height: 1; }
.close-button:hover { color: #fff; }
.picker-layout { min-height: 0; display: grid; grid-template-columns: 1.25fr .75fr; flex: 1; overflow: hidden; overflow-anchor: none; }
.all-channels-panel, .selected-panel { min-height: 0; display: flex; flex-direction: column; padding: 20px; overflow-anchor: none; contain: layout paint; }
.selected-panel { border-left: 1px solid var(--line); background: rgba(255,255,255,.02); }
.search-box { min-height: 47px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: #202126; }
.search-box svg { color: var(--muted); }
.search-box input { width: 100%; border: 0; outline: 0; color: #fff; background: transparent; }
.search-box input::placeholder { color: var(--muted-2); }
.picker-tools { display: flex; justify-content: space-between; gap: 16px; padding: 13px 3px 9px; color: var(--muted); font-size: 11px; }
.link-button { border: 0; color: #ff7282; background: transparent; cursor: pointer; font-size: 11px; }
.channel-list, .selected-list { min-height: 0; overflow-y: auto; overflow-anchor: none; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: auto; scrollbar-color: rgba(255,255,255,.28) transparent; touch-action: pan-y; }
.channel-list { flex: 1; }
.picker-group-heading { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 35px; margin: 0 0 4px; padding: 7px 9px; border-bottom: 1px solid var(--line); color: var(--blue-light); background: #121316; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.picker-group-heading:not(:first-child) { margin-top: 10px; }
.picker-group-heading span { min-width: 24px; height: 22px; display: grid; place-items: center; padding: 0 6px; border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.06); font-size: 10px; }
.picker-group-heading.picker-group-sport { color: var(--blue-light); }
.picker-group-heading.picker-group-other { color: #fff; }
.channel-option { min-height: 45px; display: flex; align-items: center; gap: 11px; padding: 6px 9px; border-radius: 9px; cursor: pointer; }
.channel-option:hover { background: rgba(255,255,255,.05); }
.channel-option input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox { width: 21px; height: 21px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 6px; color: transparent; background: rgba(255,255,255,.03); font-size: 13px; font-weight: 900; }
.channel-option input:checked + .checkbox { color: #fff; border-color: var(--red); background: var(--red); }
.option-name { min-width: 0; flex: 1; overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.option-id { color: var(--muted-2); font-size: 9px; }
.selected-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.selected-heading strong { display: block; }
.selected-heading small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.count-badge { min-width: 32px; height: 29px; display: grid; place-items: center; padding: 0 8px; border-radius: 9px; color: #fff; background: var(--red); font-weight: 850; }
.selected-list { flex: 1; margin-bottom: 12px; }
.selected-item { min-height: 46px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 6px 7px 6px 11px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 9px; background: #1d1e22; }
.selected-item strong { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.order-buttons { display: flex; gap: 3px; }
.order-buttons button { width: 28px; height: 28px; border: 0; border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.055); cursor: pointer; }
.order-buttons button:hover { color: #fff; background: rgba(255,255,255,.11); }
.selected-empty { padding: 34px 12px; color: var(--muted); text-align: center; font-size: 12px; }
.modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 20px calc(15px + var(--safe-bottom)); border-top: 1px solid var(--line); background: #101114; }
.modal-footer p { margin: 0; color: var(--muted); font-size: 11px; }
.modal-footer > div { display: flex; gap: 8px; }

.programme-dialog-card { position: relative; width: min(610px, 100%); max-height: calc(100vh - 44px); overflow-y: auto; padding: 30px; border: 1px solid var(--line-strong); border-radius: 18px; background: #17181c; box-shadow: var(--shadow); }
.programme-dialog-card .close-button { position: absolute; top: 14px; right: 14px; }
.detail-channel { display: inline-block; max-width: calc(100% - 55px); padding: 5px 9px; border-radius: 7px; color: #fff; background: var(--red); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.detail-time { margin: 19px 0 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.programme-dialog-card h2 { margin: 0; padding-right: 30px; font-size: clamp(24px, 5vw, 36px); line-height: 1.1; }
.detail-subtitle { margin: 10px 0 0; color: #d7d7d9; font-weight: 700; }
.detail-description { color: var(--muted); line-height: 1.65; }
.detail-category { display: inline-block; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 10px; }
.toast { position: fixed; z-index: 200; right: 20px; bottom: calc(20px + var(--safe-bottom)); max-width: min(430px, calc(100% - 40px)); padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: #28292f; box-shadow: var(--shadow); font-size: 12px; animation: toast-in .2s ease; }
.toast.is-error { border-color: rgba(236,36,59,.6); }
@keyframes toast-in { from { opacity: 0; transform: translateY(9px); } }

@media (max-width: 900px) {
    .site-header { grid-template-columns: 1fr auto; }
    .header-clock { display: none; }
    .intro { align-items: start; flex-direction: column; gap: 10px; }
    .intro > p { text-align: left; }
    .channel-row { grid-template-columns: 170px minmax(0,1fr); }
    .channel-cell { padding-left: 12px; }
    .channel-logo-box { width: 42px; height: 42px; }
    .picker-layout { grid-template-columns: 1fr; overflow-y: auto; }
    .all-channels-panel { min-height: 410px; }
    .selected-panel { min-height: 340px; border-top: 1px solid var(--line); border-left: 0; }
}
@media (max-width: 640px) {
    .site-header { min-height: 66px; padding: 9px 12px; }
    .brand-screen { width: 37px; height: 31px; }
    .brand-text strong { font-size: 14px; }
    .header-actions .button-quiet { display: none; }
    .header-actions .button-primary { width: 43px; padding: 0; font-size: 0; }
    .header-actions .button-primary svg { width: 21px; height: 21px; }
    .page-shell { width: min(100% - 18px, 1540px); }
    .intro { padding: 28px 3px 20px; }
    .intro h1 { font-size: 36px; }
    .day-bar { top: 66px; grid-template-columns: 47px minmax(0,1fr); padding: 6px; }
    .now-jump { width: 47px; padding: 0; font-size: 0; }
    .selection-summary { display: none; }
    .group-filter { gap: 6px; padding: 5px; }
    .group-filter-button { min-height: 42px; gap: 7px; font-size: 12px; }
    .day-tab { min-width: 105px; flex-basis: 105px; padding: 4px 9px; }
    .update-strip { align-items: flex-start; flex-wrap: wrap; padding: 10px 12px; }
    .update-note { width: 100%; margin: 0 0 0 16px; }
    .epg-list { gap: 18px; }
    .channel-group-heading { margin-bottom: 8px; }
    .channel-group-heading h2 { font-size: 18px; }
    .channel-group-list { gap: 10px; }
    .channel-group-list.has-current-time { padding-top: 35px; }
    .channel-row { display: grid; grid-template-columns: 104px minmax(0,1fr); min-height: 104px; border-radius: 12px; }
    .channel-cell { min-height: 104px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; padding: 10px 27px 10px 10px; border-right: 1px solid var(--line); border-bottom: 0; }
    .channel-logo-box { width: 34px; height: 34px; border-radius: 8px; }
    .channel-name-wrap { width: 100%; }
    .channel-name-wrap h2 { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.22; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .channel-state { margin-top: 4px; font-size: 8px; line-height: 1.15; letter-spacing: .035em; }
    .remove-channel { top: 5px; right: 3px; width: 24px; height: 24px; }
    .programmes-cell { display: block; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; touch-action: pan-x; }
    .programmes-track { height: 104px; min-height: 104px; }
    .programme-block, .programme-block.is-live { min-width: 0; min-height: 104px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 0; }
    .programme-time { padding: 0; color: #d6d6da; font-size: 11px; line-height: 1; white-space: nowrap; }
    .programme-title { display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.28; white-space: normal; text-overflow: clip; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .programme-subtitle { display: block; overflow: hidden; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
    .current-time-line { top: 35px; width: 4px; }
    .current-time-label { top: -31px; min-width: 56px; height: 25px; font-size: 12px; }
    .no-programmes { min-height: 104px; padding: 12px; font-size: 11px; text-align: center; }
    .footer { align-items: center; flex-direction: column; gap: 9px; text-align: center; }
    .modal, .programme-dialog { padding: 8px; }
    .modal-card { height: calc(100vh - 16px); max-height: calc(100vh - 16px); border-radius: 14px; }
    .modal-header, .all-channels-panel, .selected-panel { padding-left: 14px; padding-right: 14px; }
    .modal-footer { align-items: stretch; flex-direction: column; padding-left: 12px; padding-right: 12px; }
    .modal-footer > div { display: grid; grid-template-columns: 1fr 1.35fr; }
    .programme-dialog-card { padding: 25px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
