/* ================================================================
   BEATMAKER — SPOTIFY-STYLE CSS
   Clean, modern, minimalist music player.
   Dark backgrounds, Spotify green accents, generous whitespace.
   ================================================================ */

/* ---- Custom Properties ---- */
:root {
  --brand1: #1DB954;
  --brand2: #1ed760;
  --brand3: #1DB954;

  --bg: #121212;
  --surface: #181818;
  --surface2: #282828;
  --text: #ffffff;
  --muted: #b3b3b3;
  --line: #282828;

  --radius: 8px;
  --radius-sm: 6px;
  --radius-xs: 4px;
  --max: 620px;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-lcd: 'Inter', system-ui, -apple-system, sans-serif;

  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;
}


/* ================================================================
   RESET & BASE
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

/* Skip to Content (Accessibility) */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--brand1);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.skip-to-content:focus {
  left: 50%;
  transform: translateX(-50%);
}

/* Screen-reader only (visually hidden) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ================================================================
   SCENE — Page Background
   ================================================================ */
.scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px 30px;
  background: var(--bg);
}


/* ================================================================
   BOOMBOX — Main Container (now a clean card)
   ================================================================ */
.boombox {
  width: 100%;
  max-width: var(--max);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.6s ease-out;
}


/* ---- HANDLE — Hidden in Spotify style ---- */
.boombox-handle {
  display: none;
}

.handle-grip {
  display: none;
}


/* ---- BODY — Clean dark card ---- */
.boombox-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--line);
  border-bottom: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  padding: 32px 32px 24px;
  position: relative;
  z-index: 2;
}

/* No brushed metal — clean flat surface */
.boombox-body::before {
  display: none;
}

.boombox-body::after {
  display: none;
}


/* ================================================================
   SPEAKERS — Hidden in Spotify style
   ================================================================ */
.speaker {
  display: none;
}

.speaker-grille,
.speaker-ring,
.speaker-cone,
.cone-ridges,
.dust-cap {
  display: none;
}

/* Keep animations defined but they won't render */
@keyframes speakerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

@keyframes speakerGlow {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: none; }
}

.speaker.playing .speaker-grille,
.speaker.playing .speaker-cone,
.speaker.playing .dust-cap {
  display: none;
}


/* ================================================================
   CENTER PANEL
   ================================================================ */
.center-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2;
  position: relative;
}


/* ---- Producer Badge ---- */
.producer-badge {
  text-align: center;
  padding: 0 0 4px;
}

.producer-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.producer-name::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  margin: 8px auto 0;
  background: var(--brand1);
  border-radius: 2px;
}


/* ---- DISPLAY — Clean panel, no LCD glow ---- */
.display {
  background: var(--bg);
  border-radius: var(--radius);
  border: none;
  box-shadow: none;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Remove scanline effect */
.display::before {
  display: none;
}

/* Remove LED dot */
.display::after {
  display: none;
}

.playing .display::after {
  display: none;
}

.display-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}


/* ---- Cover Art — Large, centered, Spotify-style ---- */
.cover-art {
  width: 200px;
  height: 200px;
  min-width: 200px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--surface2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

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

.default-cover {
  width: 100%;
  height: 100%;
}


/* ---- Track Meta — Clean typography ---- */
.track-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  min-width: 0;
  position: relative;
  z-index: 2;
  width: 100%;
}

.track-title {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  max-width: 100%;
  text-shadow: none;
}

.playing .track-title {
  text-shadow: none;
}

.track-artist {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0;
}

.track-detail {
  display: flex;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 4px;
}

.track-detail .bpm::before {
  content: '';
}

.track-detail .key::before {
  content: '';
}

.track-detail .bpm,
.track-detail .key {
  background: var(--surface2);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  color: var(--muted);
}

.track-desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #666;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-width: 100%;
}


/* ---- EQ Visualizer — Subtle, green bars ---- */
.eq-container {
  margin-top: 8px;
  background: transparent;
  border-radius: var(--radius-xs);
  padding: 4px 0;
  border: none;
  position: relative;
  z-index: 2;
}

#eqCanvas {
  width: 100%;
  height: 32px;
  display: block;
  border-radius: 2px;
  opacity: 0.6;
}

.playing .eq-container {
  border-color: transparent;
  box-shadow: none;
}

.playing #eqCanvas {
  opacity: 1;
}


