@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  --bg-dark: #FAF8F5; /* Warm cream/eggshell paper */
  --bg-surface: #ffffff;
  --bg-surface-hover: #F3EFE9; /* Muted paper grey-cream */
  --accent: #A73B24; /* Rich terracotta red */
  --accent-secondary: #BD8E48; /* Muted brass gold */
  --accent-gradient: #A73B24; /* Flat terracotta color, replacing flashy gradients */
  --accent-gradient-hover: #8D2F1B; /* Darker terracotta */
  --text-primary: #1C1B1A; /* Deep warm charcoal-ink */
  --text-secondary: #5C5852; /* Warm grey/charcoal */
  --text-muted: #8E887F; /* Muted slate-grey */
  --border: #E5DFD5; /* Cardboard/paper edge grey */
  --border-focus: rgba(167, 59, 36, 0.35);
  --glass: rgba(250, 248, 245, 0.9);
  --glass-border: rgba(0, 0, 0, 0.05);
  --shadow: rgba(28, 27, 26, 0.03); /* Muted organic shadow */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Lora', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
}


a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Header & Navigation */
.app-header {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--accent);
}

.app-logo-disc {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #1A1A1A, #3A3A3A, #1A1A1A);
  border: 1.5px solid var(--accent-secondary);
  position: relative;
  animation: spin 8s linear infinite;
}

.app-logo-disc::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg-dark);
}

.app-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 6px 10px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: transparent;
  border-bottom: 2px solid var(--accent);
}

/* Switch User Widget */
.switch-user-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
}

.switch-user-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.switch-user-select {
  background: transparent;
  border: none;
  color: var(--accent);
  font-weight: 600;
  outline: none;
  cursor: pointer;
  padding-right: 5px;
}

.switch-user-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* Flash Messages */
.flash-container {
  max-width: 1200px;
  margin: 15px auto 0;
  padding: 0 20px;
}

.flash-message {
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  animation: slideIn 0.3s ease;
}

.flash-notice {
  background: rgba(40, 167, 69, 0.15);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: #2ecc71;
}

.flash-alert {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #e74c3c;
}

/* Base Layout Container */
.main-container {
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 0 20px;
  flex: 1 0 auto;
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: var(--font-mono);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  border-color: var(--accent-gradient-hover);
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--text-secondary);
}

.btn-danger {
  background: transparent;
  border: 1px solid rgba(231, 76, 60, 0.5);
  color: #e74c3c;
}

.btn-danger:hover {
  background: rgba(231, 76, 60, 0.05);
  border-color: #e74c3c;
}

/* Horizontal Calendar Feed */
.calendar-bar {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px;
  margin-bottom: 30px;
  overflow-x: auto;
}

.calendar-day {
  flex: 1;
  min-width: 110px;
  text-align: center;
  padding: 10px 6px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-day:hover {
  background: var(--bg-surface-hover);
}

.calendar-day.active {
  background: rgba(167, 59, 36, 0.04);
  border: 1px solid var(--accent);
}

.calendar-day.active .day-name {
  color: var(--accent);
}

.day-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.day-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
}

.day-slots {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
}

.lock-icon {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-block;
  margin-top: 2px;
}

/* Feed Container */
.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.feed-scope-tabs {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px;
}

.scope-tab {
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 2px;
  color: var(--text-secondary);
}

.scope-tab.active {
  background: var(--accent);
  color: #ffffff;
}

/* Lock Overlay / Future Days */
.locked-feed-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  border-radius: 16px;
  text-align: center;
}

.locked-icon-large {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  animation: float 3s ease-in-out infinite;
}

.locked-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.locked-subtitle {
  color: var(--text-secondary);
  max-width: 450px;
}

/* Vinyl Sleeve Recommendation Card */
.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.rec-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.rec-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--shadow);
}

/* Vinyl animation wrapper */
.vinyl-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2px;
}

/* Album jacket */
.vinyl-sleeve {
  position: absolute;
  width: 85%;
  height: 85%;
  left: 7.5%;
  top: 7.5%;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(28, 27, 26, 0.25);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-radius: 2px;
}

.vinyl-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The vinyl disk hidden inside */
.vinyl-disk {
  position: absolute;
  width: 78%;
  height: 78%;
  left: 11%;
  top: 11%;
  border-radius: 50%;
  background: radial-gradient(circle, #333 4%, #0f0f0f 5%, #050505 15%, #151515 25%, #000 35%, #151515 45%, #000 65%);
  box-shadow: 0 2px 8px rgba(28, 27, 26, 0.45);
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0); /* Avoid subpixel rendering shifts & shadow flicker */
}

/* Groove lines in vinyl */
.vinyl-disk::before {
  content: '';
  position: absolute;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  border: 1px double rgba(255,255,255,0.06);
}

