/* TrueVideo Music Showcase — Explore Styles */
/* Aesthetic: Cinematic luxury-tech, neon glow on deep dark */

/* ========== BASE ========== */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-elevated: #222222;
  --gradient-primary: linear-gradient(45deg, #22c55e, #fbbf24);
  --accent-lime: #22c55e;
  --accent-yellow: #fbbf24;
  --accent-orange: #fbbf24;
  --accent-green: #22c55e;
  --glow-lime: rgba(34, 197, 94, 0.3);
  --glow-yellow: rgba(251, 191, 36, 0.2);
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --danger: #ef4444;
  --purple-promo: #8b5cf6;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(34, 197, 94, 0.2);
  --surface-glass: rgba(255, 255, 255, 0.03);
}

/* Noise overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Scroll padding for sticky header */
html { scroll-padding-top: 80px; }

a { color: inherit; text-decoration: none; }

/* ========== PROMO BANNER ========== */
.promo-banner {
  background: linear-gradient(135deg, var(--purple-promo), #6d28d9);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s ease;
}
.promo-inner { display: flex; align-items: center; gap: 12px; }
.promo-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.promo-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 4px;
  margin-left: 12px;
  transition: color 0.2s;
}
.promo-close:hover { color: #fff; }

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-img { height: 72px; width: auto; }
.logo-sub {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 18px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-desktop {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text-primary); background: var(--surface-glass); }
.nav-link.active { color: var(--accent-lime); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-icon:hover { color: var(--text-primary); border-color: var(--border-accent); }

.nsfw-toggle.active {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

.lang-switcher { display: flex; gap: 2px; }
.lang-btn {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn.active { color: var(--accent-lime); background: rgba(184, 230, 54, 0.1); }
.lang-btn:hover { color: var(--text-primary); }

.btn-primary {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  background: var(--gradient-primary);
  color: #0a0a0a;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s ease;
}
.btn-primary:hover::after { left: 100%; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--glow-lime); }

.btn-outline {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 10px;
  border: 1px solid var(--border-accent);
  background: transparent;
  color: var(--accent-lime);
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: var(--gradient-primary);
  color: #0a0a0a;
  border-color: transparent;
}

.burger-btn { display: none; }

@media (max-width: 768px) {
  .nav-desktop, .btn-create, .btn-signin, .search-btn, .nsfw-toggle, .lang-switcher { display: none; }
  .burger-btn { display: flex; order: 99; margin-left: auto; }
  .header-inner { padding: 0 16px; }
  .header-actions { margin-left: auto; }
}

/* ========== MOBILE NAV ========== */
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  opacity: 0; visibility: hidden;
  transition: all 0.3s;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed;
  top: 0; right: -80vw;
  width: 80vw; max-width: 360px;
  height: 100dvh;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(24px);
  z-index: 201;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.mobile-nav-logo {
  height: 44px;
  width: auto;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-nav-link {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--accent-lime); }
.mobile-nav-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-nav-divider { height: 1px; background: var(--border-subtle); margin: 12px 0; }
.mobile-cta { width: 100%; justify-content: center; margin-top: 8px; }
.mobile-signin { width: 100%; text-align: center; margin-top: 8px; }
.mobile-lang { display: flex; gap: 8px; margin-top: 16px; justify-content: center; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5) saturate(1.2);
}
.hero-glow {
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-lime), transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 12px;
}
.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 8px;
  max-width: 600px;
}
.hero-author {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.hero-stats {
  display: flex; gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero-stats span { display: flex; align-items: center; gap: 4px; }
.hero-stats svg { opacity: 0.6; }
.hero-play { font-size: 16px; padding: 14px 32px; }

@media (max-width: 768px) {
  .hero { min-height: 340px; }
  .hero-inner { padding: 2rem 1rem 1.5rem; }
  .hero-play { width: 100%; justify-content: center; }
}

/* ========== SECTIONS ========== */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
}
.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* Scroll fade-in animation */
.section-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FILTER TABS ========== */
.filter-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.filter-tab:hover { color: var(--text-primary); border-color: var(--border-accent); }
.filter-tab.active {
  background: var(--gradient-primary);
  color: #0a0a0a;
  border-color: transparent;
  font-weight: 600;
}

/* ========== TRACK GRID ========== */
.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

@media (min-width: 1024px) { .track-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 768px) and (max-width: 1023px) { .track-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 479px) { .track-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.track-card {
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
  contain: layout style paint;
  animation: fadeInCard 0.5s ease forwards;
  opacity: 0;
}
@keyframes fadeInCard {
  to { opacity: 1; }
}
.track-card:hover {
  transform: scale(1.02);
  border-color: var(--border-accent);
}
/* Glow pseudo-element */
.track-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  background: var(--gradient-primary);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
}
.track-card:hover::before { opacity: 0.15; }
.track-card { position: relative; }

.track-card.is-playing {
  border-color: var(--accent-lime);
}
.track-card.is-playing .track-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(184, 230, 54, 0.1);
}

