/* ═══════════════════════════════════════════
   NOVAWAVE RADIO — Styles
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

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

:root {
  --bg: #08080a;
  --surface: #111114;
  --border: rgba(255,255,255,0.04);
  --border-hover: rgba(255,255,255,0.08);
  --text: #fafafa;
  --text-dim: rgba(255,255,255,0.35);
  --text-muted: rgba(255,255,255,0.2);
  --text-faint: rgba(255,255,255,0.08);
  --accent: #a855f7;
  --accent-glow: rgba(168,85,247,0.12);
  --pink: #ec4899;
  --green: #22c55e;
  --font: 'Outfit', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ── Ambient background ── */
#ambient {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  transition: background 1.5s ease;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.05); border-radius: 3px; }

/* ── HEADER ── */
.header {
  position: relative; z-index: 20;
  display: flex; align-items: center;
  padding: 12px 20px; gap: 14;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,10,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-shrink: 0;
}

.logo-wrap { display: flex; align-items: center; gap: 10; flex-shrink: 0; }
.logo-text-main { font-weight: 900; font-size: 15px; letter-spacing: -0.03em; line-height: 1; }
.logo-text-sub { font-size: 8px; font-weight: 700; letter-spacing: 0.2em; color: var(--accent); margin-top: 1px; }

.nav { display: flex; gap: 2; margin-left: 8px; }
.nav-btn {
  padding: 7px 16px; border-radius: 10px; border: none; cursor: pointer;
  font-family: var(--font); font-size: 12px; font-weight: 600;
  background: transparent; color: var(--text-dim);
  transition: all 0.3s ease;
}
.nav-btn.active { background: var(--accent-glow); color: #c084fc; }

.search-box {
  flex: 0 1 340px; margin-left: auto;
  display: flex; align-items: center; gap: 8;
  background: rgba(255,255,255,0.03);
  border-radius: 12px; padding: 8px 14px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.search-box.focused { background: rgba(255,255,255,0.06); border-color: rgba(168,85,247,0.3); }
.search-box input {
  background: none; border: none; outline: none; color: var(--text);
  font-size: 12px; font-family: var(--font); width: 100%;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-clear {
  background: rgba(255,255,255,0.06); border: none; color: rgba(255,255,255,0.4);
  cursor: pointer; padding: 2px 6px; border-radius: 6px; font-size: 11px;
  font-family: var(--font); display: none;
}
.search-clear.show { display: block; }

.live-badge { display: flex; align-items: center; gap: 6; flex-shrink: 0; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px rgba(34,197,94,0.6);
  animation: breathe 2.5s ease-in-out infinite;
}
.live-text { font-size: 10px; color: var(--text-dim); font-weight: 700; letter-spacing: 0.08em; }

/* ── MAIN CONTENT ── */
.main-content {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  position: relative; z-index: 10;
  padding-bottom: 20px;
  transition: padding-bottom 0.3s ease;
}
.main-content.has-player { padding-bottom: 90px; }

/* ── Sections ── */
.section { padding: 0 24px 32px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.section-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.view-all-btn {
  background: none; border: 1px solid var(--border-hover);
  color: var(--text-dim); border-radius: 8px; padding: 6px 12px;
  font-size: 11px; font-weight: 600; cursor: pointer; font-family: var(--font);
}

.hero {
  padding: 32px 24px 24px; position: relative;
  background: linear-gradient(180deg, rgba(168,85,247,0.06) 0%, transparent 100%);
}
.hero-inner { display: flex; align-items: center; gap: 12; margin-bottom: 14; }
.hero-h1 {
  font-size: 26px; font-weight: 900; margin: 4px 0 0; letter-spacing: -0.04em;
  line-height: 1.15; background: linear-gradient(135deg, #fafafa 30%, rgba(255,255,255,0.5));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); }
.hero-desc { font-size: 13px; color: var(--text-dim); margin: 0; max-width: 420px; }

/* ── Station Grid ── */
.station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.station-list { display: flex; flex-direction: column; gap: 2px; }

/* ── Region Grid ── */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.region-card {
  padding: 16px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  font-family: var(--font); text-align: left;
  transition: all 0.3s var(--ease);
}
.region-card:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.region-card-name { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.8); }
.region-card-count { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ── Chip scrollers ── */
.chip-row {
  display: flex; gap: 6px; padding: 16px 24px 0;
  overflow-x: auto; scrollbar-width: none; flex-shrink: 0;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  padding: 7px 16px; border-radius: 20px; white-space: nowrap;
  font-size: 12px; font-weight: 600; font-family: var(--font); cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02);
  color: var(--text-dim); transition: all 0.3s ease;
}
.chip.active { border-color: rgba(168,85,247,0.5); background: var(--accent-glow); color: #c084fc; }
.genre-chip {
  padding: 5px 12px; border-radius: 8px; white-space: nowrap;
  font-size: 11px; font-weight: 500; font-family: var(--font); cursor: pointer;
  border: none; background: transparent; color: var(--text-muted); transition: all 0.3s ease;
}
.genre-chip.active { background: rgba(255,255,255,0.08); color: var(--text); }

/* ── Station Card: List ── */
.station-card {
  display: flex; align-items: center; gap: 14;
  padding: 12px 16px; width: 100%;
  background: transparent; border: 1px solid transparent;
  border-radius: 14px; cursor: pointer;
  font-family: var(--font); text-align: left;
  transition: all 0.3s var(--ease);
}
.station-card:hover { background: rgba(255,255,255,0.02); transform: translateX(4px); }
.station-card.active { border-color: var(--active-color-25, rgba(168,85,247,0.15)); background: var(--active-bg, transparent); }
.station-card.active:hover { transform: none; }

.station-icon {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; position: relative; transition: all 0.3s ease;
}
.station-icon .pulse-ring {
  position: absolute; inset: -3px; border-radius: 16px;
  border: 2px solid; animation: breathe 3s ease-in-out infinite;
  display: none;
}
.station-card.active.playing .pulse-ring { display: block; }

.station-info { flex: 1; min-width: 0; }
.station-name {
  font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
  color: rgba(255,255,255,0.8); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; transition: color 0.3s ease;
}
.station-card.active .station-name { color: var(--text); }
.station-meta { display: flex; align-items: center; gap: 8; margin-top: 3px; }
.station-genre { font-size: 11px; font-weight: 600; color: var(--text-dim); transition: color 0.3s ease; }
.station-card.active .station-genre { color: var(--active-color, var(--accent)); }
.station-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.station-freq { font-size: 10px; font-family: var(--mono); color: rgba(255,255,255,0.15); letter-spacing: 0.04em; }
.station-play-icon { flex-shrink: 0; display: flex; align-items: center; opacity: 0.15; transition: opacity 0.3s ease; }
.station-card:hover .station-play-icon { opacity: 0.6; }
.station-card.active.playing .station-play-icon { opacity: 1; }

/* ── Station Card: Featured ── */
.featured-card {
  position: relative; overflow: hidden; width: 100%; min-height: 180px;
  border-radius: 20px; cursor: pointer; padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  text-align: left; font-family: var(--font);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
}
.featured-card:hover { transform: translateY(-2px); }
.featured-card .glow-orb {
  position: absolute; top: -40px; right: -40px; width: 140px; height: 140px;
  border-radius: 50%; opacity: 0.4; transition: opacity 0.4s ease;
}
.featured-card:hover .glow-orb { opacity: 1; }
.featured-card .fc-emoji { font-size: 36px; margin-bottom: 8px; }
.featured-card .fc-name { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.featured-card .fc-genre { font-size: 12px; font-weight: 600; margin-top: 4px; }
.featured-card .fc-desc { font-size: 11px; color: var(--text-dim); margin-top: 6px; line-height: 1.4; }
.featured-card .fc-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; position: relative; z-index: 1; }
.featured-card .fc-freq { font-size: 10px; font-family: var(--mono); color: rgba(255,255,255,0.25); letter-spacing: 0.06em; }
.featured-card .fc-play-btn {
  width: 36px; height: 36px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}

/* ── EXPANDED PLAYER ── */
.player-expanded {
  position: fixed; inset: 0; z-index: 50;
  background: var(--bg);
  display: none; flex-direction: column;
  overflow: hidden; user-select: none;
}
.player-expanded.visible {
  display: flex;
  animation: smoothSlideUp 0.45s var(--ease);
}
.player-expanded.dismissing { animation: none; }

.player-ambient {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; transition: background 1s ease;
}
.drag-handle-area {
  display: flex; flex-direction: column; align-items: center;
  padding-top: 14px; position: relative; z-index: 3; gap: 4;
  touch-action: none; cursor: grab;
}
.drag-bar {
  width: 40px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.15); transition: background 0.2s ease;
}
.drag-bar.threshold { background: rgba(168,85,247,0.8); }
.drag-hint {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25); height: 16px;
  opacity: 0; transition: color 0.2s ease;
}
.drag-hint.threshold { color: var(--accent); }

.player-topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 24px;
}
.minimize-btn {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; color: rgba(255,255,255,0.4); cursor: pointer;
  padding: 8px 14px; display: flex; align-items: center; gap: 6;
  font-family: var(--font); font-size: 11px; font-weight: 600;
}
.player-live-badge {
  display: flex; align-items: center; gap: 6;
  padding: 5px 12px; border-radius: 20px;
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2);
}
.player-live-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: breathe 2.5s ease-in-out infinite; }
.player-live-badge span { font-size: 9px; color: var(--green); font-weight: 800; letter-spacing: 0.12em; }

.player-center {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  gap: 16px; padding: 10px 32px 40px;
  position: relative; z-index: 2;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Disc */
.player-disc {
  position: relative; width: 200px; height: 200px; flex-shrink: 0;
}
.player-disc .disc-outer {
  width: 200px; height: 200px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow 1s ease;
}
.player-disc.spinning .disc-outer { animation: smoothSpin 20s linear infinite; }
.player-disc .disc-inner {
  width: 168px; height: 168px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
}
.player-disc .ring1, .player-disc .ring2 {
  position: absolute; border-radius: 50%; display: none;
}
.player-disc.spinning .ring1, .player-disc.spinning .ring2 { display: block; }
.player-disc .ring1 { inset: -12px; border: 1.5px solid; animation: breathe 4s ease-in-out infinite; }
.player-disc .ring2 { inset: -28px; border: 1px solid; animation: breathe 4s ease-in-out 1s infinite; }

.player-station-name { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; text-align: center; }
.player-now-playing { font-size: 14px; font-weight: 700; margin-top: 8px; text-align: center; }
.player-now-artist { font-size: 12px; font-weight: 600; margin-top: 4px; text-align: center; }
.player-genre { font-size: 13px; font-weight: 700; margin-top: 8px; text-align: center; }
.player-freq { font-size: 11px; color: var(--text-muted); margin-top: 6px; font-family: var(--mono); letter-spacing: 0.06em; text-align: center; }

#player-spectrum { width: 100%; max-width: 400px; flex-shrink: 0; }

.player-controls { display: flex; align-items: center; gap: 28px; flex-shrink: 0; }
.ctrl-btn {
  background: none; border: none; color: rgba(255,255,255,0.3);
  cursor: pointer; padding: 10px; transition: color 0.3s ease;
}
.ctrl-btn:hover { color: rgba(255,255,255,0.6); }
.play-btn {
  width: 68px; height: 68px; border-radius: 34px; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
}
.play-btn:hover { transform: scale(1.05); }

.volume-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 300px; flex-shrink: 0;
}
.volume-track { flex: 1; position: relative; height: 20px; display: flex; align-items: center; }
.volume-bg { position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.06); }
.volume-fill { position: absolute; left: 0; height: 4px; border-radius: 2px; }
.volume-input {
  position: absolute; left: 0; right: 0; width: 100%; height: 20px;
  -webkit-appearance: none; appearance: none;
  background: transparent; cursor: pointer; z-index: 2; opacity: 0;
}
.volume-thumb {
  position: absolute; width: 14px; height: 14px; border-radius: 7px;
  background: #fff; pointer-events: none;
}
.volume-val { font-size: 10px; color: var(--text-muted); font-family: var(--mono); width: 28px; text-align: right; }

