/* ========== FULL-PAGE MUSIC PLAYER ========== */
.music-fullpage-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #0a0a0a;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.music-fullpage-overlay.show { transform: translateY(0); }

/* Blurred background art */
.mfp-bg-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(60px) brightness(0.35) saturate(1.4);
  transform: scale(1.15);
  z-index: 0;
  transition: background-image 0.4s ease;
}

/* Dark gradient overlay so text reads cleanly */
.mfp-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.7) 75%, rgba(0,0,0,0.95) 100%);
  z-index: 1;
}

/* All content sits above the blur */
.mfp-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 0 1.5rem 2rem 1.5rem;
  overflow: hidden;
}

/* Top bar */
.mfp-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 0 1.2rem 0;
}
.mfp-back-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.mfp-back-btn:active { background: rgba(255,255,255,0.22); }
.mfp-topbar-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.mfp-menu-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.mfp-menu-btn:active { background: rgba(255,255,255,0.22); }

/* ── Network quality badge (player topbar) ───────────────── */
#rupiaNetBadge {
  display: none; /* guests never see it — shown only when logged in (see below) */
  align-items: center;
  gap: 0.22rem;
  padding: 0.18rem 0.5rem;
  border-radius: 2rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  pointer-events: none;
  transition: background 0.4s, color 0.4s, border-color 0.4s, opacity 0.4s;
  opacity: 0; /* hidden until first measurement */
}
html.rupia-logged-in #rupiaNetBadge { display: inline-flex; }
#rupiaNetBadge.net-good {
  background: rgba(0,179,65,0.15);
  border: 1px solid rgba(0,179,65,0.4);
  color: #6ee89a;
  opacity: 1;
}
#rupiaNetBadge.net-degraded {
  background: rgba(255,160,0,0.15);
  border: 1px solid rgba(255,160,0,0.4);
  color: #ffc94d;
  opacity: 1;
}
#rupiaNetBadge.net-poor {
  background: rgba(220,60,50,0.15);
  border: 1px solid rgba(220,60,50,0.4);
  color: #ff7c72;
  opacity: 1;
}
#rupiaNetBadge .net-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Album art — vinyl disc */
.mfp-art-wrap {
  width: min(72vw, 300px);
  height: min(72vw, 300px);
  border-radius: 50%;
  overflow: visible;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 4px 16px rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin: 0.5rem 0 2rem 0;
  position: relative;
  /* spin when playing */
  animation: none;
}
.mfp-art-wrap.playing {
  animation: mfpSpin 8s linear infinite;
}
.mfp-art-wrap.paused {
  animation-play-state: paused;
}
@keyframes mfpSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* The actual disc circle */
.mfp-disc {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

/* Cover image fills disc */
.mfp-disc-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: none;
}
.mfp-disc-img.show { display: block; }

/* Vinyl grooves overlay */
.mfp-disc-grooves {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle at center,
      transparent 0px,
      transparent 6px,
      rgba(0,0,0,0.18) 7px,
      transparent 8px
    );
  pointer-events: none;
  z-index: 2;
}

/* Centre hole label */
.mfp-disc-label {
  position: absolute;
  width: 32%; height: 32%;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B5E4F 0%, #0F3D34 100%);
  display: flex; align-items: center; justify-content: center;
  color: #FFE0A3;
  font-size: 1.5rem;
  z-index: 3;
  box-shadow: 0 0 0 3px rgba(255,224,163,0.2), inset 0 2px 4px rgba(0,0,0,0.4);
}

/* Shine sheen on the disc */
.mfp-disc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0.14) 0%, transparent 60%);
  pointer-events: none;
  z-index: 4;
}

/* Tonearm needle */
.mfp-tonearm {
  position: absolute;
  top: -18px;
  right: -22px;
  width: 56px;
  height: 110px;
  transform-origin: top right;
  transform: rotate(-22deg);
  z-index: 10;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
}
.mfp-art-wrap.playing  .mfp-tonearm { transform: rotate(-6deg); }
.mfp-art-wrap.paused   .mfp-tonearm { transform: rotate(-22deg); }
.mfp-tonearm svg { width: 100%; height: 100%; }

