@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);
}

/* Mobile Bottom Dock Navigation */
.mobile-bottom-dock {
  display: none;
}

@media (max-width: 768px) {
  /* Remove top navigation menu on mobile when bottom dock is shown */
  .app-header .app-nav {
    display: none !important;
  }

  .mobile-bottom-dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 -4px 16px var(--shadow);
  }

  .mobile-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
  }

  .mobile-dock-item.active, .mobile-dock-item:hover {
    color: var(--accent);
  }

  .mobile-dock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
  }

  .mobile-dock-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-dock-create {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(167, 59, 36, 0.35);
    margin-top: -14px;
    border: 2px solid var(--bg-surface);
  }

  .mobile-dock-create svg {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
    stroke-width: 2.2;
  }

  /* Add spacing at page bottom so content isn't covered by bottom dock */
  body {
    padding-bottom: 70px;
  }
}

/* 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: 8px;
  padding: 4px;
  margin-bottom: 30px;
  overflow-x: auto;
}

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

.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-draft-status-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-secondary);
  border-radius: 6px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px;
}

.feed-draft-status-card.is-ready {
  border-left-color: var(--accent);
}

.feed-draft-status-content {
  min-width: 0;
}

.feed-draft-status-meta-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
}

.feed-draft-status-badge {
  border: 1px solid rgba(214, 175, 55, 0.45);
  border-radius: 999px;
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 5px 8px;
  text-transform: uppercase;
}

.feed-draft-status-card.is-ready .feed-draft-status-badge {
  border-color: rgba(23, 126, 137, 0.35);
  color: var(--accent);
}

.feed-draft-status-week {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.feed-draft-status-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 4px;
}

.feed-draft-status-copy,
.feed-draft-status-missing {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.feed-draft-status-missing {
  color: var(--accent-secondary);
  margin-top: 6px;
}

.feed-draft-status-action {
  flex: 0 0 auto;
  min-width: 128px;
}

.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: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(229, 223, 213, 0.7);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px -6px rgba(28, 27, 26, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.rec-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 32px -8px rgba(167, 59, 36, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* 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 14px rgba(28, 27, 26, 0.28);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-radius: 2px;
}

/* Plastic outer sleeve reflection sheen */
.vinyl-sleeve::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.08) 35%,
    transparent 55%,
    rgba(255, 255, 255, 0.12) 100%
  );
  pointer-events: none;
  z-index: 3;
}

.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);
  }
}

@keyframes vinyl-playing-spin {
  0% {
    transform: translateX(18%) rotate(0deg);
  }
  100% {
    transform: translateX(18%) rotate(360deg);
  }
}

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

/* Active playback vinyl rotation */
.rec-card.is-playing .vinyl-sleeve {
  transform: translateX(-15%);
}

.rec-card.is-playing .vinyl-disk {
  transform: translateX(18%);
  animation: vinyl-playing-spin 3.5s linear infinite !important;
}

/* 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;
  align-items: center;
  gap: 10px;
}

.social-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  box-shadow: 0 1px 3px var(--shadow);
}

.social-link-icon .social-icon-svg {
  width: 18px;
  height: 18px;
  display: block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-link-icon:hover {
  transform: translateY(-2px);
}

.social-link-icon:active {
  transform: translateY(0);
}

/* Individual Brand Hover States */
.social-link-icon.social-x:hover {
  color: #ffffff !important;
  background: #000000 !important;
  border-color: #000000 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-link-icon.social-bluesky:hover {
  color: #ffffff !important;
  background: #1185fe !important;
  border-color: #1185fe !important;
  box-shadow: 0 4px 12px rgba(17, 133, 254, 0.3);
}

.social-link-icon.social-instagram:hover {
  color: #ffffff !important;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%) !important;
  border-color: #d6249f !important;
  box-shadow: 0 4px 12px rgba(214, 36, 159, 0.3);
}

.social-link-icon.social-tiktok:hover {
  color: #ffffff !important;
  background: #000000 !important;
  border-color: #000000 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* User Search Page */
.user-search-wrapper {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  padding: 10px 0 40px;
}

.user-search-title {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 8px;
  text-align: center;
  color: var(--text-primary);
}

.user-search-subtitle {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 30px;
  font-size: 1rem;
}

.user-search-input-wrapper {
  margin-bottom: 32px;
  position: relative;
  width: 100%;
}

.user-search-input {
  width: 100%;
  font-size: 1.15rem;
  font-family: var(--font-sans);
  padding: 16px 22px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 4px 15px var(--shadow);
  box-sizing: border-box;
}

.user-search-input::placeholder {
  color: var(--text-muted);
}

.user-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--border-focus), 0 4px 20px var(--shadow);
}

.suggested-users-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.suggested-users-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.suggested-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 4px 16px var(--shadow);
}

.suggested-user-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(28, 27, 26, 0.08);
}

