/* ═══════════════════════════════════════════════════
   StreamVision — IPTV Customer Portal Design System
   ═══════════════════════════════════════════════════ */

/* ── Design tokens ─────────────────────────────── */
:root {
  --bg:           #07090f;
  --surface:      #0c1018;
  --card:         #111722;
  --card-h:       #16202e;
  --elevated:     #1a2236;
  --accent:       #7c3aed;
  --accent-l:     #a78bfa;
  --accent-glow:  rgba(124,58,237,0.25);
  --green:        #10b981;
  --green-dim:    rgba(16,185,129,0.12);
  --red:          #ef4444;
  --amber:        #f59e0b;
  --text:         #f1f5f9;
  --text-2:       #94a3b8;
  --text-3:       #4b5563;
  --border:       rgba(148,163,184,0.08);
  --border-l:     rgba(148,163,184,0.15);
  --r:            14px;
  --r-sm:         8px;
  --r-lg:         20px;
  --sh:           0 4px 24px rgba(0,0,0,0.35);
  --sh-lg:        0 16px 48px rgba(0,0,0,0.5);
  --trans:        0.2s ease;
}

/* ── Reset & base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input  { font-family: inherit; }
a      { text-decoration: none; color: inherit; }
img    { display: block; max-width: 100%; }
svg    { flex-shrink: 0; }

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

/* ════════════════════════════════════════════════
   LOGIN SCREEN
   ════════════════════════════════════════════════ */
.login-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.login-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.login-aurora { position: absolute; inset: 0; }
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: aurora-drift 14s ease-in-out infinite alternate;
}
.aurora-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  top: -200px; left: -150px;
}
.aurora-blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
  bottom: -180px; right: -100px;
  animation-delay: -5s;
}
.aurora-blob-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
  top: 30%; left: 40%;
  animation-delay: -9s;
  opacity: 0.22;
}
@keyframes aurora-drift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(40px,30px) scale(1.1); }
  100% { transform: translate(-20px,50px) scale(0.95); }
}
.login-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 40%, var(--bg) 100%);
}
.login-particles { display: none; }
.login-wave { display: none; }

/* Login card */
.login-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: center;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(12,16,24,0.88);
  border: 1px solid var(--border-l);
  border-radius: var(--r-lg);
  padding: 38px 34px 34px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(255,255,255,0.04);
}
.login-slogan {
  margin-bottom: 28px;
}
.login-slogan h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.login-slogan h1::before {
  content: '';
  display: inline-block;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
}
.login-slogan h1 span { color: var(--accent-l); }
.login-slogan p { font-size: 13px; color: var(--text-2); line-height: 1.5; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.input-wrap { position: relative; }
.input-wrap svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  stroke: var(--text-3);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  padding: 11px 13px 11px 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-l);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 14px;
  transition: border-color var(--trans), box-shadow var(--trans), background var(--trans);
  outline: none;
}
.input-wrap input::placeholder { color: var(--text-3); }
.input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(124,58,237,0.04);
}

.login-btn {
  width: 100%;
  min-height: 52px;
  padding: 13px;
  background: linear-gradient(135deg, var(--accent) 0%, #5b21b6 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-sm);
  cursor: pointer;
  margin-top: 8px;
  transition: opacity var(--trans), transform var(--trans), box-shadow var(--trans);
  box-shadow: 0 4px 18px rgba(124,58,237,0.45);
  letter-spacing: 0.01em;
  border: none;
  -webkit-tap-highlight-color: rgba(167,139,250,0.35);
  touch-action: manipulation;
}
.login-btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(167,139,250,0.55), 0 4px 18px rgba(124,58,237,0.45);
}
.login-tv-hint {
  display: none;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(14,165,233,0.12);
  border: 1px solid rgba(14,165,233,0.35);
  color: #bae6fd;
  font-size: 13px;
  line-height: 1.45;
}
.login-tv-hint a { color: #fff; font-weight: 700; }
.login-tv-hint.is-tv { display: block; }
.login-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(124,58,237,0.55);
}
.login-btn:active:not(:disabled) { transform: translateY(0); }
.login-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.apk-download-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 10px;
  color: #a78bfa;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--trans), border-color var(--trans), color var(--trans);
}
.apk-download-link:hover {
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.45);
  color: #c4b5fd;
}

.login-error {
  display: none;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-left: 3px solid var(--red);
  color: #fca5a5;
  font-size: 13px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 16px;
  line-height: 1.55;
}
.login-error-hint {
  display: block;
  opacity: 0.75;
  font-size: 12px;
  margin-top: 4px;
}
.login-error-list {
  margin: 8px 0 0 16px;
  font-size: 12px;
  opacity: 0.8;
}
.login-error-duplicate {
  border-left-color: var(--amber);
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.3);
  color: #fde68a;
}