/* ── MINI PLAYER ── */
.mini-player {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: none;
  animation: slideFromBottom 0.4s var(--ease);
}
.mini-player.visible { display: block; }
.mini-player .glow-line {
  height: 2px; width: 100%;
  transition: opacity 0.5s ease;
}
.mini-player-inner {
  padding: 10px 20px;
  background: rgba(12,12,15,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  cursor: pointer; display: flex; align-items: center; gap: 14;
}
.mini-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; position: relative;
}
.mini-icon .pulse-ring {
  position: absolute; inset: -2px; border-radius: 14px;
  animation: breathe 3s ease-in-out infinite; display: none;
}
.mini-player.playing .mini-icon .pulse-ring { display: block; }
.mini-info { flex: 1; min-width: 0; }
.mini-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-meta { font-size: 11px; font-weight: 600; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-play-btn {
  width: 40px; height: 40px; border-radius: 12px; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.3s ease;
}
.mini-expand { flex-shrink: 0; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 60px 20px; color: rgba(255,255,255,0.15); }
.empty-state .icon { font-size: 48px; margin-bottom: 16px; }
.empty-state .msg { font-size: 16px; font-weight: 700; }

/* ── Discover ── */
.discover-header { padding: 28px 24px 0; }
.discover-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--pink); margin-bottom: 8px; }
.discover-title { font-size: 26px; font-weight: 900; letter-spacing: -0.04em; }
.discover-desc { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
.trending-row { display: flex; align-items: center; gap: 8px; }
.trending-num { font-size: 11px; font-weight: 800; color: var(--text-faint); font-family: var(--mono); width: 24px; text-align: right; flex-shrink: 0; }
.genre-tag {
  padding: 3px 10px; border-radius: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5);
}
.genre-count { font-size: 11px; color: rgba(255,255,255,0.15); }

