/* ============================================================
   StreamVault – Global Styles
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg-primary:   #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card:      rgba(255, 255, 255, 0.05);
  --bg-card-hover:rgba(255, 255, 255, 0.09);
  --accent:       #6366f1;
  --accent-dark:  #4f46e5;
  --accent-light: #818cf8;
  --text-primary: #e2e8f0;
  --text-secondary:#94a3b8;
  --text-muted:   #64748b;
  --border:       rgba(255, 255, 255, 0.08);
  --border-accent:rgba(99, 102, 241, 0.4);
  --glass-blur:   blur(12px);
  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow:  0 0 20px rgba(99, 102, 241, 0.25);
  --radius:       12px;
  --radius-sm:    8px;
  --transition:   0.2s ease;
  --sidebar-w:    260px;
  --player-h:     360px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }
input, button { font-family: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.35);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- Glassmorphism Card ---------- */
.glass {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

/* ============================================================
   AUTH / LOGIN SCREEN
   ============================================================ */
#login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    var(--bg-primary);
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.login-logo svg { width: 40px; height: 40px; color: var(--accent); }

.login-logo h1 {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn-primary {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.login-error {
  color: #f87171;
  font-size: 0.875rem;
  text-align: center;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: var(--radius-sm);
  display: none;
}
.login-error.visible { display: block; }

/* ============================================================
   MAIN APP LAYOUT
   ============================================================ */
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ---------- Navbar ---------- */
#navbar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem;
  background: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 50;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.125rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  min-width: 140px;
}

.nav-brand svg { width: 28px; height: 28px; color: var(--accent); flex-shrink: 0; }

#hamburger {
  display: none;
  color: var(--text-secondary);
  padding: 0.375rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
#hamburger:hover { background: var(--bg-card); color: var(--text-primary); }
#hamburger svg { width: 22px; height: 22px; }

.nav-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.nav-search svg {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

#search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
#search-input::placeholder { color: var(--text-muted); }
#search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.icon-btn:hover { background: var(--bg-card); color: var(--text-primary); }
.icon-btn.active { background: rgba(99, 102, 241, 0.15); color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }

/* Profile menu */
.profile-menu {
  position: relative;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}
.profile-avatar:hover { border-color: var(--accent); }

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  display: none;
  z-index: 100;
  box-shadow: var(--shadow-card);
}
.profile-dropdown.open { display: block; }

.profile-dropdown .username {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition);
  width: 100%;
  text-align: left;
}
.dropdown-item:hover { background: var(--bg-card); }
.dropdown-item svg { width: 16px; height: 16px; color: var(--text-secondary); }
.dropdown-item.danger { color: #f87171; }
.dropdown-item.danger svg { color: #f87171; }

/* ---------- Content Area (sidebar + main) ---------- */
#content-area {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ---------- Sidebar ---------- */
#sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: rgba(26, 26, 46, 0.6);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  transition: transform var(--transition);
}

.sidebar-section {
  padding: 1.25rem 1rem 0.5rem;
}

.sidebar-section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding: 0 0.25rem;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border: 1px solid transparent;
  user-select: none;
}
.sidebar-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}
.sidebar-item.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-light);
  border-color: var(--border-accent);
}
.sidebar-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-item .count {
  margin-left: auto;
  font-size: 0.75rem;
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-light);
  padding: 0.125rem 0.5rem;
  border-radius: 99px;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 1rem;
}

/* Sidebar overlay on mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 30;
}

/* ---------- Main Content ---------- */
#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1rem;
  flex-shrink: 0;
}

.content-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.content-subtitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.125rem;
}

.view-toggle {
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}

/* Channel list scroll area */
#channels-container {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.5rem 1.5rem;
}

/* ============================================================
   CHANNEL GRID
   ============================================================ */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  position: relative;
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.channel-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-card);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.channel-card.playing {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-glow);
}

.channel-logo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.channel-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.3s;
}
.channel-logo.loading { opacity: 0; }

.channel-logo-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
}
.channel-logo-placeholder svg { width: 32px; height: 32px; }

