/* ═══════════════════════════════════════════════════════════════════════════
   Oxygen Pod — Global Styles
   Oxygen Pod  •  oxygenpodcast.com
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-deep:      #07080c;
  --bg-base:      #0f1117;
  --bg-surface:   #161920;
  --bg-elevated:  #1d2028;
  --bg-card:      #22252f;

  --border:       #2c3042;
  --border-light: #363d52;

  --primary:      #00c8ef;
  --primary-dim:  #009ab8;
  --primary-glow: rgba(0,200,239,0.18);

  --accent:       #7c3aed;
  --accent-dim:   #5b21b6;
  --accent-glow:  rgba(124,58,237,0.18);

  --live-red:     #ef4444;
  --success:      #10b981;
  --warning:      #f59e0b;
  --danger:       #ef4444;

  --text:         #e8eaf0;
  --text-muted:   #8891a8;
  --text-dim:     #555e7a;

  --host-color:   #f59e0b;
  --guest-color:  #10b981;
  --viewer-color: #8891a8;

  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    24px;

  --shadow:       0 4px 24px rgba(0,0,0,0.5);
  --shadow-glow:  0 0 40px rgba(0,200,239,0.12);

  --font:         'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --sidebar-w:    340px;
  --header-h:     60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 0.95rem; }
a  { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
small { font-size: 0.78rem; color: var(--text-muted); }
code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-card); padding: 2px 6px; border-radius: 4px; }

/* ─── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-sm); border: none; cursor: pointer;
  font-family: var(--font); font-size: 0.88rem; font-weight: 600; line-height: 1;
  transition: all .18s ease; white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { background: #22d8ff; box-shadow: 0 0 20px var(--primary-glow); }
.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #8b5cf6; box-shadow: 0 0 20px var(--accent-glow); }
.btn-ghost   { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-light); color: var(--text); background: var(--bg-card); }
.btn-danger  { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: var(--warning); color: #000; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; border-radius: 5px; }
.btn-lg { padding: 13px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
input, select, textarea {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font); font-size: 0.9rem; padding: 10px 13px;
  transition: border .15s, box-shadow .15s; outline: none; width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
textarea { resize: vertical; min-height: 80px; }
select option { background: var(--bg-elevated); }

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title  { font-size: 1rem; font-weight: 700; color: var(--text); }

/* ─── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 99px; font-size: 0.73rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.badge-live    { background: rgba(239,68,68,.18); color: var(--live-red); }
.badge-live::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--live-red); animation: pulse 1.4s infinite; }
.badge-success { background: rgba(16,185,129,.15); color: var(--success); }
.badge-warning { background: rgba(245,158,11,.15); color: var(--warning); }
.badge-info    { background: rgba(0,200,239,.12);  color: var(--primary); }
.badge-muted   { background: var(--bg-card); color: var(--text-muted); }
.badge-host    { background: rgba(245,158,11,.15); color: var(--host-color); }
.badge-guest   { background: rgba(16,185,129,.15); color: var(--guest-color); }

/* ─── Alerts ─────────────────────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 12px; }
.alert-error   { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.alert-success { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }
.alert-info    { background: rgba(0,200,239,.10);  border: 1px solid rgba(0,200,239,.3);  color: var(--primary); }
.alert-warning { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3); color: #fcd34d; }

/* ─── Tables ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
thead th {
  padding: 10px 14px; text-align: left; font-size: 0.75rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--border); background: var(--bg-elevated);
}
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:hover { background: var(--bg-elevated); }
tbody tr:last-child td { border-bottom: none; }

/* ─── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px; max-width: 540px; width: 90%;
  transform: translateY(20px); transition: transform .2s; max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.3rem; padding: 4px; transition: color .15s; }
.modal-close:hover { color: var(--text); }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

/* ─── Loader ─────────────────────────────────────────────────────────────── */
.spinner {
  width: 22px; height: 22px; border: 2px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block;
}
.spinner-lg { width: 48px; height: 48px; border-width: 4px; }
.loading-screen {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; gap: 18px;
}
.loading-screen p { color: var(--text-muted); font-size: 0.9rem; }

/* ─── Toast Notifications ────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; max-width: 340px;
}
.toast {
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text);
  padding: 13px 18px; border-radius: var(--radius); font-size: 0.88rem;
  box-shadow: var(--shadow); display: flex; align-items: flex-start; gap: 10px;
  animation: slideIn .25s ease; border-left: 4px solid var(--primary);
}
.toast.toast-error   { border-left-color: var(--danger); }
.toast.toast-success { border-left-color: var(--success); }
.toast.toast-warning { border-left-color: var(--warning); }
.toast-dismiss { margin-left: auto; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; }

/* ─── Broadcast Page Layout ───────────────────────────────────────────────── */
.broadcast-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,8,12,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h); display: flex; align-items: center;
  padding: 0 20px; gap: 16px;
}
.broadcast-logo { font-size: 1.1rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.broadcast-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  grid-template-rows: calc(100vh - var(--header-h));
  height: calc(100vh - var(--header-h));
  overflow: hidden;
}
.broadcast-main  { display: flex; flex-direction: column; overflow: hidden; background: var(--bg-deep); }
.broadcast-chat  { display: flex; flex-direction: column; background: var(--bg-surface); border-left: 1px solid var(--border); overflow: hidden; }