/* ── Animations ── */
@keyframes breathe { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(1.04)} }
@keyframes smoothSpin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes smoothSlideUp { from{transform:translateY(100%);opacity:0.8} to{transform:translateY(0);opacity:1} }
@keyframes slideFromBottom { from{transform:translateY(100%)} to{transform:translateY(0)} }
@keyframes logoPulse { 0%,100%{opacity:0.6} 50%{opacity:1} }

/* ── Responsive ── */
@media (max-width: 640px) {
  .header { padding: 12px 14px !important; gap: 8px !important; }
  .nav { display: none !important; }
  .live-badge { display: none !important; }
  .search-box { flex: 1 !important; }
  .section, .hero, .chip-row, .discover-header { padding-left: 16px !important; padding-right: 16px !important; }
  .station-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .region-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .player-center { padding: 10px 20px 30px; gap: 16px; }
  .player-disc { width: 150px; height: 150px; }
  .player-disc .disc-outer { width: 150px; height: 150px; }
  .player-disc .disc-inner { width: 124px; height: 124px; font-size: 44px; }
  .player-disc .ring1 { inset: -8px; }
  .player-disc .ring2 { inset: -20px; }
  .player-station-name { font-size: 22px; }
  .player-genre { font-size: 12px; margin-top: 4px; }
  .player-freq { font-size: 10px; margin-top: 4px; }
  .player-controls { gap: 20px; }
  .play-btn { width: 60px; height: 60px; border-radius: 30px; }
  #player-spectrum { height: 50px; }
  .player-topbar { padding: 4px 16px; }
  .minimize-btn { padding: 6px 10px; font-size: 10px; }
  .rec-btn { padding: 6px 10px; font-size: 10px; }
}