/* ---- Track info overlay INSIDE the album art cover ---- */
/* The art-wrap must allow the overlay to sit outside the spinning disc */
.mfp-art-outer {
  width: min(94vw, 420px);
  flex-shrink: 0;
  margin: 0.5rem 0 1.4rem 0;
  position: relative;
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.75), 0 4px 16px rgba(0,0,0,0.4);
}

/* Square cover image */
.mfp-art-outer .mfp-cover-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  display: none;
  border-radius: 1.6rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mfp-art-outer .mfp-cover-img.show { display: block; }
.mfp-art-outer .mfp-cover-img.show.ready { opacity: 1; }

/* Fallback music icon bg when no cover */
.mfp-art-outer .mfp-cover-fallback {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #1B5E4F, #0F3D34);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFE0A3;
  font-size: 5rem;
  border-radius: 1.6rem;
}
.mfp-art-outer .mfp-cover-fallback.hidden { display: none; }

/* Gradient scrim at the bottom of the cover */
.mfp-art-outer .mfp-cover-scrim {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 52%;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 55%, transparent 100%);
  border-radius: 0 0 1.6rem 1.6rem;
  pointer-events: none;
}

/* Info row pinned to bottom of cover */
.mfp-cover-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 1rem 1rem 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem;
}

.mfp-cover-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* Marquee wrapper — clips the scrolling name */
.mfp-marquee-clip {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* The moving name span */
.mfp-track-name {
  display: inline-block;
  white-space: nowrap;
  font-size: 1.18rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  /* animation applied by JS when text overflows */
}

@keyframes mfpMarquee {
  0%        { transform: translateX(0); }
  12%       { transform: translateX(0); }   /* pause at start */
  88%       { transform: translateX(var(--mfp-scroll-dist, -60%)); }
  100%      { transform: translateX(var(--mfp-scroll-dist, -60%)); } /* pause at end */
}
.mfp-track-name.scrolling {
  animation: mfpMarquee var(--mfp-scroll-dur, 6s) ease-in-out infinite alternate;
}

.mfp-track-artist {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.68);
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.mfp-like-btn {
  background: rgba(0,0,0,0.35);
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.45rem;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s, transform 0.2s, background 0.15s;
  flex-shrink: 0;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.mfp-like-btn.liked { color: #FFE0A3; transform: scale(1.12); background: rgba(255,224,163,0.15); }


/* ---- Account stats row inside cover (above info row) ---- */
.mfp-cover-stats {
  position: absolute;
  top: 0.85rem; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.9rem;
  z-index: 4;
}
.mfp-cover-stats-group {
  display: flex;
  gap: 0.75rem;
}
.mfp-cover-stat-item {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  letter-spacing: 0.2px;
}
.mfp-cover-stat-item i {
  font-size: 0.62rem;
  color: #FFE0A3;
  opacity: 0.9;
}

/* ---- Music logo bar below controls ---- */
.mfp-music-logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.4rem;
  opacity: 0.35;
}
.mfp-music-logo-bar img { width: 20px; height: 20px; border-radius: 5px; display: block; }
.mfp-music-logo-bar i {
  font-size: 1.2rem;
  color: #FFE0A3;
}
.mfp-music-logo-bar span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* Vinyl / spinning disc (kept for when no cover art) */
.mfp-art-wrap {
  width: min(72vw, 300px);
  height: min(72vw, 300px);
  border-radius: 50%;
  overflow: visible;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 4px 16px rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin: 0.5rem 0 2rem 0;
  position: relative;
  animation: none;
}

/* Progress bar */
.mfp-progress-wrap {
  width: 100%;
  margin: 1rem 0 0.3rem 0;
}
.mfp-progress-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  margin-bottom: 0.5rem;
}
.mfp-progress-fill {
  height: 100%;
  background: #FFE0A3;
  border-radius: 2px;
  width: 0%;
  /* no width transition: JS updates every animation frame, a transition would lag behind the song */
  position: relative;
}
.mfp-progress-fill::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px; height: 13px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.15s;
}
.mfp-progress-bar-track:hover .mfp-progress-fill::after,
.mfp-progress-bar-track:active .mfp-progress-fill::after { opacity: 1; }
.mfp-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
}

