/* ============================================================
   App Shell — estilos base compartidos por todas las product apps.
   Cada app define su paleta sobreescribiendo estas variables en su
   propio <style> antes de cargar este archivo (ver index.html).
   ============================================================ */

:root {
  --bg: #0b1424;
  --bg-elevated: #121d33;
  --bg-card: #16223b;
  --border: rgba(201, 162, 39, 0.18);
  --text: #f4f1e8;
  --text-muted: #a9b0c3;
  --accent: #c9a227;
  --accent-2: #f0c75e;
  --accent-contrast: #1a1305;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; }

.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    var(--bg);
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 10px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 18px);
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, var(--bg) 60%, transparent);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn:active { transform: scale(0.92); }

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar .brand img { width: 30px; height: 30px; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.install-pill {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-body);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.install-pill svg { width: 14px; height: 14px; }
.install-pill:hover { filter: brightness(1.1); }
.install-pill:active { transform: scale(0.95); }

.topbar .brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.topbar .brand span em {
  display: block;
  font-style: normal;
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 600;
}

/* ---------- Screens ---------- */
.screen {
  flex: 1;
  padding: 4px 20px calc(100px + var(--safe-bottom));
  display: none;
  animation: fade-in 0.25s ease;
}
.screen.active { display: block; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 28px 0 14px;
}
.section-label::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-contrast);
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent);
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 10px 28px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-ghost:active { transform: scale(0.98); }

.link-skip {
  display: block;
  width: 100%;
  background: none;
  border: none;
  appearance: none;
  text-align: center;
  color: var(--text-muted);
  text-decoration: underline;
  font-size: 0.85rem;
  padding: 14px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.link-skip:hover { color: var(--text); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.bonus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  padding: 0;
  position: relative;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.bonus-card:hover { border-color: var(--accent); }
.bonus-card:active { transform: scale(0.98); }
.bonus-card .thumb {
  width: 100%;
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  position: relative;
}
.bonus-card .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85));
}
.bonus-card .thumb .tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 1;
}
.bonus-card .label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
  z-index: 1;
}
.bonus-card .label small {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.7rem;
  margin-top: 2px;
}

/* ---------- Upgrade / cross-promo cards ---------- */
.upgrade-card {
  display: flex;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  align-items: center;
  margin-bottom: 12px;
}
.upgrade-card .thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.upgrade-card .info { flex: 1; min-width: 0; }
.upgrade-card .info .badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 6px;
}
.upgrade-card .info h4 { margin: 0 0 4px; font-size: 0.95rem; }
.upgrade-card .info p { margin: 0 0 10px; font-size: 0.78rem; color: var(--text-muted); line-height: 1.35; }
.upgrade-card .info a {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-contrast);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
}

/* ---------- Premium upgrades grid (cross-sell other catalog products) ---------- */
.promo-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.promo-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  position: relative;
}
.promo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.promo-body { padding: 14px; }
.promo-body h4 { margin: 0 0 6px; font-size: 1rem; font-family: var(--font-heading); }
.promo-body p { margin: 0 0 14px; font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
.promo-cta {
  display: block;
  text-align: center;
  padding: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-contrast);
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
}

/* ---------- Player ---------- */
.player-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1/1;
  margin-top: 10px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 25%, var(--bg-elevated)), var(--bg) 75%);
}
.player-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.player-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player-hero .center-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: transparent;
  border: none;
  cursor: pointer;
}
.player-hero .center-play svg {
  width: 68px;
  height: 68px;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.5));
  transition: transform 0.15s ease;
}
.player-hero .center-play:hover svg { transform: scale(1.08); }
.player-hero .center-play:active svg { transform: scale(0.92); }

.track-meta { text-align: center; margin-top: 18px; }
.track-meta .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.track-meta h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin: 6px 0 2px;
}
.track-meta .sub { color: var(--text-muted); font-size: 0.85rem; }

.scrubber {
  margin: 20px 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.scrubber input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  outline: none;
}
.scrubber input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent);
}
.scrubber .time { font-size: 0.75rem; color: var(--text-muted); min-width: 36px; text-align: center; }

.transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 8px 0 6px;
}
.transport button {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  opacity: 0.85;
}
.transport button.play-pause {
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  opacity: 1;
}
.transport button svg { width: 22px; height: 22px; }
.transport button.play-pause svg { width: 26px; height: 26px; }

.benefits-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.benefits-row .item { text-align: center; }
.benefits-row .item .icon { font-size: 1.4rem; margin-bottom: 6px; }
.benefits-row .item .label { font-size: 0.72rem; color: var(--text-muted); line-height: 1.25; }

.tagline-bar {
  margin-top: 24px;
  text-align: center;
  padding: 14px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: space-around;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 10px 6px calc(10px + var(--safe-bottom));
  z-index: 30;
}
.nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: var(--accent); }

/* ---------- Quiz ---------- */
.progress-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 8px 0 22px;
}
.progress-dots span {
  height: 4px;
  flex: 1;
  max-width: 32px;
  border-radius: 999px;
  background: var(--border);
}
.progress-dots span.done { background: var(--accent); }

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px;
  margin-bottom: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}
.quiz-option .emoji { font-size: 1.4rem; }
.quiz-option .txt strong { display: block; font-size: 0.9rem; }
.quiz-option .txt span { font-size: 0.75rem; color: var(--text-muted); }
.quiz-option:hover { border-color: var(--accent); }
.quiz-option:active { transform: scale(0.98); }
.quiz-option.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg-card)); }

