@font-face {
  font-family: 'AntbeatzBrand';
  src: url('/assets/Pink_Blue.ttf') format('truetype');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07070a;
  --bg-elevated: #0f0f15;
  --bg-card: #15151e;
  --bg-glass: rgba(20, 20, 29, 0.72);
  --bg-hover: #1c1c28;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --text: #f6f6fa;
  --text-muted: #a0a0b8;
  --text-dim: #6e6e86;
  --accent: #f5b800;
  --accent-hover: #d99b00;
  --accent-highlight: #fde047;
  --accent-ink: #0a0a0c;
  --accent-glow: rgba(245, 184, 0, 0.3);
  --violet: #7c3aed;
  --violet-glow: rgba(124, 58, 237, 0.2);
  --success: #22c55e;
  --warning: #f59e0b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --player-height: 84px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Syne', 'Inter', sans-serif;
  --font-brand: 'AntbeatzBrand', 'Syne', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(245, 184, 0, 0.11), transparent 65%),
    radial-gradient(ellipse 55% 35% at 85% 15%, rgba(217, 155, 0, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  padding-bottom: 0;
  transition: padding-bottom 0.25s ease;
}

body.has-player {
  padding-bottom: calc(var(--player-height) + 28px);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.18s ease,
              border-color 0.18s ease,
              box-shadow 0.18s ease;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-highlight), var(--accent) 45%, var(--accent-hover));
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: 0 8px 22px -6px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #fef08a, var(--accent-highlight) 45%, var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--specular);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.84rem;
  font-family: var(--font-mono);
  font-weight: 600;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 0.96rem;
}

.btn-full {
  width: 100%;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.icon-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.icon-btn.favorited {
  color: var(--accent);
}

.icon-btn.favorited svg {
  fill: var(--accent);
}

/* Animated Equalizer Bars */
.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
  flex-shrink: 0;
}

.eq-bars span {
  width: 2.5px;
  border-radius: 2px;
  background: var(--accent);
  animation: eqBounce 0.9s ease-in-out infinite alternate;
}

.eq-bars span:nth-child(1) { height: 6px; animation-delay: 0s; }
.eq-bars span:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.eq-bars span:nth-child(3) { height: 9px; animation-delay: 0.4s; }
.eq-bars span:nth-child(4) { height: 12px; animation-delay: 0.15s; }

@keyframes eqBounce {
  0% { transform: scaleY(0.32); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0.45); }
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 7, 10, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 8px;
}

.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.brand-mark span {
  width: 3.5px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-highlight), var(--accent));
  transform-origin: bottom;
}

.brand-mark span:nth-child(1) { height: 10px; }
.brand-mark span:nth-child(2) { height: 20px; }
.brand-mark span:nth-child(3) { height: 13px; }
.brand-mark span:nth-child(4) { height: 17px; }

body.is-playing .brand-mark span {
  animation: eqBounce 0.95s ease-in-out infinite alternate;
}
body.is-playing .brand-mark span:nth-child(2) { animation-delay: 0.18s; }
body.is-playing .brand-mark span:nth-child(3) { animation-delay: 0.36s; }
body.is-playing .brand-mark span:nth-child(4) { animation-delay: 0.12s; }

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: 0.05em;
}

.brand-text span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  box-shadow: var(--specular);
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.cart-btn:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
}

/* Hero */
.hero {
  position: relative;
  padding: 52px 0 60px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 35%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 35%, #000 20%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: -110px;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 440px;
  background: radial-gradient(circle, rgba(245, 184, 0, 0.18) 0%, rgba(217, 155, 0, 0.1) 45%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(245, 184, 0, 0.1);
  border: 1px solid rgba(245, 184, 0, 0.32);
  color: var(--accent-highlight);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.7vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent-highlight) 10%, var(--accent) 55%, var(--accent-hover) 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 530px;
  margin: 0 0 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--text);
}

.stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--border-strong);
}

/* Featured Spotlight Card */
.spotlight-card {
  position: relative;
  background: linear-gradient(165deg, rgba(30, 30, 42, 0.82), rgba(14, 14, 21, 0.92));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.6), 0 0 40px -16px var(--accent-glow), var(--specular);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}

.spotlight-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 184, 0, 0.42);
}

