:root {
    --page: #090b0e;
    --panel: #11151a;
    --panel-2: #171c22;
    --line: #2b323a;
    --text: #f4f6f8;
    --muted: #9ca6b2;
    --orange: #e8672f;
    --orange-dark: #b7431f;
    --red: #d52e2e;
    --ticker-height: 44px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background: radial-gradient(circle at 72% 0%, rgba(232, 103, 47, .08), transparent 28rem), var(--page);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    padding-bottom: var(--ticker-height);
}
button, a { font: inherit; }
a { color: inherit; }
.station-shell { width: min(1600px, 100%); margin: 0 auto; padding: 0 28px 32px; }
.station-header {
    min-height: 92px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}
.brand {
    display: grid;
    grid-template-columns: auto auto;
    width: max-content;
    text-decoration: none;
    line-height: .82;
    letter-spacing: -.04em;
}
.brand-hi { grid-column: 1 / 3; font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.brand-news { font-size: 34px; font-weight: 300; color: var(--orange); }
.brand-domain { align-self: end; margin: 0 0 2px 10px; color: var(--muted); font-size: 10px; line-height: 1; letter-spacing: .11em; }
.header-center { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; letter-spacing: .08em; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(213, 46, 46, .13); animation: statusPulse 2s ease-in-out infinite; }
.status-label { color: var(--text); font-weight: 700; }
.header-divider { height: 18px; width: 1px; background: var(--line); margin: 0 5px; }
.station-nav { justify-self: end; display: flex; align-items: center; gap: 10px; }
.station-nav a { text-decoration: none; color: var(--muted); font-size: 13px; padding: 10px 13px; border: 1px solid transparent; }
.station-nav a:hover, .station-nav a:focus-visible { color: var(--text); border-color: var(--line); }
.station-nav .advertise-link { color: var(--text); border-color: var(--orange); }
.alert-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; min-height: 44px; background: linear-gradient(90deg, #9f231e, var(--red)); border-bottom: 1px solid rgba(255, 255, 255, .12); padding: 8px 14px; }
.alert-bar p { margin: 0; font-size: 13px; }
.alert-label, .alert-time { font-size: 11px; font-weight: 800; letter-spacing: .09em; }
.alert-label { background: #fff; color: #8f1c18; padding: 5px 7px; }
.broadcast-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(300px, .8fr); gap: 20px; padding: 20px 0; }
.broadcast-column, .information-rail { min-width: 0; }
.video-frame { position: relative; overflow: hidden; background: #000; border: 1px solid #343c45; aspect-ratio: 16 / 9; }
.video-frame::after { content: ""; pointer-events: none; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-topline { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none; }
.video-badge, .video-location { padding: 7px 9px; background: rgba(8, 10, 13, .82); border: 1px solid rgba(255, 255, 255, .18); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.video-badge { border-left: 3px solid var(--orange); }
.video-controls { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.video-controls button { border: 1px solid rgba(255, 255, 255, .28); background: rgba(8, 10, 13, .86); color: #fff; padding: 8px 10px; cursor: pointer; font-size: 12px; }
.video-controls button:hover, .video-controls button:focus-visible { border-color: var(--orange); }
.program-info { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--orange); }
.eyebrow { margin: 0 0 7px; color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.program-info h1, .module h2, .station-info h2 { margin: 0; font-weight: 500; }
.program-info h1 { font-size: clamp(23px, 2.3vw, 36px); line-height: 1.08; }
.program-summary { max-width: 780px; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.program-meta { align-self: start; display: grid; gap: 7px; justify-items: end; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; }
.next-strip { display: grid; grid-template-columns: auto repeat(3, 1fr); align-items: stretch; border: 1px solid var(--line); border-top: 0; background: #0e1115; }
.next-label { display: grid; place-items: center; padding: 13px 16px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.next-strip article { padding: 12px 15px; border-left: 1px solid var(--line); }
.next-strip strong { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; }
.next-time { color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.information-rail { display: grid; gap: 14px; align-content: start; }
.module { background: var(--panel); border: 1px solid var(--line); padding: 18px; }
.module-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.module h2 { font-size: 21px; }
.module-status { padding: 5px 6px; color: var(--muted); border: 1px solid var(--line); font-size: 9px; font-weight: 700; letter-spacing: .09em; }
.weather-current { display: flex; align-items: center; gap: 16px; padding: 18px 0 12px; }
.weather-icon { font-size: 42px; color: var(--orange); }
.temperature { display: block; font-size: 48px; line-height: .9; font-weight: 300; }
.condition { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; }
.weather-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; }
.weather-details div { padding: 9px 8px; background: var(--panel-2); }
.weather-details dt { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.weather-details dd { margin: 4px 0 0; font-size: 12px; }
.forecast-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.forecast-row div { padding: 10px 5px; text-align: center; border-left: 1px solid var(--line); }
.forecast-row div:first-child { border-left: 0; }
.forecast-row span, .forecast-row strong, .forecast-row small { display: block; }
.forecast-row span, .forecast-row small { color: var(--muted); font-size: 9px; }
.forecast-row strong { margin: 4px 0 2px; font-size: 16px; }
.module-note { margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.bulletin-list { list-style: none; padding: 0; margin: 5px 0 0; }
.bulletin-list li { display: grid; grid-template-columns: 68px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.4; }
.bulletin-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.bulletin-list time { color: var(--orange); font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.sponsor-module { border-left: 3px solid var(--orange); }
.sponsor-module p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.5; }
.sponsor-module a { display: inline-block; margin-top: 4px; color: #fff; text-decoration: none; border-bottom: 1px solid var(--orange); padding-bottom: 3px; font-size: 13px; }
.station-info { display: grid; grid-template-columns: minmax(230px, .65fr) 1.35fr; gap: 40px; align-items: start; padding: 30px 22px; background: var(--panel); border: 1px solid var(--line); }
.station-info h2 { font-size: 26px; }
.station-info > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 0; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.ticker { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: auto 1fr; height: var(--ticker-height); background: #f3f4f5; color: #111; border-top: 3px solid var(--orange); overflow: hidden; }
.ticker-label { z-index: 2; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #15191e; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.ticker-label span { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.ticker-window { overflow: hidden; display: flex; align-items: center; }
.ticker-track { width: max-content; display: flex; align-items: center; gap: 28px; padding-left: 100%; white-space: nowrap; font-size: 13px; animation: tickerMove 36s linear infinite; }
.ticker-track b { color: var(--orange-dark); }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes statusPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (max-width: 1050px) {
    .station-header { grid-template-columns: 1fr auto; }
    .header-center { order: 3; grid-column: 1 / -1; justify-self: center; margin-top: -14px; padding-bottom: 14px; }
    .broadcast-grid { grid-template-columns: 1fr; }
    .information-rail { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
    :root { --ticker-height: 40px; }
    .station-shell { padding: 0 14px 24px; }
    .station-header { min-height: 78px; gap: 10px; }
    .brand-news { font-size: 29px; }
    .brand-domain, .station-nav a:first-child, .alert-time { display: none; }
    .station-nav a { padding: 8px 9px; font-size: 11px; }
    .alert-bar { grid-template-columns: auto 1fr; gap: 9px; }
    .alert-bar p { font-size: 11px; line-height: 1.3; }
    .broadcast-grid { padding-top: 14px; }
    .program-info { grid-template-columns: 1fr; padding: 15px; }
    .program-meta { grid-auto-flow: column; justify-content: start; justify-items: start; }
    .next-strip { grid-template-columns: 1fr; }
    .next-label { justify-items: start; }
    .next-strip article { border-left: 0; border-top: 1px solid var(--line); }
    .information-rail { grid-template-columns: 1fr; }
    .station-info { grid-template-columns: 1fr; gap: 14px; }
    .site-footer { display: grid; }
    .ticker-label { padding: 0 10px; font-size: 9px; }
    .ticker-track { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .status-dot, .ticker-track { animation: none; }
    .ticker-track { padding-left: 20px; }
}
/* Dynamic broadcast additions. The original visual system above remains intact. */
[hidden] { display: none !important; }
body[data-state="standby"] .status-dot { background: #d9962a; box-shadow: 0 0 0 5px rgba(217, 150, 42, .13); }
body[data-state="error"] .status-dot { background: var(--red); }
.alert-bar[data-alert-mode="standard"] { background: linear-gradient(90deg, #9a431f, var(--orange)); }
.alert-bar[data-alert-mode="standard"] .alert-label { color: #813614; }
.alert-bar[data-alert-mode="traffic"],
.alert-bar[data-alert-mode="fire"],
.alert-bar[data-alert-mode="weather"],
.alert-bar[data-alert-mode="breaking"] { background: linear-gradient(90deg, #9f231e, var(--red)); }
.station-image { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.station-slate {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 9px;
    padding: 24px;
    text-align: center;
    background:
        linear-gradient(rgba(232, 103, 47, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 103, 47, .035) 1px, transparent 1px),
        radial-gradient(circle at 50% 42%, rgba(232, 103, 47, .12), transparent 34%),
        #090b0e;
    background-size: 42px 42px, 42px 42px, auto, auto;
}
.slate-mark {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    border: 1px solid rgba(232, 103, 47, .55);
    border-radius: 50%;
    color: var(--orange);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .08em;
}
.station-slate strong { font-size: clamp(22px, 2.5vw, 34px); font-weight: 500; }
.station-slate span { color: var(--muted); font-size: 13px; }
.start-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    border: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, .34);
    color: #fff;
    cursor: pointer;
}
.start-overlay > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--orange); font-size: 22px; padding-left: 3px; }
.start-overlay strong { font-size: 19px; }
.start-overlay small { color: #d9dde1; }
.video-controls { z-index: 6; }
.program-progress { height: 3px; background: #080a0d; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.program-progress span { display: block; width: 0; height: 100%; background: var(--orange); transition: width .12s linear; }
.ticker-track {
    padding-left: 0;
    gap: 0;
    animation-name: tickerDynamic;
    animation-duration: var(--ticker-speed, 36s);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.ticker-track.is-paused { animation-play-state: paused; }
.ticker-sequence { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.ticker-item { display: inline-flex; align-items: center; gap: 9px; }
.ticker-item::after { content: "•"; margin-left: 19px; color: var(--orange-dark); font-weight: 800; }
.ticker-item-label { color: var(--orange-dark); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.ticker-item a { color: inherit; text-decoration: none; }
.ticker[data-mode="breaking"] { border-top-color: var(--red); }
.ticker[data-mode="breaking"] .ticker-label { background: #8f1c18; }
.ticker[data-mode="breaking"] .ticker-item-label { color: #9f231e; }
.noscript-message { margin: 20px; padding: 14px; border: 1px solid var(--red); background: #271012; color: #fff; }
@keyframes tickerDynamic { from { transform: translateX(0); } to { transform: translateX(var(--ticker-distance, -800px)); } }
.video-frame:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; border: 0; background: #000; }
.video-frame:fullscreen video,
.video-frame:fullscreen .station-image { object-fit: contain; }
.video-frame:fullscreen .video-controls { right: 24px; bottom: 24px; }
@media (max-width: 780px) {
    .video-controls { left: 10px; right: 10px; bottom: 10px; flex-wrap: wrap; justify-content: flex-end; }
    .video-controls button { padding: 7px 8px; font-size: 10px; }
    .ticker-sequence { gap: 22px; padding-right: 22px; }
    .ticker-item::after { margin-left: 13px; }
}


/* Per-item clean playback. Emergency/breaking tickers may override routine suppression. */
body[data-clean-playback="true"] .video-topline {
    display: none !important;
}
body[data-clean-playback="true"][data-emergency-ticker="false"] {
    padding-bottom: 0;
}
body[data-clean-playback="true"][data-emergency-ticker="false"] .alert-bar,
body[data-clean-playback="true"][data-emergency-ticker="false"] .ticker {
    display: none !important;
}
body[data-clean-playback="true"][data-emergency-ticker="true"] {
    padding-bottom: var(--ticker-height);
}