.track-cover {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.track-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.25s;
  color: #fff;
}
.track-card:hover .track-play-overlay,
.fresh-card:hover .track-play-overlay { opacity: 1; }

.nsfw-blur { filter: blur(16px) brightness(0.6); }
.nsfw-badge {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--danger);
  color: #fff;
  z-index: 2;
}
.track-genre-badge {
  position: absolute;
  bottom: 8px; left: 8px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.7);
  z-index: 2;
}

.track-info { padding: 12px; }
.track-title {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-author {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  cursor: pointer;
}
.track-author:hover { color: var(--accent-lime); }
.track-stats {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
}
.track-stats span { display: flex; align-items: center; gap: 3px; }

.show-more-wrap { text-align: center; margin-top: 28px; }
.show-more-btn { padding: 12px 40px; }

/* ========== HORIZONTAL SCROLL ========== */
.hscroll-container { position: relative; }
.hscroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex-shrink: 0; }

/* ========== CREATORS ========== */
.creator-card {
  width: 320px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.creator-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(34,197,94,0.15);
}
@media (max-width: 640px) {
  .creator-card { width: 280px; }
}
.creator-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.creator-head-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.creator-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  user-select: none;
}
.creator-avatar.small {
  font-size: 16px;
}
.creator-avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--gradient-primary);
  z-index: -1;
}
.creator-name {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.creator-stats {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.creator-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--gradient-primary);
  color: #0a0a0a;
  display: inline-block;
  align-self: flex-start;
}

/* ===== Creator Hit of the Week ===== */
.creator-hit {
  position: relative;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color .2s, background .2s;
  overflow: hidden;
}
.creator-card:hover .creator-hit {
  border-color: rgba(251,191,36,0.25);
  background: rgba(251,191,36,0.04);
}
.creator-hit-eyebrow {
  font-family: 'JetBrains Mono','SF Mono',Menlo,monospace;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(251,191,36,0.85);
  margin-bottom: 8px;
}
.creator-hit-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.creator-hit-cover {
  width: 52px; height: 52px;
  border-radius: 10px;
  background-size: cover; background-position: center;
  background-color: rgba(255,255,255,0.05);
  position: relative; overflow: hidden;
  cursor: pointer;
}
.creator-hit-cover::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0; transition: opacity .2s;
}
.creator-hit-cover:hover::after { opacity: 1; }
.creator-hit-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
  z-index: 2;
  color: #fff;
}
.creator-hit-cover:hover .creator-hit-play { opacity: 1; }
.creator-hit-play svg { width: 22px; height: 22px; }
.creator-hit-info {
  min-width: 0; display: flex; flex-direction: column; gap: 3px;
}
.creator-hit-title {
  font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.creator-hit-stats {
  display: inline-flex; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
  color: rgba(245,245,245,0.55);
}
.creator-hit-stats span {
  display: inline-flex; align-items: center; gap: 4px;
}
.creator-hit-stats svg { opacity: 0.7; }
.creator-hit-playbtn {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #fbbf24);
  border: none; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #0a0906;
  box-shadow: 0 4px 12px rgba(34,197,94,0.3);
  transition: transform .15s, box-shadow .15s;
}
.creator-hit-playbtn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(34,197,94,0.5);
}
.creator-hit-playbtn svg { width: 16px; height: 16px; margin-left: 2px; }