.spotlight-badge {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(7, 7, 10, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.spotlight-art-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
  margin-bottom: 16px;
}

.spotlight-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.spotlight-card:hover .spotlight-art {
  transform: scale(1.04);
}

.spotlight-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, var(--accent-highlight), var(--accent));
  backdrop-filter: blur(6px);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(245, 184, 0, 0.48);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease;
}

.spotlight-play-btn:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, #fef08a, var(--accent-highlight));
}

.spotlight-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.pill-accent {
  background: rgba(245, 184, 0, 0.16);
  color: var(--accent-highlight);
}

.spotlight-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.38rem;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.spotlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

/* Vault Section */
.vault-section {
  padding: 24px 0 64px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-header.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-header h2 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin: 0 0 6px;
}

.section-subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.vault-count-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Controls */
.vault-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--specular);
}

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(7, 7, 10, 0.85);
  color: var(--text);
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.16);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-divider {
  width: 1px;
  height: 22px;
  background: var(--border-strong);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.83rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: 0 4px 14px -4px var(--accent-glow);
}

.pill-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

/* Beat List */
.beat-list-header {
  display: grid;
  grid-template-columns: 2.2fr 0.9fr 0.65fr 1.3fr 1.1fr;
  gap: 14px;
  padding: 0 16px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.align-right {
  text-align: right;
}

.beat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.beat-row {
  display: grid;
  grid-template-columns: 2.2fr 0.9fr 0.65fr 1.3fr 1.1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--specular);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.18s ease,
              border-color 0.18s ease;
}

.beat-row:hover {
  background: var(--bg-card);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.beat-row.playing {
  background: linear-gradient(90deg, rgba(245, 184, 0, 0.12), rgba(21, 21, 30, 0.85) 60%);
  border-color: rgba(245, 184, 0, 0.45);
  box-shadow: 0 8px 24px -10px var(--accent-glow), var(--specular);
}

.beat-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.beat-art-btn {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
  background: var(--bg-card);
}

.beat-art-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.beat-row:hover .beat-art-btn img {
  transform: scale(1.06);
}

.beat-art-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.beat-row:hover .beat-art-overlay,
.beat-row.playing .beat-art-overlay {
  opacity: 1;
}

.beat-title-wrap {
  min-width: 0;
}

.beat-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.beat-title {
  font-weight: 600;
  font-size: 0.97rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.beat-row.playing .beat-title {
  color: #fff;
}

.hook-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(124, 58, 237, 0.42);
}

.beat-sub-mobile {
  display: none;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.beat-genre {
  font-size: 0.87rem;
  color: var(--text-muted);
}

.beat-bpm {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}

.beat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.tag-chip:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.beat-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.loading-state,
.empty-state {
  text-align: center;
  padding: 56px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

.spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto 14px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Licenses Section */
.licenses-section {
  padding: 36px 0 64px;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.license-card {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--specular);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease;
}

.license-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.license-card.featured {
  background: linear-gradient(180deg, rgba(245, 184, 0, 0.11), rgba(15, 15, 21, 0.92) 55%);
  border-color: rgba(245, 184, 0, 0.48);
  box-shadow: 0 20px 44px -18px var(--accent-glow), var(--specular);
}

.license-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  margin-bottom: 12px;
}

.license-tag.popular {
  background: var(--accent);
  color: var(--accent-ink);
}

.license-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.38rem;
  margin: 0 0 8px;
}

.license-price {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.license-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.91rem;
}

.license-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  margin-right: 10px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--text);
}

/* Sticky Bottom Audio Player */
.audio-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--player-height);
  z-index: 50;
  background: rgba(11, 11, 16, 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.55);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.audio-player.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.audio-player-inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  gap: 20px;
}

.player-track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-art {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-art.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-dim);
}

.player-meta {
  min-width: 0;
}

.player-title {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-sub {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #09090b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.22);
  transition: transform 0.15s ease;
}

.player-play-btn:hover {
  transform: scale(1.07);
}

.player-progress-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}

.scrubber {
  flex: 1;
  padding: 6px 0;
  cursor: pointer;
}

.scrubber-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.scrubber-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-hover), var(--accent), var(--accent-highlight));
  border-radius: 999px;
  transition: width 0.1s linear;
}