.user-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}

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

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-card-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-card-slot {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.user-card-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.user-card-actions form {
  margin: 0;
  display: inline-block;
}

.user-follow-btn {
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 500;
  white-space: nowrap;
}

.empty-search-container {
  border-style: dashed;
  background: transparent;
  padding: 48px 24px;
}

.empty-search-icon {
  animation: none;
  font-size: 3.5rem;
  margin-bottom: 12px;
}

/* 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;
  box-sizing: border-box;
  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;
  box-sizing: border-box;
  padding: 12px;
  width: 100%;
  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);
}

.field_with_errors {
  width: 100%;
}

.field_with_errors .form-input,
.field_with_errors .comment-input-area {
  width: 100%;
}

/* 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: 420px;
  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: 18px 22px;
  border-radius: 14px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.mixtape-banner-title {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 4px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.mixtape-banner-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 4px;
}

.mixtape-banner-intro {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
  line-height: 1.35;
}

.mixtape-banner-disc {
  position: absolute;
  right: -25px;
  top: -25px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, #333 4%, #111 6%, #000 30%);
  opacity: 0.12;
  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;
}

.search-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.btn-toggle-advanced-search {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-toggle-advanced-search:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent);
  color: var(--text-primary);
}

.advanced-search-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 12px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
  animation: fadeInDown 0.2s ease;
}

.advanced-search-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 0.9fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .advanced-search-grid {
    grid-template-columns: 1fr;
  }
}

.advanced-search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.form-input-sm {
  padding: 8px 12px;
  font-size: 0.88rem;
}

.advanced-search-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.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;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.form-actions-left,
.form-actions-right {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-actions-left {
  margin-right: auto;
}

.form-actions-right {
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.recommendation-action {
  min-height: 42px;
  justify-content: center;
  padding: 0 18px;
  border-radius: 6px;
  white-space: nowrap;
}

.recommendation-action-primary {
  min-width: 170px;
  box-shadow: 0 8px 18px rgba(23, 126, 137, 0.18);
}

.recommendation-action-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(23, 126, 137, 0.22);
}

.recommendation-action-draft {
  border-color: rgba(23, 126, 137, 0.35);
  color: var(--accent);
}

.recommendation-action-draft:hover {
  border-color: var(--accent);
  background: rgba(23, 126, 137, 0.06);
}

.recommendation-action-cancel {
  color: var(--text-secondary);
}

.recommendation-action-danger {
  min-width: 150px;
}

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

.publish-action-container .recommendation-search-help {
  max-width: 260px;
  margin-top: 0;
  text-align: right;
  line-height: 1.35;
}

.publish-action-help.is-incomplete {
  color: var(--accent-secondary);
}

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

@media (max-width: 600px) {
  .form-actions-bar,
  .form-actions-left,
  .form-actions-right,
  .publish-action-container {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .recommendation-action,
  .recommendation-action-primary,
  .recommendation-action-danger {
    width: 100%;
    min-width: 0;
  }

  .publish-action-container .recommendation-search-help {
    max-width: none;
    text-align: left;
  }

  .feed-draft-status-card {
    align-items: stretch;
    flex-direction: column;
  }

  .feed-draft-status-action {
    width: 100%;
  }
}

/* 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: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 12px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.mixtape-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  color: #111111 !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  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;
  flex-shrink: 0;
}

.mixtape-nav-btn:hover:not(.disabled) {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

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

.mixtape-nav-icon {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.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: 10px;
  margin-bottom: 20px;
  position: sticky;
  top: 66px;
  z-index: 90;
  background: var(--bg-dark, #0b0c10);
  padding: 6px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.feed-week-nav-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 38px;
  height: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
  box-sizing: border-box;
}

.feed-week-nav-btn .nav-arrow {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
}

.feed-week-nav-btn .nav-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 1px 5px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.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:hover:not(.disabled) .nav-count {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.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-socials {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.footer-socials-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 600;
}

.brand-socials-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-social-link:hover {
  transform: translateY(-1px);
}

.brand-social-link.brand-x:hover {
  color: #ffffff !important;
  background: #000000 !important;
  border-color: #000000 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.brand-social-link.brand-instagram:hover {
  color: #ffffff !important;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%) !important;
  border-color: #d6249f !important;
  box-shadow: 0 2px 8px rgba(214, 36, 159, 0.2);
}

.brand-social-link.brand-tiktok:hover {
  color: #ffffff !important;
  background: #000000 !important;
  border-color: #000000 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.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;
}

/* Editorial guides */
.editorial-page {
  max-width: 880px;
}

.editorial-eyebrow {
  margin: 0 0 8px;
  color: var(--accent) !important;
  font-size: 0.78rem !important;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.editorial-deck {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.65;
}

.editorial-page section p + p {
  margin-top: 12px;
}

.editorial-steps,
.editorial-prompts,
.editorial-checklist {
  display: grid !important;
  gap: 12px !important;
  margin-top: 14px;
  line-height: 1.6;
}

.editorial-example,
.editorial-next-step {
  margin: 18px 0;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.editorial-next-step h2 {
  border: 0;
  padding: 0;
}

.editorial-next-step a {
  color: var(--accent);
  font-weight: 700;
}

.editorial-faq {
  display: grid;
  gap: 10px;
}

.editorial-faq details {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.editorial-faq summary {
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
}

.editorial-faq details p {
  margin-top: 12px;
}

/* Contact Page Specifics */
.contact-grid {
  display: grid;
  grid-template-columns: 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: 10005;
  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 */


/* Crate wood grain side support panels for visual flair */




/* ==========================================================================
   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;
}

/* Navigation Menu */
.admin-nav-menu {
  margin-bottom: 30px;
}

.admin-nav-scroll-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 4px;
}

.admin-nav-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.admin-nav-tabs {
  display: inline-flex;
  min-width: 100%;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 2px 6px var(--shadow);
}

.admin-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid transparent;
}

.admin-nav-tab:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
  border-color: var(--border);
  transform: translateY(-1px);
}

.admin-nav-tab.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(167, 59, 36, 0.25);
}

.admin-nav-tab.active:hover {
  background: var(--accent);
  color: #ffffff;
  transform: none;
}

.admin-nav-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.admin-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  border-radius: 10px;
  background: var(--bg-surface-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  line-height: 1;
}

.admin-nav-badge.warning {
  background: #c5221f;
  color: #ffffff;
  border-color: #c5221f;
  box-shadow: 0 0 6px rgba(197, 34, 31, 0.4);
}

.admin-nav-tab.active .admin-nav-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.admin-nav-tab.active .admin-nav-badge.warning {
  background: #ffffff;
  color: #c5221f;
  border-color: #ffffff;
}

/* 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;
}

/* Admin Registered Users Card & Table */
.admin-users-card {
  margin-top: 30px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  box-shadow: 0 2px 4px var(--shadow);
}

.admin-users-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-users-header h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.users-summary-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-users-table th {
  background: var(--bg-surface-hover);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.admin-users-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-primary);
}

