:root {
  --bg-page: #f9fafb;
  --bg-card: #ffffff;
  --border-c: #e5e7eb;
  --accent-gold: #b45309;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
}
.record-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
}
.record-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.06), 0 8px 10px -6px rgba(0,0,0,0.04);
}
.record-thumb-box {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f1f5f9;
  aspect-ratio: 1 / 1;
}
.record-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.record-thumb-box:hover img {
  transform: scale(1.06);
}
.badge-mint { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-ex { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-vgplus { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-vg { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }

/* 5-Row Horizontal Explorer Grid */
.explorer-scroll-container {
  display: grid;
  grid-template-rows: repeat(5, 40px);
  grid-auto-flow: column;
  grid-auto-columns: 240px;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px;
  -webkit-overflow-scrolling: touch;
}

.explorer-scroll-container::-webkit-scrollbar { height: 6px; }
.explorer-scroll-container::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; }
.explorer-scroll-container::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.explorer-scroll-container::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.explorer-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  height: 40px;
}
.explorer-card:hover { border-color: #94a3b8; background-color: #f8fafc; }
.explorer-card.active {
  border-color: #d97706;
  background-color: #fffbeb;
  box-shadow: 0 0 0 1.5px rgba(217, 119, 6, 0.3);
}
.explorer-card.active .card-title { color: #92400e; font-weight: 700; }
.explorer-card.active .card-badge { background-color: #f59e0b; color: #ffffff; }

/* A-Z Letter Buttons */
.az-btn {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  font-family: monospace;
  border-radius: 4px;
  background-color: #f3f4f6;
  color: #4b5563;
  transition: all 0.15s ease;
  border: 1px solid #e5e7eb;
}
.az-btn:hover { background-color: #e5e7eb; color: #111827; }
.az-btn.active { background-color: #111827; color: #ffffff; border-color: #111827; }

/* Social Action Buttons on Cards */
.social-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #64748b;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.social-action-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}
.social-action-btn.liked {
  color: #e11d48;
  background: #ffe4e6;
  border-color: #fecdd3;
  font-weight: 700;
}
.social-action-btn.liked svg {
  fill: #e11d48;
}

/* Floating Bottom Player Bar */
.bottom-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 45;
  box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.bottom-player-bar.collapsed {
  transform: translateY(100%);
}

/* Drawers */
.cart-drawer, .member-drawer { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.cart-drawer.open, .member-drawer.open { transform: translateX(0); }
.cart-drawer.closed, .member-drawer.closed { transform: translateX(100%); }

/* Now Playing Active Card Highlight & Animations */
.record-card.now-playing-card {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.5), 0 20px 25px -5px rgba(245, 158, 11, 0.15) !important;
  background-color: #fffdfa !important;
  transform: translateY(-2px);
}

.now-playing-equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  width: 16px;
}
.now-playing-equalizer span {
  width: 3px;
  background: #f59e0b;
  border-radius: 1px;
  animation: eq-bounce 0.7s ease-in-out infinite alternate;
}
.now-playing-equalizer span:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.now-playing-equalizer span:nth-child(2) { height: 100%; animation-delay: 0.35s; }
.now-playing-equalizer span:nth-child(3) { height: 40%; animation-delay: 0.2s; }
.now-playing-equalizer span:nth-child(4) { height: 80%; animation-delay: 0.45s; }

@keyframes eq-bounce {
  0% { height: 20%; }
  100% { height: 100%; }
}

@keyframes spin-vinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin-slow {
  animation: spin-vinyl 4s linear infinite;
}

@keyframes pulse-gold-highlight {
  0%, 100% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.8), 0 10px 25px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.25), 0 20px 30px rgba(245, 158, 11, 0.4); }
}
.pulse-highlight {
  animation: pulse-gold-highlight 1.2s ease-in-out 3;
}