.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-control input[type="range"] {
  width: 84px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.18s ease;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  background: rgba(17, 17, 24, 0.96);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.7), var(--specular);
  animation: modalIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-beat-summary {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-art {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 2px 0 4px;
}

.modal-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.modal-tiers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.tier-option:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.tier-option-info h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.tier-option-info p {
  margin: 0;
  font-size: 0.81rem;
  color: var(--text-muted);
}

.tier-option-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.tier-price {
  font-family: var(--font-mono);
  font-size: 1.12rem;
  font-weight: 700;
}

/* Cart Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fadeIn 0.2s ease;
}

.drawer-backdrop[hidden] {
  display: none;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  z-index: 65;
  background: rgba(15, 15, 21, 0.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  font-size: 1.22rem;
}

.drawer-count {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty {
  margin: auto;
  text-align: center;
  color: var(--text-muted);
}

.cart-empty p {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.cart-item img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

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

.cart-item-title {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-tier {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cart-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
}

.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: rgba(7, 7, 10, 0.65);
}

.cart-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.cart-subtotal-row strong {
  font-family: var(--font-mono);
}

.checkout-banner {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.42);
  color: #fcd34d;
  font-size: 0.83rem;
  line-height: 1.48;
  margin-bottom: 14px;
}

.drawer-note {
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-dim);
  margin: 10px 0 0;
}

/* Toasts */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.toast {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(21, 21, 30, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.87rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  animation: toastIn 0.2s ease;
}

.toast.success { border-color: rgba(34, 197, 94, 0.5); }
.toast.warning { border-color: rgba(245, 158, 11, 0.55); color: #fde68a; }
.toast.error { border-color: rgba(255, 46, 76, 0.6); color: #fda4af; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Status Pages (Success / Cancel) */
.status-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.status-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.6), var(--specular);
}

.status-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-icon.success {
  background: rgba(34, 197, 94, 0.16);
  color: var(--success);
}

.status-icon.cancel {
  background: rgba(245, 184, 0, 0.16);
  color: var(--accent);
}

.status-card h1 {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.12;
  margin: 0 0 10px;
  font-size: 2rem;
}

.status-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 24px;
}

.order-details {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.order-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

.order-row:last-child {
  border-bottom: none;
}

.order-row strong {
  font-family: var(--font-mono);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .license-grid {
    grid-template-columns: 1fr;
  }

  .beat-list-header {
    display: none;
  }

  .beat-row {
    grid-template-columns: 1fr auto;
    padding: 12px 14px;
  }

  .beat-genre,
  .beat-bpm,
  .beat-tags {
    display: none;
  }

  .beat-sub-mobile {
    display: block;
  }

  .audio-player-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .player-right {
    display: none;
  }
}

@media (max-width: 600px) {
  :root {
    --player-height: 76px;
  }

  .container {
    padding: 0 16px;
  }

  .navbar-inner {
    height: 60px;
  }

  .brand-logo {
    height: 30px;
  }

  .nav-links {
    display: none;
  }

  .cart-btn-label {
    display: none;
  }

  .hero {
    padding: 28px 0 38px;
  }

  .hero-stats {
    gap: 16px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .vault-controls {
    padding: 14px;
    gap: 10px;
  }

  .filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .filter-divider {
    display: none;
  }

  /* Horizontally scrollable filter pills on mobile */
  .filter-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .filter-group::-webkit-scrollbar {
    display: none;
  }

  .beat-art-btn {
    width: 46px;
    height: 46px;
  }

  .beat-main {
    gap: 10px;
  }

  .beat-actions {
    gap: 4px;
  }

  /* Compact, thumb-friendly mobile audio player with top-edge progress bar */
  .audio-player {
    height: var(--player-height);
  }

  .audio-player-inner {
    position: relative;
    padding: 0 14px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .player-art {
    width: 44px;
    height: 44px;
  }

  #player-fav-btn {
    display: none;
  }

  .player-center {
    gap: 0;
  }

  .player-buttons {
    gap: 6px;
  }

  .player-progress-row {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    gap: 0;
  }

  .player-progress-row .time-label {
    display: none;
  }

  .player-progress-row .scrubber {
    padding: 0;
  }

  .player-progress-row .scrubber-track {
    height: 3px;
    border-radius: 0;
  }

  .tier-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tier-option-right {
    width: 100%;
    justify-content: space-between;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    max-width: none;
  }
}