/* Center record label */
.vinyl-label {
  width: 32%;
  height: 32%;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid #111;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

.vinyl-label-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.vinyl-center-hole {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--bg-dark);
  border-radius: 50%;
  z-index: 3;
}

/* Hover effects to pull out vinyl & spin it */
.rec-card:hover .vinyl-sleeve {
  transform: translateX(-15%);
}

@keyframes spin-out {
  from {
    transform: translateX(18%) rotate(180deg);
  }
  to {
    transform: translateX(18%) rotate(540deg);
  }
}

.rec-card:hover .vinyl-disk {
  transform: translateX(18%) rotate(180deg);
  animation: spin-out 3s linear infinite 0.5s;
}

/* Entire card clickable overlay link */
.card-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.rec-user-badge {
  position: relative;
  z-index: 2;
}

/* Info container */
.rec-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.rec-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.rec-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--accent);
}

.rec-author {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}

.rating-badge {
  background: rgba(167, 59, 36, 0.05);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.rec-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 4px;
}

.rec-artist {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.rec-review {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.featured-track-pill {
  background: var(--bg-surface-hover);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.music-wave {
  display: flex;
  gap: 2px;
  height: 12px;
  align-items: flex-end;
}

.music-bar {
  width: 2px;
  height: 100%;
  background: var(--accent-secondary);
  transform-origin: bottom;
  transform: scaleY(0.3);
  transition: transform 0.2s ease;
}

.music-wave.active .music-bar {
  animation: pulse 0.5s ease-in-out infinite alternate;
}

.music-wave.active .music-bar:nth-child(2) { animation-delay: 0.15s; }
.music-wave.active .music-bar:nth-child(3) { animation-delay: 0.3s; }

/* Profile Shelf "La Estantería" */
.profile-shelf-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 40px;
}

.shelf-group {
  position: relative;
}

.shelf-title {
  font-size: 1.6rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.shelf-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: var(--border);
}

.shelf-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px 10px 25px;
  position: relative;
}

.shelf-row::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15px;
  background: linear-gradient(to bottom, #2b2b35 0%, #15151b 100%);
  border-top: 2px solid #545465;
  border-radius: 4px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.6);
  z-index: 5;
}

/* Vinyl items placed on the shelf */
.shelf-vinyl {
  width: 140px;
  aspect-ratio: 1;
  position: relative;
  cursor: pointer;
  z-index: 6;
  margin-bottom: 5px;
}

.shelf-vinyl-sleeve {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: -4px 4px 8px rgba(0,0,0,0.5);
  position: relative;
  z-index: 8;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.shelf-vinyl-disk {
  position: absolute;
  width: 90%;
  height: 90%;
  top: 5%;
  left: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, #333 4%, #111 6%, #000 30%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  z-index: 7;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Animation on hover shelf item */
.shelf-vinyl:hover .shelf-vinyl-sleeve {
  transform: translateY(-20px);
}

.shelf-vinyl:hover .shelf-vinyl-disk {
  transform: translateY(-40px) rotate(90deg);
}

/* Profile details */
.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
}

.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: #111;
  box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}

.profile-details {
  flex-grow: 1;
}