/* ════════════════════════════════════════════════
   APP SHELL
   ════════════════════════════════════════════════ */
.app { display: none; flex-direction: column; min-height: 100dvh; }
.app.active { display: flex; }

/* ── Top bar ─────────────────────────────────────── */
.topbar {
  height: 58px;
  background: rgba(12,16,24,0.96);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.brand-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(124,58,237,0.35);
}
.brand-mark svg { width: 17px; height: 17px; fill: #fff; }
.brand-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.brand-text span { color: var(--accent-l); }
.menu-btn { display: none; }

.topbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
}
.search-box-top {
  width: 100%;
  max-width: 360px;
  position: relative;
}
.search-box-top svg {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  stroke: var(--text-3);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.search-input-top {
  width: 100%;
  padding: 8px 14px 8px 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color var(--trans), background var(--trans);
}
.search-input-top::placeholder { color: var(--text-3); }
.search-input-top:focus {
  border-color: var(--accent);
  background: rgba(124,58,237,0.05);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px 12px 4px 4px;
}
.user-avatar {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent) 0%, #0ea5e9 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.user-meta { display: flex; flex-direction: column; }
.user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-plan {
  font-size: 10px;
  color: var(--text-3);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.logout-btn {
  padding: 7px 14px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: #fca5a5;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  transition: background var(--trans), border-color var(--trans);
  cursor: pointer;
}
.logout-btn:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.4);
}
.topbar-apk-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  color: #6ee7b7;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--trans), border-color var(--trans);
}
.topbar-apk-btn:hover {
  background: rgba(16,185,129,0.2);
  border-color: rgba(16,185,129,0.45);
}
.topbar-rec-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  color: var(--accent-l);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--trans), border-color var(--trans);
  white-space: nowrap;
}
.topbar-rec-btn:hover {
  background: rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.45);
}

/* ── Category tab strip ──────────────────────────── */
.cat-strip {
  background: rgba(12,16,24,0.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 58px;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cat-tabs {
  display: flex;
  align-items: stretch;
  padding: 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0;
  padding: 0 14px;
  height: 44px;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--trans), border-color var(--trans);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.cat-tab:hover { color: var(--text); }
.cat-tab.active {
  color: var(--accent-l);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.tab-pill {
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  background: rgba(255,255,255,0.06);
  color: var(--text-3);
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans), color var(--trans);
}
.tab-pill.live-pill { background: var(--green-dim); color: var(--green); }
.cat-tab.active .tab-pill { background: rgba(124,58,237,0.15); color: var(--accent-l); }

.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: blink 1.6s ease infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* ── App body ─────────────────────────────────────── */
.app-shell {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
}
.main-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ── Stats row ────────────────────────────────────── */
.stats-row {
  display: flex;
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-card {
  flex: 1;
  background: var(--surface);
  padding: 12px 16px;
  min-width: 0;
}
.stat-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-3);
  margin-bottom: 4px;
}
.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1;
}
.stat-value.success { color: var(--green); }
.stat-value.accent  { color: var(--accent-l); }
#stat-plan {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

/* ── Player stage ─────────────────────────────────── */
.player-stage {
  display: none;
  background: #000;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.player-stage.active { display: block; }

/* Native <video> element sized by player-stage size class */
.player-video-area {
  position: relative;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

/* Centre play/pause flash on click */
.pp-flash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 8;
  opacity: 0;
}
.pp-flash-anim {
  animation: pp-flash-anim 0.5s ease forwards;
}
@keyframes pp-flash-anim {
  0%   { opacity: 1;   transform: scale(0.8); }
  40%  { opacity: 1;   transform: scale(1.15); }
  100% { opacity: 0;   transform: scale(1.3); }
}
.pp-flash svg {
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.6));
  background: rgba(0,0,0,0.35);
  border-radius: 50%;
  padding: 14px;
  width: 76px;
  height: 76px;
}
.player-stage.size-small  .player-video-area { height: 240px; }
.player-stage.size-medium .player-video-area { height: 420px; }
.player-stage.size-large  .player-video-area { height: 560px; }

/* Theater mode: fixed overlay filling the whole viewport */
.player-stage.size-theater {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000;
  display: flex;
  flex-direction: column;
}
.player-stage.size-theater .player-video-area {
  flex: 1;
  height: auto;
}

#live-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
  outline: none;
}