@media (max-height: 700px) {
  .player-disc { width: 120px; height: 120px; }
  .player-disc .disc-outer { width: 120px; height: 120px; }
  .player-disc .disc-inner { width: 100px; height: 100px; font-size: 36px; }
  .player-center { gap: 12px; }
  #player-spectrum { height: 40px; }
}

/* ═══ SECURITY ═══ */
body { -webkit-user-select: none; -moz-user-select: none; user-select: none; }
input, textarea { -webkit-user-select: text; -moz-user-select: text; user-select: text; }
@media print { body { display: none !important; } }
body[data-dt="1"] #app::after {
  content: ""; position: fixed; inset: 0; z-index: 9999;
  background: rgba(8,8,10,0.95);
  pointer-events: none; animation: dtWarn 0.5s ease;
}
@keyframes dtWarn { from { opacity: 0; } to { opacity: 1; } }

/* ═══ RECORDING UI ═══ */
.rec-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 10px; border: none;
  cursor: pointer; font-family: var(--font); font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease; letter-spacing: 0.03em;
}
.rec-btn:hover { background: rgba(255,59,48,0.1); color: #ff3b30; border-color: rgba(255,59,48,0.3); }
.rec-btn.recording {
  background: rgba(255,59,48,0.15); color: #ff3b30;
  border-color: rgba(255,59,48,0.4);
  animation: recPulse 1.5s ease-in-out infinite;
}
.rec-btn .rec-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3); flex-shrink: 0;
  transition: all 0.3s ease;
}
.rec-btn.recording .rec-dot {
  background: #ff3b30;
  box-shadow: 0 0 8px rgba(255,59,48,0.6);
  animation: recDotPulse 1s ease-in-out infinite;
}
.rec-btn .rec-timer {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: #ff3b30; min-width: 42px;
}
@keyframes recPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); }
  50% { box-shadow: 0 0 0 6px rgba(255,59,48,0.1); }
}
@keyframes recDotPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Mini player record button */
.mini-rec-btn {
  width: 32px; height: 32px; border-radius: 8px; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.3s ease;
  background: rgba(255,255,255,0.04);
}
.mini-rec-btn:hover { background: rgba(255,59,48,0.15); }
.mini-rec-btn.recording { background: rgba(255,59,48,0.2); animation: recPulse 1.5s ease-in-out infinite; }
.mini-rec-indicator {
  display: none; align-items: center; gap: 4px;
  font-size: 10px; font-family: var(--mono); font-weight: 700; color: #ff3b30;
  flex-shrink: 0;
}
.mini-rec-indicator.show { display: flex; }
.mini-rec-indicator .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #ff3b30;
  animation: recDotPulse 1s ease-in-out infinite;
}