.profile-name {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.profile-meta-row {
  display: flex;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.profile-stat strong {
  color: var(--text-primary);
}

.profile-socials {
  display: flex;
  gap: 15px;
}

.social-link-icon {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.social-link-icon:hover {
  color: var(--accent);
}

/* Recommendation Details Page */
.details-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .details-container {
    grid-template-columns: 1fr;
  }
}

.details-album-column {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.details-vinyl-disc-spin {
  position: absolute;
  width: 85%;
  height: 85%;
  left: 20%;
  top: 7.5%;
  border-radius: 50%;
  background: radial-gradient(circle, #333 4%, #0f0f0f 5%, #050505 15%, #151515 25%, #000 35%, #151515 45%, #000 65%);
  box-shadow: 0 4px 15px rgba(0,0,0,0.8);
  z-index: 1;
  animation: spin 10s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.details-vinyl-disc-spin::before {
  content: '';
  position: absolute;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  border: 1px double rgba(255,255,255,0.06);
}

.details-vinyl-sleeve {
  position: relative;
  width: 85%;
  aspect-ratio: 1;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  border-radius: 4px;
  overflow: hidden;
}

.listen-platforms {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.platform-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.platform-button:hover {
  background: var(--bg-surface-hover);
  border-color: var(--text-secondary);
}

.platform-favicon {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  object-fit: contain;
}

/* Remove colored backgrounds for a unified minimalist layout */
.platform-spotify, .platform-youtube, .platform-apple, .platform-deezer, .platform-tidal {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.details-review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 30px;
  margin-bottom: 30px;
}

.details-album-header {
  margin-bottom: 20px;
}

.details-album-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1.1;
  margin-bottom: 5px;
}

.details-album-artist {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
}

.details-album-meta {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-top: 5px;
}

.review-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  margin-bottom: 25px;
  color: var(--text-primary);
}

.tracks-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.track-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.track-item:nth-child(odd) {
  background: var(--bg-surface-hover);
}

.track-item.featured {
  background: rgba(167, 59, 36, 0.05);
  border-left: 2px solid var(--accent);
  font-weight: 600;
}

/* Comments Section & Threads */
.comments-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 30px;
}

.comments-header {
  font-size: 1.3rem;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.comment-form {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-input-area {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  min-height: 80px;
  resize: vertical;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease;
  width: 100%;
}

.comment-input-area:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--border-focus);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-node {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
  padding: 15px;
  border-radius: 12px;
  position: relative;
  animation: fadeIn 0.4s ease;
}

.comment-node-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.comment-node-user {
  font-weight: 600;
  color: var(--text-primary);
}

.comment-node-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.comment-node-actions {
  margin-top: 10px;
  display: flex;
  gap: 15px;
}

.reply-btn {
  font-size: 0.8rem;
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
}

.reply-toggle-details {
  display: block;
  width: 100%;
}

/* Replies list */
.replies-container {
  margin-top: 15px;
  padding-left: 20px;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reply-form-container {
  margin-top: 10px;
  background: var(--bg-surface-hover);
  padding: 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Search Form and Creator Dashboard */
.creator-dashboard {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 30px;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.form-input {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: var(--accent);
}

/* Custom Track Selection Radios */
.tracks-selection-list {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  background: #ffffff;
  box-shadow: none;
}

.track-radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 2px;
  cursor: pointer;
}

.track-radio-item:hover {
  background: var(--bg-surface-hover);
}

.track-radio-item input {
  accent-color: var(--accent);
}

/* Live Character Counter */
.char-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

.char-counter.warning {
  color: var(--accent-secondary);
}

/* Search suggestions box */
.search-results-dropdown {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 999;
  margin-top: 6px;
}

.search-result-row {
  display: flex;
  gap: 15px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  align-items: center;
  transition: background-color 0.2s ease;
}

.search-result-row:hover {
  background: var(--bg-surface-hover);
}

.search-result-cover {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.search-result-info {
  display: flex;
  flex-direction: column;
}

.search-result-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.search-result-artist {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Custom Slider for rating */
.rating-slider-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.rating-slider {
  flex-grow: 1;
  accent-color: var(--accent);
  height: 6px;
  border-radius: 3px;
  outline: none;
}

.rating-slider-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent);
  min-width: 30px;
  text-align: center;
}

/* Mixtape Page */
.mixtape-banner {
  background: var(--accent-gradient);
  color: #fff;
  padding: 24px 30px;
  border-radius: 16px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.mixtape-banner-disc {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, #333 4%, #111 6%, #000 30%);
  opacity: 0.15;
  animation: spin 20s linear infinite;
}

.mixtape-track-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  transition: background-color 0.2s ease;
}

.mixtape-track-card:hover {
  background: var(--bg-surface-hover);
}

.mixtape-track-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mixtape-track-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  width: 24px;
}

.mixtape-album-mini-cover {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
}

.mixtape-track-info {
  display: flex;
  flex-direction: column;
}

.mixtape-track-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.mixtape-track-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.mixtape-actions {
  display: flex;
  gap: 10px;
}

/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

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

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

/* CSS Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.relative { position: relative; }

/* Recommendation Form Layout */
.recommendation-search-container {
  margin-bottom: 30px;
}

.recommendation-search-help {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.next-week-notice {
  margin-bottom: 25px;
  background: rgba(214, 175, 55, 0.05);
  border: 1px solid var(--accent-secondary);
  color: var(--accent-secondary);
  padding: 15px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.recommendation-errors-card {
  margin-bottom: 20px;
}

.recommendation-errors-title {
  font-family: var(--font-sans);
  margin-bottom: 5px;
}

.recommendation-errors-list {
  padding-left: 20px;
  font-size: 0.9rem;
}

.manual-toggle-container {
  margin-bottom: 25px;
  text-align: right;
}

.recommendation-form-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

.recommendation-cover-preview-box {
  border-radius: 8px;
  margin-bottom: 20px;
  width: 100%;
  aspect-ratio: 1;
}

.cover-url-input-container {
  margin-bottom: 15px;
}

.manual-tracks-input-container {
  margin-bottom: 20px;
}

.manual-tracks-textarea {
  min-height: 120px;
}

.tracklist-empty-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px 0;
}

.review-help-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -15px;
  margin-bottom: 25px;
  display: block;
}

.recommendation-form-actions {
  margin-top: 35px;
  display: flex;
  gap: 15px;
}

.delete-draft-button-container {
  margin-left: auto;
}

/* Recommendation Show View Styles */
.back-feed-link {
  display: inline-block;
  padding-left: 0;
}

.show-vinyl-wrapper {
  border-radius: 12px;
  background: transparent;
  overflow: visible;
}

.listen-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-family: var(--font-display);
}

.show-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.show-rating-badge {
  font-size: 1.1rem;
  padding: 6px 12px;
}

.show-genres-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 6px 0;
}

.genre-pill-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.show-user-link {
  color: var(--accent);
  font-weight: 600;
}

.show-tracklist-container {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
}

.featured-track-label {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  background: var(--accent-secondary);
  color: #111;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.comment-submit-wrapper {
  display: flex;
  justify-content: flex-end;
}

.discussion-login-prompt {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-align: center;
}

.form-actions-bar {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.align-left-btn {
  margin-right: auto;
}

.locked-publish-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.btn-locked {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Metadata Preview Card */
.metadata-preview-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 15px;
  box-shadow: 0 4px 12px var(--shadow);
}

.preview-album-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.2;
}

.preview-artist-name {
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}

.preview-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 15px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.preview-meta-row-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.meta-label {
  color: var(--text-secondary);
}

.meta-value {
  font-weight: 600;
  color: var(--text-primary);
}

.preview-genres-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Search input wrapper and spinner loader */
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-wrapper .form-input {
  width: 100%;
  padding-right: 40px; /* Space for spinner */
}

.search-spinner {
  position: absolute;
  right: 15px;
  top: 50%;
  margin-top: -9px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 10;
}

/* Mixtape Page Styling */
.mixtape-navigation-bar {
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px 20px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

@media (max-width: 600px) {
  .mixtape-navigation-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 15px;
  }
}

.mixtape-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  color: #111111 !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.mixtape-nav-btn:hover:not(.disabled) {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.mixtape-nav-btn.disabled {
  background: rgba(255, 255, 255, 0.35);
  color: rgba(0, 0, 0, 0.3) !important;
  border-color: transparent;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.mixtape-date-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mixtape-week-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.mixtape-date-input {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  color: #111111;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mixtape-date-input:focus {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Playlist Exporter Card */
.mixtape-export-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 25px;
  box-shadow: 0 4px 12px var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

@media (max-width: 768px) {
  .mixtape-export-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.export-card-header {
  flex-grow: 1;
}

.export-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.export-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.export-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mixtape-btn-spotify-solid {
  background: #1db954 !important;
  color: #000 !important;
  font-weight: 600;
  border: none !important;
}

.mixtape-btn-spotify-solid:hover {
  background: #1aa34a !important;
}

.mixtape-btn-deezer-solid {
  background: #a238ff !important;
  color: #fff !important;
  font-weight: 600;
  border: none !important;
}

.mixtape-btn-deezer-solid:hover {
  background: #8e2be3 !important;
}

/* Mixtape buttons & elements */
.mixtape-btn-base {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mixtape-favicon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: contain;
}

.mixtape-btn-spotify {
  background: rgba(29, 185, 84, 0.08);
  border-color: rgba(29, 185, 84, 0.2);
  color: #1db954;
}

.mixtape-btn-spotify:hover {
  background: rgba(29, 185, 84, 0.15);
  color: #1db954;
}

.mixtape-btn-youtube {
  background: rgba(255, 0, 0, 0.08);
  border-color: rgba(255, 0, 0, 0.2);
  color: #ff0000;
}

.mixtape-btn-youtube:hover {
  background: rgba(255, 0, 0, 0.15);
  color: #ff0000;
}

.mixtape-btn-apple {
  background: rgba(252, 60, 68, 0.08);
  border-color: rgba(252, 60, 68, 0.2);
  color: #fc3c44;
}

.mixtape-btn-apple:hover {
  background: rgba(252, 60, 68, 0.15);
  color: #fc3c44;
}

.mixtape-btn-deezer {
  background: rgba(162, 56, 255, 0.08);
  border-color: rgba(162, 56, 255, 0.2);
  color: #a238ff;
}

.mixtape-btn-deezer:hover {
  background: rgba(162, 56, 255, 0.15);
  color: #a238ff;
}

.mixtape-empty-container {
  border-style: solid;
  background: transparent;
}

.mixtape-empty-icon {
  animation: none;
  font-size: 4rem;
}

/* Playlist Exporter Details Dropdown Styles */
.export-read-more {
  margin-top: 10px;
}

.export-read-more-summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.export-read-more-summary:hover {
  text-decoration: underline;
}

.export-read-more-content {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.export-read-more-list {
  margin-left: 18px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.export-read-more-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.export-read-more-link:hover {
  text-decoration: underline;
}

/* Weekly Feed Calendar Wrapper & Chevron Styles */
.calendar-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.calendar-bar-wrapper .calendar-bar {
  flex-grow: 1;
  margin-bottom: 0 !important;
}

.feed-week-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 64px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 300;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.feed-week-nav-btn:hover:not(.disabled) {
  background: var(--bg-surface-hover);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.feed-week-nav-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.badge-current-week {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 700;
  margin-left: 8px;
  display: inline-flex;
  vertical-align: middle;
}

/* User Edit Form Platform Settings Checkboxes */
.platform-settings-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 15px;
  border-radius: 8px;
}

.form-checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-checkbox-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}

.form-checkbox-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

/* Mixtape View Tidal button custom styles */
.mixtape-btn-tidal {
  background: var(--bg-surface-hover);
  border-color: var(--border);
  color: var(--text-primary);
}

.mixtape-btn-tidal:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Inline Audio Player UI Style Additions --- */

/* Featured Track Pill Playable State */
.featured-track-pill.playable {
  position: relative;
  z-index: 3;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
}

.featured-track-pill.playable:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent);
  box-shadow: none;
}

.play-state-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 0.95rem;
  color: var(--accent);
}

.play-state-indicator .play-icon {
  margin-left: 2px;
}

/* Playable track on details page */
.track-item.playable:hover {
  background: rgba(167, 59, 36, 0.05);
  border-color: var(--accent);
}

.track-item.playable.playing {
  border-color: var(--accent);
  background: rgba(167, 59, 36, 0.08);
}

.track-item.playable.playing .play-icon {
  display: none !important;
}

.track-item.playable.playing .pause-icon {
  display: inline-block !important;
}

/* Dedicated Mixtape Row Preview Button */
.mixtape-preview-btn {
  width: auto !important;
  padding: 0 14px !important;
  border-radius: 4px !important;
  font-weight: 600;
  font-size: 0.8rem;
  background: rgba(167, 59, 36, 0.05) !important;
  border: 1px solid rgba(167, 59, 36, 0.15) !important;
  color: var(--accent) !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
}

.mixtape-preview-btn:hover {
  background: rgba(167, 59, 36, 0.1) !important;
}

.mixtape-preview-btn.playing {
  background: var(--accent) !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
}

.mixtape-preview-btn.playing .pause-icon {
  display: inline-block !important;
}

/* Auth Pages (Sign In, Register, Confirmation) */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 180px);
  padding: 40px 20px;
}

.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 30px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.auth-header h2 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-top: 10px;
}

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

