/* A neutral, quiet TV interface. Color only conveys data or belongs to a photograph. */
html,html[data-theme="night"]{--bg:#101011;--panel:#1c1c1e;--surface:#262628;--line:#ffffff14;--text:#f5f5f7;--muted:#a1a1a6;--accent:#f5f5f7;--gain:#67ce8e;--loss:#ff8289;--selected:#e5e5e7;--selected-ink:#1d1d1f;color-scheme:dark}
html[data-theme="day"]{--bg:#f2f2f4;--panel:#fff;--surface:#f3f3f5;--line:#00000013;--text:#1d1d1f;--muted:#646469;--accent:#1d1d1f;--gain:#197542;--loss:#b82f39;--selected:#242426;--selected-ink:#fff;color-scheme:light}
html body{background:var(--bg)!important;color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
html[data-theme] body :is(.panel,.weather,.news,.markets){background:var(--panel)!important;border:1px solid var(--line);box-shadow:none;border-radius:14px;backdrop-filter:none}
html[data-theme] .header{border-color:var(--line);text-shadow:none}
html[data-theme] :is(h1,h2,#clock,#weekday,#weatherTempBig,.weather .weather-tomorrow strong){color:var(--text);text-shadow:none}
html[data-theme] :is(.eyebrow,.overline,#date,.weather .overline,.hourly-heading,.weather-metrics span,.weather-day-night span,.weather .weather-tomorrow,.weather-source,.weather-day-night small,.weather-hour time,.world-clocks,.footer,.index-credit,.stock-meta,.news-footer,.club-rank,.football-label,.football-freshness,.football-match-meta,.table-rank,.quote-label,.daily-quote.holiday .quote-label,.daily-quote a,.world-clocks small){color:var(--muted)}
html[data-theme] :is(.daily-quote p,.daily-quote.holiday p,.world-clocks time){color:var(--text)}
html[data-theme] :is(.daily-quote,.daily-quote.holiday,.weather .weather-metrics,.weather .weather-day-night,.news-footer,.crypto,.equities,.stock-card,.rpl-table td){border-color:var(--line)}
html[data-theme] .weather .weather-hour{background:transparent;border:0;border-radius:0}
html[data-theme] .weather .weather-hour+.weather-hour{border-left:1px solid var(--line)}
html[data-theme] .weather .weather-tomorrow{background:var(--surface);color:var(--muted);border-radius:6px}
html[data-theme] .weather .precipitation-chance{display:inline-flex;align-items:center;justify-content:center;gap:3px;color:var(--muted);font-size:12px;line-height:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
html[data-theme] .weather .precipitation-chance svg{width:10px;height:12px;flex:none}
html[data-theme] .weather .tomorrow-chance{margin-left:auto}
html[data-theme] .weather .weather-tomorrow strong{margin-left:0}
html.screen-fit .weather.panel{gap:3px}
html[data-theme] .weather .weather-hours{min-height:min-content}
html.screen-fit .weather .weather-hour{padding:4px 1px}
html[data-theme] .weather-icon-big{animation:none;filter:none;color:var(--text);padding:0}
.weather-icon-big svg{display:block;width:1.12em;height:1.12em}
.hour-icon svg{display:block;width:1.1em;height:1.1em;color:var(--muted)}
.tomorrow-condition svg{display:block;width:1.1em;height:1.1em;color:var(--text)}
html[data-theme] .news-tabs{gap:3px;border-bottom:1px solid var(--line);padding-bottom:6px}
html[data-theme] .news-tabs [data-topic]{border:0!important;border-radius:5px;background:transparent;box-shadow:none!important;color:var(--muted)!important}
html[data-theme] .news-tabs [data-topic].active{color:var(--text)!important;background:var(--surface)!important;font-weight:600}
html[data-theme] .traffic-views button{color:var(--muted);background:transparent;border:1px solid var(--line);border-radius:5px;box-shadow:none}
html[data-theme] .traffic-views button[aria-pressed="true"]{color:var(--text);background:var(--surface);border-color:var(--line);box-shadow:none}
html[data-theme] .map-area{border:0;box-shadow:none;border-radius:7px}
html[data-theme] .map-area iframe{filter:saturate(.65)}
html[data-theme] .news-hero{background:#252527;border:0;border-radius:8px;color:#f5f5f7}
html[data-theme] .news-progress{flex:none;height:2px;margin:5px 0 0;border-radius:2px;overflow:hidden;background:var(--line)}
html[data-theme] .news-progress>span{display:block;width:100%;height:100%;background:var(--text);transform-origin:left;animation:news-countdown var(--news-duration,20s) linear forwards}
html[data-theme] .news-progress[hidden]{display:none}
@keyframes news-countdown{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){html[data-theme] .news-progress>span{animation:none;transform:scaleX(1)}}
html[data-theme] .hero-copy{background:#242426;color:#f5f5f7}
html[data-theme] .hero-pattern{background:#242426}
html[data-theme] .hero-topic{color:#b6b6bb;letter-spacing:.07em}
html[data-theme] .hero-copy .news-source{color:#b6b6bb}
html[data-theme] .hero-summary{color:#d5d5d8}
html[data-theme] .news-card{background:#242426;border-radius:6px;color:#f5f5f7;box-shadow:none}
html[data-theme] .news-card :is(.news-source,.news-source strong){color:#e0e0e3}
html[data-theme] .news-card:after{background:linear-gradient(0deg,#000c,#0007)}
html[data-theme] .football-match{background:var(--surface);border-color:var(--line);border-radius:7px}
html[data-theme] .zenit-match{background:var(--surface);border-left:3px solid var(--muted)}
html[data-theme] :is(.zenit-match .football-match-meta,.zenit-row,.zenit-row .table-rank,.news.sports-active.rpl-visible .football-label){color:var(--text)}
html[data-theme] .zenit-row{background:var(--surface)}
html[data-theme] .rpl-scroll thead{background:var(--panel)}
html[data-theme] .ticker{background:var(--panel);border:1px solid var(--line);border-radius:7px;box-shadow:none}
html[data-theme] .ticker-label{background:var(--selected);color:var(--selected-ink);letter-spacing:.04em}
html[data-theme] .ticker.breaking .ticker-label{background:#b82f39;color:#fff}
html[data-theme] .ticker-item:before,html[data-theme] .ticker-item b{color:var(--muted)}
html[data-theme] :is(.up,.stock-card .up){color:var(--gain)}
html[data-theme] :is(.down,.stock-card .down){color:var(--loss)}
html[data-theme] .stock-graph.gain svg polyline{stroke:var(--gain)}
html[data-theme] .stock-graph.loss svg polyline{stroke:var(--loss)}
html[data-theme] .stock-graph>span{background:var(--panel);color:var(--muted)}
html[data-theme] .stock-graph.gain>span{color:var(--gain)}
html[data-theme] .stock-graph.loss>span{color:var(--loss)}
html[data-theme] :is(.fullscreen-button,.moments-connect){background:transparent;color:var(--muted);border-color:var(--line);border-radius:4px}
html[data-theme] .traffic-moderate{color:#bf862d}
html[data-theme] .moments-window,html[data-theme] .moments-pair{background:var(--panel);border-color:var(--line);box-shadow:none;color:var(--text)}
html.screen-fit .brand h1{font-weight:600;letter-spacing:-.035em}
html.screen-fit #clock{font-weight:400;letter-spacing:-.055em}
html.screen-fit h2,html.screen-fit .news h2{font-weight:600;font-size:19px;letter-spacing:-.02em}
html.screen-fit .weather #weatherTempBig{font-size:96px;font-weight:400;letter-spacing:-.065em}
html.screen-fit .weather #weatherDescBig{font-size:17px;font-weight:400;color:var(--muted)}
html.screen-fit .weather .weather-hero{min-height:108px}
html.screen-fit .weather .weather-icon-big{font-size:62px}
html.screen-fit .rate-value{font-weight:550;letter-spacing:-.03em}
html.screen-fit .news .hero-title{font-weight:550;letter-spacing:-.025em}
html.screen-fit .daily-quote p{font-size:15px;font-weight:400}
/* App navigation: one segmented control, consistent titles, no decorative glow. */
html[data-theme] .news-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;background:var(--surface);padding:4px;border:0;border-radius:9px;margin:12px 0}
html[data-theme] .news-tabs [data-topic]{padding:7px 3px;border-radius:6px;font-size:12px;font-weight:500;letter-spacing:-.01em;white-space:nowrap;transition:background-color .25s,color .25s}
html[data-theme] .news-tabs [data-topic].active{background:var(--selected)!important;color:var(--selected-ink)!important;box-shadow:0 1px 3px #0001!important}
html[data-theme] .section-head{align-items:baseline}
html.screen-fit h2,html.screen-fit .news h2{font-size:21px;letter-spacing:-.035em;font-weight:600}
html[data-theme] .traffic-views{display:flex;gap:3px;align-self:flex-start;background:var(--surface);border-radius:7px;padding:3px}
html[data-theme] .traffic-views button{border:0;padding:5px 12px;font-weight:500}
html[data-theme] .traffic-views button[aria-pressed="true"]{background:var(--selected);color:var(--selected-ink)}
html[data-theme] .ticker-track{animation-name:ticker-smooth;animation-timing-function:linear;will-change:transform;backface-visibility:hidden}
@keyframes ticker-smooth{from{transform:translate3d(0,0,0)}to{transform:translate3d(calc(-1 * var(--ticker-distance)),0,0)}}
html[data-theme] .ticker-window{contain:paint}
/* Identical row heights keep names, prices and graphs aligned while companies rotate. */
html[data-theme] .stock-content{grid-template-columns:minmax(0,1fr) minmax(72px,32%);grid-template-rows:14px 54px 12px;gap:3px 12px;align-items:stretch}
html[data-theme] .stock-heading{grid-row:1;grid-column:1/-1;margin:0;line-height:14px}
html[data-theme] .stock-main{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:22px 29px;gap:2px 6px;align-items:baseline;grid-row:2;grid-column:1}
html[data-theme] .stock-name{grid-column:1/-1;font-size:15px;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] .stock-main strong{grid-column:1;grid-row:2;font-size:22px;line-height:29px;letter-spacing:-.045em;min-width:0}
html[data-theme] .stock-main .stock-change{grid-column:2;grid-row:2;font-size:10px;text-align:right;font-variant-numeric:tabular-nums}
html[data-theme] .stock-graph{grid-column:2;grid-row:2;height:54px;min-height:0;align-self:end;position:relative}
html[data-theme] .stock-graph svg{height:38px;width:100%}
html[data-theme] .stock-graph>span{font-size:9px;line-height:12px;bottom:0}
html[data-theme] .stock-meta{grid-row:3;grid-column:1/-1;margin:0;line-height:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] .stock-enter{animation:stock-fade .65s ease-out both}
@keyframes stock-fade{from{opacity:.2}to{opacity:1}}
@media(prefers-reduced-motion:reduce){html[data-theme] .stock-enter{animation:none}}
/* Sports: a dedicated favorite, then a clearly named competition. */
html[data-theme] .news.sports-active .football-panel{gap:9px;margin-top:0}
html[data-theme] .news .football-match{display:block;padding:10px 12px;border:1px solid var(--line);border-radius:8px}
html[data-theme] .news .zenit-match{background:var(--surface);border-left:3px solid var(--text)}
html[data-theme] .favorite-team-label{font-size:19px;font-weight:600;letter-spacing:-.025em;display:flex;align-items:center;justify-content:space-between;padding-bottom:7px;margin-bottom:7px;border-bottom:1px solid var(--line)}
html[data-theme] .favorite-team-label span{font-size:10px;font-weight:500;color:var(--muted);letter-spacing:0}
html[data-theme] .match-competition{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:12px;font-weight:500;color:var(--muted);margin-bottom:7px}
html[data-theme] .match-competition small{font-size:9px;white-space:nowrap;padding:2px 5px;border:1px solid var(--line);border-radius:4px}
html[data-theme] .news .football-teams{grid-template-columns:minmax(0,1fr) 82px minmax(0,1fr);font-size:16px;gap:7px;align-items:center}
html[data-theme] .football-teams strong{text-align:center;font-size:27px;font-weight:600;letter-spacing:-.04em}
html[data-theme] .football-team{gap:7px}html[data-theme] .football-team:last-child>span{text-align:right}
html[data-theme] .news .football-match-meta{margin:7px 0 0;font-size:10px;line-height:1.25}
html[data-theme] .news .football-label{font-size:14px;font-weight:600;text-transform:none;letter-spacing:-.015em;color:var(--text);padding:3px 0}
html[data-theme] .news #footballMatches{gap:7px}
html[data-theme] .news .football-freshness{font-size:9px;padding-top:0;line-height:1.3}
html[data-theme] .match-live .football-match-meta{color:var(--gain)}
html[data-theme] .news.sports-active>.football-panel{flex:0 0 auto;overflow:visible}
html[data-theme] .news.sports-active>.news-hero{flex:1;min-height:90px;margin-top:10px}
html[data-theme] .news.sports-active .hero-summary{display:none}
html[data-theme] .news.sports-active .hero-title{font-size:19px;-webkit-line-clamp:2}
html[data-theme] .news.sports-active .hero-copy{padding:10px}
html[data-theme] .news.sports-active .hero-topic{font-size:10px}
html[data-theme] .news.sports-active .hero-copy .news-source{font-size:9px;margin-top:5px}
@media(max-width:560px){html[data-theme] .news-tabs [data-topic]{font-size:10px}html[data-theme] .news .football-teams{font-size:14px;grid-template-columns:minmax(0,1fr) 65px minmax(0,1fr)}}
/* Passive section indicators: television playback needs no pointer or switches. */
html[data-theme] .news-tabs [data-topic]{display:block;text-align:center;cursor:default;user-select:none}
/* Compact, fixed columns for currencies, crypto and energy futures. */
html[data-theme] .markets{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr);column-gap:14px}
html[data-theme] .market-group .section-head{gap:5px}
html[data-theme] .market-group h2{font-size:18px}
html[data-theme] .market-group .overline{font-size:9px;letter-spacing:.02em;white-space:nowrap}
html[data-theme] .crypto,html[data-theme] .commodities{padding-left:14px;border-left:1px solid var(--line)}
html[data-theme] .commodities .rates-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html[data-theme] .market-group .rates-grid{gap:8px}
html[data-theme] .market-group .rate-code{font-size:12px;letter-spacing:0;white-space:nowrap}
html[data-theme] .market-group .rate-unit{font-size:8px}
html[data-theme] .market-group .rate-value{font-size:23px}
html[data-theme] .market-group .rate-change{font-size:11px}
html[data-theme] .commodity-detail{display:flex;align-items:baseline;gap:4px;justify-content:space-between}
html[data-theme] .commodity-detail small{font-size:8px;color:var(--muted);white-space:nowrap}
@media(max-width:900px){html:not(.screen-fit) .markets{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}html:not(.screen-fit) .commodities{grid-column:1/-1;padding:12px 0 0;border-left:0;border-top:1px solid var(--line)}}
@media(max-width:560px){html:not(.screen-fit) .markets{grid-template-columns:minmax(0,1fr)}html:not(.screen-fit) .crypto{padding:12px 0 0;border-left:0;border-top:1px solid var(--line)}}
html[data-theme] .news-tabs{background:transparent;padding:0 0 3px;border-radius:0;border-bottom:1px solid var(--line);gap:8px}
html[data-theme] .news-tabs [data-topic]{border-radius:0;padding:7px 0 10px;position:relative}
html[data-theme] .news-tabs [data-topic].active{background:transparent!important;color:var(--text)!important;box-shadow:none!important}
html[data-theme] .news-tabs [data-topic].active:after{content:"";position:absolute;left:20%;right:20%;bottom:-4px;height:2px;background:var(--text);border-radius:2px}
html[data-theme] .commodity-enter{animation:stock-fade .8s ease-out both}
html[data-theme] .commodities .rate-value{font-size:22px;letter-spacing:-.045em}
html[data-theme] .rate-change.neutral{color:var(--muted)}
@media(prefers-reduced-motion:reduce){html[data-theme] .commodity-enter{animation:none}}
html[data-theme] .news.sports-active .football-panel{gap:7px}
/* Sports news remain readable in the compact space below match cards. */
html[data-theme] .news.sports-active>.news-hero{display:grid;grid-template-columns:30% minmax(0,1fr);align-items:stretch}
html[data-theme] .news.sports-active .hero-photo{position:relative;width:100%;height:100%;min-height:0;object-fit:cover;grid-column:1;grid-row:1}
html[data-theme] .news.sports-active .hero-copy{display:flex;flex-direction:column;justify-content:center;gap:3px;grid-column:2;grid-row:1;min-width:0;width:auto;padding:8px}
html[data-theme] .news.sports-active .hero-topic{font-size:9px;margin:0}
html[data-theme] .news.sports-active .hero-title{font-size:17px;line-height:1.2;-webkit-line-clamp:2}
html[data-theme] .news.sports-active .hero-copy .news-source{font-size:8px;margin:0;flex-wrap:nowrap}
html[data-theme] .news.sports-active .hero-copy .news-source>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
html[data-theme] .news.sports-active .news-tabs{margin:8px 0}
html[data-theme] .news.sports-active #newsFooter{display:none}
html[data-theme] .news.sports-active .football-panel{gap:6px}
html[data-theme] .news.sports-active .football-match{padding:8px 12px}
html[data-theme] .news.sports-active .football-label{margin:0;padding:2px 0}
/* Give the condition its own full-width line; it must never overlap the metrics. */
html.screen-fit .weather .weather-hero{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr) auto;gap:4px 8px;min-height:0;align-items:center}
html.screen-fit .weather .weather-current{display:contents}
html.screen-fit .weather #weatherTempBig{grid-column:1;grid-row:1;font-size:72px;line-height:.9}
html.screen-fit .weather .weather-icon-big{grid-column:2;grid-row:1;font-size:48px}
html.screen-fit .weather #weatherDescBig{grid-column:1/-1;grid-row:2;font-size:16px;line-height:1.2;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] .commodities .section-head h2{font-size:16px}
html[data-theme] .quote-credit{color:var(--muted);font-size:11px;flex:none;line-height:1.35}
html[data-theme] .traffic .map-area{margin:14px 0 0}
.routes-summary{flex:none;margin-top:10px;padding-top:9px;border-top:1px solid var(--line)}
.routes-heading{display:flex;justify-content:space-between;gap:8px;margin-bottom:6px;font-size:10px;color:var(--muted)}
.routes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.route-card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:27px auto;gap:3px 8px;align-items:baseline;min-width:0}
.route-card+.route-card{padding-left:14px;border-left:1px solid var(--line)}
.route-card>span{font-size:14px;font-weight:500}.route-card strong{font-size:24px;font-weight:500;letter-spacing:-.035em;white-space:nowrap;font-variant-numeric:tabular-nums}
.route-card strong small{font-size:11px;font-weight:400;letter-spacing:0;color:var(--muted)}
.route-card>small{grid-column:1/-1;font-size:10px;line-height:1.25;color:var(--muted)}
.route-card.route-stale strong{color:var(--muted)}
html[data-theme] .football-team>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;line-height:1.1}
html[data-theme] .news .football-teams{min-height:34px}
/* Two compact travel times, without distance or a second heading. */
.routes-summary{margin-top:7px;padding-top:6px}
.routes-heading{display:none}
.routes-grid{gap:10px}
.route-card{grid-template-rows:23px auto;gap:1px 6px}
.route-card+.route-card{padding-left:10px}
.route-card>span{font-size:12px}.route-card strong{font-size:20px}.route-card strong small{font-size:10px}
.route-card>small{font-size:9px;line-height:1.15}.route-card>small:empty{display:none}
.routes-summary .route-card{grid-template-rows:20px auto}
.routes-summary .route-card>span,.routes-summary .route-card strong,.routes-summary .route-card strong small{font-size:15px;line-height:20px;font-weight:500;letter-spacing:0}
