    body { margin: 0; font-family: system-ui, Arial, sans-serif; background: var(--bg); color var(--fg); }
    video {  width: 100% !important;  height: auto; /* keeps aspect ratio; video will still use the correct height */}
    .layout { display: grid; grid-template-columns: 1fr 320px; gap: 12px; padding: 12px; }
    .chat { border: 1px solid #eee; border-radius: 8px; display: flex; flex-direction: column; height: 720px; }
    .chat-header { padding: 10px; border-bottom: 1px solid #eee; font-weight: 600; background: var(--hdr-bg); }
    .chat-messages { padding: 10px; overflow: auto; flex: 1; background: var(--bg); color: var(--fg); }
    .msg { margin-bottom: 10px; }
    .msg .user { font-weight: 600; margin-right: 6px; }
    .chat-input-row { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #eee; background: var(--hdr-bg); }
    .chat-input-row input { flex: 1; padding: 8px; border: 1px solid #ddd; border-radius: 6px; }
    .chat-input-row button { padding: 8px 10px; border: 0; border-radius: 6px; background: #2563eb; color: #fff; cursor: pointer; }
    .stream-meta{display:flex;align-items:center;gap:10px;margin-top:10px;padding:10px 6px; color: var(--fg); }
    .live-dot{width:10px;height:10px;border-radius:999px;background:#ef4444;box-shadow:0 0 0 6px rgba(239,68,68,.15);}
    .live-label{font-weight:700;letter-spacing:.08em;font-size:12px;color:#ef4444;}
    .stream-title .streamer{font-weight:700;}
    .stream-title .title{color:#6b7280;font-size:13px;}    .chat-input-row button:disabled { opacity: 0.6; cursor: not-allowed; }
    .vidlay  { width: 100%; }
    #sendBtn {  background: #e5e5e5; color: #777; }
    :root {  --bg: #ffffff;  --fg: #111111;  --hdr-bg: #fafafa; --btn-bg: #f2f2f2;  --btn-fg: #111111;  --btn-border: #d9d9d9;}
    html.dark {  --bg: #181a1b;  --fg: #e9eef5; --hdr-bg: #4f4f4f; --btn-bg: #1b1f2a;  --btn-fg: #e9eef5;  --btn-border: #2a3142;}