/* ─── Video Grid ─────────────────────────────────────────────────────────── */
.video-section { flex: 1; overflow-y: auto; padding: 16px; }
.video-section-label {
  font-size: 0.72rem; font-weight: 700; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.video-section-label::after { content:''; flex:1; height:1px; background:var(--border); }

.guests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.host-section { padding: 0 16px 16px; border-top: 1px solid var(--border); padding-top: 16px; flex-shrink: 0; }
.host-video-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  max-height: 220px;
  border: 2px solid var(--host-color);
  box-shadow: 0 0 0 1px rgba(245,158,11,.3), var(--shadow);
}

.video-tile {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  aspect-ratio: 16/9; cursor: default;
  transition: border-color .2s, box-shadow .2s;
}
.video-tile:hover { border-color: var(--border-light); }
.video-tile.is-speaking {
  border-color: var(--guest-color);
  box-shadow: 0 0 0 2px rgba(16,185,129,.3);
}
.video-tile video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.video-tile-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  padding: 24px 10px 10px;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.video-tile-name { font-size: 0.82rem; font-weight: 600; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.video-tile-badges { display: flex; gap: 5px; }
.video-badge {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.video-tile-avatar {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
}
.avatar-circle {
  width: 60px; height: 60px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; color: #fff;
}
.video-tile-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center;
}
.hand-raised-indicator {
  position: absolute; top: 8px; right: 8px;
  background: var(--warning); border-radius: 50%; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  animation: bounce 0.7s infinite alternate;
}

/* ─── Chat Panel ─────────────────────────────────────────────────────────── */
.chat-header {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.chat-header h3 { font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.viewers-count { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-muted); }
.viewers-dot   { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

.chat-messages { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.chat-msg {
  padding: 7px 10px; border-radius: var(--radius-sm); font-size: 0.85rem; line-height: 1.5;
  transition: background .1s;
}
.chat-msg:hover { background: var(--bg-elevated); }
.chat-msg .msg-name {
  font-weight: 700; margin-right: 6px; font-size: 0.8rem;
}
.chat-msg .msg-name.host  { color: var(--host-color); }
.chat-msg .msg-name.guest { color: var(--guest-color); }
.chat-msg .msg-name.admin { color: var(--primary); }
.chat-msg .msg-time { font-size: 0.72rem; color: var(--text-dim); margin-left: 6px; }
.chat-msg.pinned { background: rgba(0,200,239,.07); border-left: 2px solid var(--primary); padding-left: 8px; }
.chat-msg.pinned::before { content: '📌 '; font-size: 0.75rem; }

.chat-name-prompt { padding: 14px; border-top: 1px solid var(--border); flex-shrink: 0; }
.chat-input-area {
  padding: 12px 14px; border-top: 1px solid var(--border); flex-shrink: 0;
  display: flex; gap: 8px;
}
.chat-input {
  flex: 1; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 20px; padding: 9px 15px; color: var(--text); font-size: 0.88rem;
  outline: none; transition: border .15s;
}
.chat-input:focus { border-color: var(--primary); }
.chat-send-btn {
  background: var(--primary); border: none; color: #000;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: all .15s; flex-shrink: 0;
}
.chat-send-btn:hover { background: #22d8ff; transform: scale(1.05); }

/* Reactions bar */
.reactions-bar { display: flex; gap: 6px; padding: 8px 14px; border-top: 1px solid var(--border); flex-shrink: 0; }
.reaction-btn {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 10px; cursor: pointer; font-size: 1.1rem;
  transition: all .15s; color: var(--text);
}
.reaction-btn:hover { background: var(--bg-card); transform: scale(1.15); }

.floating-reaction {
  position: fixed; pointer-events: none; font-size: 1.8rem; z-index: 999;
  animation: floatUp 2.5s ease-out forwards;
}

/* ─── Offline / Error States ─────────────────────────────────────────────── */
.offline-banner {
  background: rgba(239,68,68,.12); border-bottom: 1px solid rgba(239,68,68,.3);
  padding: 10px 20px; text-align: center; font-size: 0.85rem; color: #fca5a5;
  display: none;
}
.offline-banner.show { display: block; }
.empty-state {
  text-align: center; padding: 48px 20px; color: var(--text-muted);
}
.empty-state .emoji { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.9rem; }

/* ─── Guest Join Page ────────────────────────────────────────────────────── */
.join-page {
  min-height: 100vh; background: var(--bg-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px;
}
.join-card {
  width: 100%; max-width: 480px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow);
}
.join-logo { text-align: center; margin-bottom: 28px; }
.join-logo .logo-text { font-size: 1.8rem; font-weight: 900; color: var(--primary); }
.join-logo .logo-sub  { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.preview-container {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card); aspect-ratio: 16/9; margin-bottom: 20px;
}
.preview-container video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.preview-controls {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
}
.preview-btn {
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  transition: all .15s; background: rgba(0,0,0,.7); color: #fff;
}
.preview-btn:hover { background: rgba(255,255,255,.2); transform: scale(1.1); }
.preview-btn.off { background: var(--danger); }

.device-selectors { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.device-selectors select { font-size: 0.82rem; }

/* ─── Login Page ─────────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg-deep); padding: 24px;
  background-image: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,200,239,.06) 0%, transparent 70%);
}
.login-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px; width: 100%; max-width: 400px;
  box-shadow: var(--shadow);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo .logo-main { font-size: 2rem; font-weight: 900; color: var(--primary); letter-spacing: -.03em; }
.login-logo .logo-sub  { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.login-logo .logo-icon { font-size: 2.5rem; margin-bottom: 8px; }

/* ─── Admin Layout ───────────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; background: var(--bg-surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 0; flex-shrink: 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-logo {
  padding: 20px 20px 16px; border-bottom: 1px solid var(--border);
  font-size: 1.1rem; font-weight: 900; color: var(--primary);
}
.sidebar-logo small { display: block; font-size: 0.68rem; color: var(--text-dim); font-weight: 400; margin-top: 2px; }
.sidebar-nav { padding: 14px 10px; flex: 1; }
.nav-section-label { font-size: 0.68rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; padding: 8px 10px 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: var(--radius-sm); color: var(--text-muted); cursor: pointer;
  transition: all .15s; font-size: 0.88rem; font-weight: 500; border: none;
  background: none; width: 100%; text-align: left;
}
.nav-item:hover { background: var(--bg-card); color: var(--text); }
.nav-item.active { background: var(--primary-glow); color: var(--primary); }
.nav-item .nav-icon { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-user { padding: 14px; border-top: 1px solid var(--border); }
.sidebar-user-info { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; }
.sidebar-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.sidebar-username { font-weight: 600; color: var(--text); }
.sidebar-role { color: var(--text-muted); font-size: 0.72rem; }

.admin-main { flex: 1; overflow-y: auto; padding: 28px; max-width: 1200px; }
.admin-page { display: none; }
.admin-page.active { display: block; }

.admin-page-header { margin-bottom: 24px; }
.admin-page-header h2 { font-size: 1.4rem; }
.admin-page-header p  { color: var(--text-muted); font-size: 0.88rem; margin-top: 4px; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
}
.stat-label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-sub   { font-size: 0.78rem; color: var(--text-dim); }
.stat-icon  { font-size: 1.5rem; }

/* Live Control Panel */
.live-panel {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 24px; border-left: 3px solid var(--live-red);
}
.live-panel h3 { font-size: 0.95rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.participant-list { display: flex; flex-direction: column; gap: 8px; }
.participant-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--bg-elevated); border-radius: var(--radius-sm); font-size: 0.85rem;
}
.participant-name { flex: 1; font-weight: 600; }
.participant-actions { display: flex; gap: 6px; }

/* Episode cards */
.episode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.episode-card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px; cursor: pointer; transition: all .18s;
}
.episode-card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.episode-card-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.episode-card-meta  { font-size: 0.78rem; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; }
.episode-card-desc  { font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Invite Link box */
.invite-box {
  background: var(--bg-deep); border: 1px dashed var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--primary);
  word-break: break-all; cursor: pointer; position: relative;
}
.invite-box:hover::after { content: 'Click to copy'; position: absolute; top: -26px; left: 50%; transform: translateX(-50%); background: var(--bg-card); padding: 3px 8px; border-radius: 4px; font-family: var(--font); font-size: 0.72rem; color: var(--text); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .broadcast-layout { grid-template-columns: 1fr; grid-template-rows: auto; }
  .broadcast-chat { position: fixed; bottom: 0; left: 0; right: 0; height: 280px; border-top: 1px solid var(--border); z-index: 50; }
  .broadcast-main { padding-bottom: 290px; }
}
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-main { padding: 16px; }
  .guests-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .login-card, .join-card { padding: 24px 20px; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes pulse    { 0%,100% { opacity:1; } 50% { opacity:.4; } }
@keyframes bounce   { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@keyframes slideIn  { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }
@keyframes floatUp  { 0% { opacity:1; transform:translateY(0) scale(1); } 100% { opacity:0; transform:translateY(-120px) scale(1.4); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes scaleIn  { from { opacity:0; transform:scale(.9); } to { opacity:1; transform:scale(1); } }

.fade-in  { animation: fadeIn .3s ease; }
.scale-in { animation: scaleIn .25s ease; }

/* ─── Utility ─────────────────────────────────────────────────────────────── */
.flex      { display: flex; }
.flex-col  { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mb-4  { margin-bottom: 16px; }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.truncate { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ─── Google Fonts import ────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