.admin-users-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-users-table tbody tr:hover {
  background-color: rgba(167, 59, 36, 0.02);
}

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar-placeholder {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-mono);
  overflow: hidden;
  flex-shrink: 0;
}

.admin-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-avatar-initials {
  font-size: 1rem;
}

.admin-user-details {
  display: flex;
  flex-direction: column;
}

.admin-user-name {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 600;
}

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

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

.day-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.streak-reputation-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.streak-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

.reputation-badge {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.recs-count-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 4px;
}

.recs-count-tag.published {
  background: rgba(167, 59, 36, 0.08);
  color: var(--accent);
  border: 1px solid rgba(167, 59, 36, 0.2);
}

.recs-count-tag.draft {
  background: var(--bg-surface-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.status-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

.status-badge.status-published {
  background: #e6f4ea;
  color: #137333;
}

.status-badge.status-draft {
  background: #fef7e0;
  color: #b06000;
}

.status-badge.status-pending {
  background: #e8f0fe;
  color: #1a73e8;
}

.status-badge.status-expired {
  background: #fce8e6;
  color: #c5221f;
}

.joined-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.empty-table-cell {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-style: italic;
}

/* Pagination Styling */
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.page-numbers {
  display: flex;
  gap: 6px;
  align-items: center;
}

.page-number, .page-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-number:hover, .page-link:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.page-number.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  font-weight: 700;
}

.page-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   Admin Content Moderation Dashboard Styles
   ========================================================================== */

.admin-moderation-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.admin-moderation-header-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 6px var(--shadow);
}

.admin-moderation-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.admin-moderation-heading {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.moderation-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(197, 34, 31, 0.08);
  border: 1px solid rgba(197, 34, 31, 0.3);
  color: #c5221f;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5221f;
  box-shadow: 0 0 0 0 rgba(197, 34, 31, 0.7);
  animation: pulse-red 1.8s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(197, 34, 31, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(197, 34, 31, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(197, 34, 31, 0);
  }
}

.moderation-clear-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(19, 115, 51, 0.08);
  border: 1px solid rgba(19, 115, 51, 0.25);
  color: #137333;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}

.moderation-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
}