/* ── Stream loading overlay ── */
.stream-loading {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(7,9,15,0.92);
  align-items: center;
  justify-content: center;
}
.stream-loading.visible { display: flex; }
.stream-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  padding: 24px;
  max-width: 440px;
}
.stream-spinner {
  width: 52px; height: 52px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent-l);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.stream-loading-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  max-width: 400px;
}
.stream-loading-msg {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}
.stream-loading-hint {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.player-bar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--card);
  border-top: 1px solid var(--border);
  gap: 12px;
}
.player-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-indicator {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--green);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.1em;
  box-shadow: 0 2px 8px rgba(16,185,129,0.35);
}
.player-title {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-sub {
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.size-group {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 3px;
}
.size-btn {
  width: 28px; height: 24px;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: background var(--trans), color var(--trans);
}
.size-btn:hover { background: rgba(255,255,255,0.07); color: var(--text); }
.size-btn.active { background: var(--accent); color: #fff; }
.ctrl-btn {
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--trans), color var(--trans);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text-2);
  white-space: nowrap;
}
.ctrl-btn:hover { background: rgba(255,255,255,0.11); color: var(--text); }
.ctrl-btn.danger {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.2);
  color: #fca5a5;
}
.ctrl-btn.danger:hover { background: rgba(239,68,68,0.2); }

/* ── Play / Pause / Mute buttons ────────────────── */
.pp-btn {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.3);
  color: var(--accent-l);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 0;
}
.pp-btn:hover {
  background: rgba(124,58,237,0.28);
  border-color: rgba(124,58,237,0.5);
  color: #fff;
}

/* ── Record button ───────────────────────────────── */
.rec-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}
.rec-btn.recording {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.35);
  color: #fca5a5;
  animation: rec-pulse-border 2s ease infinite;
}
@keyframes rec-pulse-border {
  0%,100% { border-color: rgba(239,68,68,0.35); }
  50%      { border-color: rgba(239,68,68,0.7); }
}
.rec-dot-icon {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.rec-dot-icon.blink { animation: blink 0.8s ease infinite; }

/* ── Quality menu ────────────────────────────────── */
.quality-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: var(--elevated);
  border: 1px solid var(--border-l);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-lg);
  min-width: 80px;
  z-index: 200;
  overflow: hidden;
}
.quality-item {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--trans), color var(--trans);
  white-space: nowrap;
}
.quality-item:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.quality-item.active { color: var(--accent-l); }

/* ── Catalog toolbar ──────────────────────────────── */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 6px;
  gap: 12px;
}
.catalog-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  flex-shrink: 0;
}

/* ── Channel Grid ─────────────────────────────────── */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
  padding: 8px 16px 32px;
}
@media (min-width: 600px) {
  .channel-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; padding: 8px 20px 32px; }
}
@media (min-width: 1024px) {
  .channel-grid { grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 16px; }
}

/* ── Channel tile (card) ──────────────────────────── */
.channel-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  user-select: none;
}
.channel-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
  border-color: rgba(124,58,237,0.4);
}
.channel-tile.playing {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow), 0 8px 28px rgba(0,0,0,0.4);
}
.channel-tile.live-tile { border-color: rgba(16,185,129,0.22); }
.channel-tile.live-tile:hover { border-color: rgba(16,185,129,0.45); }

/* Art / thumbnail */
.channel-art {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ch-logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 13%;
  z-index: 1;
  transition: transform var(--trans);
}
.channel-tile:hover .ch-logo-img { transform: scale(1.05); }
.channel-initials {
  font-size: 26px;
  font-weight: 800;
  color: rgba(255,255,255,0.88);
  letter-spacing: -1px;
  z-index: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  position: relative;
}

/* Live badge */
.live-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  background: var(--green);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 3;
  letter-spacing: 0.1em;
  box-shadow: 0 2px 8px rgba(16,185,129,0.45);
}
.live-badge .dot {
  width: 5px; height: 5px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1.5s ease infinite;
}

/* Play overlay */
.channel-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  z-index: 3;
  transition: opacity var(--trans);
}
.channel-tile:hover .channel-play { opacity: 1; }
.channel-tile.playing .channel-play {
  opacity: 1;
  background: rgba(124,58,237,0.4);
}
.play-circle {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: transform var(--trans), background var(--trans);
}
.channel-tile:hover .play-circle {
  transform: scale(1.08);
  background: rgba(255,255,255,0.25);
}
.play-circle svg {
  width: 18px; height: 18px;
  fill: #fff;
  margin-left: 2px;
}