.auth-disc {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #111, #444, #111);
  border: 3px solid var(--accent);
  position: relative;
  animation: spin 8s linear infinite;
}

.auth-disc::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-dark);
}

.auth-form .form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form .form-label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.auth-form .form-input {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.auth-form .form-input:focus {
  border-color: var(--accent);
}

.form-checkbox {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Playing state for featured track pills */
.featured-track-pill.playable.playing {
  border-color: var(--accent) !important;
  background: rgba(167, 59, 36, 0.08) !important;
  color: var(--accent) !important;
}

.featured-track-pill.playable.playing .play-state-indicator {
  color: var(--accent-secondary);
}

/* Footer Styling */
.app-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 30px 20px;
  margin-top: 60px;
  width: 100%;
  flex-shrink: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

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

.footer-brand-compact .logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.footer-nav-horizontal {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent);
}

.nav-separator {
  color: var(--border);
  font-size: 0.8rem;
  user-select: none;
}

.footer-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.developer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.heart-icon {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.developer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 5px;
}

.social-link {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.copyright-info {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Static Pages Styling */
.static-page-container {
  max-width: 800px;
  margin: 40px auto 80px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px var(--shadow);
}

.static-page-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 25px;
  margin-bottom: 35px;
}

.static-page-header h1 {
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.static-page-header .last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.static-page-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.static-page-content h2 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

.static-page-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.static-page-content ul {
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Contact Page Specifics */
.contact-grid {
  display: grid;
  grid-template-cols: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.contact-info-card, .contact-faq-card {
  padding: 10px 0;
}

.contact-info-card h2, .contact-faq-card h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.contact-intro {
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.icon-wrapper {
  background: var(--bg-surface-hover);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-link:hover {
  text-decoration: underline;
}

.helper-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.guidance-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.guidance-item {
  background: var(--bg-surface-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}

.guidance-item h3 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.guidance-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Responsive Footer adjustments */
@media (max-width: 600px) {
  .footer-row-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }
  
  .footer-nav-horizontal {
    justify-content: center;
    gap: 10px;
  }
  
  .nav-separator {
    display: none;
  }
  
  .footer-row-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  
  .developer-info {
    flex-direction: column;
    gap: 8px;
  }
  
  .developer-socials {
    margin-left: 0;
  }
  
  .static-page-container {
    padding: 20px;
    margin: 20px auto 40px;
  }
}

/* Onboarding Experience Styles */
.onboarding-wrapper {
  width: 100%;
  transition: opacity 0.4s ease;
  opacity: 1;
}

.onboarding-wrapper.fade-out {
  opacity: 0;
}

/* Banner Announcement invitation */
.onboarding-banner {
  background: rgba(217, 119, 6, 0.06);
  border-bottom: 1px solid rgba(217, 119, 6, 0.15);
  padding: 12px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: bannerSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99;
}

@keyframes bannerSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.onboarding-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  width: 100%;
  max-width: 900px;
  padding-right: 40px; /* Space for close button */
}

@media (max-width: 768px) {
  .onboarding-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding-right: 20px;
  }
}

.onboarding-banner-icon {
  font-size: 1.2rem;
}

.onboarding-banner-text {
  line-height: 1.4;
}

.onboarding-banner-btn {
  padding: 6px 14px !important;
  font-size: 0.85rem !important;
  border-radius: 8px !important;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.15);
}

.onboarding-banner-close {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-banner-close:hover {
  color: var(--text-primary);
  transform: translateY(-50%) scale(1.1);
}

/* Modal Overlay Panel (Fills the viewport when activated) */
.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.onboarding-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 90%;
  max-width: 580px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: onboardingCardEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes onboardingCardEnter {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.onboarding-skip-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
  z-index: 10;
}

.onboarding-skip-btn:hover {
  color: var(--accent);
  background: var(--bg-surface-hover);
}

.onboarding-slides-container {
  display: flex;
  flex-direction: column;
}

.onboarding-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  width: 100%;
}

.onboarding-slide.active {
  display: flex;
  animation: slideFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide Illustration Containers */
.onboarding-illustration {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 10px;
  width: 100%;
}

/* Slide 1: Welcome Spin Disc */
.onboarding-disc-large {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #111 0%, #333 40%, #111 50%, #333 90%, #111 100%);
  border: 4px solid var(--accent);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 20px rgba(217, 119, 6, 0.2);
  animation: spin 8s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-disc-large::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: 2px solid #000;
}

.onboarding-disc-large-hole {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-surface);
  z-index: 5;
}

.onboarding-disc-groove {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.onboarding-disc-groove-1 { width: 110px; height: 110px; }
.onboarding-disc-groove-2 { width: 80px; height: 80px; }

.onboarding-disc-arm {
  position: absolute;
  top: 10px;
  right: 170px;
  width: 60px;
  height: 80px;
  border-right: 4px solid var(--text-muted);
  border-bottom: 4px solid var(--text-muted);
  border-radius: 0 0 10px 0;
  transform: rotate(-15deg);
  transform-origin: top right;
  animation: tonearmTrack 10s ease-in-out infinite alternate;
}

.onboarding-disc-arm::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 12px;
  height: 16px;
  background: #666;
  border-radius: 2px;
}

@keyframes tonearmTrack {
  0% { transform: rotate(-15deg); }
  100% { transform: rotate(5deg); }
}

/* Slide 2: Calendar grid design */
.onboarding-calendar-grid {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.onboarding-cal-day {
  width: 60px;
  height: 80px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  font-family: var(--font-display);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.onboarding-cal-day.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(217, 119, 6, 0.2);
}

.onboarding-cal-day.locked {
  background: rgba(226, 232, 240, 0.4);
  color: var(--text-muted);
  border-style: dashed;
}

.onboarding-cal-day .cal-day-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.onboarding-cal-day .cal-day-num {
  font-size: 1.1rem;
  font-weight: 800;
}

.onboarding-cal-day .cal-day-lock {
  font-size: 0.8rem;
  margin-top: 4px;
}

/* Slide 3: Publishing Vinyl Sleeves */
.onboarding-vinyl-sleeve-container {
  width: 130px;
  height: 130px;
  position: relative;
}

.onboarding-vinyl-sleeve {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-vinyl-sleeve .sleeve-art {
  width: 90px;
  height: 90px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
}

.onboarding-vinyl-disc-out {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #111;
  border: 1px solid #333;
  position: absolute;
  top: 5px;
  left: 45px;
  z-index: 1;
  animation: emergeAndSpin 6s ease-in-out infinite;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

@keyframes emergeAndSpin {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(25px, -5px) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

.onboarding-vinyl-disc-out::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ff4757;
}

/* Slide 4: Cassette & Waves */
.onboarding-cassette {
  width: 150px;
  height: 90px;
  background: #2f3542;
  border-radius: 8px;
  border: 3px solid #1e222b;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.onboarding-cassette::before {
  content: '';
  position: absolute;
  top: 15px;
  width: 100px;
  height: 40px;
  background: #fff;
  border-radius: 4px;
  border: 2px solid #1e222b;
}

.onboarding-cassette-spindle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1e222b;
  position: absolute;
  top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-cassette-spindle-left { left: 40px; }
.onboarding-cassette-spindle-right { right: 40px; }

.onboarding-cassette-spindle::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: spin 3s linear infinite;
}

.onboarding-waves {
  display: flex;
  gap: 4px;
  align-items: center;
  position: absolute;
  bottom: -25px;
  height: 30px;
}

.onboarding-wave-bar {
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
  height: 10px;
  animation: waveActive 1.2s ease-in-out infinite;
}

.onboarding-wave-bar:nth-child(2) { animation-delay: 0.15s; height: 18px; }
.onboarding-wave-bar:nth-child(3) { animation-delay: 0.3s; height: 26px; }
.onboarding-wave-bar:nth-child(4) { animation-delay: 0.45s; height: 14px; }
.onboarding-wave-bar:nth-child(5) { animation-delay: 0.6s; height: 22px; }

@keyframes waveActive {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1.2); }
}

/* Typography elements */
.onboarding-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.onboarding-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

.onboarding-highlight {
  color: var(--accent);
  font-weight: 700;
}

/* Indicators */
.onboarding-indicators {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 30px;
}

.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.onboarding-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--accent);
}

/* Footer / Action buttons */
.onboarding-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding-top: 25px;
  width: 100%;
}

.onboarding-footer .btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.onboarding-footer .btn-secondary {
  background: var(--bg-surface-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.onboarding-footer .btn-secondary:hover {
  background: var(--border);
  color: var(--text-primary);
}

.onboarding-footer .btn-primary {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.onboarding-footer .btn-primary:hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.25);
  transform: translateY(-1px);
}

/* About Page Custom Styling */
.about-page-wrapper {
  max-width: 900px !important;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

/* Subtle background glowing orb to feel premium */
.about-page-wrapper::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.about-hero {
  position: relative;
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-hero-disc-container {
  margin-bottom: 24px;
  perspective: 1000px;
}

.about-hero-disc {
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, #2d2d2d 30%, #111111 70%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), inset 0 0 10px rgba(0,0,0,0.8);
  animation: aboutSpin 12s linear infinite;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-hero-disc-container:hover .about-hero-disc {
  transform: rotateY(180deg) scale(1.08);
}

/* Grooves on the vinyl */
.about-hero-disc::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px double rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.about-hero-disc-label {
  width: 38px;
  height: 38px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero-disc-center {
  width: 8px;
  height: 8px;
  background: var(--bg-surface);
  border-radius: 50%;
}

@keyframes aboutSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.about-tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 600px;
  margin: 10px auto 0;
  line-height: 1.5;
}

.philosophy-intro {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.about-quote-box {
  margin: 35px 0;
  padding: 24px 30px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  position: relative;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.1);
}

.about-quote {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
  font-weight: 500;
}

.section-desc {
  color: var(--text-secondary);
  margin-top: -10px;
  margin-bottom: 25px;
}

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

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  top: 0;
}

.about-card:hover {
  top: -6px;
  background: var(--bg-surface-hover);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.05);
}

.about-card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.about-card:hover .about-card-icon {
  transform: scale(1.15) rotate(5deg);
}

.about-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.about-card p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.about-section h2 {
  font-size: 1.45rem !important;
}

.artist-highlight-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 20px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.artist-highlight-box:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  border-left-color: var(--accent);
  transform: translateX(4px);
}

.highlight-emoji {
  font-size: 1.8rem;
  display: inline-block;
  animation: pulseArtist 2s infinite ease-in-out;
}

.highlight-content {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
}

@keyframes pulseArtist {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15) rotate(5deg); }
}