.moderation-stat-card {
  background: var(--bg-surface-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.moderation-stat-card.active-stat {
  border-color: var(--accent);
  background: rgba(167, 59, 36, 0.04);
}

.mod-stat-number {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1.2;
}

.mod-stat-number.pending { color: #c5221f; }
.mod-stat-number.resolved { color: #137333; }
.mod-stat-number.dismissed { color: var(--text-muted); }
.mod-stat-number.total { color: var(--text-primary); }

.mod-stat-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Filter Bar */
.moderation-filters-bar {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 2px 4px var(--shadow);
  overflow-x: auto;
  scrollbar-width: none;
}

.moderation-filters-bar::-webkit-scrollbar {
  display: none;
}

.moderation-filters-group {
  display: inline-flex;
  gap: 6px;
  min-width: 100%;
}

.moderation-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

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

.moderation-filter-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.filter-count-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--bg-surface-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.filter-count-badge.highlight {
  background: #c5221f;
  color: #ffffff;
  border-color: #c5221f;
}

.moderation-filter-btn.active .filter-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* Report Cards List */
.moderation-cards-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.moderation-report-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.moderation-report-card.status-pending {
  border-left: 4px solid #c5221f;
}

.moderation-report-card.status-resolved {
  border-left: 4px solid #137333;
}

.moderation-report-card.status-dismissed {
  border-left: 4px solid #8E887F;
  opacity: 0.88;
}

.mod-card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.mod-card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mod-type-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.mod-type-badge.type-rec {
  background: rgba(167, 59, 36, 0.08);
  color: var(--accent);
  border: 1px solid rgba(167, 59, 36, 0.2);
}

.mod-type-badge.type-comment {
  background: rgba(189, 142, 72, 0.12);
  color: var(--accent-secondary);
  border: 1px solid rgba(189, 142, 72, 0.3);
}

.mod-reason-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-primary);
}

.mod-status-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.mod-status-pill.status-pending {
  background: #fce8e6;
  color: #c5221f;
  border: 1px solid rgba(197, 34, 31, 0.2);
}

.mod-status-pill.status-resolved {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid rgba(19, 115, 51, 0.2);
}

.mod-status-pill.status-dismissed {
  background: var(--bg-surface-hover);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.mod-card-timestamp {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Card Body Grid */
.mod-card-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

@media (max-width: 860px) {
  .mod-card-grid {
    grid-template-columns: 1fr;
  }
}

.mod-target-preview-box {
  background: var(--bg-surface-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
}

.mod-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mod-box-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.mod-view-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.mod-rec-preview {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.mod-rec-cover {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-dark);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.mod-rec-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mod-rec-info {
  flex: 1;
  min-width: 0;
}

.mod-rec-title strong {
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--text-primary);
}

.mod-rec-artist {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

.mod-rec-author {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.mod-comment-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.mod-content-quote {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.mod-item-deleted {
  padding: 15px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.85rem;
}

/* Reporter & Actions Box */
.mod-reporter-action-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mod-reporter-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.mod-meta-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mod-reporter-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mod-anon-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-surface-hover);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.mod-reporter-message {
  background: rgba(189, 142, 72, 0.08);
  border: 1px solid rgba(189, 142, 72, 0.25);
  border-radius: 6px;
  padding: 10px 14px;
}

.mod-message-text {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-top: 4px;
  white-space: pre-wrap;
}

/* Action Form */
.mod-action-form-wrap {
  margin-top: auto;
  padding-top: 8px;
}

.mod-action-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mod-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mod-field-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.mod-input-note {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-surface);
  color: var(--text-primary);
}

.mod-input-note:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(167, 59, 36, 0.15);
}

.mod-form-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mod-btn-resolve {
  background: #137333 !important;
  border-color: #137333 !important;
  color: #ffffff !important;
}

.mod-btn-resolve:hover {
  background: #0f5c29 !important;
  border-color: #0f5c29 !important;
}

.mod-btn-dismiss {
  background: var(--bg-surface-hover) !important;
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
}

.mod-btn-dismiss:hover {
  background: var(--border) !important;
}

/* Resolution History Box */
.mod-resolution-history {
  margin-top: auto;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 0.8rem;
}

.mod-history-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.mod-history-note {
  color: var(--text-secondary);
  margin-top: 4px;
  font-size: 0.8rem;
}

/* Empty State */
.moderation-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.moderation-empty-state .empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.moderation-empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.moderation-empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

/* Drag & Drop Upload Container styling */
.drag-drop-zone {
  position: relative;
  border: 1px dashed var(--border);
  border-radius: 4px;
  padding: 20px 15px;
  text-align: center;
  background: var(--bg-surface);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 5px;
}

.drag-drop-zone:hover, .drag-drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--bg-surface-hover);
}

.drag-drop-icon {
  font-size: 1.6rem;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.drag-drop-zone:hover .drag-drop-icon, .drag-drop-zone.drag-over .drag-drop-icon {
  transform: scale(1.1);
  color: var(--accent);
}

.drag-drop-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.drag-drop-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}

.drag-drop-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

/* Responsive polish */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

img,
picture,
svg,
canvas,
video {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

input,
textarea,
select,
.btn,
.nav-link,
.platform-button,
.featured-track-pill {
  min-width: 0;
}

.btn {
  min-height: 40px;
  justify-content: center;
  text-align: center;
}

.app-nav,
.rec-info,
.profile-details,
.mixtape-track-info,
.leaderboard-details,
.gamification-info {
  min-width: 0;
}

.rec-title,
.rec-artist,
.rec-author,
.feed-header p,
.onboarding-banner-text,
.locked-subtitle,
.mixtape-track-title,
.mixtape-track-meta,
.leaderboard-details,
.leaderboard-name,
.details-album-title,
.details-album-meta,
.show-user-link,
.social-link,
.platform-button span,
.featured-track-pill span,
.track-radio-item span {
  overflow-wrap: anywhere;
}

.recommendations-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.admin-leaderboards-row {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.feed-header p,
.onboarding-banner-text {
  min-width: 0;
  max-width: 100%;
}

@media (pointer: coarse) {
  .btn,
  .nav-link,
  .scope-tab,
  .platform-button,
  .feed-week-nav-btn,
  .mixtape-nav-btn,
  .mixtape-date-input,
  .form-input,
  .comment-input-area {
    min-height: 44px;
  }
}

@media (max-width: 900px) {
  .header-container {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  .app-logo {
    justify-content: center;
    font-size: 1.25rem;
  }

  .app-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 2px 4px;
    scroll-padding-inline: 2px;
    scrollbar-width: none;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .app-nav::-webkit-scrollbar {
    display: none;
  }

  .app-nav .nav-link,
  .app-nav .btn,
  .app-nav .nav-user-info {
    flex: 0 0 auto;
  }

  .app-nav .nav-user-info {
    margin-left: 0 !important;
    padding: 6px 10px;
  }

  .details-container {
    gap: 28px;
  }

  .details-album-column {
    position: static;
  }

  .recommendation-form-grid,
  .profile-edit-grid {
    grid-template-columns: 1fr !important;
  }

  .profile-edit-grid {
    gap: 24px !important;
  }

  .admin-header {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .admin-header-actions .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .main-container {
    margin-top: 24px;
    padding: 0 16px;
  }

  .flash-container {
    padding: 0 16px;
  }

  .feed-header {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .feed-scope-tabs {
    width: 100%;
  }

  .scope-tab {
    flex: 1 1 0;
    text-align: center;
  }

  .calendar-bar-wrapper {
    gap: 8px;
    margin-left: -4px;
    margin-right: -4px;
  }

  .feed-week-nav-btn {
    border-radius: 8px;
    flex: 0 0 34px;
    height: 46px;
    width: 34px;
  }

  .feed-week-nav-btn .nav-arrow {
    font-size: 1.2rem;
  }

  .feed-week-nav-btn .nav-count {
    font-size: 0.62rem;
    padding: 1px 3px;
  }

  .calendar-bar {
    padding: 5px;
    scroll-snap-type: x proximity;
  }

  .calendar-day {
    flex: 0 0 90px;
    min-width: 90px;
    scroll-snap-align: start;
  }

  .locked-feed-container {
    border-radius: 8px;
    padding: 36px 16px;
  }

  .recommendations-grid {
    gap: 20px;
  }

  .details-review-card,
  .comments-card,
  .creator-dashboard,
  .metadata-preview-card,
  .mixtape-export-card,
  .admin-chart-container,
  .admin-genre-cloud-card,
  .admin-leaderboard-card {
    padding: 20px;
  }

  .show-vinyl-wrapper {
    margin: 0 auto;
    max-width: 360px;
    overflow: hidden;
    width: 100%;
  }

  .details-vinyl-disc-spin {
    height: 78%;
    left: 14%;
    top: 11%;
    width: 78%;
  }

  .details-vinyl-sleeve {
    width: 78%;
  }

  .listen-platforms {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .listen-title {
    margin-bottom: 0;
  }

  .platform-button {
    width: 100%;
  }

  .track-item {
    align-items: flex-start;
    gap: 8px;
  }

  .show-tracklist-container .track-item.featured {
    flex-wrap: wrap;
    height: auto !important;
    line-height: 1.35 !important;
    min-height: 44px;
  }

  .show-tracklist-container .track-item.featured > span:last-child {
    margin-left: 0 !important;
  }

  .featured-track-pill {
    height: auto !important;
    line-height: 1.35 !important;
    max-width: 100%;
    min-height: 34px;
    white-space: normal;
  }

  .profile-card {
    align-items: stretch;
    border-radius: 8px;
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
    text-align: center;
  }

  .profile-avatar-large {
    align-self: center;
    flex: 0 0 auto;
  }

  .profile-meta-row,
  .profile-socials {
    flex-wrap: wrap;
    justify-content: center;
  }

  #follow-actions {
    align-items: stretch !important;
    flex-direction: column;
    width: 100%;
  }

  #follow-actions form,
  #follow-actions .btn {
    width: 100%;
  }

  .gamification-dashboard {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gamification-card {
    min-width: 0 !important;
  }

  .profile-shelf-container {
    gap: 42px;
    margin-top: 28px;
  }

  .shelf-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
  }

  .shelf-title::after {
    width: 100%;
  }

  .shelf-group::before,
  .shelf-group::after {
    display: none;
  }

  .shelf-row {
    gap: 14px;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  .shelf-vinyl {
    width: clamp(96px, 30vw, 128px);
  }

  .mixtape-banner {
    border-radius: 8px;
    padding: 22px 18px;
  }

  .mixtape-banner h1 {
    font-size: 1.7rem !important;
    line-height: 1.15 !important;
  }

  .mixtape-banner-disc {
    height: 130px;
    right: -45px;
    top: -45px;
    width: 130px;
  }

  .mixtape-track-card {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
  }

  .mixtape-track-left {
    align-items: flex-start;
    min-width: 0;
    width: 100%;
  }

  .mixtape-track-index {
    flex: 0 0 24px;
  }

  .mixtape-album-mini-cover {
    flex: 0 0 48px;
  }

  .mixtape-actions {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    width: 100%;
  }

  .mixtape-actions .featured-track-pill {
    flex: 1 0 100%;
    justify-content: center;
  }

  .mixtape-btn-base {
    border-radius: 8px;
    flex: 1 1 44px;
    height: 40px;
    max-width: 64px;
    min-width: 44px;
  }

  .export-actions-row,
  .export-actions-row .btn {
    width: 100%;
  }

  .suggested-user-card {
    align-items: stretch !important;
    flex-direction: column;
    gap: 14px;
  }

  .suggested-user-card > a {
    min-width: 0;
    width: 100%;
  }

  .suggested-user-card form,
  .suggested-user-card .btn {
    width: 100%;
  }

  .profile-picture-field {
    align-items: stretch !important;
    flex-direction: column;
  }

  .profile-picture-field .profile-avatar-large {
    align-self: center;
  }

  .profile-edit-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-edit-actions .btn,
  .profile-edit-actions input[type="submit"] {
    width: 100%;
  }

  .admin-dashboard-wrapper {
    padding: 12px 0 40px;
  }

  .admin-metrics-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .admin-charts-row {
    gap: 18px;
  }

  .admin-chart-container {
    min-width: 0;
    width: 100%;
  }

  .canvas-wrapper {
    height: 240px;
  }

  .leaderboard-item {
    align-items: flex-start;
    gap: 10px;
  }

  .leaderboard-rank {
    flex: 0 0 26px;
    margin-right: 0;
  }

  .leaderboard-score {
    align-self: flex-start;
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .main-container {
    margin-top: 20px;
    padding: 0 14px;
  }

  .flash-container {
    margin-top: 12px;
    padding: 0 14px;
  }

  .flash-message {
    border-radius: 6px;
    padding: 12px 14px;
  }

  .app-header {
    position: sticky;
  }

  .app-logo {
    font-size: 1.15rem;
  }

  .app-logo-disc {
    height: 22px;
    width: 22px;
  }

  .app-nav .btn,
  .nav-link {
    font-size: 0.74rem;
    padding: 8px 10px;
  }

  .auth-container {
    align-items: flex-start;
    justify-content: stretch;
    min-height: auto;
    padding: 20px 0;
    width: 100%;
  }

  .auth-card {
    border-radius: 8px;
    flex: 1 1 auto;
    max-width: none;
    padding: 28px 20px;
    width: 100%;
  }

  .auth-header h2,
  .static-page-header h1,
  .admin-header h1,
  .details-album-title {
    font-size: 1.65rem;
    line-height: 1.18;
  }

  .feed-header h1,
  .main-container > h1,
  [data-controller="user-search"] h1 {
    font-size: 1.75rem !important;
    line-height: 1.18 !important;
  }

  .calendar-bar-wrapper {
    gap: 6px;
  }

  .feed-week-nav-btn {
    flex-basis: 34px;
    height: 54px;
    width: 34px;
  }

  .calendar-day {
    min-width: 78px;
    padding: 8px 5px;
  }

  .day-name,
  .day-date {
    font-size: 0.74rem;
  }

  .day-slots {
    font-size: 0.66rem;
  }

  .rec-info {
    padding: 16px;
  }

  .rec-title {
    font-size: 1.2rem;
  }

  .rec-card:hover,
  .shelf-vinyl:hover .shelf-vinyl-sleeve,
  .shelf-vinyl:hover .shelf-vinyl-disk,
  .gamification-card:hover,
  .about-card:hover,
  .admin-metric-card:hover {
    transform: none;
  }

  .creator-dashboard,
  .details-review-card,
  .comments-card,
  .metadata-preview-card,
  .mixtape-export-card,
  .static-page-container,
  .admin-chart-container,
  .admin-genre-cloud-card,
  .admin-leaderboard-card {
    border-radius: 8px;
    padding: 18px 16px;
  }

  .manual-toggle-container {
    text-align: left;
  }

  .manual-toggle-container .btn {
    width: 100%;
  }

  .tracks-selection-list {
    max-height: 220px;
  }

  .track-radio-item {
    align-items: flex-start;
  }

  .search-results-dropdown {
    max-height: 60vh;
  }

  .details-container {
    margin-top: 12px;
  }

  .details-album-artist {
    font-size: 1.1rem;
  }

  .review-quote {
    font-size: 1rem;
    padding-left: 14px;
  }

  .comments-card {
    margin-top: 28px !important;
  }

  .comment-node {
    border-radius: 8px;
    padding: 12px;
  }

  .comment-node-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .replies-container {
    padding-left: 12px;
  }

  .comment-submit-wrapper .btn {
    width: 100%;
  }

  .profile-name {
    font-size: 1.55rem;
  }

  .profile-meta-row {
    gap: 10px 14px;
  }

  .gamification-card {
    align-items: flex-start;
    padding: 16px;
  }

  .badge-tooltip {
    display: none;
  }

  .mixtape-banner {
    padding: 14px 16px;
    border-radius: 12px;
  }

  .mixtape-banner-title {
    font-size: 1.25rem;
  }

  .mixtape-banner-subtitle {
    font-size: 0.82rem;
  }

  .mixtape-banner-intro {
    font-size: 0.76rem;
  }

  .mixtape-navigation-bar {
    padding: 6px 8px;
    gap: 6px;
    border-radius: 8px;
  }

  .mixtape-week-label {
    display: none;
  }

  .mixtape-nav-btn {
    width: 30px;
    height: 30px;
    font-size: 1.0rem;
    padding: 0;
  }

  .user-search-title {
    font-size: 1.6rem !important;
  }

  .user-search-subtitle {
    font-size: 0.85rem;
    margin-bottom: 18px;
  }

  .user-search-input {
    font-size: 0.98rem;
    padding: 12px 16px;
    border-radius: 10px;
  }

  .suggested-user-card {
    padding: 10px 12px;
    gap: 10px;
  }

  .user-card-name {
    font-size: 0.92rem;
  }

  .user-card-slot {
    font-size: 0.74rem;
  }

  .user-follow-btn {
    font-size: 0.76rem;
    padding: 5px 10px;
    min-width: 68px;
  }

  .mixtape-track-title {
    font-size: 0.98rem;
  }

  .static-page-container {
    margin: 20px auto 46px;
  }

  .static-page-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
  }

  .static-page-content {
    gap: 22px;
  }

  .contact-item,
  .artist-highlight-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .onboarding-banner {
    padding: 12px 14px;
  }

  .onboarding-banner-content {
    padding-right: 26px;
  }

  .onboarding-banner-text {
    display: block;
    max-width: 300px;
    width: 100%;
  }

  .feed-header p {
    max-width: 300px;
  }

  .onboarding-banner-btn {
    width: 100%;
  }

  .onboarding-banner-close {
    right: 10px;
  }

  .onboarding-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .onboarding-card {
    border-radius: 18px 18px 0 0;
    max-height: 92vh;
    overflow-y: auto;
    padding: 56px 20px 24px;
    width: 100%;
  }

  .onboarding-skip-btn {
    right: 16px;
    top: 14px;
  }

  .onboarding-illustration {
    height: 140px;
  }

  .onboarding-calendar-grid {
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    justify-content: flex-start;
  }

  .onboarding-cal-day {
    flex: 0 0 54px;
    height: 72px;
    width: 54px;
  }

  .onboarding-title {
    font-size: 1.45rem;
  }

  .onboarding-footer {
    gap: 10px;
  }

  .onboarding-footer .btn {
    flex: 1 1 0;
    padding: 10px 12px;
  }

  [data-controller="user-search"] input.form-input {
    border-radius: 10px !important;
    font-size: 1rem !important;
    padding: 14px 16px !important;
  }

  .form-input,
  .comment-input-area,
  .mixtape-date-input {
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .main-container {
    padding: 0 12px;
  }

  .calendar-day {
    min-width: 72px;
  }

  .day-slots {
    white-space: nowrap;
  }

  .rec-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .profile-avatar-large {
    height: 72px;
    width: 72px;
  }

  .mixtape-track-left {
    gap: 10px;
  }

  .mixtape-album-mini-cover {
    height: 44px;
    width: 44px;
  }

  .leaderboard-item {
    flex-wrap: wrap;
  }

  .leaderboard-score {
    margin-left: 36px;
  }
}

/* ==========================================================================
   Cookie Manager & Preferences Modal
   ========================================================================== */

.cookie-consent-hidden {
  display: none !important;
}

body.cookie-modal-open {
  overflow: hidden;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 40px);
  max-width: 960px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 36px var(--shadow), 0 4px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
  padding: 20px 24px;
  animation: slideUpCookie 0.3s ease-out;
}

@keyframes slideUpCookie {
  from {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.cookie-banner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner-content {
  flex: 1;
}

.cookie-banner-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.cookie-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.cookie-banner-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.cookie-banner-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 26, 0.45);
  backdrop-filter: blur(6px);
  animation: fadeInCookie 0.2s ease-out;
}

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

.cookie-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: popInCookie 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.cookie-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.cookie-modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cookie-modal-close-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.cookie-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.cookie-modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-category-item {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.cookie-category-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-category-name {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.cookie-badge-active {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(167, 59, 36, 0.1);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(167, 59, 36, 0.2);
}

.cookie-category-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.cookie-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

/* Toggle Switches */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #D3CDC4;
  transition: 0.25s ease;
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s ease;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cookie-switch input:checked + .cookie-slider {
  background-color: var(--accent);
}

.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
}

.cookie-switch-disabled {
  opacity: 0.75;
}

.cookie-switch-disabled .cookie-slider {
  cursor: not-allowed;
  background-color: var(--accent);
}

/* Responsive styles */
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 16px;
  }

  .cookie-banner-container {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .cookie-banner-actions {
    flex-direction: column-reverse;
    width: 100%;
  }

  .cookie-banner-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cookie-modal-card {
    max-height: 90vh;
  }

  .cookie-modal-footer {
    flex-direction: column-reverse;
  }

  .cookie-modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Other Applications Section & Footer Apps Row
   ========================================================================== */

.other-apps-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.apps-grid .app-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.apps-grid .app-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(167, 59, 36, 0.08);
}

.apps-grid .app-card .app-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.apps-grid .app-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.apps-grid .app-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.app-link-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(167, 59, 36, 0.08);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(167, 59, 36, 0.2);
  transition: all 0.2s ease;
}

.apps-grid .app-card:hover .app-link-badge {
  background: var(--accent);
  color: #ffffff;
}

/* Footer Apps Row */
.footer-row-apps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid rgba(229, 223, 213, 0.6);
  font-size: 0.88rem;
}

.footer-apps-label {
  font-weight: 600;
  color: var(--text-primary);
}

.footer-app-link {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-app-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Social Sharing Prompt Modal */
.social-sharing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.social-sharing-overlay.fade-out {
  opacity: 0;
}

.social-sharing-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 90%;
  max-width: 520px;
  padding: 36px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: socialSharingCardEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes socialSharingCardEnter {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.social-sharing-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.social-sharing-close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.social-sharing-icon-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
}

.social-sharing-vinyl-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, #2d3748 0%, #1a202c 70%, #111827 100%);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: spin 20s linear infinite;
}

.social-sharing-grooves {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.social-sharing-disc-center {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.4);
}

.social-sharing-social-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-sharing-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.social-sharing-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 440px;
}

.social-sharing-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
  margin-bottom: 16px;
}

.social-sharing-btn-dismiss {
  flex: 1;
  max-width: 180px;
  padding: 10px 18px;
}

.social-sharing-btn-allow {
  flex: 1;
  max-width: 220px;
  padding: 10px 18px;
}

.social-sharing-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0;
}



/* ==========================================================================
   Guest Conversion & Signup Modal (Track 1)
   ========================================================================== */

/* Prevent body scrolling when guest modal is open */
body.modal-open {
  overflow: hidden !important;
}

/* Guest Signup Modal Overlay */
.guest-signup-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 16px;
  box-sizing: border-box;
}

.guest-signup-modal-overlay.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Modal Card */
.guest-signup-modal-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 30px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
  text-align: center;
  animation: guestModalCardEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

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

/* Close Button */
.guest-signup-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.guest-signup-modal-close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

/* Vinyl Disc Icon */
.guest-signup-icon-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 16px;
}

.guest-signup-vinyl-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, #2d3748 0%, #1a202c 70%, #111827 100%);
  border: 2px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: spin 16s linear infinite;
  position: relative;
}

