:root { color-scheme: dark; --bg: #111313; --panel: #191c1b; --line: #363c38; --text: #f2f3ee; --muted: #b1b7af; --accent: #dce9aa; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.5 'Inter', sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -70px; z-index: 30; padding: 12px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 10px; }
.tv-header { min-height: 84px; padding: 16px 36px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tv-brand { display: inline-flex; align-items: center; gap: 22px; font-size: 24px; font-weight: 300; }
.tv-brand img { object-fit: contain; }
.tv-brand > span:first-of-type { color: #687068; font-size: 32px; font-weight: 300; }
.tv-header nav { display: flex; gap: 30px; align-items: center; font-size: 12px; }
.tv-header nav a { display: inline-flex; align-items: center; min-height: 44px; }
main { max-width: 1600px; margin: auto; padding: 34px 36px 0; }
.tv-intro { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding-bottom: 32px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); text-transform: uppercase; font-size: 10px; font-weight: 500; }
h1 { font-weight: 400; font-size: 36px; line-height: 1.2; margin: 0; max-width: 760px; }
.intro-copy { color: var(--muted); font-size: 12px; margin: 0; flex-shrink: 0; }
.tv-toolbar { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 20px; }
.connection-summary { color: var(--muted); margin: 0; font-size: 11px; }
.toolbar-actions { display: flex; align-items: center; gap: 24px; }
time { font: 400 11px/1.5 'Inter', sans-serif; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.watch-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 16px; background: var(--accent); color: #1e2718; border: 0; border-radius: 2px; font-size: 12px; }
.watch-button:hover { background: #edf5d4; }
.camera-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 20px; }
.camera { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.camera-top { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 16px; gap: 12px; }
.camera-top h2 { font-size: 11px; font-weight: 500; margin: 0; }
.camera-number { color: #899087; margin-right: 12px; font-variant-numeric: tabular-nums; }
.camera-status { font-size: 10px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.camera-status::before { content: ''; width: 5px; height: 5px; background: #9c9f95; border-radius: 50%; }
.camera[data-state='playing'] .camera-status::before { background: #b4de9c; }
.camera[data-state='unavailable'] .camera-status::before, .camera[data-state='pending'] .camera-status::before { background: #ddbc7b; }
.camera-screen { position: relative; aspect-ratio: 16/9; min-height: 200px; background: #080a09; isolation: isolate; }
.camera-reference, .player-slot, .player-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.camera-reference { object-fit: cover; opacity: .65; }
.camera[data-state='pending'] .camera-reference { opacity: .42; }
.camera-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 26px; text-align: center; gap: 12px; background: #080a0922; }
.camera-placeholder p { margin: 0; max-width: 300px; font-size: 13px; text-shadow: 0 1px 6px #000; }
.camera-placeholder small { color: #e0e4dc; font-size: 11px; }
.reference-label { position: absolute; bottom: 12px; left: 16px; color: #e9ece5; font-size: 9px; background: #111313dd; padding: 3px 7px; }
.screen-play { width: 48px; height: 48px; display: grid; place-items: center; color: var(--text); border: 1px solid #d9dfd2; border-radius: 50%; background: #111313aa; }
.screen-play:hover { background: #111313; }
.camera-info { min-height: 98px; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; gap: 16px; }
.camera-title { margin: 0 0 4px; font-size: 19px; font-weight: 400; line-height: 1.25; }
.camera-location { margin: 0; font-size: 11px; color: var(--muted); }
.camera-source { font-size: 10px; color: var(--muted); margin-top: 4px; display: inline-block; text-decoration: underline; text-underline-offset: 3px; }
.camera-controls { display: flex; gap: 6px; flex-shrink: 0; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: 2px; position: relative; }
.icon-button:hover { background: #343a33; }
.control-icon { width: 18px; height: 18px; display: inline-block; background: currentColor; mask: var(--icon) center/contain no-repeat; -webkit-mask: var(--icon) center/contain no-repeat; }
/* Lucide icons, ISC licensed; see ICON-LICENSE.txt. Inlined to avoid a runtime dependency. */
.icon-arrow-up-right { width: 1em; height: 1em; vertical-align: -0.12em; --icon: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24"%3E%3Cpath d="M7 17 17 7M7 7h10v10"/%3E%3C/svg%3E'); }
.icon-play { --icon: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24"%3E%3Cpolygon points="6 3 20 12 6 21 6 3"/%3E%3C/svg%3E'); }
.icon-stop { --icon: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="white" stroke-width="2" viewBox="0 0 24 24"%3E%3Crect width="18" height="18" x="3" y="3" rx="2"/%3E%3C/svg%3E'); }
.icon-expand { --icon: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24"%3E%3Cpath d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3m8 0h3a2 2 0 0 0 2-2v-3"/%3E%3C/svg%3E'); }
.icon-close { --icon: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" viewBox="0 0 24 24"%3E%3Cpath d="M18 6 6 18M6 6l12 12"/%3E%3C/svg%3E'); }
.tv-notes { display: flex; justify-content: space-between; gap: 48px; padding: 30px 0 36px; }
.tv-notes p { margin: 0; font-size: 12px; }
.tv-notes p:first-child { min-width: 260px; }
.tv-notes p:first-child span { color: var(--muted); }
.tv-notes p:last-child { color: var(--muted); font-size: 11px; max-width: 520px; }
.tv-footer { border-top: 1px solid var(--line); padding: 24px 36px; color: var(--muted); font-size: 10px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.tv-footer p { margin: 0; }
.tv-footer > div { display: flex; gap: 20px; }
.tv-note { padding: 40px 0; }
.camera:fullscreen, #camera-focus .camera { width: 100%; height: 100%; display: grid; grid-template-rows: 38px minmax(0,1fr) auto; border: 0; border-radius: 0; }
.camera:fullscreen .camera-screen, #camera-focus .camera-screen { aspect-ratio: auto; min-height: 0; }
.camera:fullscreen .camera-reference, #camera-focus .camera-reference { object-fit: contain; }
#camera-focus { width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; padding: 0; border: 0; background: var(--bg); }
#camera-focus::backdrop { background: #000; }
#focus-slot { height: 100%; }
body:has(#camera-focus[open]) { overflow: hidden; }
@media (max-width: 1050px) { .tv-intro { align-items: start; } h1 { font-size: 30px; max-width: 500px; } .intro-copy { display: none; } .camera-info { padding: 12px; gap: 8px; } .camera-title { font-size: 17px; } .camera-controls { gap: 4px; } .tv-notes { gap: 24px; } .tv-footer { flex-wrap: wrap; } }
@media (max-width: 660px) { .tv-header { min-height: 72px; padding: 12px 20px; } .tv-brand { gap: 12px; font-size: 21px; } .tv-brand img { width: 74px; height: 36px; } .tv-header nav { gap: 16px; } .tv-header nav a:not(:last-child) { display: none; } main { padding: 26px 16px 0; } h1 { font-size: 30px; max-width: 340px; } .tv-intro { padding-bottom: 24px; } .tv-toolbar { align-items: start; flex-direction: column; gap: 10px; padding: 14px 0; } .toolbar-actions { width: 100%; justify-content: space-between; gap: 12px; } .watch-button { padding: 0 12px; } .camera-grid { grid-template-columns: minmax(0,1fr); gap: 20px; } .camera-title { font-size: 18px; } .camera-top { padding: 0 12px; } .camera-info { min-height: 106px; } .tv-notes { display: block; padding: 26px 0; } .tv-notes p + p { margin-top: 16px; } .tv-footer { padding: 24px 20px; gap: 18px; } .tv-footer > div { flex-wrap: wrap; } }
@media (max-width: 360px) { .camera-info { flex-wrap: wrap; } }