/* Viewer chip */
.viewer-chip {
  position: absolute;
  bottom: 7px;
  right: 7px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 3;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
}
.viewer-chip svg {
  width: 10px; height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Channel body */
.channel-body {
  padding: 10px 12px 11px;
}
.channel-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.channel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.channel-meta span {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.viewers { color: var(--green) !important; font-weight: 600 !important; }
.hd-tag {
  flex-shrink: 0;
  background: rgba(124,58,237,0.15);
  color: var(--accent-l);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}

/* ── Skeleton ─────────────────────────────────────── */
.skeleton-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: inherit;
  gap: inherit;
}
.skeleton-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.skeleton-art {
  aspect-ratio: 16/9;
  background: linear-gradient(90deg, var(--card) 25%, var(--card-h) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}
.skeleton-body { padding: 10px 12px 11px; }
.skeleton-line {
  height: 11px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--card) 25%, var(--card-h) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite 0.1s;
  margin-bottom: 7px;
}
.skeleton-line.short { width: 55%; margin-bottom: 0; animation-delay: 0.2s; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Empty state ──────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 14px;
  text-align: center;
}
.empty-state svg {
  width: 48px; height: 48px;
  stroke: var(--text-3);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.empty-state h3 { font-size: 17px; font-weight: 700; color: var(--text-2); }
.empty-state p { font-size: 13px; color: var(--text-3); max-width: 260px; line-height: 1.6; }

/* ── On-Air sidebar ───────────────────────────────── */
.sidebar {
  width: 230px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 102px;
  height: calc(100dvh - 102px);
  overflow: hidden;
}
.nav-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-3);
  padding: 14px 14px 8px;
  border-bottom: 1px solid var(--border);
}
.active-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}
.active-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--trans);
}
.active-item:hover { background: rgba(255,255,255,0.04); }
.active-item.playing { background: rgba(124,58,237,0.12); }
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: blink 1.6s ease infinite;
}
.active-name {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.active-viewers {
  font-size: 10px;
  color: var(--text-3);
  flex-shrink: 0;
}
.sidebar-overlay { display: none; }

/* ── Toasts ───────────────────────────────────────── */
.toast-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--elevated);
  border: 1px solid var(--border-l);
  border-left: 3px solid var(--accent-l);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 11px 16px;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-lg);
  max-width: 300px;
  animation: toast-in 0.2s ease forwards;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  line-height: 1.45;
}
.toast.error   { border-left-color: var(--red); }
.toast.success { border-left-color: var(--green); }
.toast.info    { border-left-color: var(--accent-l); }
@keyframes toast-in {
  from { transform: translateX(12px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Toast hide animation ─────────────────────────── */
.toast.hiding {
  animation: toast-out 0.35s ease forwards;
}
@keyframes toast-out {
  to { transform: translateX(20px); opacity: 0; }
}

/* ══════════════════════════════════════════════════
   RECORDINGS PANEL (slide-in from right)
   ══════════════════════════════════════════════════ */
.rec-panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 800;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: none;
}
.rec-panel-overlay.open {
  display: block;
  animation: fade-in 0.2s ease forwards;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.rec-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 900;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 48px rgba(0,0,0,0.55);
}
.rec-panel.open { transform: translateX(0); }

.rec-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--elevated);
}
.rec-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.rec-panel-close {
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans);
}
.rec-panel-close:hover { background: rgba(255,255,255,0.11); color: var(--text); }

.rec-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.rec-empty {
  padding: 48px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.7;
}

.rec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 6px;
  transition: border-color var(--trans), opacity 0.25s, max-height 0.25s;
  max-height: 200px;
  overflow: hidden;
}
.rec-item:hover { border-color: var(--border-l); }

.rec-item-icon {
  width: 32px; height: 32px;
  background: rgba(124,58,237,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-l);
}
.rec-item-info {
  flex: 1;
  min-width: 0;
}
.rec-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.rec-item-meta {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.4;
}
.rec-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.rec-action-btn {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background var(--trans), color var(--trans);
}
.rec-action-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.rec-action-btn.danger {
  color: #fca5a5;
  border-color: rgba(239,68,68,0.2);
  background: rgba(239,68,68,0.08);
}
.rec-action-btn.danger:hover { background: rgba(239,68,68,0.18); }

/* ── Panel head actions ───────────────────────────── */
.rec-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rec-schedule-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--accent-l);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--trans), border-color var(--trans);
  white-space: nowrap;
}
.rec-schedule-btn:hover {
  background: rgba(124,58,237,0.22);
  border-color: rgba(124,58,237,0.5);
}

/* ── Tabs ─────────────────────────────────────────── */
.rec-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.rec-tab {
  flex: 1;
  padding: 11px 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--trans), border-color var(--trans);
  letter-spacing: 0.01em;
}
.rec-tab:hover { color: var(--text-2); }
.rec-tab.active {
  color: var(--accent-l);
  border-bottom-color: var(--accent);
}