/* Recordings Panel */
.recordings-panel {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  max-height: 70vh; background: rgba(12,12,15,0.98);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px 20px 0 0;
  overflow-y: auto; animation: slideFromBottom 0.4s var(--ease);
}
.recordings-panel.visible { display: block; }
.recordings-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 12px; position: sticky; top: 0;
  background: rgba(12,12,15,0.98);
  backdrop-filter: blur(24px);
  z-index: 2;
}
.recordings-panel-title { font-size: 17px; font-weight: 800; }
.recordings-panel-close {
  background: rgba(255,255,255,0.06); border: none; border-radius: 8px;
  padding: 6px 12px; cursor: pointer; color: rgba(255,255,255,0.4);
  font-family: var(--font); font-size: 11px; font-weight: 600;
}
.recording-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.2s ease;
}
.recording-item:hover { background: rgba(255,255,255,0.02); }
.recording-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,59,48,0.1); border: 1px solid rgba(255,59,48,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.recording-info { flex: 1; min-width: 0; }
.recording-name {
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.9);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.recording-meta {
  font-size: 11px; color: rgba(255,255,255,0.25); margin-top: 2px;
  display: flex; gap: 8px;
}
.recording-meta span { white-space: nowrap; }
.recording-actions { display: flex; gap: 6px; flex-shrink: 0; }
.rec-action-btn {
  width: 34px; height: 34px; border-radius: 8px; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.rec-action-btn.download {
  background: rgba(168,85,247,0.1); color: #a855f7;
}
.rec-action-btn.download:hover { background: rgba(168,85,247,0.2); }
.rec-action-btn.delete {
  background: rgba(255,59,48,0.08); color: #ff3b30;
}
.rec-action-btn.delete:hover { background: rgba(255,59,48,0.15); }

.recordings-empty {
  text-align: center; padding: 40px 20px; color: rgba(255,255,255,0.15);
}
.recordings-empty .icon { font-size: 36px; margin-bottom: 12px; }
.recordings-empty .msg { font-size: 13px; font-weight: 600; }
.recordings-empty .sub { font-size: 11px; margin-top: 6px; color: rgba(255,255,255,0.1); }

/* Recordings nav button badge */
.rec-count-badge {
  display: none; width: 16px; height: 16px; border-radius: 8px;
  background: #ff3b30; color: #fff; font-size: 9px; font-weight: 800;
  align-items: center; justify-content: center; margin-left: 4px;
}
.rec-count-badge.show { display: inline-flex; }

/* Toast notification */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  padding: 12px 20px; border-radius: 12px; z-index: 60;
  background: rgba(30,30,35,0.95); border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px); color: #fafafa;
  font-size: 12px; font-weight: 600; font-family: var(--font);
  display: none; align-items: center; gap: 8px;
  animation: toastIn 0.4s var(--ease);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.visible { display: flex; }
.toast.error { border-color: rgba(255,59,48,0.3); }
.toast.success { border-color: rgba(34,197,94,0.3); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes lp { 0%,100%{opacity:0.6} 50%{opacity:1} }