/* Gamification Dashboard */
.gamification-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gamification-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.gamification-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 15px rgba(212, 175, 55, 0.15);
}

.gamification-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
  opacity: 0.8;
}

.gamification-icon {
  font-size: 2.2rem;
  min-width: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gamification-info {
  display: flex;
  flex-direction: column;
}

.gamification-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.gamification-value {
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
}

.gamification-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Badges section */
.badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

.badge-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.badge-item:hover {
  transform: scale(1.15) rotate(8deg);
  border-color: var(--accent);
  background: rgba(212, 175, 55, 0.05);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.badge-tooltip {
  visibility: hidden;
  width: 200px;
  background-color: #111;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 1000;
  bottom: 125%; /* Position above the badge */
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  pointer-events: none;
}

.badge-tooltip strong {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 2px;
}

.badge-tooltip .badge-prog {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.badge-item:hover .badge-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Wood Crate Visual Enhancements */
.crate-header {
  background: linear-gradient(135deg, rgba(84, 84, 101, 0.1) 0%, rgba(21, 21, 27, 0.2) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.crate-meta {
  display: flex;
  gap: 25px;
}

.crate-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crate-meta-val {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
}

/* Enhancing shelf row to feel like a high-end wooden crate */
.shelf-row::after {
  background: linear-gradient(to bottom, #8B5A2B 0%, #5C3A21 100%) !important; /* Rich natural wood tone */
  border-top: 3px solid #CD853F !important; /* Top panel sheen */
  box-shadow: 0 10px 20px rgba(0,0,0,0.7), inset 0 2px 2px rgba(255,255,255,0.15) !important;
}

/* Crate wood grain side support panels for visual flair */
.shelf-group::before {
  content: '';
  position: absolute;
  left: -12px;
  bottom: 0;
  top: 45px;
  width: 14px;
  background: linear-gradient(to right, #5C3A21 0%, #3d2616 100%);
  border-right: 1px solid #CD853F;
  border-radius: 4px 0 0 4px;
  z-index: 4;
}

.shelf-group::after {
  content: '';
  position: absolute;
  right: -12px;
  bottom: 0;
  top: 45px;
  width: 14px;
  background: linear-gradient(to left, #5C3A21 0%, #3d2616 100%);
  border-left: 1px solid #CD853F;
  border-radius: 0 4px 4px 0;
  z-index: 4;
}

/* ==========================================================================
   ADMIN STATISTICS DASHBOARD STYLES
   ========================================================================== */

.admin-dashboard-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 15px 60px 15px;
}

/* Header */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 35px;
}

.admin-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 5px;
}

.admin-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(167, 59, 36, 0.08);
  border: 1px solid var(--accent);
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.05em;
}

.admin-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Metrics Grid */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.admin-metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 4px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow);
  border-color: var(--accent-secondary);
}

.metric-icon {
  font-size: 1.8rem;
  background: var(--bg-dark);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  font-weight: 600;
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
  line-height: 1.2;
  margin-top: 2px;
}

/* Charts Containers */
.admin-charts-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.admin-charts-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.admin-chart-container {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 25px;
  box-shadow: 0 2px 4px var(--shadow);
  min-width: 300px;
}

.admin-chart-container h3 {
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.chart-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Row sizing helpers */
.col-4 { flex: 1 1 30%; }
.col-6 { flex: 1 1 45%; }
.col-8 { flex: 1 1 60%; }

.canvas-wrapper {
  position: relative;
  height: 280px;
  width: 100%;
}

.canvas-wrapper.doughnut {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Genre Cloud Card */
.admin-genre-cloud-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 2px 4px var(--shadow);
}

.admin-genre-cloud-card .card-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.admin-genre-cloud-card h2 {
  font-size: 1.4rem;
  font-family: var(--font-display);
  color: var(--text-primary);
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.genre-cloud-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 18px;
  padding: 10px 0;
  max-width: 950px;
  margin: 0 auto;
}

.admin-genre-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 16px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border);
  cursor: default;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  font-family: var(--font-sans);
  line-height: 1;
}

.admin-genre-tag:hover {
  transform: scale(1.06);
  border-color: var(--accent);
  background: var(--bg-surface);
  box-shadow: 0 4px 10px rgba(167, 59, 36, 0.08);
  opacity: 1 !important;
}

/* Genre pill counter */
.admin-genre-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: rgba(28, 27, 26, 0.06);
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.admin-genre-tag:hover .admin-genre-badge {
  background: var(--accent);
  color: #ffffff;
}

/* Color palettes based on relevance hierarchy */
.admin-genre-tag.color-0 { color: var(--text-muted); }
.admin-genre-tag.color-1 { color: var(--text-secondary); }
.admin-genre-tag.color-2 { color: var(--accent-secondary); font-weight: 500; }
.admin-genre-tag.color-3 { color: var(--accent); font-weight: 600; }
.admin-genre-tag.color-4 { color: var(--accent); font-weight: 700; border-color: rgba(167, 59, 36, 0.3); }

/* Leaderboards Section */
.admin-leaderboards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.admin-leaderboard-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 25px;
  box-shadow: 0 2px 4px var(--shadow);
}

.admin-leaderboard-card h3 {
  font-size: 1.2rem;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

.leaderboard-item:hover {
  border-color: var(--accent-secondary);
}

.leaderboard-rank {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  width: 26px;
  height: 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.leaderboard-name {
  font-weight: 600;
  font-size: 0.95rem;
  flex-grow: 1;
}

.admin-user-link {
  font-family: var(--font-mono);
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.admin-user-link:hover {
  color: var(--accent);
}

.leaderboard-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.leaderboard-details strong {
  font-size: 0.95rem;
  font-family: var(--font-display);
}

.admin-album-link {
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.admin-album-link:hover {
  color: var(--accent);
}

.leaderboard-details span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-top: 1px;
}

.leaderboard-score {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid var(--border);
}

.empty-list {
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  padding: 15px 0;
  font-size: 0.9rem;
}

/* Responsiveness adjustments */
@media(max-width: 992px) {
  .col-8, .col-6, .col-4 {
    flex: 1 1 100%;
  }
}