.channel-info {
  width: 100%;
  padding: 0.5rem 0.625rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.channel-name {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-btn {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
  padding: 2px;
}
.fav-btn:hover { color: #fbbf24; transform: scale(1.2); }
.fav-btn.active { color: #fbbf24; }
.fav-btn svg { width: 14px; height: 14px; }

/* ============================================================
   CHANNEL LIST VIEW
   ============================================================ */
.channel-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.channel-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.channel-list-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
}

.channel-list-item.playing {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}

.channel-list-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.channel-list-name {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   SKELETONS (loading state)
   ============================================================ */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.09) 50%,
    rgba(255,255,255,0.04) 100%
  );
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
}

.skeleton-card {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
}

/* ============================================================
   VIDEO PLAYER PANEL
   ============================================================ */
#player-panel {
  height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  background: rgba(10, 10, 20, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s;
  flex-shrink: 0;
  position: relative;
}

#player-panel.open {
  height: var(--player-h);
  border-color: var(--border);
}

.player-inner {
  display: flex;
  height: 100%;
  overflow: hidden;
}

/* Video */
.player-video-wrap {
  position: relative;
  flex: 1;
  background: #000;
  overflow: hidden;
}

#player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Overlays */
.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.player-overlay.visible { opacity: 1; pointer-events: all; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Error overlay */
.player-error-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(0,0,0,0.8);
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.player-error-overlay.visible { opacity: 1; pointer-events: all; }
.player-error-overlay svg { width: 40px; height: 40px; color: #f87171; }

.btn-retry {
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity var(--transition);
}
.btn-retry:hover { opacity: 0.85; }

/* Player sidebar (channel info) */
.player-sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  padding: 1rem;
  gap: 1rem;
  overflow-y: auto;
}

.player-channel-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-channel-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.player-channel-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #ff5555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.player-live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #ff5555;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Custom Controls */
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.player-video-wrap:hover .player-controls { opacity: 1; }

.ctrl-btn {
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), transform var(--transition);
}
.ctrl-btn:hover { color: #fff; transform: scale(1.1); }
.ctrl-btn svg { width: 22px; height: 22px; }

.player-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
  z-index: 5;
}
.player-close:hover { color: #fff; }
.player-close svg { width: 20px; height: 20px; }

/* Volume */
.volume-wrap { display: flex; align-items: center; gap: 0.5rem; }
.volume-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.25);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-light);
  cursor: pointer;
}
.volume-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  min-width: 2.5ch;
  text-align: right;
}

.ml-auto { margin-left: auto; }

/* ============================================================
   EMPTY / PLACEHOLDER STATES
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  color: var(--text-secondary);
  text-align: center;
}
.empty-state svg { width: 56px; height: 56px; opacity: 0.4; }
.empty-state p { font-size: 0.9375rem; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 200;
}

.toast {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  animation: toast-in 0.3s ease forwards;
  max-width: 320px;
}
.toast.success { border-color: rgba(52, 211, 153, 0.4); color: #6ee7b7; }
.toast.error   { border-color: rgba(248, 113, 113, 0.4); color: #fca5a5; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   RESPONSIVE – MOBILE
   ============================================================ */
@media (max-width: 768px) {
  #hamburger { display: flex; }

  .nav-brand { min-width: auto; }

  #sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    z-index: 40;
    transform: translateX(-100%);
    width: min(var(--sidebar-w), 85vw);
  }
  #sidebar.open { transform: translateX(0); }

  .sidebar-overlay { display: block; }
  .sidebar-overlay.visible { pointer-events: all; }
  .sidebar-overlay:not(.visible) { pointer-events: none; background: transparent; }

  #player-panel.open { height: auto; }
  .player-inner { flex-direction: column; }
  .player-sidebar { width: 100%; border-left: none; border-top: 1px solid var(--border); }

  .channel-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.75rem; }

  #channels-container { padding: 0 1rem 1rem; }
  .content-header { padding: 1rem; }

  :root { --player-h: auto; }
}

@media (max-width: 480px) {
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
  .volume-slider { width: 60px; }
}
