/* Styles for the news screen test. Same frame as the weather screen (/weather/screen/assets/weather.css). */
@font-face {
  font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-stretch: 100%; font-display: swap;
  src: url("/weather/screen/assets/fonts/roboto-latin.woff2") format("woff2");
}
html { font-size: 20px; }
:root { --bg: #0d0f13; --panel: #161a22; --panel-2: #1d222b; --ink: #f4f5f7; --muted: #a3abb9; --rule: #2a303b; --warn: #ffb020; --ok: #3ddc84; --logo: #ffffff; }
html.light { --bg: #eeece6; --panel: #ffffff; --panel-2: #f5f4f0; --ink: #14161b; --muted: #555c68; --rule: #dcd9d1; --warn: #a85800; --ok: #0f7a43; --logo: #001489; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body { overflow: hidden; }
#stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden;
  font-family: Roboto, system-ui, sans-serif; font-variant-numeric: tabular-nums; display: grid; grid-template-rows: 92px 1fr 43.2px; }
header { display: flex; align-items: center; justify-content: space-between; padding: 0 38px; border-bottom: 1px solid var(--rule); }
.title { display: flex; align-items: center; gap: 23px; }
.logo { height: 2.9rem; aspect-ratio: 441 / 120; flex: none; background: var(--logo);
  -webkit-mask: url("/weather/screen/ecolint-logo.png") center / contain no-repeat; mask: url("/weather/screen/ecolint-logo.png") center / contain no-repeat; }
.hdr-sep { width: 2px; height: 2.6rem; background: var(--rule); flex: none; }
.title h1 { margin: 0; line-height: 1; font-size: 2.5rem; font-weight: 900; letter-spacing: -0.02em; }
.badge { font-size: 1.3rem; font-weight: 900; letter-spacing: 0.08em; color: var(--bg); background: var(--warn); border-radius: 0.5rem; padding: 0.3rem 0.8rem; }
.clock { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.02em; }
.clock .secs { font-size: 1.5rem; color: var(--muted); margin-left: 0.3rem; font-weight: 600; }
footer { display: flex; align-items: center; justify-content: space-between; padding: 0 38px; font-size: 1.05rem; color: var(--muted); border-top: 1px solid var(--rule); }

main { display: grid; grid-template-columns: 1280px 1fr; gap: 26px; padding: 26px 38px; min-height: 0; }
/* The picture is 1280x720 (16:9). YouTube draws captions near the bottom of its PLAYER, not of the picture,
   and a page cannot move them or read their text. So the player is made taller than the picture: the
   picture sits in the middle of it with a black band above and below, the band above is pushed out of
   sight, and the captions land in the band below instead of on top of the broadcaster's own ticker. */
.video { position: relative; width: 1280px; height: 880px; align-self: center; background: #000; border-radius: 1.3rem; overflow: hidden; border: 1px solid var(--rule); }
.video iframe { position: absolute; left: 0; top: -160px; width: 100%; height: 1040px; border: 0; }   /* 720 + a 160px band above (hidden) and below (shown) */
/* Nothing on this screen is clickable: a transparent sheet keeps YouTube's hover controls from ever appearing. */
/* ?preview: the player at half size, drawn double. YouTube picks its stream by the player's size, so it sends a much lighter one. */
html.preview .video iframe { width: 640px; height: 520px; transform: scale(2); transform-origin: 0 0; }
.video .shield { position: absolute; inset: 0; z-index: 2; }
.video .notice { position: absolute; inset: 0; z-index: 3; display: none; place-items: center; text-align: center; padding: 3rem; background: var(--panel); font-size: 2.2rem; font-weight: 700; color: var(--muted); line-height: 1.4; }
.video.failed .notice { display: grid; }
/* A preview that has played its three minutes: the last picture stays, dimmed, under a note. The shield turns
   solid enough to hide what YouTube draws over a paused video. */
.video .pausednote { display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; white-space: nowrap; font-size: 2.2rem; font-weight: 800; color: #fff; background: rgba(13, 15, 19, 0.82); border-radius: 1rem; padding: 1rem 1.6rem; }
.video.paused .pausednote { display: block; }
.video.paused .shield { background: rgba(13, 15, 19, 0.35); backdrop-filter: blur(3px); }

/* The column is exactly as tall as the video box (880px) and lines up with it top and bottom:
   its last box stretches to take up whatever is left. */
.side { display: grid; grid-template-rows: auto 1fr; gap: 20px; height: 880px; align-self: center; min-height: 0; }
.about-wrap { display: grid; grid-template-rows: auto 1fr; gap: 20px; min-height: 0; }
.about { align-self: stretch; }
.about.warn { display: flex; flex-direction: column; justify-content: center; }
.about.warn { min-height: 0; overflow: hidden; }
.about.warn p { font-size: 1.5rem; line-height: 1.35; margin-top: 0.7rem; }
.about.warn { border-color: var(--warn); }
.about.warn .label { color: var(--warn); }
.about p { font-size: 1.4rem; line-height: 1.35; color: var(--muted); font-weight: 500; margin: 0.55rem 0 0; }
.about p b { color: var(--ink); font-weight: 900; }
.box { background: var(--panel); border: 1px solid var(--rule); border-radius: 1.3rem; padding: 1.1rem 1.4rem; }
.label { font-size: 1.3rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.now .name { font-size: 3.2rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; margin-top: 0.3rem; }
.now .lang { font-size: 1.8rem; color: var(--muted); font-weight: 500; margin-top: 0.2rem; }
.now .row { font-size: 1.4rem; font-weight: 600; margin-top: 0.9rem; display: flex; gap: 0.6rem; align-items: baseline; line-height: 1.3; }
.dot { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); }
.list { overflow: hidden; }
.list .item { display: flex; align-items: baseline; gap: 0.6rem; font-size: 1.35rem; font-weight: 600; padding: 0.42rem 0; color: var(--muted); border-top: 1px solid var(--rule); }
.list .item:first-of-type { border-top: 0; }
.list .item.on { color: var(--ink); font-weight: 900; }
.list .item span { white-space: nowrap; }
.list .item small { font-size: 1.1rem; font-weight: 500; color: var(--muted); margin-left: auto; text-align: right; white-space: nowrap; }