/* ================================================================
   TRANSPORT CONTROLS
   ================================================================ */
.transport {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}


/* ---- Progress Bar ---- */
.progress-wrap {
  width: 100%;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
}

.progress-wrap::before {
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #404040;
}

.progress-wrap:hover::before {
  background: #4d4d4d;
}

.progress-bar {
  position: absolute;
  top: 4px;
  left: 0;
  height: 4px;
  width: 0%;
  border-radius: 2px;
  background: var(--brand1);
  box-shadow: none;
  transition: width 0.1s linear;
}

.progress-wrap:hover .progress-bar {
  background: var(--brand2);
}

.progress-time {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0;
}


/* ---- Transport Buttons ---- */
.transport-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.btn-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border-radius: 50%;
  transition: all var(--transition);
  position: relative;
}

/* Remove 3D metallic ring */
.btn-transport::before {
  display: none;
}

.btn-prev,
.btn-next {
  width: 36px;
  height: 36px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
}

.btn-prev:hover,
.btn-next:hover {
  color: var(--text);
  background: transparent;
  transform: scale(1.1);
}

.btn-prev:active,
.btn-next:active {
  transform: scale(0.95);
  box-shadow: none;
}

.btn-play {
  width: 56px;
  height: 56px;
  background: var(--brand1);
  color: #000;
  box-shadow: none;
  transition: all var(--transition);
}

.btn-play::before {
  display: none;
}

.btn-play:hover {
  background: var(--brand2);
  transform: scale(1.06);
  box-shadow: none;
}

.btn-play:active {
  transform: scale(0.97);
  box-shadow: none;
}

.icon-play,
.icon-pause {
  pointer-events: none;
}

.icon-play[hidden],
.icon-pause[hidden] {
  display: none;
}


/* ---- Volume ---- */
.volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.volume-icon {
  color: var(--muted);
  flex-shrink: 0;
}

.volume-slider {
  width: 100px;
  height: 4px;
  border-radius: 2px;
  cursor: pointer;
}

.volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: #404040;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: none;
  margin-top: -4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform var(--transition);
}

.volume-slider:hover::-webkit-slider-thumb {
  transform: scale(1.2);
}

.volume-slider::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: #404040;
  border: none;
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}


/* ================================================================
   VU METERS — Hidden in Spotify style
   ================================================================ */
.vu-meters {
  display: none;
}

.vu-meter,
.vu-fill,
.vu-label {
  display: none;
}


/* ================================================================
   SOCIAL STRIP
   ================================================================ */
.social-strip {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 32px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

/* Subtle top divider */
.social-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--line);
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  transition: all var(--transition);
  background: transparent;
  border: 1px solid #333;
  box-shadow: none;
}

.social-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.social-btn:hover {
  transform: translateY(-1px);
  border-color: #555;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.social-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Platform-specific colors — subtle on hover */
.social-btn.soundcloud {
  color: #ff7700;
  border-color: rgba(255, 119, 0, 0.3);
}
.social-btn.soundcloud:hover {
  background: rgba(255, 119, 0, 0.1);
  border-color: rgba(255, 119, 0, 0.5);
  box-shadow: none;
}

.social-btn.spotify {
  color: #1ed760;
  border-color: rgba(30, 215, 96, 0.3);
}
.social-btn.spotify:hover {
  background: rgba(30, 215, 96, 0.1);
  border-color: rgba(30, 215, 96, 0.5);
  box-shadow: none;
}

.social-btn.youtube {
  color: #ff0000;
  border-color: rgba(255, 0, 0, 0.3);
}
.social-btn.youtube:hover {
  background: rgba(255, 0, 0, 0.1);
  border-color: rgba(255, 0, 0, 0.5);
  box-shadow: none;
}

.social-btn.instagram {
  color: #e1306c;
  border-color: rgba(225, 48, 108, 0.3);
}
.social-btn.instagram:hover {
  background: rgba(225, 48, 108, 0.1);
  border-color: rgba(225, 48, 108, 0.5);
  box-shadow: none;
}

.social-btn.tiktok {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}
.social-btn.tiktok:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.social-btn.beatstars {
  color: #e22134;
  border-color: rgba(226, 33, 52, 0.3);
}
.social-btn.beatstars:hover {
  background: rgba(226, 33, 52, 0.1);
  border-color: rgba(226, 33, 52, 0.5);
  box-shadow: none;
}

.social-btn.whatsapp {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.3);
}
.social-btn.whatsapp:hover {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow: none;
}


