/* Version seven: the retro-future television, the connections diagram and the file chips. Shared by both pages. */
:root{--tv-ink:#070d22;--tv-text:#eef3fb;--tv-soft:#c3d1ea;--tv-mute:#8c9bb8;--tv-sky:#a9c8ff;--tv-dawn:#ffcf8a;--tv-ease:cubic-bezier(.22,.8,.24,1)}

.tv{position:relative;aspect-ratio:16/10.3;display:flex;flex-direction:column;padding:1.7% 1.7% 0;border-radius:clamp(18px,2.2vw,32px);color:var(--tv-text);text-decoration:none;
 background:repeating-linear-gradient(90deg,#ffffff05 0 1px,transparent 1px 4px),linear-gradient(180deg,#2a3b6c 0%,#17244b 38%,#0c1532 100%);
 box-shadow:inset 0 1px 0 #ffffff4d,inset 0 -3px 0 #00000080,inset 2px 0 0 #ffffff12,0 0 0 1px #ffffff1a,0 40px 80px -30px #000c}
.tv-ant{position:absolute;left:50%;top:0;width:0;height:0;pointer-events:none}
.tv-ant i{position:absolute;bottom:0;left:0;width:2px;height:clamp(28px,3.4vw,52px);background:linear-gradient(#cfe0ff,#5d6f9c);transform-origin:50% 100%;border-radius:2px;transition:rotate .9s var(--tv-ease)}
.tv-ant i:after{content:'';position:absolute;left:-3px;top:-6px;width:8px;height:8px;border-radius:50%;background:#cfe0ff;box-shadow:0 0 8px #a9c8ff}
.tv-ant i:first-child{rotate:-28deg}.tv-ant i:last-child{rotate:24deg}
.tv-screen{position:relative;flex:1;min-height:0;overflow:hidden;background:#040817;border-radius:clamp(12px,1.7vw,24px)/clamp(15px,2vw,28px);
 box-shadow:inset 0 0 0 2px #000000a6,0 0 0 1px #ffffff26,0 0 0 4px #0a1128}
.tv-content{position:absolute;inset:0}
.tv-static,.tv-scan,.tv-glare{position:absolute;inset:0;pointer-events:none}
.tv-scan{z-index:5;background:repeating-linear-gradient(0deg,#ffffff0a 0 1px,transparent 1px 3px)}
.tv-glare{z-index:6;background:radial-gradient(90% 70% at 18% 0%,#ffffff24,transparent 46%),radial-gradient(130% 120% at 50% 50%,transparent 58%,#000000a0 100%)}
.tv-static{z-index:4;opacity:0;transition:opacity .4s;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");mix-blend-mode:screen}
.tv-base{flex:0 0 auto;height:clamp(26px,3.3vw,46px);display:flex;align-items:center;gap:12px;padding:0 3.2%}
.tv-badge{display:flex;align-items:baseline;gap:10px;font:700 clamp(9px,.8vw,12px)/1 Mona,sans-serif;font-stretch:125%;letter-spacing:.14em;text-transform:uppercase;color:#cfe0ffcc}
.tv-badge b{font:500 clamp(8px,.7vw,10px)/1 'Geist Mono',monospace;letter-spacing:.14em;color:#8c9bb8}
.tv-led{margin-left:auto;width:7px;height:7px;border-radius:50%;background:#4a3414;box-shadow:inset 0 0 0 1px #00000066;transition:background .3s,box-shadow .3s}
.tv-knobs{display:flex;gap:9px}
.tv-knobs i{width:clamp(14px,1.5vw,20px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 30%,#e6eefc,#7d8fb8 45%,#2b3a66 100%);box-shadow:0 2px 3px #0008,inset 0 0 0 1px #ffffff33;position:relative;rotate:var(--knob,0deg)}
.tv-knobs i:after{content:'';position:absolute;left:50%;top:12%;width:2px;height:34%;margin-left:-1px;background:#0a1430;border-radius:1px}
.tv-knobs i:last-child{rotate:calc(var(--knob,0deg) * -1.6)}

/* Screen contents */
.tv .cover-art{position:absolute;inset:0;transition:opacity .5s var(--tv-ease)}
.tv .cover-art svg{position:absolute;right:1%;top:13%;width:66%;height:74%;opacity:.85}
.tv .cover-ground{position:absolute;inset:0;background:radial-gradient(ellipse at 78% 40%,#2349a455,transparent 60%),linear-gradient(160deg,#13275c,#0a1430 58%,#070d22)}
.tv .cover-ground:after{content:'';position:absolute;inset:0;background-image:radial-gradient(#ffffff40 1px,transparent 1.4px),radial-gradient(#ffffff26 1px,transparent 1.4px);background-size:140px 120px,90px 70px;background-position:20px 30px,60px 10px;opacity:.5}
.tv img.poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 0;transition:opacity .5s var(--tv-ease)}
.tv.has-poster .cover-ground{background:linear-gradient(0deg,#050a1a 0,#050a1ae0 24%,#050a1a00 52%)}
.tv.has-poster .cover-art{opacity:0}
.tv.has-poster.show-flow .cover-art{opacity:1}
.tv.has-poster.show-flow img.poster{opacity:.12}
.tv.has-poster.show-flow .cover-ground{background:radial-gradient(ellipse at 78% 40%,#2349a455,transparent 60%),linear-gradient(160deg,#13275cee,#0a1430ee 58%,#070d22)}
.tv:not(.has-poster).show-flow .cover-title,.tv.show-flow .play{opacity:.25}
.tv:not(.has-poster).show-flow .cover-art svg{opacity:1;width:80%;right:10%}
.tv .cover-top{position:absolute;left:4%;right:4%;top:6%;display:flex;justify-content:space-between;align-items:center;font:500 clamp(9px,.78vw,12px)/1 'Geist Mono',monospace;letter-spacing:.1em;text-transform:uppercase;color:#d6e2f7}
.tv .cover-top .mark{display:flex;align-items:center;gap:8px;font:700 clamp(10px,.9vw,13px)/1 Mona,sans-serif;font-stretch:125%;letter-spacing:0;text-transform:none}
.tv .cover-top .mark svg{width:20px;height:16px;color:var(--tv-sky)}
.tv .cover-title{position:absolute;left:4%;bottom:8%;max-width:60%;font:740 clamp(18px,2.2vw,34px)/1.04 Mona,sans-serif;font-stretch:125%;letter-spacing:-.015em;text-wrap:balance;transition:opacity .4s}
.tv .cover-status{position:absolute;left:4%;top:16%;display:inline-flex;align-items:center;gap:8px;font:500 clamp(9px,.72vw,11px)/1 'Geist Mono',monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--tv-dawn)}
.tv .cover-status:before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 10px currentColor}
.tv .cover-status.live{color:#9ff0c4}
.tv .play{position:absolute;right:5%;bottom:9%;width:clamp(44px,4.6vw,66px);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:#ffffff1a;backdrop-filter:blur(8px);box-shadow:0 0 0 1px #ffffff55;transition:opacity .4s}
.tv .play svg{width:34%;fill:#fff;translate:8% 0}

/* On, off, and switching on */
/* Off: a dark screen with only the title burned faintly into the glass. */
.tv .tv-content>*{transition:opacity .45s var(--tv-ease),color .45s,text-shadow .45s}
.tv.off .tv-screen{background:radial-gradient(ellipse 80% 70% at 50% 45%,#0e1a3c,#03060f 85%)}
.tv.off .tv-content>*:not(.cover-title){opacity:0}
.tv.off .tv-content .cover-title{opacity:.2;color:#a9c3f2;text-shadow:0 0 14px #8fb4ff99;filter:blur(.35px)}
.tv.off .tv-static{opacity:.05;animation:tv-snow .5s steps(4) infinite}
.tv.on .tv-led{background:var(--tv-dawn);box-shadow:0 0 10px var(--tv-dawn),0 0 2px #fff}
.tv.on{box-shadow:inset 0 1px 0 #ffffff4d,inset 0 -3px 0 #00000080,0 0 0 1px #ffcf8a66,0 50px 100px -30px #000e,0 0 90px -20px #5d8cff77}
.tv.power .tv-content{animation:tv-power .62s cubic-bezier(.2,.7,.2,1) both}
.tv.power .tv-ant i:first-child{rotate:-34deg}.tv.power .tv-ant i:last-child{rotate:30deg}
@keyframes tv-power{0%{clip-path:inset(49.6% 0 49.6% 0);filter:brightness(5)}30%{clip-path:inset(49.6% 3% 49.6% 3%);filter:brightness(4)}62%{clip-path:inset(0 0 0 0);filter:brightness(1.7)}100%{clip-path:inset(0 0 0 0);filter:none}}
@keyframes tv-snow{0%{background-position:0 0}25%{background-position:-40px 60px}50%{background-position:70px -30px}75%{background-position:-60px -80px}100%{background-position:0 0}}

/* The connections */
.flow-node rect{fill:#0e1d45;stroke:#a9c8ff66}
.flow-node text{fill:#d6e2f7;font:500 11px 'Geist Mono',monospace;letter-spacing:.04em}
.flow-node.small text{font-size:9.5px;letter-spacing:.02em}
.flow-role .halo{fill:none;stroke:#a9c8ff33}
.flow-role circle.core{fill:url(#td-glass);stroke:#cfe0ff}
.flow-role text{fill:#fff;font:700 12px Mona,sans-serif}
.flow-out rect{fill:#3a2a12;stroke:#ffcf8a}
.flow-out text{fill:#ffe4bd}
.flow-path{fill:none;stroke:#a9c8ff55;stroke-width:1.3}
.flow-path.out{stroke:#ffcf8a88}
.flow-dot{fill:#ffcf8a}
.glyph{fill:none;stroke:#0a1430;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* What comes with each session */
.formats{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:6px 0 0;padding:0;list-style:none}
.formats li>*{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 13px;border-radius:16px;border:0;font:500 12px/1 'Geist Mono',monospace;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;white-space:nowrap;background:none}
.formats .go{color:var(--tv-ink);background:var(--tv-dawn)}
.formats .go:hover{background:#fff}
.formats span{color:var(--tv-mute);box-shadow:inset 0 0 0 1px #ffffff26}
.formats span small{font-size:9px;opacity:.8}
.formats .flow-toggle{color:var(--tv-sky);box-shadow:inset 0 0 0 1px #a9c8ff77;cursor:pointer}
.formats .flow-toggle:hover,.formats .flow-toggle[aria-pressed=true]{background:#a9c8ff22;color:#fff}
.formats-note{margin:8px 0 0;font:400 13px/1.45 Mona,sans-serif;color:var(--tv-mute)}

@media(prefers-reduced-motion:reduce){.tv.power .tv-content,.tv.off .tv-static{animation:none}.tv-ant i{transition:none}}
.motion-paused .tv.power .tv-content,.motion-paused .tv.off .tv-static{animation:none}
/* The film plays inside the screen. */
.tv.has-video{cursor:pointer}
.tv-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#02040c;z-index:7;border-radius:inherit}
.tv.playing .tv-glare{z-index:8;opacity:.35;pointer-events:none}
.formats button.go{cursor:pointer}
