/* ==================================================================
   Dishani Live Stream — design system
   Enterprise, responsive, framework-free. Light + dark aware.
   ================================================================== */
:root {
  /* Brand */
  --brand:        #4f46e5;   /* indigo 600 */
  --brand-600:    #4338ca;
  --brand-700:    #3730a3;
  --brand-soft:   #eef2ff;
  --accent:       #06b6d4;

  /* Neutrals (light) */
  --bg:      #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --border:  #e5e7eb;
  --border-strong: #d1d5db;
  --text:    #111827;
  --text-2:  #4b5563;
  --muted:   #9ca3af;

  /* Status */
  --ok:      #059669;  --ok-soft:  #ecfdf5;
  --warn:    #d97706;  --warn-soft:#fffbeb;
  --danger:  #dc2626;  --danger-soft:#fef2f2;
  --info:    #2563eb;  --info-soft:#eff6ff;

  /* Shape */
  --radius:   14px;
  --radius-sm:10px;
  --radius-xs:8px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);
  --shadow-md: 0 4px 8px -2px rgba(16,24,40,.10), 0 2px 4px -2px rgba(16,24,40,.06);
  --shadow-lg: 0 12px 32px -8px rgba(16,24,40,.18), 0 4px 8px -4px rgba(16,24,40,.10);
  --ring: 0 0 0 4px rgba(79,70,229,.18);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sidebar-w: 248px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #0b0f1a;
    --surface: #121826;
    --surface-2: #0f1522;
    --border:  #1f2937;
    --border-strong: #374151;
    --text:    #e5e7eb;
    --text-2:  #9aa4b2;
    --muted:   #6b7280;
    --brand-soft: #1e1b4b;
    --ok-soft:#052e2b; --warn-soft:#2a1e05; --danger-soft:#2c0d0d; --info-soft:#0b1e3a;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 6px 16px -4px rgba(0,0,0,.5);
    --shadow-lg: 0 18px 40px -12px rgba(0,0,0,.6);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3 { line-height: 1.25; margin: 0; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: 12.5px; }
.spacer { flex: 1; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
       background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }

/* ---------- Brand mark ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.logo-badge {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  padding: 10px 16px; border-radius: var(--radius-xs); cursor: pointer; font: inherit;
  font-weight: 600; font-size: 13.5px; transition: all .15s ease; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.05); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-block { width: 100%; }

/* ---------- Form controls ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.input, input[type=text], input[type=email], input[type=password],
input[type=datetime-local], select, textarea {
  width: 100%; padding: 11px 13px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-xs);
  font: inherit; font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
textarea { resize: vertical; min-height: 64px; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm);
         margin: 0 0 16px; border: 1px solid transparent; font-size: 13.5px; align-items: flex-start; }
.alert::before { font-weight: 700; }
.alert-error { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.alert-info  { background: var(--info-soft);  border-color: var(--info);  color: var(--info); }
.alert-ok    { background: var(--ok-soft);    border-color: var(--ok);    color: var(--ok); }
.alert-warn  { background: var(--warn-soft);  border-color: var(--warn);  color: var(--warn); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px;
         font-size: 11.5px; font-weight: 600; border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok   { background: var(--ok-soft);   color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-crit { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-muted{ background: var(--surface-2); color: var(--muted); }

/* ==================================================================
   AUTH (login / device screen)
   ================================================================== */
.auth-shell {
  min-height: 100vh; display: grid; grid-template-columns: 1fr; place-items: center;
  padding: 24px;
  background:
    radial-gradient(1100px 500px at 15% -10%, rgba(79,70,229,.16), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(6,182,212,.14), transparent 55%),
    var(--bg);
}
.auth-card {
  width: 100%; max-width: 410px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow-lg);
}
.auth-card .logo { margin-bottom: 22px; font-size: 18px; }
.auth-title { font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.auth-sub { color: var(--text-2); margin-bottom: 24px; font-size: 13.5px; }
.auth-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
             color: var(--muted); font-size: 12.5px; text-align: center; }
.device-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--warn-soft);
               color: var(--warn); display: grid; place-items: center; font-size: 24px; margin-bottom: 16px; }
.device-meta { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
               padding: 12px 14px; margin: 16px 0; font-size: 12.5px; color: var(--text-2); }
.device-meta b { color: var(--text); font-weight: 600; }

/* ==================================================================
   APP SHELL (admin + generic)
   ================================================================== */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh;
}
.sidebar .logo { padding: 6px 8px 18px; font-size: 16px; }
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--radius-xs);
  color: var(--text-2); font-weight: 500; font-size: 13.5px;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-link .ic { width: 18px; text-align: center; opacity: .9; }
.nav-sep { flex: 1; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 14px 26px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px);
}
.topbar h1 { font-size: 16px; font-weight: 700; }
.content { padding: 26px; max-width: 1200px; width: 100%; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,var(--brand),var(--accent));
          color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }

/* ---------- Cards / stat tiles ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
        box-shadow: var(--shadow-sm); margin-bottom: 22px; overflow: hidden; }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.card-head h2 { font-size: 15px; font-weight: 700; }
.card-body { padding: 20px; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
        padding: 18px; box-shadow: var(--shadow-sm); }
.stat .k { font-size: 12px; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat .v { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th { text-align: left; padding: 11px 16px; color: var(--text-2); font-weight: 600; font-size: 12px;
           text-transform: uppercase; letter-spacing: .03em; background: var(--surface-2);
           border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.popform { margin-top: 10px; padding: 14px; background: var(--surface-2); border: 1px solid var(--border);
           border-radius: var(--radius-sm); min-width: 260px; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }

/* ---------- Filter bar ---------- */
.filterbar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.filterbar .field { margin: 0; }

/* ---------- Admin inbox ---------- */
.inbox { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.inbox-list { margin: 0; }
.thread-list { max-height: 70vh; overflow-y: auto; }
.thread-item { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.thread-item:hover { background: var(--surface-2); text-decoration: none; }
.thread-item.active { background: var(--brand-soft); }
.thread-who { font-weight: 600; font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-meta { font-size: 11.5px; color: var(--muted); }
.inbox-thread { margin: 0; display: flex; flex-direction: column; min-height: 60vh; }
.thread-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; max-height: 60vh; }
.thread-reply { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--border); }
.thread-reply input { flex: 1; }
.inbox .dm-bubble { max-width: none; }
.inbox .dm-msg.from-me .dm-bubble { background: var(--brand); color: #fff; }
.inbox .dm-msg.from-admin .dm-bubble { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.inbox .dm-who { color: var(--muted); }

/* ==================================================================
   WATCH (theater)
   ================================================================== */
.watch-body { background: #05070d; color: #e5e7eb; }
.watch-top {
  display: flex; align-items: center; gap: 14px; padding: 12px 20px;
  background: rgba(10,14,22,.9); border-bottom: 1px solid rgba(255,255,255,.06); position: sticky; top: 0; z-index: 30;
}
.watch-top .logo { color: #fff; font-size: 15px; }
.watch-top .user-chip { color: #aab2c0; }
.watch-top .avatar { font-size: 11px; }
.theater { max-width: 1400px; margin: 0 auto; padding: 20px; display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.theater .left { min-width: 0; }

.player-card { background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.player-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden;
}
/* Crop-scale the iframe so YouTube's title/logo chrome (top + bottom-right)
   is pushed outside the visible frame. --yt-zoom is tunable; 1.0 = show all. */
.player-wrap #ytplayer, .player-wrap iframe {
  position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; border: 0;
  transform: translate(-50%, -50%) scale(var(--yt-zoom, 1.18)); transform-origin: center center;
}
/* Click shield: swallows right-click / hover-chrome / logo taps on the iframe. */
.click-shield { position: absolute; inset: 0; z-index: 5; background: transparent; cursor: pointer; }
.wm-layer { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; }
.wm-fullscreen { position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden; }
.wm-chip { position: absolute; white-space: nowrap; pointer-events: none; font-size: 13px; font-weight: 700;
           letter-spacing: .3px; color: rgba(255,255,255,.30); text-shadow: 0 1px 3px rgba(0,0,0,.7);
           transform: translate(-50%,-50%); transition: opacity 1.2s ease, top 1.6s ease, left 1.6s ease; }

.stream-head { display: flex; align-items: baseline; gap: 12px; margin: 16px 2px 4px; }
.stream-title { font-size: 20px; font-weight: 700; color: #fff; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; color: #f87171; font-weight: 700; font-size: 12px; text-transform: uppercase; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.stream-desc { color: #aab2c0; margin: 8px 2px 0; font-size: 13.5px; }

/* Marquee */
.marquee { margin-top: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
           border-radius: var(--radius-sm); overflow: hidden; white-space: nowrap; position: relative; height: 42px; }
.marquee-track { display: inline-block; padding-left: 100%; white-space: nowrap; line-height: 42px;
                 animation: marquee-scroll 24s linear infinite; }
.marquee-track:empty { display: none; }
.marquee-track .m-item { display: inline-block; padding: 0 44px; color: #fcd34d; font-weight: 600; font-size: 13px; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* Chat (sidebar on desktop) */
.chat { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
        display: flex; flex-direction: column; height: calc(100vh - 120px); position: sticky; top: 84px; overflow: hidden; }
.chat-head { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 700; font-size: 14px; color: #fff;
             display: flex; align-items: center; gap: 8px; }
.chat-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius-sm); padding: 9px 11px; }
.chat-msg.pinned { border-color: var(--brand); background: rgba(79,70,229,.14); }
.chat-msg .who { font-size: 11.5px; color: #8b93a3; margin-bottom: 3px; font-weight: 600; }
.chat-msg .body { color: #e5e7eb; word-break: break-word; font-size: 13.5px; }
.chat-msg .answer { margin-top: 7px; padding-top: 7px; border-top: 1px dashed rgba(255,255,255,.12); color: #6ee7b7; font-size: 13px; }
.chat-msg .answer b { color: #34d399; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.chat-form input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }
.chat-form input::placeholder { color: #6b7280; }

/* ---------- Stream switcher (multi-live) — plain labelled buttons ---------- */
.switcher { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.stream-btn { padding: 10px 18px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04);
              border-radius: 999px; cursor: pointer; color: #e5e7eb; font: inherit; font-weight: 600;
              font-size: 13.5px; white-space: nowrap; transition: background .15s, border-color .15s; }
.stream-btn:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.3); }
.stream-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Sidebar + tabs ---------- */
.side { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
        display: flex; flex-direction: column; height: calc(100vh - 120px); position: sticky; top: 84px; overflow: hidden; }
.tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,.08); flex: none; }
.tab { flex: 1; padding: 13px 10px; background: transparent; border: 0; color: #8b93a3; font: inherit; font-weight: 600;
       font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.tab:hover { color: #cbd5e1; }
.tab.active { color: #fff; border-bottom-color: var(--brand); }
.dm-badge { background: var(--danger); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.tabpane { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tabpane[hidden] { display: none; }
.tabpane .chat-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- DM bubbles ---------- */
.dm-msg { display: flex; flex-direction: column; max-width: 85%; }
.dm-msg.from-me { align-self: flex-end; align-items: flex-end; }
.dm-msg.from-admin { align-self: flex-start; align-items: flex-start; }
.dm-who { font-size: 11px; color: #8b93a3; margin-bottom: 3px; font-weight: 600; }
.dm-bubble { padding: 9px 12px; border-radius: 12px; font-size: 13.5px; word-break: break-word; line-height: 1.45; }
.dm-msg.from-me .dm-bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.dm-msg.from-admin .dm-bubble { background: rgba(255,255,255,.08); color: #e5e7eb; border-bottom-left-radius: 4px; }

/* ---------- Market News link: highlighted + blinking ---------- */
.news-flash {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: 13.5px; text-decoration: none; white-space: nowrap;
  color: #fff !important; background: linear-gradient(135deg, #ef4444, #f59e0b);
  box-shadow: 0 0 0 0 rgba(239,68,68,.6); animation: newsFlash 1.3s ease-in-out infinite;
}
.news-flash:hover { text-decoration: none; filter: brightness(1.08); }
.news-flash-ico { display: inline-block; animation: newsWiggle 1.3s ease-in-out infinite; }
@keyframes newsFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.55); opacity: 1; }
  50%      { box-shadow: 0 0 16px 3px rgba(245,158,11,.85); opacity: .78; }
}
@keyframes newsWiggle { 0%,100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@media (prefers-reduced-motion: reduce) {
  .news-flash, .news-flash-ico { animation: none; }
  .news-flash { box-shadow: 0 0 10px 2px rgba(245,158,11,.6); }
}

/* ---------- Market news (economic calendar) ---------- */
.news-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 8px 0 2px; }
.news-updated { color: #8b93a3; font-size: 12px; }
.news-body { margin-top: 18px; }
.news-day { margin-bottom: 22px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; }
.news-day.is-today { border-color: var(--brand); }
.news-date { font-size: 14px; font-weight: 700; color: #fff; padding: 12px 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08); }
.news-table { width: 100%; border-collapse: collapse; }
.news-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; color: #d5dae2; vertical-align: middle; }
.news-table tr:last-child td { border-bottom: 0; }
.news-time { white-space: nowrap; color: #9aa4b2; width: 78px; }
.news-cty { font-weight: 700; color: #fff; width: 48px; }
.news-title a { color: #cbd5e1; }
.news-title a:hover { color: #fff; }
.news-num { text-align: right; white-space: nowrap; color: #9aa4b2; font-variant-numeric: tabular-nums; }
.imp { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #6b7280; }
.imp-high { background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.25); }
.imp-med  { background: #f59e0b; }
.imp-low  { background: #eab308; opacity: .7; }
.imp-hol  { background: #6b7280; }
.imp-none { background: #4b5563; }
@media (max-width: 560px) {
  .news-table .news-num:last-child { display: none; }  /* hide 'previous' on tiny screens */
}

/* ==================================================================
   Responsive
   ================================================================== */
@media (max-width: 1024px) {
  .theater { grid-template-columns: 1fr; }
  .chat, .side { height: 520px; position: static; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; transform: translateX(-100%);
             transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: inline-flex; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 55; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .content, .topbar { padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 821px) { .menu-toggle, .scrim { display: none; } }
@media (max-width: 560px) {
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .theater { padding: 12px; }
  .stream-title { font-size: 17px; }
  .auth-card { padding: 26px 22px; }
}