/* ================================================================
   BEAT LIST PANEL
   ================================================================ */
.beat-list-panel {
  width: 100%;
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}


/* ---- Header ---- */
.beat-list-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.cassette-icon {
  display: flex;
  align-items: center;
  color: var(--brand1);
}

.beat-count {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 400;
  color: #666;
  letter-spacing: 0.04em;
}


/* ---- Beat List ---- */
.beat-list {
  max-height: 360px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Custom scrollbar */
.beat-list::-webkit-scrollbar {
  width: 6px;
}

.beat-list::-webkit-scrollbar-track {
  background: var(--surface);
}

.beat-list::-webkit-scrollbar-thumb {
  background: #404040;
  border-radius: 3px;
}

.beat-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.beat-list-empty {
  padding: 40px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #555;
  letter-spacing: 0;
}


/* ---- Beat Item Row ---- */
.beat-item {
  display: grid;
  grid-template-columns: 28px 44px 1fr auto auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
  border-radius: var(--radius-xs);
  margin: 0 8px;
}

.beat-item:last-child {
  border-bottom: none;
}

.beat-item:hover {
  background: var(--surface2);
}

.beat-item.active {
  background: rgba(29, 185, 84, 0.08);
}

/* Track number */
.beat-item-num {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  width: 28px;
}

.beat-item.active .beat-item-num {
  color: var(--brand1);
}

/* Playing indicator bars */
@keyframes eqBar1 {
  0%, 100% { height: 3px; }
  50% { height: 12px; }
}
@keyframes eqBar2 {
  0%, 100% { height: 6px; }
  50% { height: 14px; }
}
@keyframes eqBar3 {
  0%, 100% { height: 4px; }
  50% { height: 10px; }
}

.beat-item.active.playing .beat-item-num {
  font-size: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 16px;
}

.beat-item.active.playing .beat-item-num::before,
.beat-item.active.playing .beat-item-num::after {
  content: '';
  width: 3px;
  background: var(--brand1);
  border-radius: 1px;
  animation: eqBar1 0.8s ease-in-out infinite;
}

.beat-item.active.playing .beat-item-num::after {
  animation: eqBar2 0.6s ease-in-out infinite 0.2s;
}

/* Cover thumbnail */
.beat-item-cover {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--surface2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.beat-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.beat-item-cover svg {
  width: 18px;
  height: 18px;
  color: #555;
}

/* Title + artist */
.beat-item-info {
  min-width: 0;
}

.beat-item-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition);
}

.beat-item.active .beat-item-title {
  color: var(--brand1);
}

.beat-item-artist {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.beat-item:hover .beat-item-artist {
  color: #ccc;
}

/* BPM */
.beat-item-bpm {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0;
  white-space: nowrap;
}

/* Key */
.beat-item-key {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0;
  min-width: 30px;
  text-align: center;
}

/* Duration */
.beat-item-duration {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0;
  min-width: 36px;
  text-align: right;
}

/* Tags */
.beat-item-tags {
  display: none;
  gap: 4px;
  margin-top: 4px;
}

.beat-tag {
  font-size: 0.65rem;
  font-family: var(--font-body);
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(29, 185, 84, 0.1);
  color: var(--brand1);
  border: none;
}


/* ================================================================
   BOOMBOX FEET — Hidden in Spotify style
   ================================================================ */
.boombox-feet {
  display: none;
}

.foot {
  display: none;
}


/* ================================================================
   POWERED BY / ADMIN
   ================================================================ */
.powered-by {
  margin-top: 24px;
  text-align: center;
}

.admin-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  padding: 8px 16px;
  border-radius: 20px;
}

.admin-link:hover {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}


/* ================================================================
   PLAYING STATE — Global Effects
   ================================================================ */
.boombox.playing .display {
  border-color: transparent;
  box-shadow: none;
}

.boombox.playing .producer-name {
  text-shadow: none;
}


/* ================================================================
   RESPONSIVE — TABLET (max 920px)
   ================================================================ */
@media (max-width: 920px) {
  .scene {
    padding: 30px 16px 24px;
  }

  .boombox-body {
    padding: 28px 24px 20px;
  }

  .cover-art {
    width: 180px;
    height: 180px;
    min-width: 180px;
  }
}