/* ---------- Archetype result ---------- */
.archetype-badge {
  text-align: center;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}
.archetype-badge .icon { font-size: 2.4rem; margin-bottom: 8px; }
.archetype-badge h3 { font-family: var(--font-heading); font-size: 1.5rem; margin: 0 0 4px; color: var(--accent); }
.archetype-badge .traits { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }
.archetype-badge p { font-size: 0.85rem; line-height: 1.5; margin: 0; }

.bar-row { margin-bottom: 12px; }
.bar-row .top { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 5px; }
.bar-row .track { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.bar-row .fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.stat-grid .stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 6px;
  text-align: center;
}
.stat-grid .stat .val { font-size: 1.1rem; font-weight: 800; color: var(--accent); }
.stat-grid .stat .lbl { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }

/* ---------- Guide reader ---------- */
.guide-page {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.guide-page .icon { font-size: 2rem; margin-bottom: 14px; }
.guide-page h3 { font-family: var(--font-heading); font-size: 1.35rem; margin: 0 0 12px; }
.guide-page p { font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); margin: 0 0 10px; }
.guide-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.guide-nav button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
}
.guide-nav button:disabled { opacity: 0.3; cursor: default; }
.guide-nav .pagenum { font-size: 0.75rem; color: var(--text-muted); }

/* ---------- Home hero (softer welcome block) ---------- */
.home-hero {
  border-radius: var(--radius-lg);
  padding: 26px 20px 22px;
  margin: 10px 0 4px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
}
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 65%),
    linear-gradient(180deg, rgba(6, 8, 20, 0.35) 0%, rgba(6, 8, 20, 0.55) 55%, var(--bg-card) 100%);
}
.home-hero > * { position: relative; z-index: 1; }
.home-hero .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.home-hero h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 10px 0 6px;
}
.home-hero p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

/* ---------- Quick access custom icons ---------- */
.qa-icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

/* ---------- Progress summary card ---------- */
.progress-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 16px 14px;
  margin: 10px 0 4px;
}
.progress-card .top-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.progress-card .top-row strong { font-size: 0.92rem; }
.progress-card .top-row span { font-size: 0.72rem; color: var(--text-muted); }
.progress-card .btn-primary { margin-top: 12px; padding: 11px; font-size: 0.85rem; }
.progress-card .continue-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.progress-card .continue-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
}
.progress-card .streak-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.progress-card .streak-badge { font-size: 0.85rem; font-weight: 800; color: var(--text); }
.progress-card .streak-best { font-size: 0.72rem; color: var(--text-muted); }
.progress-card .streak-message { font-size: 0.76rem; color: var(--text-muted); margin: 6px 0 0; line-height: 1.4; }

/* ---------- Protocol checklist ---------- */
.protocol-slot { cursor: pointer; }
.protocol-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
}
.protocol-slot.done .protocol-check {
  background: var(--accent);
  border-color: var(--accent);
}
.protocol-check svg { width: 12px; height: 12px; color: var(--accent-contrast); display: none; }
.protocol-slot.done .protocol-check svg { display: block; }
.protocol-slot.done .slot-session { color: var(--text-muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text-muted) 60%, transparent); }

/* ---------- Category hero banner ---------- */
.category-hero {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  margin: 10px 0 4px;
  position: relative;
}
.category-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 40%, var(--bg) 100%);
}

/* ---------- Wave bands (grouped track lists) ---------- */
.wave-band { margin-bottom: 8px; }
.wave-band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 22px 0 4px;
}
.wave-band-head h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin: 0;
  color: var(--text);
}
.wave-band-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.4;
}

/* ---------- Protocol day card (21-day guide) ---------- */
.protocol-day-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-contrast);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.protocol-slot {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.protocol-slot:first-of-type { border-top: none; }
.protocol-slot .slot-icon { font-size: 1.3rem; line-height: 1; }
.protocol-slot .slot-body .slot-label {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 3px;
}
.protocol-slot .slot-body .slot-session { font-size: 0.92rem; font-weight: 600; }

/* ---------- List rows (audio library) ---------- */
.track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.track-row:hover { border-color: var(--accent); }
.track-row:active { transform: scale(0.985); }
.track-row .play-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.track-row .play-dot svg { width: 16px; height: 16px; }
.track-row .track-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.track-row .track-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}
.track-row .track-thumb .thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 1;
}
.track-row .track-thumb .thumb-play svg {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}
.track-row .info { flex: 1; min-width: 0; }
.track-row .info strong { display: block; font-size: 0.88rem; }
.track-row .info span { font-size: 0.72rem; color: var(--text-muted); }
.track-row.playing { border-color: var(--accent); }

/* ---------- Install banner ---------- */
.install-banner {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 448px;
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 40;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6);
}
.install-banner p { flex: 1; margin: 0; font-size: 0.78rem; line-height: 1.3; }
.install-banner button.install-cta {
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
}
.install-banner button.dismiss {
  background: none; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; padding: 0 4px;
}

.empty-note { color: var(--text-muted); font-size: 0.82rem; text-align: center; padding: 30px 10px; }

/* ---------- Access gate ---------- */
.gate-input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
}
.gate-input::placeholder { color: var(--text-muted); }