.guest-signup-grooves {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.guest-signup-disc-center {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.4);
}

.guest-signup-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
}

/* Header Text */
.guest-signup-header {
  margin-bottom: 20px;
}

.guest-signup-badge-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  background: rgba(167, 59, 36, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(167, 59, 36, 0.2);
}

.guest-signup-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 6px 0 8px;
}

.guest-signup-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 auto;
  max-width: 440px;
}

/* Features List */
.guest-signup-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  text-align: left;
  margin-bottom: 24px;
}

.guest-signup-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.guest-signup-feature-item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.guest-feature-icon-bubble {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(167, 59, 36, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guest-feature-text {
  flex: 1;
}

.guest-feature-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 2px;
}

.guest-feature-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin: 0;
}

/* Action Buttons */
.guest-signup-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
  margin-bottom: 14px;
}

.guest-signup-btn-register {
  flex: 1;
  max-width: 220px;
  padding: 11px 20px;
  font-weight: 600;
  text-align: center;
  font-size: 0.92rem;
}

.guest-signup-btn-signin {
  flex: 1;
  max-width: 160px;
  padding: 11px 18px;
  font-weight: 600;
  text-align: center;
  font-size: 0.92rem;
}

.guest-signup-footer-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 0;
}

/* Sticky Guest Conversion Bar */
.guest-conversion-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 860px;
  z-index: 999;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 10px 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: conversionBarSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-sizing: border-box;
}