/* ================================================================
   RESPONSIVE — MOBILE (max 768px)
   ================================================================ */
@media (max-width: 768px) {
  .scene {
    padding: 16px 10px 20px;
  }

  .boombox-body {
    padding: 24px 20px 20px;
  }

  .cover-art {
    width: 160px;
    height: 160px;
    min-width: 160px;
  }

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

  .track-artist {
    font-size: 0.85rem;
  }

  /* Transport */
  .btn-play {
    width: 50px;
    height: 50px;
  }

  .btn-prev,
  .btn-next {
    width: 34px;
    height: 34px;
  }

  .transport-buttons {
    gap: 20px;
  }

  /* Social */
  .social-strip {
    padding: 14px 20px;
    gap: 8px;
  }

  .social-btn {
    padding: 7px 14px;
    font-size: 0.7rem;
  }

  /* Beat list */
  .beat-item {
    grid-template-columns: 24px 38px 1fr auto auto auto;
    gap: 10px;
    padding: 8px 16px;
    margin: 0 4px;
  }

  .beat-item-bpm {
    display: none;
  }

  .beat-item-cover {
    width: 38px;
    height: 38px;
  }

  .beat-list-header {
    padding: 12px 20px;
  }
}


/* ================================================================
   RESPONSIVE — SMALL MOBILE (max 560px)
   ================================================================ */
@media (max-width: 560px) {
  .scene {
    padding: 8px 6px 16px;
  }

  .boombox-body {
    padding: 20px 16px;
    border-radius: 10px 10px 0 0;
  }

  .producer-name {
    font-size: 0.95rem;
    letter-spacing: 0.15em;
  }

  .cover-art {
    width: 140px;
    height: 140px;
    min-width: 140px;
  }

  .display {
    padding: 16px 12px;
  }

  .display-inner {
    gap: 12px;
  }

  .track-title {
    font-size: 0.95rem;
    white-space: normal;
    text-align: center;
  }

  .track-meta {
    align-items: center;
  }

  .track-detail {
    justify-content: center;
  }

  .track-desc {
    white-space: normal;
    text-align: center;
  }

  /* Transport */
  .transport-buttons {
    gap: 16px;
  }

  .btn-play {
    width: 48px;
    height: 48px;
  }

  .btn-prev,
  .btn-next {
    width: 32px;
    height: 32px;
  }

  .volume-slider {
    width: 80px;
  }

  /* Social — icon-only */
  .social-strip {
    padding: 12px;
    gap: 8px;
  }

  .social-btn {
    padding: 0;
    font-size: 0;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    justify-content: center;
  }

  .social-btn svg {
    width: 18px;
    height: 18px;
  }

  /* Beat list compact */
  .beat-item {
    grid-template-columns: 20px 1fr auto auto;
    gap: 8px;
    padding: 8px 12px;
    margin: 0 4px;
  }

  .beat-item-cover {
    display: none;
  }

  .beat-item-key {
    display: none;
  }

  .beat-item-title {
    font-size: 0.85rem;
  }

  .beat-item-artist {
    font-size: 0.7rem;
  }

  .beat-list-header {
    padding: 10px 16px;
    font-size: 0.7rem;
  }

  .beat-list-panel {
    border-radius: 0 0 10px 10px;
  }
}


/* ================================================================
   ANIMATIONS & KEYFRAMES
   ================================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.boombox {
  animation: fadeInUp 0.6s ease-out;
}

/* No LCD flicker in Spotify style */
.track-title {
  animation: none;
}

.playing .track-title {
  animation: none;
  opacity: 1;
}


/* ================================================================
   FOCUS STYLES (Accessibility)
   ================================================================ */
.btn-transport:focus-visible,
.social-btn:focus-visible,
.beat-item:focus-visible,
.admin-link:focus-visible,
.volume-slider:focus-visible {
  outline: 2px solid var(--brand1);
  outline-offset: 2px;
}

.progress-wrap:focus-visible {
  outline: 2px solid var(--brand1);
  outline-offset: 1px;
  border-radius: 2px;
}


/* ================================================================
   SELECTION COLOR
   ================================================================ */
::selection {
  background: rgba(29, 185, 84, 0.3);
  color: #fff;
}