/* ========== FRESH RELEASES ========== */
.hscroll-large > * { width: 220px; }
.fresh-card {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}
.fresh-card:hover { transform: scale(1.03); }
.fresh-cover {
  aspect-ratio: 1;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.fresh-title {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fresh-author {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ========== GENRES ========== */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 768px) { .genre-grid { grid-template-columns: repeat(2, 1fr); } }

.genre-tile {
  aspect-ratio: 2/1;
  border-radius: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.genre-tile:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px var(--glow-lime);
}
.genre-name {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

/* ========== TOP LIST ========== */
.top-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.top-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.top-item:hover { background: var(--bg-secondary); }
.top-number {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}
.top-item:nth-child(1) .top-number { color: var(--accent-lime); }
.top-item:nth-child(2) .top-number { color: var(--accent-yellow); }
.top-item:nth-child(3) .top-number { color: var(--accent-orange); }
.top-cover {
  width: 48px; height: 48px;
  border-radius: 8px;
  flex-shrink: 0;
}
.top-info { flex: 1; min-width: 0; }
.top-title {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-author {
  font-size: 12px;
  color: var(--text-secondary);
}
.top-stats {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.top-play-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--surface-glass);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.top-play-btn:hover {
  background: var(--gradient-primary);
  color: #0a0a0a;
}

@media (max-width: 480px) {
  .top-stats { display: none; }
  .top-item { padding: 10px 8px; gap: 10px; }
}

/* ========== RADIO ========== */
.radio-section {
  background:
    radial-gradient(ellipse 50% 60% at 30% 50%, var(--glow-lime), transparent),
    radial-gradient(ellipse 40% 50% at 70% 40%, var(--glow-yellow), transparent),
    var(--bg-secondary);
  border-radius: 20px;
  margin: 48px 24px;
  max-width: 1400px;
  padding: 0;
}
@media (min-width: 1448px) { .radio-section { margin: 48px auto; } }
.radio-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 48px;
}
@media (max-width: 768px) {
  .radio-inner { flex-direction: column; text-align: center; padding: 32px 20px; gap: 24px; }
}
.radio-visual { flex-shrink: 0; }
.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 64px;
}
.eq-bar {
  width: 6px;
  border-radius: 3px;
  background: var(--gradient-primary);
  animation: eqBounce 1s ease-in-out infinite;
}
.eq-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.eq-bar:nth-child(2) { height: 40px; animation-delay: 0.1s; }
.eq-bar:nth-child(3) { height: 28px; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 56px; animation-delay: 0.15s; }
.eq-bar:nth-child(5) { height: 36px; animation-delay: 0.25s; }
.eq-bar:nth-child(6) { height: 48px; animation-delay: 0.05s; }
.eq-bar:nth-child(7) { height: 24px; animation-delay: 0.3s; }
.eq-bar:nth-child(8) { height: 44px; animation-delay: 0.12s; }
.eq-bar:nth-child(9) { height: 32px; animation-delay: 0.22s; }

@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.radio-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.radio-play { font-size: 16px; padding: 14px 36px; }

/* ========== NEW AUTHORS ========== */
.new-authors-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.new-author-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.new-author-card:hover { background: var(--bg-secondary); }
.creator-avatar.small { width: 40px; height: 40px; }
.new-author-info { flex: 1; }
.new-author-name {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.new-author-tracks {
  font-size: 12px;
  color: var(--text-muted);
}
.new-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--gradient-primary);
  color: #0a0a0a;
}

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 24px 32px;
  margin-top: 24px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.footer-logo { flex-shrink: 0; }
.footer-logo img { height: 28px; width: auto; opacity: 0.5; }
.footer-links {
  display: flex;
  gap: 24px;
  flex: 1;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--accent-lime); }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
}

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .footer-social { justify-content: center; }
}

