:root { color-scheme: dark; font-family: Inter, "Microsoft YaHei", system-ui, sans-serif; background: #101315; color: #eff5f2; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(1160px, 100%); padding: clamp(20px, 5vw, 66px) clamp(16px, 4vw, 48px); margin: auto; }
header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
h1 { margin: 0; font-size: clamp(24px, 3.5vw, 38px); letter-spacing: -.03em; }
p, output { color: #b5c3be; line-height: 1.65; }
output { font-size: 14px; font-variant-numeric: tabular-nums; }
.player { position: relative; overflow: hidden; aspect-ratio: 16/9; border: 1px solid #34423e; background: #080a0b; border-radius: 12px; }
video { display: block; width: 100%; height: 100%; object-fit: contain; }
#page-fullscreen, #rendition {
  position: absolute; z-index: 1; top: max(10px, env(safe-area-inset-top));
  padding: 7px 12px; border: 1px solid #ffffff55; border-radius: 6px;
  background: #101315d9; color: white; font-size: 14px; font-weight: 500;
}
#page-fullscreen { right: max(10px, env(safe-area-inset-right)); }
#rendition { left: max(10px, env(safe-area-inset-left)); }
body.page-fullscreen { overflow: hidden; }
.page-fullscreen main > :not(.player) { display: none; }
.page-fullscreen .player {
  position: fixed; z-index: 2; inset: 0; aspect-ratio: auto;
  border: 0; border-radius: 0; background: black;
}
.overlay { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at center, #1e3830, #101715 75%); }
[hidden] { display: none !important; }
button { font: inherit; font-weight: 650; background: #93edbd; border: 0; padding: 12px 22px; border-radius: 8px; color: #0d281b; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.host { max-width: 640px; }
label { display: block; margin: 20px 0 8px; }
input { width: 100%; padding: 12px; border: 1px solid #53635d; background: #1b2120; color: inherit; border-radius: 6px; font: inherit; margin-bottom: 16px; }
