:root{color-scheme:dark;background:#091421;color:#f9f3e6;font-family:system-ui,sans-serif}
*{box-sizing:border-box}
body{margin:0}
header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding:16px max(22px,calc((100vw - 960px)/2));border-bottom:1px solid #354454;font-weight:700}
a{color:#f0c977}
main{width:min(960px,calc(100% - 36px));margin:38px auto 56px}
h1{font-size:clamp(2rem,5vw,3.6rem);margin:0 0 20px}
h2{margin:0 0 12px}
.player,.schedule{border:1px solid #354454;border-radius:18px;background:#142436;padding:clamp(18px,4vw,35px);margin-bottom:22px}
#state{color:#f0c977;font-weight:700;margin:0 0 8px}
#next,.schedule p{color:#ccd7e2}
button{min-height:44px;padding:10px 20px;border:0;border-radius:8px;color:#131b24;background:#f0c977;font:700 1rem system-ui;cursor:pointer}
video,audio{display:block;width:100%;margin-top:16px}
video{max-height:65vh;background:#050b12}
[hidden]{display:none!important}
ol{margin:0;padding:0;list-style:none}
li{padding:10px 8px;border-top:1px solid #354454;display:grid;grid-template-columns:4.4rem 1fr;gap:8px}
time{font-variant-numeric:tabular-nums;font-weight:700;color:#f0c977}
li.current{background:#263b51}
.landscape{margin-top:16px;overflow:hidden;border-radius:12px;aspect-ratio:16/9;background:#091421}
.landscape img{width:100%;height:100%;object-fit:cover;animation:landscape-pan 38s ease-in-out infinite alternate}
@keyframes landscape-pan{from{transform:scale(1)}to{transform:scale(1.12) translateX(-2%)}}
@media(prefers-reduced-motion:reduce){.landscape img{animation:none}}
.tv-test-notice{margin:0 0 24px;padding:16px 20px;background:#f0c977;color:#131b24;border-radius:12px}
.tv-test-notice strong{display:block;font-size:clamp(1.25rem,4vw,2rem);letter-spacing:.04em}
.tv-test-notice p{margin:4px 0 0}
.tv-replay{justify-self:start;min-height:32px;padding:3px 0;color:#f0c977;background:none;text-decoration:underline;text-align:left}
.tv-replay:disabled{color:#ccd7e2;cursor:default;text-decoration:none}
.tv-replay:focus-visible{outline:2px solid #f0c977;outline-offset:3px}
.landscape{position:relative}
.tv-byline{position:absolute;inset:auto 12px 12px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 14px;padding:10px 14px;border:1px solid #f0c977;border-radius:9px;background:#091421ed;color:#fff;font-size:clamp(.72rem,2.5vw,1.05rem)}
.tv-byline span{border-left:1px solid #f0c977;padding-left:12px;color:#f0c977;font-weight:700;white-space:nowrap}

.tv-idle-notice{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;gap:.5rem;padding:1rem;text-align:center;background:#071728a6;color:#fff5df}.tv-idle-notice[hidden]{display:none}.tv-idle-notice strong{font-size:clamp(1.25rem,4vw,2.5rem);line-height:1.18}.tv-idle-notice span{font-size:clamp(.85rem,2vw,1rem);color:#ffe0a2}

#tv-nature-video{position:absolute;inset:0;width:100%;height:100%;border:0;opacity:0;transition:opacity 550ms ease}#tv-nature-video.is-visible{opacity:1}#tv-nature-video[hidden]{display:none}

@media(prefers-reduced-motion:reduce){#tv-nature-video{transition:none}}

.tv-screen{position:relative;overflow:hidden;margin-top:16px;aspect-ratio:16/9;border-radius:12px;background:#091421}
.tv-screen :is(.landscape,video){width:100%;height:100%;max-height:none;margin:0;object-fit:contain}
.tv-screen .tv-byline{z-index:2;grid-template-columns:minmax(0,1fr) auto;inset:auto clamp(6px,2vw,14px) clamp(8px,3vw,18px);padding:clamp(6px,1.8vw,12px);pointer-events:none}
.tv-byline h2{margin:0;font-size:clamp(.8rem,2.6vw,1.15rem);line-height:1.25;overflow-wrap:anywhere}
@media(max-width:480px){.tv-screen .tv-byline{grid-template-columns:1fr;gap:3px}.tv-byline span{padding:0;border:0}}

.tv-station{position:absolute;z-index:3;top:clamp(6px,2vw,16px);right:clamp(8px,2vw,18px);display:flex;align-items:center;gap:.35em;color:#fff3d9;font-size:clamp(.7rem,2.3vw,1.15rem);font-weight:800;letter-spacing:.055em;text-shadow:0 1px 4px #000,0 0 9px #000;pointer-events:none}

.tv-fullscreen{position:absolute;z-index:4;bottom:calc(100% + 8px);right:0;pointer-events:auto;width:44px;height:44px;min-height:44px;padding:0;color:#fff3d9;background:#091421d9;border:1px solid #f0c977;font-size:1.45rem}
.tv-screen:fullscreen{width:100%;height:100%;margin:0;border-radius:0}
.tv-screen.tv-expanded{position:fixed;inset:0;z-index:9999;width:100%;height:100vh;height:100dvh;margin:0;border-radius:0;aspect-ratio:auto}
.tv-expanded-page{overflow:hidden}
.tv-screen:fullscreen .landscape{aspect-ratio:auto}.tv-screen.tv-expanded .landscape{aspect-ratio:auto}

.tv-byline-meta{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
#tv-clock{display:inline-block;color:#ffe0a2;font-size:clamp(.82rem,2.7vw,1.12rem);white-space:nowrap}
@media(max-width:480px){.tv-byline-meta{justify-content:space-between}.tv-byline-meta #tv-clock{margin-left:auto}}
.tv-screen{--station-bar-height:36px}
.tv-screen .tv-station{top:0;height:var(--station-bar-height)}
.tv-screen :is(.landscape,video){position:absolute;top:var(--station-bar-height);height:calc(100% - var(--station-bar-height));aspect-ratio:auto}

.tv-sohbet .landscape img{animation:none;object-fit:contain;box-sizing:border-box;padding-bottom:clamp(34px,7vw,69px)}

.tv-sohbet-effects{display:none;position:absolute;inset:36px 0 0;overflow:hidden;pointer-events:none}
.tv-sohbet .tv-sohbet-effects{display:block}
.tv-sohbet-effects i{position:absolute;top:9%;left:6%;width:7%;aspect-ratio:1;border:1px solid #ffe6adb0;box-shadow:0 0 15px #ffd77a60;animation:tv-square var(--square-speed,18s) linear infinite}
.tv-sohbet-effects i:nth-child(2){top:18%;left:86%;width:5%;animation-direction:reverse}
.tv-sohbet-effects i:nth-child(3){top:33%;left:5%;width:10%;border-radius:50%;animation:tv-circle var(--circle-speed,12s) ease-in-out infinite alternate}
.tv-sohbet .tv-byline{overflow:visible}
.tv-sohbet .tv-byline h2{position:relative;overflow:hidden}
.tv-sohbet .tv-byline h2::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 43%,#fff1c560 50%,transparent 57%);animation:tv-shine var(--shine-speed,7s) ease-in-out infinite}
[data-sohbet-effect="2"]{--square-speed:24s;--circle-speed:16s;--shine-speed:9s}
[data-sohbet-effect="3"]{--square-speed:14s;--circle-speed:20s;--shine-speed:8s}
[data-sohbet-effect="4"]{--square-speed:30s;--circle-speed:14s;--shine-speed:12s}
[data-sohbet-effect="5"]{--square-speed:20s;--circle-speed:22s;--shine-speed:10s}
[data-sohbet-effect="6"]{--square-speed:26s;--circle-speed:17s;--shine-speed:8s}
[data-sohbet-effect="7"]{--square-speed:16s;--circle-speed:24s;--shine-speed:11s}
[data-sohbet-effect="8"]{--square-speed:22s;--circle-speed:13s;--shine-speed:10s}
[data-sohbet-effect="9"]{--square-speed:32s;--circle-speed:18s;--shine-speed:13s}
[data-sohbet-effect="10"]{--square-speed:28s;--circle-speed:15s;--shine-speed:9s}
[data-sohbet-effect="2"] i:nth-child(3),[data-sohbet-effect="4"] i:nth-child(3),[data-sohbet-effect="6"] i:nth-child(3),[data-sohbet-effect="8"] i:nth-child(3),[data-sohbet-effect="10"] i:nth-child(3){animation-direction:alternate-reverse}
@keyframes tv-square{to{transform:rotate(360deg)}}
@keyframes tv-circle{to{transform:translate(720%,40%)}}
@keyframes tv-shine{0%,50%{transform:translateX(-125%)}75%,100%{transform:translateX(125%)}}
@media(prefers-reduced-motion:reduce){.tv-sohbet-effects i,.tv-sohbet .tv-byline h2::after{animation:none}.tv-sohbet .tv-byline h2::after{display:none}}

.tv-station{gap:.55em;padding-bottom:5px;font-family:Georgia,serif}
.tv-station-arabic{color:#f0c977;font:700 1.22em/1.15 serif;border-inline-start:1px solid #e2b85f;padding-inline-start:.52em}
.tv-station::after{content:"";position:absolute;inset:auto 0 4px;height:3px;background:linear-gradient(90deg,transparent,#be8029 17%,#ffda83 57%,#b17a32 85%,transparent);clip-path:polygon(0 60%,32% 8%,79% 16%,100% 48%,70% 76%,16% 100%)}
.tv-station::before{content:"";position:absolute;inset:auto 0 4px;height:3px;background:linear-gradient(105deg,transparent 40%,#fff2c7 49%,transparent 59%);animation:tv-station-brush 6s ease-in-out infinite;z-index:1}
@keyframes tv-station-brush{0%,40%{transform:translateX(-90%);opacity:0}55%{opacity:1}72%,100%{transform:translateX(90%);opacity:0}}
@media(prefers-reduced-motion:reduce){.tv-station::before{animation:none;display:none}}

.tv-screen{display:grid;grid-template-rows:var(--station-bar-height) minmax(0,1fr) auto}
.tv-screen :is(.landscape,video){position:relative;top:auto;grid-row:2;grid-column:1;height:100%;min-height:0}
.tv-screen .tv-byline{position:relative;inset:auto;grid-row:3;grid-column:1;margin:8px clamp(6px,2vw,14px) 8px;grid-template-columns:minmax(0,1fr) auto auto;background:#14243680;border-color:#f0c97766;box-shadow:inset 0 1px #fff2}
.tv-screen .tv-fullscreen{position:static;grid-column:3;grid-row:1;width:36px;height:36px;min-height:36px;background:#09142180}
.tv-screen .tv-byline h2{grid-column:1;grid-row:1}
.tv-screen .tv-byline-meta{grid-column:2;grid-row:1}
.tv-sohbet .landscape img{padding-bottom:0}
@media(max-width:580px){.tv-screen .tv-byline{grid-template-columns:minmax(0,1fr) auto;gap:3px 8px}.tv-screen .tv-fullscreen{grid-column:2;grid-row:1/span 2}.tv-screen .tv-byline-meta{grid-column:1;grid-row:2;justify-content:space-between}.tv-byline-meta #tv-clock{margin-left:auto}}

.tv-screen:not(.tv-expanded){aspect-ratio:auto;grid-template-rows:var(--station-bar-height) auto auto}
.tv-screen:not(.tv-expanded) :is(.landscape,video){height:auto;aspect-ratio:16/9}
.tv-screen:not(.tv-expanded) .landscape img{position:absolute;inset:0}

.tv-screen video{object-fit:cover}

.tv-screen.tv-sohbet .landscape img{object-fit:cover}

@media(max-width:767px){
 .tv-screen:not(.tv-expanded){width:100vw;max-width:none;margin-inline:calc(50% - 50vw);border-radius:0;grid-template-columns:minmax(0,1fr)}
 .tv-screen:not(.tv-expanded) :is(.landscape,video){width:100%;height:56.25vw;min-width:0;max-width:100%}
 .tv-screen:not(.tv-expanded) #tv-nature-video{display:block;width:100%;height:100%}
}

/* The live caption replaces the baked-in placeholder on these three covers. */
.tv-screen.tv-sohbet:is([data-sohbet-effect="3"],[data-sohbet-effect="9"],[data-sohbet-effect="10"]) .landscape img{
 object-position:center top;
 object-view-box:inset(0 0 28% 0);
}
@supports not (object-view-box:inset(0)){
 .tv-screen.tv-sohbet:is([data-sohbet-effect="3"],[data-sohbet-effect="9"],[data-sohbet-effect="10"]) .landscape img{
  transform:scale(1.4);
  transform-origin:center top;
 }
}

.tv-book-page{grid-row:2;grid-column:1;overflow:auto;min-width:0;min-height:0;overscroll-behavior:contain;background:#fff7e4;color:#231b12;padding:clamp(12px,4vw,32px);font:clamp(1rem,2.5vw,1.25rem)/1.65 Georgia,serif}
.tv-screen:not(.tv-expanded) .tv-book-page{height: clamp(185px,50vw,490px)}
.tv-book-page h2,.tv-book-page h3{color:#60351d}
.tv-book-page article{border-bottom:1px solid #c7a578;margin:0 0 1em;padding-bottom:.5em}

.tv-book-page .tv-book-arabic{font-size:clamp(1.35rem,4vw,2.15rem);line-height:1.9}
.tv-book-page ol{list-style:decimal;padding-inline-start:1.6em}
.tv-book-page li{display:list-item;border-color:#c7a578;padding:4px 0}
