:root { color-scheme: dark; font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #111113; color: #e7e7e9; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(1600px, 100%); margin: auto; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-content: center; gap: 24px; padding: 32px; }
.broadcast { min-width: 0; }
.player { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; border-radius: 4px; }
video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; background: #09090b; }
[hidden] { display: none !important; }
h1 { font-size: 18px; font-weight: 450; margin: 0 0 8px; }
p { margin: 0; color: #929298; font-size: 12px; }
.stream-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 11px; color: #929298; }
#status { display: flex; align-items: center; gap: 7px; }
.dot { height: 5px; width: 5px; border-radius: 50%; background: #71717a; }
.is-live .dot { background: #ef6b69; }
.wordmark { letter-spacing: .04em; }
.chat { min-height: 340px; height: min(65vh, 620px); display: flex; flex-direction: column; border-left: 1px solid #29292e; padding-left: 24px; position: relative; }
.chat header { display: flex; align-items: center; justify-content: space-between; padding: 0 0 16px; }
h2 { margin: 0; font-size: 13px; font-weight: 550; }
#chat-status { color: #929298; font-size: 11px; }
#messages { flex: 1; min-height: 0; overflow-y: auto; overflow-wrap: anywhere; padding: 0 4px 12px 0; margin: 0; list-style: none; scrollbar-width: thin; }
#messages li { padding: 5px 0; line-height: 1.6; font-size: 13px; }
#messages strong { font-size: 12px; font-weight: 600; color: #b3b3bd; margin-right: 8px; }
#empty-chat { position: absolute; top: 40%; width: calc(100% - 24px); text-align: center; pointer-events: none; }
form { padding-top: 12px; border-top: 1px solid #29292e; }
label { display: block; font-size: 11px; color: #929298; margin-bottom: 5px; }
input, button { font: inherit; border-radius: 4px; }
input { width: 100%; min-width: 0; background: #1b1b1f; color: #e7e7e9; border: 1px solid #303037; padding: 9px 10px; font-size: 12px; }
input::placeholder { color: #87878f; }
.compose { display: flex; gap: 6px; margin-top: 8px; }
button { cursor: pointer; background: #dcdce1; color: #18181b; border: 0; padding: 8px 12px; font-size: 12px; }
button:hover { background: #fff; }
button:disabled { opacity: .5; cursor: default; }
input:focus-visible, button:focus-visible { outline: 2px solid #a5a5bb; outline-offset: 2px; }
#play { margin-top: 16px; }
#chat-error { color: #efa4a3; min-height: 18px; margin-top: 6px; font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (min-width: 1400px) { main { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; } }
@media (max-width: 850px) { main { display: block; padding: 16px; } .chat { border-left: 0; border-top: 1px solid #29292e; padding: 16px 0 0; height: 420px; min-height: 0; } #empty-chat { width: 100%; } }
@media (max-width: 480px) { main { padding: 0; } .player { border-radius: 0; } .stream-footer { padding: 10px 14px; } .chat { margin: 0 14px; height: max(340px, 52svh); } }