/* Controls */
.mfp-controls {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
}
.mfp-ctrl-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s, transform 0.1s;
}
.mfp-ctrl-btn:active { transform: scale(0.9); }
.mfp-play-pause-btn {
  background: #FFE0A3;
  border: none;
  color: #0F3D34;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255,224,163,0.4);
  transition: transform 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mfp-play-pause-btn:active { transform: scale(0.93); }

/* EQ visualizer bars when playing */
.mfp-eq-bars {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  margin-top: 0.6rem;
}
.mfp-eq-bars.show { display: flex; }
.mfp-eq-bars span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: #FFE0A3;
  opacity: 0.7;
  animation: mfpPulse 1s ease-in-out infinite;
}
.mfp-eq-bars span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.mfp-eq-bars span:nth-child(2) { height: 16px; animation-delay: 0.18s; }
.mfp-eq-bars span:nth-child(3) { height: 11px; animation-delay: 0.36s; }
.mfp-eq-bars span:nth-child(4) { height: 18px; animation-delay: 0.09s; }
.mfp-eq-bars span:nth-child(5) { height: 9px;  animation-delay: 0.27s; }
@keyframes mfpPulse {
  0%, 100% { transform: scaleY(0.4); }
  50%       { transform: scaleY(1); }
}

/* ========== 30-SECOND PREVIEW PIPE ========== */
.preview-pipe-wrap {
  padding: 0 0 0.5rem 0;
  display: none; /* shown by JS when track is not yet purchased */
}
.preview-pipe-wrap.show { display: block; }
.preview-pipe-label {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.3rem;
}
.preview-pipe-label span {
  font-size: 0.62rem; color: rgba(255,255,255,0.45);
}
.preview-pipe-label strong {
  font-size: 0.68rem; font-weight: 700; color: #FFE0A3;
  letter-spacing: 0.3px;
}
.preview-pipe-track {
  width: 100%; height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden;
}
.preview-pipe-fill {
  height: 100%;
  background: linear-gradient(90deg, #f0a500, #FFE0A3);
  border-radius: 2px;
  width: 100%;
  transition: width 0.25s linear;
}
/* pulse orange when under 10 seconds */
.preview-pipe-fill.urgent {
  background: linear-gradient(90deg, #e05000, #ff7a00);
  animation: _pipeUrgent 0.6s ease-in-out infinite alternate;
}
@keyframes _pipeUrgent {
  from { opacity: 1; }
  to   { opacity: 0.5; }
}
/* ---- Big countdown badge on album art (free preview) ---- */
.mfp-preview-badge {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.72);
  border: 2px solid #f0a500;
  border-radius: 0.7rem;
  padding: 0.35rem 0.6rem 0.3rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.mfp-preview-badge.show { display: flex; }
.mfp-preview-badge.urgent { border-color: #ff4f00; animation: _badgePulse 0.5s ease-in-out infinite alternate; }
@keyframes _badgePulse { from { box-shadow: 0 0 0 0 rgba(255,79,0,0.5); } to { box-shadow: 0 0 0 6px rgba(255,79,0,0); } }
.mfp-preview-badge-label {
  font-size: 0.46rem; font-weight: 700; letter-spacing: 0.8px;
  color: rgba(255,255,255,0.55); text-transform: uppercase; margin-bottom: 0.05rem;
}
.mfp-preview-badge-secs {
  font-size: 1.3rem; font-weight: 900; line-height: 1;
  color: #FFE0A3; font-variant-numeric: tabular-nums;
}
.mfp-preview-badge.urgent .mfp-preview-badge-secs { color: #ff6b30; }
.mfp-preview-badge-sub {
  font-size: 0.44rem; color: rgba(255,255,255,0.45); margin-top: 0.1rem; font-weight: 600;
}
.paywall-backdrop {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(0,0,0,0.7);
  display: none; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(4px);
}
.paywall-backdrop.show { display: flex; }

.paywall-sheet {
  width: 100%; max-width: 480px;
  background: linear-gradient(160deg, #0e2b25 0%, #0a1f1b 100%);
  border-radius: 1.4rem 1.4rem 0 0;
  padding: 0 1.1rem calc(1.4rem + env(safe-area-inset-bottom, 0px)) 1.1rem;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 92dvh;
}
.paywall-sheet::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #FFE0A3, #f0a500, #FFE0A3);
}
.paywall-backdrop.show .paywall-sheet { transform: translateY(0); }

.paywall-handle {
  width: 36px; height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  margin: 0.7rem auto 1rem auto;
}

.paywall-cover-row {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.paywall-thumb {
  width: 50px; height: 50px;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #1B5E4F, #0F3D34);
  display: flex; align-items: center; justify-content: center;
  color: #FFE0A3; font-size: 1.4rem;
  flex-shrink: 0; overflow: hidden;
}
.paywall-thumb img { width: 100%; height: 100%; object-fit: cover; display: none; }
.paywall-thumb img.show { display: block; }
.paywall-thumb img.show + i { display: none; }
.paywall-song-name {
  font-size: 0.88rem; font-weight: 800; color: white;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.paywall-song-artist {
  font-size: 0.68rem; color: rgba(255,255,255,0.55); margin-top: 0.15rem;
}

.paywall-lock-icon {
  text-align: center; font-size: 1.8rem; margin-bottom: 0.3rem;
}
.paywall-title {
  text-align: center; font-size: 1.05rem; font-weight: 800;
  color: white; margin-bottom: 0.2rem;
}
.paywall-subtitle {
  text-align: center; font-size: 0.72rem;
  color: rgba(255,255,255,0.55); margin-bottom: 0.9rem;
  line-height: 1.4;
}

.paywall-price-card {
  background: rgba(255,224,163,0.08);
  border: 1px solid rgba(255,224,163,0.25);
  border-radius: 0.85rem;
  padding: 0.7rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.8rem;
}
.paywall-price-label { font-size: 0.68rem; color: rgba(255,255,255,0.55); }
.paywall-price-amount { font-size: 1.25rem; font-weight: 900; color: #FFE0A3; }
.paywall-price-desc { font-size: 0.62rem; color: rgba(255,255,255,0.4); }
.paywall-price-badge {
  background: #FFE0A3; color: #0F3D34;
  font-size: 0.58rem; font-weight: 800;
  padding: 0.2rem 0.5rem; border-radius: 99px;
  letter-spacing: 0.5px;
}

.paywall-pay-btn {
  width: 100%; padding: 0.75rem;
  background: linear-gradient(135deg, #FFE0A3, #f0a500);
  border: none; border-radius: 0.85rem;
  font-size: 0.92rem; font-weight: 800;
  color: #0F3D34; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: opacity 0.15s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
  margin-bottom: 0.5rem;
}
.paywall-pay-btn:active { opacity: 0.85; transform: scale(0.98); }
.gpay-logo { display: inline-block; vertical-align: middle; }

.paywall-dismiss-btn {
  width: 100%; padding: 0.45rem;
  background: none; border: none;
  color: rgba(255,255,255,0.4); font-size: 0.75rem;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}

/* ── Payment method selector ── */
.paywall-method-title {
  font-size: 0.68rem; font-weight: 700; color: rgba(255,255,255,0.45);
  text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 0.45rem;
}
.paywall-method-row {
  display: flex; gap: 0.5rem; margin-bottom: 0.75rem;
}
.paywall-method-btn {
  flex: 1; padding: 0.55rem 0.4rem;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 0.75rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  cursor: pointer; transition: border-color 0.18s, background 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.paywall-method-btn.active {
  border-color: #FFE0A3;
  background: rgba(255,224,163,0.1);
}
.paywall-method-btn-icon {
  font-size: 1.1rem; line-height: 1;
}
.paywall-method-btn-label {
  font-size: 0.6rem; font-weight: 700; color: rgba(255,255,255,0.7);
  text-align: center;
}
.paywall-method-btn.active .paywall-method-btn-label { color: #FFE0A3; }

/* ── Saved card chip ── */
.paywall-saved-card {
  display: flex; align-items: center; gap: 0.55rem;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,224,163,0.3);
  border-radius: 0.75rem;
  padding: 0.55rem 0.8rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
  transition: border-color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.paywall-saved-card.selected { border-color: #FFE0A3; background: rgba(255,224,163,0.08); }
.paywall-saved-card-icon { font-size: 1.25rem; flex-shrink: 0; }
.paywall-saved-card-info { flex: 1; min-width: 0; }
.paywall-saved-card-number { font-size: 0.78rem; font-weight: 700; color: #fff; }
.paywall-saved-card-exp { font-size: 0.62rem; color: rgba(255,255,255,0.45); margin-top: 0.05rem; }
.paywall-saved-card-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: #FFE0A3;
  transition: background 0.15s, border-color 0.15s;
}
.paywall-saved-card.selected .paywall-saved-card-check {
  background: #FFE0A3; border-color: #FFE0A3; color: #0F3D34;
}

/* ── Card entry form ── */
.paywall-card-form {
  display: none;
  flex-direction: column; gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.paywall-card-form.show { display: flex; }
.paywall-card-input-wrap {
  position: relative;
}
.paywall-card-input {
  width: 100%; padding: 0.6rem 0.8rem 0.6rem 2.3rem;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 0.65rem;
  color: #fff; font-size: 0.82rem;
  outline: none; box-sizing: border-box;
  transition: border-color 0.18s;
  font-family: inherit;
}
.paywall-card-input::placeholder { color: rgba(255,255,255,0.3); }
.paywall-card-input:focus { border-color: #FFE0A3; }
.paywall-card-input-icon {
  position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.35); font-size: 0.85rem; pointer-events: none;
}
.paywall-card-row { display: flex; gap: 0.6rem; }
.paywall-card-row .paywall-card-input-wrap { flex: 1; }
.paywall-save-card-row {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.1rem 0;
}
.paywall-save-toggle {
  width: 36px; height: 20px; border-radius: 99px;
  background: rgba(255,255,255,0.12); border: none;
  position: relative; cursor: pointer; flex-shrink: 0;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.paywall-save-toggle.on { background: #6ee89a; }
.paywall-save-toggle::after {
  content: ''; position: absolute;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px;
  transition: transform 0.2s;
}
.paywall-save-toggle.on::after { transform: translateX(16px); }
.paywall-save-label {
  font-size: 0.72rem; color: rgba(255,255,255,0.6); flex: 1;
}

/* ── New card link ── */
.paywall-new-card-btn {
  background: none; border: none;
  color: rgba(255,224,163,0.7); font-size: 0.72rem;
  cursor: pointer; padding: 0; margin-bottom: 0.8rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
  -webkit-tap-highlight-color: transparent;
}
.paywall-new-card-btn:hover { color: #FFE0A3; }

/* ── Google Pay button centering ── */
#gpayBtnContainer {
  width: 100%;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 48px;
}
#gpayBtnContainer > * {
  margin: 0 auto !important;
  display: block !important;
}
#gpayBtnContainer button,
#gpayBtnContainer [role="button"],
#gpayBtnContainer .gpay-button-fill,
#gpayBtnContainer .gpay-button {
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 340px !important;
}

/* ── Google Pay tap-loading overlay ── */
.gpay-loading-overlay {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  padding: 1.1rem 0 0.5rem;
  animation: _gpayFadeIn 0.18s ease;
}
.gpay-loading-overlay.show { display: flex; }
@keyframes _gpayFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gpay-loading-spinner {
  width: 38px; height: 38px;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: #4285F4;
  border-radius: 50%;
  animation: _gpaySpinAnim 0.75s linear infinite;
}
@keyframes _gpaySpinAnim {
  to { transform: rotate(360deg); }
}
.gpay-loading-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── Creator-earns strip inside paywall ── */
.paywall-creator-earn {
  display: flex; align-items: center; gap: 0.55rem;
  background: linear-gradient(135deg, rgba(0,179,65,0.13) 0%, rgba(0,179,65,0.06) 100%);
  border: 1px solid rgba(0,179,65,0.35);
  border-radius: 0.75rem;
  padding: 0.55rem 0.8rem;
  margin-bottom: 0.75rem;
}
.paywall-creator-earn-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  background: rgba(0,179,65,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: #6ee89a;
}
.paywall-creator-earn-text {
  flex: 1;
  font-size: 0.68rem; line-height: 1.35;
  color: rgba(255,255,255,0.75);
}
.paywall-creator-earn-text strong {
  display: block;
  font-size: 0.75rem; font-weight: 800;
  color: #6ee89a; margin-bottom: 0.05rem;
}

/* ── Earning notification (dollar-sign icon) gets a special green treatment ── */
.notification-item.notif-earning {
  background: linear-gradient(135deg, rgba(0,179,65,0.13) 0%, rgba(0,179,65,0.06) 100%);
  border: 1px solid rgba(0,179,65,0.4);
  border-left: 4px solid #00b341;
  box-shadow: 0 0 18px rgba(0,179,65,0.12);
}
.notification-item.notif-earning .notification-icon {
  background: rgba(0,179,65,0.2);
  color: #6ee89a;
}
.notification-item.notif-earning .notification-title {
  color: #a0f0b8;
}

/* ========== MUSIC COVER PICKER ========== */
.music-cover-picker {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1.5px dashed rgba(255,224,163,0.35);
  border-radius: 1.2rem;
  padding: 0.9rem 1rem;
}

.music-cover-preview {
  width: 72px;
  height: 72px;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(27,94,79,0.6), rgba(15,61,52,0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
  border: 1.5px solid rgba(255,224,163,0.2);
  transition: border-color 0.2s;
  position: relative;
}
.music-cover-preview:hover { border-color: rgba(255,224,163,0.5); }

.music-cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255,224,163,0.6);
  font-size: 0.52rem;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}
.music-cover-placeholder i { font-size: 1.4rem; opacity: 0.7; display: block; margin-bottom: 0.1rem; }

.music-cover-info { flex: 1; min-width: 0; }

.music-cover-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.15rem;
}
.music-cover-sub {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.55rem;
  line-height: 1.4;
}
.music-cover-btn {
  background: rgba(255,224,163,0.15);
  border: 1px solid rgba(255,224,163,0.35);
  color: #FFE0A3;
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.2s;
}
.music-cover-btn:hover { background: rgba(255,224,163,0.28); }

/* Music library full-screen body */
.music-library-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #162f3f;
}

.music-library-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  text-align: center;
}

/* Full-screen library track card */
.music-lib-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 0.75rem 0.85rem;
  transition: background 0.2s;
}
.music-lib-item:hover { background: rgba(255,255,255,0.1); }

.music-lib-item .music-lib-cover {
  width: 54px;
  height: 54px;
  border-radius: 0.75rem;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  background: linear-gradient(135deg,#1B5E4F,#0F3D34);
  display: flex; align-items: center; justify-content: center;
  color: #FFE0A3; font-size: 1.3rem;
}
.music-lib-item .music-lib-cover img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 0.75rem;
}

.music-lib-item .music-lib-info { flex: 1; min-width: 0; }

.music-lib-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.music-lib-artist {
  font-size: 0.7rem;
  color: #FFE0A3;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.9;
}
.music-lib-meta {
  font-size: 0.57rem;
  color: rgba(255,255,255,0.32);
  margin-top: 0.25rem;
}

.music-lib-delete {
  background: none;
  border: none;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.78rem;
  transition: background 0.15s, color 0.15s;
}
.music-lib-delete:hover { background: rgba(220,53,69,0.2); color: #ff6b7a; }

/* ========== HOME FEED — TikTok-style ========== */
.home-feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
  position: relative;
}

/* Floating header overlay on top of the feed */
.home-feed-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.2rem 1rem 0.8rem 1rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

/* ---- User list rows ---- */
.search-section-label {
  font-size: 0.62rem; font-weight: 700; color: rgba(255,255,255,0.3);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.8rem 1rem 0.4rem 1rem;
}

.search-result-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.search-result-item:active { background: rgba(255,255,255,0.04); }

.sri-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #1B5E4F, #0F3D34);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0; color: #FFE0A3;
  font-weight: 700;
}
.sri-avatar.trending-icon {
  background: linear-gradient(135deg, #fe2c55, #7d3caf);
  font-size: 1rem; border-radius: 0.6rem;
}

.sri-info { flex: 1; min-width: 0; }
.sri-name {
  font-size: 0.85rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sri-meta {
  font-size: 0.65rem; color: rgba(255,255,255,0.4); margin-top: 0.1rem;
}

.sri-badge {
  font-size: 0.58rem; font-weight: 700; padding: 0.2rem 0.55rem;
  border-radius: 0.3rem; background: rgba(254,44,85,0.15);
  color: #fe2c55; white-space: nowrap;
}

.search-empty {
  text-align: center; padding: 4rem 1rem;
  color: rgba(255,255,255,0.25); font-size: 0.8rem;
}
.search-empty i { font-size: 2.8rem; display: block; margin-bottom: 0.8rem; opacity: 0.25; }

/* ---- Follow button ---- */
.follow-btn {
  font-size: 0.7rem; font-weight: 700; padding: 0.32rem 0.9rem;
  border-radius: 0.3rem; border: 1.5px solid #fe2c55;
  background: #fe2c55; color: #fff;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.follow-btn.following {
  background: transparent; color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.25);
}
.follow-btn.you-badge {
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.12); cursor: default;
}

/* ---- TikTok video grid ---- */
.svr-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 0;
}

.svr-video-card {
  position: relative;
  aspect-ratio: 9/16;
  background: #1a1a1a;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.svr-video-card:active { opacity: 0.85; }

/* video thumbnail / preview */
.svr-thumb-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* placeholder when no blob */
.svr-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #1c1c1c; color: rgba(255,255,255,0.2);
  font-size: 2rem; gap: 0.4rem;
}
.svr-thumb-placeholder span {
  font-size: 0.6rem; color: rgba(255,255,255,0.18);
}

/* dark gradient at bottom of card */
.svr-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 0.5rem 0.5rem 0.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}
.svr-card-title {
  font-size: 0.65rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}
.svr-card-views {
  font-size: 0.58rem; color: rgba(255,255,255,0.6);
  display: flex; align-items: center; gap: 0.25rem; margin-top: 0.15rem;
}
.svr-card-stats {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.svr-card-stats span {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.6rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.svr-card-stats .stat-sep {
  opacity: 0.35;
  font-size: 0.5rem;
}

/* play icon top-right */
.svr-play-badge {
  position: absolute; top: 0.4rem; left: 0.4rem;
  background: rgba(0,0,0,0.5); border-radius: 0.25rem;
  padding: 0.18rem 0.35rem;
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 0.58rem; color: #fff; font-weight: 600;
}

/* type badge top-right */
.svr-type-badge {
  position: absolute; top: 0.4rem; right: 0.4rem;
  background: #fe2c55; border-radius: 0.25rem;
  padding: 0.14rem 0.32rem;
  font-size: 0.52rem; color: #fff; font-weight: 700;
  text-transform: uppercase;
}

/* ---- TikTok-style full-screen player ---- */
.svp-panel {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 20;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.svp-panel.open { transform: translateX(0); }

/* video fills entire panel */
.svp-video-wrap {
  position: relative;
  flex: 1;
  background: #000;
  overflow: hidden;
}
.svp-video-wrap video {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  /* block right-click save */
  -webkit-touch-callout: none;
  user-select: none;
}

/* top bar over video */
.svp-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, transparent 100%);
  z-index: 5;
}
.svp-back-btn {
  background: none; border: none;
  color: #fff; font-size: 1.1rem;
  cursor: pointer; padding: 0.2rem;
  -webkit-tap-highlight-color: transparent;
}
.svp-title-block { flex: 1; min-width: 0; }
.svp-title {
  font-size: 0.88rem; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.svp-meta { font-size: 0.62rem; color: rgba(255,255,255,0.55); margin-top: 0.1rem; }

/* right sidebar actions (like TikTok) */
.svp-sidebar {
  position: absolute;
  right: 0.7rem; bottom: 5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
  z-index: 5;
}
.svp-action {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  color: #fff; cursor: pointer;
}
.svp-action-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  -webkit-tap-highlight-color: transparent;
}
.svp-action span { font-size: 0.6rem; color: rgba(255,255,255,0.75); }

/* bottom caption bar */
.svp-caption {
  position: absolute;
  bottom: 0; left: 0; right: 60px;
  padding: 2rem 1rem 1.2rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  z-index: 5;
}
.svp-caption-title {
  font-size: 0.82rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem;
}
.svp-caption-desc {
  font-size: 0.7rem; color: rgba(255,255,255,0.75); line-height: 1.4;
}

.home-feed-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFE0A3;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.home-feed-logo i { color: #FFE0A3; font-size: 1.2rem; }

/* ---- Search button (top-right of home feed header) ---- */
.home-search-btn {
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFE0A3;
  font-size: 0.9rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.15s;
  pointer-events: auto;
  flex-shrink: 0;
}
.home-search-btn:active { transform: scale(0.9); background: rgba(255,255,255,0.25); }

/* ---- Search Overlay ---- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  background: rgba(7, 22, 18, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.search-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.search-overlay-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem 0.7rem 1rem;
  padding-top: calc(2.8rem + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.search-input-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,224,163,0.3);
  border-radius: 2rem;
  padding: 0 0.9rem;
  gap: 0.5rem;
  transition: border-color 0.2s;
}
.search-input-wrap:focus-within {
  border-color: rgba(255,224,163,0.7);
}
.search-input-wrap i {
  color: #FFE0A3;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.search-input-wrap input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px; /* Prevents iOS Safari auto-zoom on focus */
  transform: scale(0.92);
  transform-origin: left center;
  font-weight: 500;
  padding: 0.65rem 0;
  caret-color: #FFE0A3;
  width: 100%;
}
.search-input-wrap input::placeholder { color: rgba(255,255,255,0.4); }
.search-clear-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 0.65rem;
  cursor: pointer;
  flex-shrink: 0;
}
.search-clear-btn.show { display: flex; }
.search-cancel-btn {
  background: transparent;
  border: none;
  color: #FFE0A3;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0.1rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.search-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.search-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.65rem 0.5rem;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.search-tab-btn.active {
  color: #FFE0A3;
  border-bottom-color: #FFE0A3;
}
.search-results-area {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  scrollbar-width: none;
}
.search-results-area::-webkit-scrollbar { display: none; }
.search-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0.6rem 0 0.5rem 0;
}
.search-result-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 0.6rem;
  padding-left: 0.3rem;
}
.search-result-row:active { background: rgba(255,255,255,0.06); }
.search-result-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B5E4F, #0F3D34);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #FFE0A3;
  flex-shrink: 0;
  overflow: hidden;
  border: 1.5px solid rgba(255,224,163,0.2);
}
.search-result-avatar img { width: 100%; height: 100%; object-fit: cover; }
.search-result-thumb {
  width: 56px;
  height: 72px;
  border-radius: 0.4rem;
  background: linear-gradient(135deg, #1B5E4F, #0F3D34);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #FFE0A3;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.search-result-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.search-result-thumb .play-icon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.9);
}
.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-name mark {
  background: transparent;
  color: #FFE0A3;
  font-weight: 700;
}
.search-result-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-arrow {
  color: rgba(255,255,255,0.25);
  font-size: 0.7rem;
  flex-shrink: 0;
}
.search-result-music-art {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #1B5E4F, #0F3D34);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #FFE0A3;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,224,163,0.15);
}
.search-result-music-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-result-music-art .smra-icon { font-size: 1.1rem; opacity: 0.7; }
.search-result-music-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFE0A3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-result-music-badge i {
  font-size: 0.42rem;
  color: #0F3D34;
}
.search-result-play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,224,163,0.15);
  border: 1.5px solid rgba(255,224,163,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFE0A3;
  font-size: 0.6rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s;
}
.search-result-play-btn:active { background: rgba(255,224,163,0.3); }
.search-result-sub-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.12rem;
}
.search-result-artist-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.search-result-track-type {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #FFE0A3;
  opacity: 0.7;
}
/* Artist result badge showing track count */
.search-result-track-pill {
  background: rgba(255,224,163,0.1);
  border: 1px solid rgba(255,224,163,0.2);
  border-radius: 2rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(255,224,163,0.8);
  white-space: nowrap;
}

.search-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  gap: 0.5rem;
  color: rgba(255,255,255,0.3);
}
.search-empty-state i { font-size: 2.2rem; margin-bottom: 0.3rem; }
.search-empty-state p { font-size: 0.82rem; font-weight: 500; }
.search-empty-state span { font-size: 0.68rem; text-align: center; }

.reel-card-viewer-username {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
.reel-card-views {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  margin-top: 1px;
}
.reel-card-views i {
  font-size: 0.6rem;
  opacity: 0.85;
}



/* Full-screen snap scroll container */
.home-feed-scroll {
  height: calc(100dvh - var(--nav-h-locked, var(--nav-h, 65px)));
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #000;
  overscroll-behavior: none;
}
.home-feed-scroll::-webkit-scrollbar { display: none; }

/* Empty state — centred inside the scroll area */
.home-feed-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  text-align: center;
}

.home-feed-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 0.8rem;
  filter: grayscale(0.3);
}

.home-feed-empty-title {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.4rem;
}

.home-feed-empty-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.28);
  line-height: 1.5;
}