/* ========== MODALS ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s;
}
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--surface-glass);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(239,68,68,0.2); color: var(--danger); }

/* Auth modal */
.auth-icon { margin-bottom: 16px; }
.auth-title {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.auth-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.auth-btn { width: 100%; justify-content: center; padding: 14px; font-size: 15px; display: flex; }
.auth-alt { font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.auth-alt a { color: var(--accent-lime); font-weight: 500; }
.auth-alt a:hover { text-decoration: underline; }

/* NSFW modal */
.nsfw-icon { font-size: 48px; margin-bottom: 16px; }
.nsfw-modal p { font-size: 15px; margin-bottom: 24px; color: var(--text-secondary); }
.nsfw-actions { display: flex; gap: 12px; justify-content: center; }
.nsfw-actions .btn-primary { flex: 1; justify-content: center; }
.nsfw-actions .btn-outline { flex: 1; }

@media (max-width: 480px) {
  .modal-content { padding: 32px 24px; border-radius: 16px; }
}

/* Player visible body padding */
body.player-visible { padding-bottom: 88px; }
@media (max-width: 768px) { body.player-visible { padding-bottom: 72px; } }

/* ========== Skeleton Loading ========== */
.track-card.skeleton {
  pointer-events: none;
}
.track-card.skeleton .skeleton-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--bg-tertiary);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: var(--bg-tertiary);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  margin-top: 8px;
}
.skeleton-line.short {
  width: 60%;
  height: 11px;
  margin-top: 6px;
}
@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* Genre count badge */
.genre-count {
  display: inline-block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Data source indicator (dev) */
.data-source-badge {
  position: fixed;
  bottom: 100px;
  right: 16px;
  z-index: 200;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0.5;
}
.data-source-badge.api { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.data-source-badge.mock { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }

/* ========== LIKE BUTTON ========== */
/* Like button on track card */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  font-family: inherit;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
}
.like-btn:hover {
  color: var(--danger, #ef4444);
  background: rgba(239, 68, 68, 0.1);
  transform: scale(1.08);
}
.like-btn.liked {
  color: var(--danger, #ef4444);
}
.like-btn.liked svg {
  fill: var(--danger, #ef4444);
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.5));
}
.like-btn svg {
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.like-btn:active svg {
  transform: scale(1.3);
}
.like-count {
  font-size: 12px;
  font-weight: 500;
}

/* Comment button on track card */
.comment-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  font-family: inherit;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
}
.comment-btn:hover {
  color: var(--accent-lime, #22c55e);
  background: rgba(34, 197, 94, 0.1);
  transform: scale(1.08);
}
.comment-btn svg {
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.comment-btn:active svg {
  transform: scale(1.2);
}
.comment-count {
  font-size: 12px;
  font-weight: 500;
}

/* Player social buttons (like & comment in global player) */
.player-social {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.player-like-btn,
.player-comment-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary, #a0a0a0);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.player-like-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger, #ef4444);
  transform: scale(1.1);
}
.player-like-btn.liked {
  color: var(--danger, #ef4444);
  background: rgba(239, 68, 68, 0.15);
}
.player-like-btn.liked svg {
  fill: currentColor;
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.5));
}
.player-comment-btn:hover {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent-lime, #22c55e);
  transform: scale(1.1);
}
@media (max-width: 480px) {
  .player-social {
    gap: 2px;
  }
  .player-like-btn,
  .player-comment-btn {
    width: 28px;
    height: 28px;
  }
  .player-like-btn svg,
  .player-comment-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* Comments overlay */
.comments-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.comments-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* Comments panel (bottom sheet) */
.comments-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 65vh;
  background: var(--bg-secondary, #111);
  border-radius: 20px 20px 0 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}
.comments-panel.visible {
  transform: translateY(0);
}

.comments-panel-header {
  padding: 12px 20px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.comments-panel-drag {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 0 auto 12px;
}
.comments-panel-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comments-panel-title-row h3 {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #f5f5f5);
  margin: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comments-panel-count {
  font-size: 13px;
  color: var(--text-muted, #666);
  flex-shrink: 0;
}
.comments-panel-close {
  background: none;
  border: none;
  color: var(--text-muted, #666);
  font-size: 24px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}
.comments-panel-close:hover {
  color: var(--text-primary, #f5f5f5);
}

/* Comments list */
.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  min-height: 100px;
}
.comments-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted, #666);
  font-size: 14px;
}
.comments-loading {
  text-align: center;
  padding: 2rem;
}
.comments-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent-lime, #22c55e);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Comment item */
.comment-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: opacity 0.2s, transform 0.2s;
}
.comment-item:last-child {
  border-bottom: none;
}
.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.comment-body {
  flex: 1;
  min-width: 0;
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.comment-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #f5f5f5);
}
.comment-time {
  font-size: 11px;
  color: var(--text-muted, #666);
}
.comment-delete-btn {
  background: none;
  border: none;
  color: var(--text-muted, #666);
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}
.comment-item:hover .comment-delete-btn {
  opacity: 1;
}
.comment-delete-btn:hover {
  color: var(--danger, #ef4444);
}
.comment-text {
  font-size: 13px;
  color: var(--text-secondary, #a0a0a0);
  line-height: 1.4;
  word-break: break-word;
}

/* Comments input */
.comments-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  /* Offset for global player */
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.comments-input-wrap input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 10px 16px;
  color: var(--text-primary, #f5f5f5);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.comments-input-wrap input:focus {
  border-color: var(--accent-lime, #22c55e);
}
.comments-input-wrap input::placeholder {
  color: var(--text-muted, #666);
}
.comments-input-wrap button {
  background: var(--accent-lime, #22c55e);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #000;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.comments-input-wrap button:hover {
  transform: scale(1.05);
}
.comments-input-wrap button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Auth message for comments */
.comments-auth-msg {
  text-align: center;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--text-muted, #666);
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

/* ============================================
   Threaded replies + emoji picker + reply banner
   ============================================ */

/* Thread container — wraps top-level + its replies */
.comment-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-thread + .comment-thread {
  margin-top: 6px;
}

/* Replies container — indented under parent */
.comment-replies {
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comment-replies:empty {
  display: none;
}

/* Reply buttons on every comment */
.comment-reply-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  transition: background 0.15s, color 0.15s;
}
.comment-reply-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #22c55e;
}
.comment-reply-btn svg {
  opacity: 0.75;
}

/* @mention pill inside reply text */
.reply-mention {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 600;
  margin-right: 4px;
}

/* Emoji picker row — above input, horizontal scroll */
.comments-emoji-row {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}
.comments-emoji-row::-webkit-scrollbar {
  height: 4px;
}
.comments-emoji-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}
.emoji-chip {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  padding: 0;
}
.emoji-chip:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
  transform: translateY(-1px) scale(1.08);
}
.emoji-chip:active {
  transform: scale(0.95);
}

/* Reply target banner — sits between emoji row and input */
.comments-reply-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(34, 197, 94, 0.08);
  border-top: 1px solid rgba(34, 197, 94, 0.2);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
}
.comments-reply-banner svg {
  color: #22c55e;
  flex-shrink: 0;
}
.reply-banner-label {
  color: rgba(255, 255, 255, 0.5);
}
.reply-target-name {
  color: #22c55e;
  font-weight: 600;
}
.reply-cancel {
  margin-left: auto;
  background: none;
  border: none;
  color: #fbbf24;
  cursor: pointer;
  font-size: 0.78rem;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.reply-cancel:hover {
  background: rgba(251, 191, 36, 0.1);
  color: #fff;
}

@media (max-width: 480px) {
  .comment-replies {
    padding-left: 32px;
  }
  .emoji-chip {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
  .comments-emoji-row {
    padding: 8px 12px;
  }
}

/* Mobile adjustments for comments panel */
@media (min-width: 768px) {
  .comments-panel {
    max-width: 560px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border-radius: 20px 20px 0 0;
  }
  .comments-panel.visible {
    transform: translateX(-50%) translateY(0);
  }
}

/* Pending comment badge — видит только автор для своего pending коммента */
.comment-pending-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 600;
  margin-left: 6px;
  vertical-align: middle;
}
.comment-item.is-pending .comment-text {
  opacity: 0.75;
  font-style: italic;
}