/* ── Section labels ───────────────────────────────── */
.rec-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-3);
  padding: 12px 14px 6px;
}

/* ── Status badges ────────────────────────────────── */
.sched-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.sched-badge.pending   { background: rgba(124,58,237,0.15); color: var(--accent-l); }
.sched-badge.recording { background: rgba(239,68,68,0.15);  color: #fca5a5; }
.sched-badge.done      { background: rgba(16,185,129,0.12); color: var(--green); }
.sched-badge.failed    { background: rgba(239,68,68,0.1);   color: #fca5a5; }
.sched-badge.cancelled { background: rgba(255,255,255,0.05); color: var(--text-3); }

.rec-status-live { color: var(--red); font-weight: 700; }
.rec-clear-btn {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 14px 0 0;
  transition: color var(--trans);
}
.rec-clear-btn:hover { color: var(--text-2); }

/* ── Empty state CTA ──────────────────────────────── */
.rec-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding: 8px 16px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--accent-l);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--trans);
}
.rec-empty-cta:hover { background: rgba(124,58,237,0.22); }

/* ══════════════════════════════════════════════════
   ADD SCHEDULE MODAL
   ══════════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-overlay.open {
  display: block;
  animation: fade-in 0.18s ease forwards;
}

.sched-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.97);
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  background: var(--surface);
  border: 1px solid var(--border-l);
  border-radius: var(--r-lg);
  z-index: 1010;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-lg);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), opacity 0.18s ease;
  pointer-events: none;
}
.sched-modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.sched-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--elevated);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.sched-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.sched-modal-close {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--trans);
}
.sched-modal-close:hover { background: rgba(255,255,255,0.12); }

.sched-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sched-field { display: flex; flex-direction: column; gap: 7px; }

.sched-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-2);
}

.sched-input {
  width: 100%;
  padding: 9px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-l);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--trans), background var(--trans);
  color-scheme: dark;
}
.sched-input::placeholder { color: var(--text-3); }
.sched-input:focus {
  border-color: var(--accent);
  background: rgba(124,58,237,0.04);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Channel picker list */
.sched-ch-list {
  max-height: 160px;
  overflow-y: auto;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  scrollbar-width: thin;
}
.sched-ch-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--trans), color var(--trans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sched-ch-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.sched-ch-item.selected { background: rgba(124,58,237,0.12); color: var(--accent-l); }
.sched-ch-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sched-ch-selected {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  padding: 4px 0 0;
}

/* Duration chips */
.sched-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.sched-chip {
  padding: 6px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--trans), border-color var(--trans), color var(--trans);
}
.sched-chip:hover { background: rgba(255,255,255,0.09); color: var(--text); }
.sched-chip.active {
  background: rgba(124,58,237,0.18);
  border-color: rgba(124,58,237,0.45);
  color: var(--accent-l);
}

/* Error + submit */
.sched-modal-error {
  font-size: 12px;
  color: #fca5a5;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  line-height: 1.45;
}
.sched-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--accent), #5b21b6);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(124,58,237,0.4);
  transition: opacity var(--trans), transform var(--trans);
}
.sched-submit-btn:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.sched-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Muted autoplay banner ────────────────────────── */
.muted-banner {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 24px;
  cursor: pointer;
  z-index: 8;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background var(--trans);
  white-space: nowrap;
}
.muted-banner svg { width: 16px; height: 16px; flex-shrink: 0; }
.muted-banner:hover { background: rgba(0,0,0,0.88); }

/* ── Player error overlay ─────────────────────────── */
.player-error-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(7,9,15,0.88);
  z-index: 9;
  text-align: center;
  padding: 24px;
}
.player-error-overlay svg {
  width: 40px; height: 40px;
  color: rgba(255,255,255,0.35);
}
.player-error-overlay p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  max-width: 260px;
  line-height: 1.5;
}
.player-retry-btn {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--trans);
}
.player-retry-btn:hover { opacity: 0.85; }

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 900px) { .sidebar { display: none; } }
@media (max-width: 600px) {
  .topbar { padding: 0 12px; gap: 10px; }
  .brand-text { display: none; }
  .topbar-center { max-width: 100%; }
  .user-meta { display: none; }
  .player-bar { padding: 8px 12px; flex-wrap: wrap; gap: 8px; }
  .player-title { font-size: 14px; }
  .catalog-toolbar { padding: 10px 14px 4px; }
  .channel-grid { padding: 6px 12px 24px; gap: 10px; }
  .toast-wrap { bottom: 16px; right: 12px; left: 12px; }
  .toast { max-width: 100%; }
}