@keyframes conversionBarSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 25px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.guest-conversion-bar.dismissed {
  opacity: 0;
  transform: translate(-50%, 25px);
  pointer-events: none;
}

.guest-conversion-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.guest-conversion-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 16px;
  flex-wrap: wrap;
}

.guest-conversion-bar-tagline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.guest-conversion-bar-icon {
  font-size: 1.1rem;
}

.guest-conversion-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guest-conversion-btn-join {
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
}

.guest-conversion-btn-signin {
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 20px;
  white-space: nowrap;
}

.guest-conversion-bar-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.guest-conversion-bar-close:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

/* Guest Playable Pill and Comment Prompt in Show */
.featured-track-pill.guest-playable {
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-track-pill.guest-playable:hover {
  border-color: var(--accent) !important;
  background: var(--bg-surface-hover) !important;
  box-shadow: 0 4px 14px rgba(167, 59, 36, 0.16);
  transform: translateY(-1px);
}

.guest-comment-prompt-box {
  background: var(--bg-dark);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guest-comment-prompt-box:hover {
  border-color: var(--accent);
  background: var(--bg-surface-hover);
}

.guest-comment-fake-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}

.guest-comment-placeholder {
  color: var(--text-muted);
  font-size: 0.88rem;
  flex: 1;
  user-select: none;
}

.guest-join-discussion-btn {
  font-size: 0.8rem;
  padding: 6px 14px;
  font-weight: 600;
  flex-shrink: 0;
  border-radius: 6px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .guest-conversion-bar {
    bottom: 68px;
    width: calc(100% - 24px);
    padding: 10px 14px;
  }

  .guest-conversion-bar-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .guest-conversion-bar-tagline {
    font-size: 0.82rem;
  }

  .guest-conversion-bar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .guest-conversion-btn-join,
  .guest-conversion-btn-signin {
    flex: 1;
    text-align: center;
  }

  .guest-signup-modal-card {
    padding: 28px 18px 22px;
  }

  .guest-signup-actions {
    flex-direction: column;
  }

  .guest-signup-btn-register,
  .guest-signup-btn-signin {
    max-width: 100%;
    width: 100%;
  }
}