::-moz-selection {
  background: rgba(29, 185, 84, 0.3);
  color: #fff;
}


/* ================================================================
   PRINT
   ================================================================ */
@media print {
  .scene {
    background: #fff;
  }

  .speaker,
  .boombox-handle,
  .boombox-feet,
  .vu-meters,
  .eq-container,
  .transport,
  .social-strip,
  .powered-by {
    display: none !important;
  }

  .boombox-body {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: none;
  }

  .display {
    background: #f9f9f9;
    border-color: #ddd;
    box-shadow: none;
  }

  .track-title {
    color: #111;
    text-shadow: none;
  }
}


/* ================================================================
   DEMO BANNER — Spotify Green
   ================================================================ */
.demo-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.demo-banner[hidden] { display: none; }

.demo-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.demo-banner-text {
  color: #000;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.demo-banner-text strong {
  font-weight: 800;
  text-transform: uppercase;
}

.demo-banner-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition), background var(--transition);
}

.demo-banner-btn:hover {
  transform: scale(1.04);
  background: #222;
}

.demo-banner-close {
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.5);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
  flex-shrink: 0;
}

.demo-banner-close:hover { color: #000; }

@media (max-width: 560px) {
  .demo-banner { padding: 8px 10px; }
  .demo-banner-text { font-size: 0.8rem; }
  .demo-banner-btn { font-size: 0.75rem; padding: 6px 14px; }
}


/* ================================================================
   ANFRAGE-MODAL — Dark card, Spotify accents
   ================================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
}

.modal-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color var(--transition);
}

.modal-close:hover { color: var(--text); }

.modal-form {
  padding: 16px 24px 24px;
}

.modal-intro {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.form-section {
  margin-bottom: 24px;
}

.form-section h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.form-hint {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 12px;
}

.modal-form label {
  display: block;
  margin-bottom: 12px;
}

.modal-form label span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 14px;
  font: inherit;
  font-size: 0.85rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
  color: #666;
}

.modal-form input:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--brand1);
  box-shadow: 0 0 0 1px var(--brand1);
}

.modal-form textarea { resize: vertical; }

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--brand1);
  color: #000;
  border: none;
  border-radius: 24px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.form-submit:hover {
  background: var(--brand2);
  transform: translateY(-1px);
}

.form-note {
  text-align: center;
  font-size: 0.7rem;
  color: #555;
  margin-top: 10px;
}

@media (max-width: 560px) {
  .modal { border-radius: 10px; max-height: 95vh; }
  .modal-header { padding: 20px 16px 0; }
  .modal-form { padding: 12px 16px 20px; }
  .modal-header h2 { font-size: 1.1rem; }
}


/* ================================================================
   BUY BUTTON
   ================================================================ */
.beat-buy-btn {
  background: var(--brand1);
  color: #000;
  border: none;
  padding: 5px 14px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}

.beat-buy-btn:hover {
  background: var(--brand2);
  transform: scale(1.05);
}

.beat-buy-btn:active {
  transform: scale(0.97);
}

@media (max-width: 560px) {
  .beat-buy-btn {
    padding: 4px 10px;
    font-size: 0.7rem;
  }
}

/* ================================================================
   PURCHASED STATE
   ================================================================ */
.beat-buy-btn.purchased {
  background: transparent;
  border: 1px solid var(--brand1);
  color: var(--brand1);
  cursor: default;
  pointer-events: none;
  font-size: 0.85rem;
  padding: 4px 12px;
}

/* ================================================================
   PREVIEW QUALITY NOTICE
   ================================================================ */
.preview-notice {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #ff3c3c, #cc2200);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  margin: 0 0 4px;
  animation: noticeSlideIn 0.5s ease-out;
  box-shadow: 0 4px 20px rgba(255, 60, 60, 0.4);
}

.preview-notice.visible {
  display: flex;
}

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

.preview-notice-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.preview-notice-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.preview-notice-btn {
  background: #fff;
  color: #cc2200;
  border: none;
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}

.preview-notice-btn:hover {
  background: #000;
  color: #fff;
  transform: scale(1.05);
}

@media (max-width: 560px) {
  .preview-notice {
    flex-direction: column;
    text-align: center;
    padding: 10px 14px;
  }
  .preview-notice-text { font-size: 0.78rem; }
  .preview-notice-btn { width: 100%; padding: 10px; }
}
