:root {
    color-scheme: dark;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: #101114;
    color: #e7e9ed;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.shell { min-height: 100vh; display: flex; flex-direction: column; }
header, main, footer { width: min(1200px, 100% - 32px); margin-inline: auto; }
header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 25px 2px; border-bottom: 1px solid #25282e;
}
.brand { font-size: 20px; font-weight: 650; letter-spacing: -0.6px; display: flex; gap: 11px; align-items: center; }
.brand strong { font-weight: 450; color: #9fa9b6; }
.mark { color: #fc6865; font-size: 26px; }
.description, .dimensions, .tunnel-id, .notice, footer { color: #999faa; }
.description, .dimensions { font-size: 13px; }
main { flex: 1; padding: 42px 0 24px; }
.player-card { background: #191b20; border: 1px solid #2c3037; border-radius: 15px; overflow: hidden; box-shadow: 0 20px 50px #0003; }
.player-heading { padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.live-label { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #747a85; }
.dot.live { background: #ff625e; box-shadow: 0 0 0 4px #ff625e22; }
.dot.paused { background: #efa85c; }
.stage { background: #090a0c; position: relative; min-height: 240px; aspect-ratio: 16 / 9; display: grid; place-items: center; }
video { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; }
.placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; background: #0e1013; padding: 24px; }
.placeholder.hidden { display: none; }
.placeholder-icon { color: #656b78; font-size: 42px; }
.placeholder strong { font-size: 18px; font-weight: 600; }
.placeholder span:last-child { font-size: 14px; color: #a1a6b0; max-width: 450px; overflow-wrap: anywhere; line-height: 1.5; }
.bottom { display: flex; align-items: center; justify-content: space-between; padding: 16px 19px; gap: 12px; flex-wrap: wrap; }
.tunnel-id { font-size: 12px; font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.actions { display: flex; gap: 9px; }
button { background: #282c34; border: 1px solid #3e444d; color: #eef0f3; font: inherit; font-size: 13px; padding: 10px 15px; border-radius: 8px; cursor: pointer; }
button:hover { background: #373d47; }
button:focus-visible { outline: 2px solid #78bdf8; outline-offset: 2px; }
button:disabled { opacity: .4; cursor: default; }
.notice { font-size: 13px; line-height: 1.6; margin-top: 20px; }
footer { padding: 20px 2px; border-top: 1px solid #25282e; font-size: 12px; }
@media (max-width: 580px) {
    header { padding-block: 19px; }
    .description { display: none; }
    main { padding-top: 20px; }
    .stage { min-height: 200px; }
    .bottom { flex-direction: column; align-items: stretch; }
    .actions { width: 100%; }
    button { flex: 1; }
}
