:root {
  color-scheme: dark;
  --ink: #101319;
  --surface: #181d25;
  --line: #303744;
  --ivory: #f0f0e8;
  --muted: #a1a8b6;
  --accent: #96dded;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; color: var(--ivory); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, video:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip-link { position: absolute; left: 24px; top: -80px; z-index: 20; padding: 12px 18px; background: var(--accent); color: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header, main, .site-footer { width: min(1380px, calc(100% - 104px)); margin: 0 auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; height: 103px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 720; font-size: 24px; letter-spacing: -1px; }
.wordmark-dot { color: var(--accent); }
.brand-mark { display: grid; place-items: center; background: #24313b; border: 1px solid #355460; width: 35px; height: 35px; border-radius: 10px; }
.brand-mark svg { width: 23px; fill: var(--accent); }
.header-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-actions form { margin: 0; }
.login-panel { max-width: 650px; padding: 100px 0 60px; min-height: 60vh; }
.login-form { margin-top: 35px; max-width: 540px; }
.login-form label { display: block; font-size: 13px; margin-bottom: 10px; color: var(--ivory); }
.password-row { display: flex; gap: 10px; }
.password-row input { flex: 1; width: 100%; min-width: 0; border: 1px solid #465363; background: #181d25; color: var(--ivory); border-radius: 8px; padding: 13px 15px; font-size: 16px; }
.unlock-button { background: var(--accent); color: var(--ink); border-color: var(--accent); font-weight: 650; padding-inline: 20px; }
.unlock-button:hover { background: #b8edfa; color: var(--ink); }
.login-status { min-height: 24px; color: var(--muted); font-size: 13px; line-height: 1.6; }
main:focus { outline: none; }
.intro { padding: 61px 0 43px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 11px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 19px; }
.eyebrow > span { height: 6px; width: 6px; border-radius: 50%; background: var(--accent); }
h1 { margin: 0; font-size: clamp(36px, 4.8vw, 62px); line-height: 1.08; font-weight: 590; letter-spacing: -.055em; }
.intro-description { margin: 19px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 304px; gap: 35px; align-items: start; }
.recording { min-width: 0; }
.player-shell { background: #06080b; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 15px; border: 1px solid #353c49; box-shadow: 0 20px 60px #0003; }
video { display: block; width: 100%; height: 100%; background: #06080b; object-fit: contain; }
.player-message { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 15px; padding: 26px; background: #0c1016ed; text-align: center; }
.player-message p { margin: 0; max-width: 420px; font-size: 14px; color: #c5ccd6; line-height: 1.6; }
.loading-orbit { width: 29px; height: 29px; border: 2px solid #343f4d; border-top-color: var(--accent); border-radius: 50%; animation: orbit 1s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.playback-status { min-height: 32px; display: flex; align-items: center; justify-content: flex-end; font-size: 11px; color: var(--muted); line-height: 1.4; padding: 6px 2px 0; }
.recording-details { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 22px; padding: 13px 0 0; }
.recording-copy { flex: 1 1 270px; }
.recording-label { color: var(--accent); font-size: 10px; letter-spacing: .13em; font-weight: 650; text-transform: uppercase; margin: 0 0 10px; }
.recording-copy h2 { font-size: 26px; letter-spacing: -.035em; font-weight: 590; line-height: 1.3; margin: 0; }
#video-description { color: var(--muted); line-height: 1.7; font-size: 14px; margin: 13px 0 0; max-width: 620px; }
.video-meta { font-size: 11px; color: #a8b0bd; letter-spacing: .02em; margin: 17px 0 0; }
.recording-actions { display: flex; gap: 8px; padding-top: 25px; }
.button { min-height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border: 1px solid #39414f; border-radius: 8px; background: #1c222c; text-decoration: none; color: #dfE5eb; font-size: 12px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.button:hover { background: #27303c; border-color: #607684; }
.button:disabled { opacity: .45; cursor: default; }
.button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.retry-button { color: var(--ink); background: var(--accent); border-color: var(--accent); padding-inline: 25px; }
.retry-button:hover { color: var(--ivory); }
.library { padding: 22px 20px 21px; background: #171c24; border: 1px solid var(--line); border-radius: 15px; }
.library-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.library-heading h2 { font-weight: 620; font-size: 15px; letter-spacing: -.02em; margin: 0; }
.library-count { color: #aab4c2; border: 1px solid #384453; min-width: 25px; padding: 3px 6px; border-radius: 6px; text-align: center; font-size: 10px; }
.library-intro { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 10px 0 22px; }
.video-list { display: grid; gap: 11px; }
.video-card { display: block; text-align: left; width: 100%; border: 1px solid #323b48; background: #1c222c; padding: 9px; border-radius: 10px; cursor: pointer; transition: background .15s, border-color .15s; }
.video-card:hover { border-color: #697789; background: #232b37; }
.video-card[aria-pressed="true"] { border-color: var(--accent); background: #20313b; }
.card-poster { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 5px; background: #0c111a; }
.card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, #000a); pointer-events: none; }
.card-duration { position: absolute; z-index: 1; bottom: 8px; right: 8px; font-variant-numeric: tabular-nums; font-size: 10px; background: #070a0cbd; color: #fff; padding: 3px 5px; border-radius: 3px; }
.card-play { z-index: 1; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #0e131bc2; border: 1px solid #d9e8f14d; }
.card-play svg { height: 15px; width: 15px; fill: currentColor; }
.card-title { display: block; font-size: 12px; font-weight: 600; line-height: 1.5; padding: 11px 2px 0; }
.card-state { display: block; color: #9aa8b8; font-size: 10px; padding: 5px 2px 3px; }
.video-card[aria-pressed="true"] .card-state { color: var(--accent); }
.library-note { border-top: 1px solid #313946; margin: 21px 0 0; padding: 15px 0 0; color: #a2aab6; font-size: 11px; line-height: 1.7; }
.share-fallback { display: flex; align-items: center; gap: 12px; padding: 15px; margin-top: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.share-fallback label { font-size: 12px; }
.share-fallback input { min-width: 0; flex: 1; border: 1px solid #465363; background: #10151c; color: var(--ivory); border-radius: 6px; padding: 10px; font-size: 12px; }
.noscript { border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.site-footer { margin-top: 72px; padding: 24px 0 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #8994a5; font-size: 11px; }
@media (min-width: 1650px) { .watch-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 42px; } }
@media (max-width: 1050px) {
  .site-header, main, .site-footer { width: calc(100% - 64px); }
  .watch-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }
  .library { padding: 18px 15px; }
  .recording-actions { padding-top: 0; }
}
@media (max-width: 800px) {
  .watch-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .intro { padding: 43px 0 30px; }
  .video-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-intro { margin-bottom: 16px; }
  .library-note { padding-top: 13px; margin-top: 16px; }
  .recording-details { gap: 17px; }
  .recording-copy { flex-basis: 100%; }
  .site-footer { margin-top: 42px; }
}
@media (max-width: 480px) {
  .header-actions { gap: 10px; }
  .header-actions:has(form:not([hidden])) .header-label { display: none; }
  .login-panel { padding-top: 65px; }
  .password-row { flex-direction: column; }
  .unlock-button { min-height: 46px; }
  .site-header, main, .site-footer { width: calc(100% - 36px); }
  .site-header { height: 80px; }
  .wordmark { font-size: 22px; gap: 9px; }
  .header-label { font-size: 9px; letter-spacing: .08em; }
  .brand-mark { width: 31px; height: 31px; }
  .eyebrow { font-size: 9px; letter-spacing: .11em; margin-bottom: 16px; }
  .intro-description { font-size: 14px; margin-top: 15px; }
  .player-shell { border-radius: 9px; }
  .recording-copy h2 { font-size: 24px; }
  .library { padding: 18px 13px; border-radius: 11px; }
  .video-list { gap: 9px; }
  .video-card { padding: 6px; border-radius: 8px; }
  .card-title { font-size: 11px; padding-top: 8px; }
  .card-play { width: 27px; height: 27px; }
  .share-fallback { flex-wrap: wrap; gap: 10px; }
  .share-fallback label { flex-basis: 100%; }
  .site-footer { font-size: 10px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loading-orbit { animation: none; }
  * { transition: none !important; }
}
