/* NITE GRIND — Winamp Repurposed. 24HR Builds. */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=VT323&family=Bebas+Neue&display=swap');

:root {
  /* Two-register green system */
  --g-hot:    #00ff41;   /* active states, prices, now-playing */
  --g-mid:    #00cc33;   /* progress bars, eq bars */
  --g-dim:    #007a1e;   /* secondary UI chrome */
  --g-ghost:  #003d0f;   /* inset panel borders, dead zones */
  --g-glow:   rgba(0, 255, 65, 0.18);

  /* Window chrome */
  --chrome-1: #4e4e4e;
  --chrome-2: #3a3a3a;
  --chrome-3: #2c2c2c;
  --chrome-4: #1e1e1e;
  --chrome-5: #111111;
  --chrome-6: #0a0a0a;

  /* Bevel highlights */
  --bevel-hi: rgba(255,255,255,0.12);
  --bevel-lo: rgba(0,0,0,0.7);

  /* Accents */
  --orange:   #ff8800;
  --orange-dim: rgba(255,136,0,0.6);
  --red:      #cc2200;
  --text:     #c8c8c8;
  --text-dim: #707070;
  --text-off: #484848;

  /* Skin texture */
  --panel-bg: linear-gradient(180deg, #2e2e2e 0%, #222222 100%);
  --panel-deep: linear-gradient(180deg, #1a1a1a 0%, #111111 100%);
}

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

body {
  background: #050505;
  color: var(--text);
  font-family: 'VT323', monospace;
  font-size: 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
  /* Subtle noise grain */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ─── BG VISUALIZER ─── */
.bg-visualizer {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
}
#bg-canvas { width: 100%; height: 100%; }

/* ─── MAIN PLAYER WINDOW ─── */
.player-container {
  position: relative;
  z-index: 1;
  width: 760px;
  max-height: 95vh;
  overflow-y: auto;
  overflow-x: hidden;

  /* Layered bevel — the key to authentic skin feel */
  background: var(--panel-bg);
  border-top:    2px solid var(--chrome-1);
  border-left:   2px solid var(--chrome-1);
  border-right:  2px solid var(--chrome-5);
  border-bottom: 2px solid var(--chrome-5);
  border-radius: 4px;

  box-shadow:
    /* outer glow */
    0 0 0 1px #000,
    0 0 40px rgba(0, 255, 65, 0.08),
    0 8px 60px rgba(0,0,0,0.9),
    /* inner highlight */
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-lo);

  scrollbar-width: thin;
  scrollbar-color: var(--g-dim) var(--chrome-6);
}

.player-container::-webkit-scrollbar { width: 6px; }
.player-container::-webkit-scrollbar-track { background: var(--chrome-6); }
.player-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--g-mid), var(--g-ghost));
  border-radius: 0;
}

/* ─── GLOBAL SCROLLBAR — every surface matches ─── */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--g-dim) var(--chrome-6);
}
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: var(--chrome-6); }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--g-mid), var(--g-ghost));
  border-radius: 0;
}
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--g-hot), var(--g-mid)); }
*::-webkit-scrollbar-corner { background: var(--chrome-6); }

/* ─── TITLE BAR ─── */
.title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px 5px 12px;
  background: linear-gradient(180deg, #555 0%, #3a3a3a 40%, #2e2e2e 100%);
  border-bottom: 1px solid #111;
  user-select: none;
  position: relative;
}

/* Subtle pinstripe texture on title bar */
.title-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 3px,
    rgba(255,255,255,0.015) 3px,
    rgba(255,255,255,0.015) 4px
  );
  pointer-events: none;
}

/* Green hot-spot on left edge of title — Winamp DNA */
.title-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--g-hot), var(--g-ghost));
}

.title-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(0,0,0,0.8);
  padding-left: 6px;
}

.window-controls {
  display: flex;
  gap: 4px;
  align-items: center;
}

.win-btn {
  width: 22px;
  height: 18px;
  background: linear-gradient(180deg, #5e5e5e 0%, #3a3a3a 100%);
  border-top:   1px solid #6e6e6e;
  border-left:  1px solid #6e6e6e;
  border-right: 1px solid #1a1a1a;
  border-bottom:1px solid #1a1a1a;
  color: var(--text);
  font-size: 11px;
  font-family: 'Orbitron', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
  line-height: 1;
}

.win-btn:hover { background: linear-gradient(180deg, #6e6e6e, #4a4a4a); }
.win-btn:active {
  background: linear-gradient(180deg, #3a3a3a, #5a5a5a);
  border-top-color: #1a1a1a;
  border-left-color: #1a1a1a;
  border-right-color: #5a5a5a;
  border-bottom-color: #5a5a5a;
}
.win-btn.close:hover { background: linear-gradient(180deg, #aa3322, #771111); color: #fff; }

/* ─── MAIN DISPLAY AREA ─── */
.main-display {
  padding: 16px 18px;
  background: var(--panel-deep);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  border-bottom: 1px solid #333;
}

/* ─── ALBUM ART ─── */
.album-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.album-frame {
  width: 148px;
  height: 148px;
  min-width: 100px;
  background: #000;
  position: relative;
  overflow: hidden;
  border-top:    2px solid #111;
  border-left:   2px solid #111;
  border-right:  2px solid #555;
  border-bottom: 2px solid #555;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.6),
    0 0 20px rgba(0, 255, 65, 0.12);
}

.album-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
  image-rendering: pixelated;
}

/* Scan line overlay on album art */
.album-glitch {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 255, 65, 0.04) 2px,
    rgba(0, 255, 65, 0.04) 3px
  );
  pointer-events: none;
  animation: scanDrift 3s linear infinite;
}

@keyframes scanDrift {
  from { background-position: 0 0; }
  to   { background-position: 0 60px; }
}

.album-info { text-align: center; width: 100%; }

.album-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: var(--g-hot);
  letter-spacing: 3px;
  text-shadow:
    0 0 10px rgba(0,255,65,0.6),
    0 0 20px rgba(0,255,65,0.2);
}

.album-artist {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ─── TRACK DISPLAY ─── */
.track-display {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* Marquee — inset LCD screen */
.track-marquee {
  background: #020f04;
  border-top:    1px solid #050f06;
  border-left:   1px solid #050f06;
  border-right:  1px solid #1a3a1a;
  border-bottom: 1px solid #1a3a1a;
  padding: 10px 12px;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: inset 0 0 12px rgba(0,255,65,0.06);
  position: relative;
}

/* LCD pixel dot texture */
.track-marquee::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,255,65,0.08) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
}

.track-marquee span {
  display: inline-block;
  animation: marquee 12s linear infinite;
  color: var(--g-hot);
  font-size: 22px;
  letter-spacing: 3px;
  text-shadow: 0 0 8px rgba(0,255,65,0.7);
  position: relative;
}

@keyframes marquee {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-200%); }
}

/* Time display */
.track-time {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.track-time span {
  color: var(--g-hot);
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  min-width: 52px;
  text-shadow: 0 0 6px rgba(0,255,65,0.5);
  letter-spacing: 1px;
}

.time-bar {
  flex: 1;
  height: 10px;
  background: #020f04;
  border-top:    1px solid #050f06;
  border-left:   1px solid #050f06;
  border-right:  1px solid #1a3a1a;
  border-bottom: 1px solid #1a3a1a;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.time-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--g-ghost), var(--g-mid), var(--g-hot));
  box-shadow: 2px 0 8px rgba(0,255,65,0.5);
  transition: width 1s linear;
  position: relative;
}

/* Glowing head on progress bar */
.time-progress::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--g-hot);
  box-shadow: 0 0 8px var(--g-hot);
}

/* ─── EXPLANATION BAR ─── */
.explanation-bar {
  grid-column: 1 / -1;
  background: #000;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding: 8px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Green underline glow */
.explanation-bar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g-ghost), transparent);
}

.explanation-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: #fff;
  letter-spacing: 2.5px;
  text-shadow: 0 0 14px rgba(0,255,65,0.35);
}

/* ─── VISUALIZER ─── */
.visualizer {
  grid-column: 1 / -1;
  background: #000;
  border-top:   1px solid #111;
  border-left:  1px solid #111;
  border-right: 1px solid #333;
  border-bottom:1px solid #333;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.visualizer:hover { border-color: var(--g-dim); }

.visualizer:hover .visualizer-text {
  color: var(--g-hot);
  text-shadow: 0 0 12px rgba(0,255,65,0.7);
  letter-spacing: 5px;
}

#visualizer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.visualizer-text {
  position: relative;
  z-index: 1;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  color: var(--g-dim);
  letter-spacing: 4px;
  pointer-events: none;
  transition: all 0.3s;
}

/* ─── CONTROLS ─── */
.controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #2e2e2e, #1e1e1e);
  border-top: 1px solid #3a3a3a;
  border-bottom: 1px solid #111;
}

.control-btn {
  height: 34px;
  min-width: 46px;
  padding: 0 10px;
  background: linear-gradient(180deg, #4a4a4a 0%, #2e2e2e 100%);
  border-top:   1px solid #5a5a5a;
  border-left:  1px solid #5a5a5a;
  border-right: 1px solid #111;
  border-bottom:1px solid #111;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
}

.control-btn:hover {
  background: linear-gradient(180deg, #555 0%, #3a3a3a 100%);
}

.control-btn:active {
  background: linear-gradient(180deg, #2a2a2a, #4a4a4a);
  border-top-color: #111;
  border-left-color: #111;
  border-right-color: #5a5a5a;
  border-bottom-color: #5a5a5a;
  transform: translate(1px, 1px);
}

.control-btn.play {
  min-width: 60px;
  background: linear-gradient(180deg, #3a3a3a 0%, #1e1e1e 100%);
  color: var(--g-hot);
  font-size: 20px;
}

.control-btn.play:hover {
  color: var(--g-hot);
  box-shadow: 0 0 12px rgba(0,255,65,0.25);
}

.volume-control {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vol-label {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.vol-slider {
  width: 88px;
  height: 12px;
  background: #020f04;
  border-top:   1px solid #050f06;
  border-left:  1px solid #050f06;
  border-right: 1px solid #1a3a1a;
  border-bottom:1px solid #1a3a1a;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.vol-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--g-ghost), var(--g-mid), var(--g-hot));
  position: relative;
}

.vol-fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--g-hot);
  box-shadow: 0 0 6px var(--g-hot);
}

/* ─── PLAYLIST ─── */
.playlist {
  background: var(--chrome-5);
  border-top: 1px solid #333;
}

.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
  border-bottom: 1px solid #111;
}

.pl-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--orange);
  text-shadow: 0 0 8px var(--orange-dim);
}

.pl-count {
  font-size: 13px;
  color: var(--text-off);
  letter-spacing: 1px;
}

.playlist-tracks { overflow-x: hidden; }

.track-item {
  display: grid;
  grid-template-columns: 40px 1fr 68px 84px;
  gap: 12px;
  padding: 11px 18px;
  cursor: pointer;
  border-bottom: 1px solid #1e1e1e;
  transition: background 0.15s, transform 0.15s, border-left 0.15s;
  border-left: 3px solid transparent;
  position: relative;
}

.track-num { color: var(--text-off); font-size: 16px; letter-spacing: 1px; align-self: center; }
.track-name { color: var(--text); font-size: 19px; letter-spacing: 1px; align-self: center; }
.track-time { color: var(--text-off); font-size: 16px; align-self: center; text-align: center; }
.track-price {
  color: var(--g-hot);
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: right;
  align-self: center;
  text-shadow: 0 0 8px rgba(0,255,65,0.5);
}

.track-item:hover {
  background: rgba(0, 60, 16, 0.55);
  border-left-color: var(--g-mid);
  transform: translateX(3px);
}

.track-item:hover .track-name {
  color: var(--g-hot);
  text-shadow: 0 0 8px rgba(0,255,65,0.5);
}

.track-item:hover .track-num {
  color: var(--g-dim);
}

/* Active state */
.track-item.active {
  background: rgba(0, 80, 20, 0.4);
  border-left-color: var(--g-hot);
  box-shadow:
    inset 0 0 20px rgba(0,255,65,0.06),
    0 0 0 1px rgba(0,255,65,0.1);
}

.track-item.active .track-name {
  color: var(--g-hot);
  text-shadow: 0 0 10px rgba(0,255,65,0.6);
}

.track-item.active .track-num {
  color: var(--g-hot);
}

/* "NOW PLAYING" dot for active track */
.track-item.active::before {
  content: "▶";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--g-hot);
  font-size: 10px;
  text-shadow: 0 0 6px var(--g-hot);
  animation: nowPlayingBlink 1.5s step-end infinite;
}

@keyframes nowPlayingBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ─── TRACK DETAILS PANEL ─── */
.track-details {
  display: none;
  background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
  border-top: 2px solid var(--g-ghost);
  position: relative;
}

.track-details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g-dim), transparent);
}

.track-details.active { display: block; }

.detail-panel { display: none; padding: 0; }
.detail-panel.active { display: block; }

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px;
  background: linear-gradient(180deg, #222, #181818);
  border-bottom: 1px solid #111;
}

.detail-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  color: var(--g-hot);
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(0,255,65,0.5);
}

.detail-close {
  background: linear-gradient(180deg, #4a4a4a, #2e2e2e);
  border-top:   1px solid #5a5a5a;
  border-left:  1px solid #5a5a5a;
  border-right: 1px solid #111;
  border-bottom:1px solid #111;
  color: var(--text-dim);
  width: 28px;
  height: 22px;
  font-size: 13px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.1s;
}

.detail-close:hover {
  border-color: var(--red);
  color: var(--red);
  background: linear-gradient(180deg, #3a1010, #1e0808);
}

.detail-content {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 20px 18px;
}

/* Track icon — now a proper inset box */
.track-icon {
  width: 90px;
  height: 90px;
  background: #000;
  border-top:   1px solid #111;
  border-left:  1px solid #111;
  border-right: 1px solid #333;
  border-bottom:1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 900;
  position: relative;
  overflow: hidden;
}

/* Scan lines on icon */
.track-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent 0px, transparent 3px,
    rgba(255,255,255,0.025) 3px, rgba(255,255,255,0.025) 4px
  );
  pointer-events: none;
}

.logo-icon { color: var(--g-hot); border-color: var(--g-ghost); box-shadow: inset 0 0 20px rgba(0,255,65,0.12), 0 0 12px rgba(0,255,65,0.1); text-shadow: 0 0 15px rgba(0,255,65,0.8); }
.kit-icon  { color: var(--orange); border-color: rgba(255,136,0,0.3); box-shadow: inset 0 0 20px rgba(255,136,0,0.08); text-shadow: 0 0 15px rgba(255,136,0,0.8); }
.page-icon { color: #00ccff; border-color: rgba(0,200,255,0.3); box-shadow: inset 0 0 20px rgba(0,200,255,0.08); text-shadow: 0 0 15px rgba(0,200,255,0.8); }

.detail-info { display: flex; flex-direction: column; gap: 8px; }

.detail-info h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 3px;
}

.detail-price {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--g-hot);
  text-shadow: 0 0 15px rgba(0,255,65,0.6), 0 0 30px rgba(0,255,65,0.2);
  letter-spacing: 2px;
}

.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-list li {
  font-size: 18px;
  color: #909090;
  padding-left: 18px;
  position: relative;
  letter-spacing: 0.5px;
}

.detail-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--g-mid);
  font-size: 20px;
  line-height: 1;
}

.detail-note {
  font-style: italic;
  color: var(--text-dim);
  font-size: 16px;
  border-top: 1px solid #222;
  padding-top: 8px;
  margin-top: 2px;
}

/* ─── WINAMP BUTTON (checkout) ─── */
.winamp-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: linear-gradient(180deg, #3a3a3a 0%, #1e1e1e 100%);
  border-top:   1px solid #5a5a5a;
  border-left:  1px solid #5a5a5a;
  border-right: 1px solid #111;
  border-bottom:1px solid #111;
  color: var(--g-hot);
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  text-shadow: 0 0 8px rgba(0,255,65,0.5);
  white-space: nowrap;
}

.winamp-btn:hover {
  background: linear-gradient(180deg, #2a3a2a 0%, #0a200a 100%);
  border-top-color: var(--g-mid);
  border-left-color: var(--g-mid);
  box-shadow: 0 0 16px rgba(0,255,65,0.2);
  color: var(--g-hot);
}

.winamp-btn:active {
  background: linear-gradient(180deg, #0a200a, #1a3a1a);
  border-top-color: #111;
  border-left-color: #111;
  border-right-color: var(--g-dim);
  border-bottom-color: var(--g-dim);
  transform: translate(1px,1px);
}

/* ─── COMBO BUILDER ─── */
.combo-builder { padding: 16px 18px; width: 100%; }

.combo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #000;
  border: 1px solid #1e1e1e;
  margin-bottom: 14px;
  border-left: 3px solid var(--orange);
}

.combo-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  color: var(--orange);
  letter-spacing: 2px;
  text-shadow: 0 0 8px var(--orange-dim);
}

.combo-total {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--g-hot);
  text-shadow: 0 0 12px rgba(0,255,65,0.6);
  transition: color 0.2s;
}

.combo-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.combo-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #111;
  border: 1px solid #222;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.combo-item:hover {
  background: rgba(0, 50, 12, 0.5);
  border-left-color: var(--g-mid);
}

.combo-item:has(input:checked) {
  background: rgba(0, 70, 15, 0.4);
  border-left-color: var(--g-hot);
  box-shadow: inset 0 0 12px rgba(0,255,65,0.06);
}

.combo-item input[type="checkbox"] { display: none; }

.combo-check {
  width: 16px;
  height: 16px;
  border: 1px solid #444;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s;
}

.combo-item:has(input:checked) .combo-check {
  border-color: var(--g-hot);
  background: rgba(0,255,65,0.1);
  box-shadow: 0 0 6px rgba(0,255,65,0.4);
}

.combo-item:has(input:checked) .combo-check::after {
  content: "✓";
  color: var(--g-hot);
  font-size: 12px;
  font-family: 'VT323', monospace;
  line-height: 1;
  text-shadow: 0 0 6px var(--g-hot);
}

.combo-name {
  flex: 1;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 1px;
  transition: color 0.15s;
}

.combo-item:has(input:checked) .combo-name { color: var(--text); }

.combo-price {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  color: var(--g-dim);
  transition: color 0.15s;
}

.combo-item:has(input:checked) .combo-price {
  color: var(--g-hot);
  text-shadow: 0 0 6px rgba(0,255,65,0.5);
}

/* Disabled combo item */
.disabled-option {
  opacity: 0.35;
  pointer-events: none;
}

/* ─── FORM ─── */
.contact-form { display: flex; flex-direction: column; gap: 10px; }

.form-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  align-items: start;
}

.form-row.full { grid-template-columns: 80px 1fr; }

.form-row label {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  color: var(--text-off);
  letter-spacing: 1px;
  padding-top: 10px;
}

.form-row input,
.form-row select,
.form-row textarea {
  background: #050505;
  border-top:   1px solid #0a0a0a;
  border-left:  1px solid #0a0a0a;
  border-right: 1px solid #2a2a2a;
  border-bottom:1px solid #2a2a2a;
  color: var(--text);
  padding: 8px 10px;
  font-family: 'VT323', monospace;
  font-size: 18px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--g-dim);
  box-shadow: 0 0 8px rgba(0,255,65,0.12), inset 0 0 6px rgba(0,255,65,0.04);
  color: var(--g-hot);
}

.form-row select { cursor: pointer; }
.form-row select option { background: #111; color: var(--text); }
.form-row textarea { resize: vertical; min-height: 56px; }

#inclusion-message {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
}

.submit-btn {
  margin-top: 6px;
  padding: 12px 20px;
  background: linear-gradient(180deg, #1a3a1a 0%, #0a1e0a 100%);
  border-top:   1px solid var(--g-mid);
  border-left:  1px solid var(--g-mid);
  border-right: 1px solid var(--g-ghost);
  border-bottom:1px solid var(--g-ghost);
  color: var(--g-hot);
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  text-shadow: 0 0 8px rgba(0,255,65,0.5);
  width: 100%;
}

.submit-btn:hover {
  background: linear-gradient(180deg, #244a24 0%, #122212 100%);
  box-shadow: 0 0 20px rgba(0,255,65,0.2);
  text-shadow: 0 0 12px rgba(0,255,65,0.8);
}

.submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.form-success {
  text-align: center;
  padding: 30px;
  color: var(--g-hot);
  font-family: 'Orbitron', sans-serif;
}

.form-success h3 { font-size: 18px; letter-spacing: 3px; margin-bottom: 10px; }
.form-success p  { color: var(--text-dim); font-size: 14px; line-height: 1.8; }

/* Contact track: no icon column */
#detail-contact .detail-content {
  grid-template-columns: 1fr;
  gap: 0;
}
#detail-contact .detail-visual { display: none; }
#detail-contact .combo-builder { width: 100%; }

/* ─── EQUALIZER ─── */
.equalizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding: 12px 18px;
  background: #000;
  height: 52px;
  border-top: 1px solid #222;
}

.eq-bar {
  flex: 1;
  max-width: 14px;
  background: linear-gradient(to top, var(--g-ghost) 0%, var(--g-mid) 60%, var(--g-hot) 100%);
  animation: eqBounce 0.6s ease-in-out infinite alternate;
  transform-origin: bottom;
  box-shadow: 0 0 4px rgba(0,255,65,0.2);
}

.eq-bar:nth-child(1)  { animation-delay: 0.0s; }
.eq-bar:nth-child(2)  { animation-delay: 0.07s; }
.eq-bar:nth-child(3)  { animation-delay: 0.14s; }
.eq-bar:nth-child(4)  { animation-delay: 0.21s; }
.eq-bar:nth-child(5)  { animation-delay: 0.28s; }
.eq-bar:nth-child(6)  { animation-delay: 0.35s; }
.eq-bar:nth-child(7)  { animation-delay: 0.28s; }
.eq-bar:nth-child(8)  { animation-delay: 0.21s; }
.eq-bar:nth-child(9)  { animation-delay: 0.14s; }
.eq-bar:nth-child(10) { animation-delay: 0.07s; }

@keyframes eqBounce {
  from { transform: scaleY(0.15); }
  to   { transform: scaleY(1); }
}

/* ─── FOOTER ─── */
.player-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 18px;
  background: linear-gradient(180deg, #252525, #161616);
  border-top: 1px solid #333;
  font-size: 13px;
}

.footer-left { display: flex; gap: 12px; }

.kbps, .khz {
  color: var(--g-mid);
  letter-spacing: 1px;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  text-shadow: 0 0 6px rgba(0,255,65,0.3);
}

.mono-stereo {
  color: var(--text-off);
  letter-spacing: 2px;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
}

.parent-link {
  color: var(--text-off);
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.parent-link:hover {
  color: var(--g-hot);
  text-shadow: 0 0 8px rgba(0,255,65,0.5);
}

/* ─── GALLERY OVERLAY ─── */
.gallery-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.gallery-overlay.active { display: flex; }

.gallery-window {
  width: 880px;
  max-height: 88vh;
  background: linear-gradient(180deg, #2e2e2e, #1e1e1e);
  border-top:   2px solid var(--chrome-1);
  border-left:  2px solid var(--chrome-1);
  border-right: 2px solid var(--chrome-5);
  border-bottom:2px solid var(--chrome-5);
  overflow: auto;
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,0.9), 0 0 20px rgba(0,255,65,0.05);
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px;
  background: linear-gradient(180deg, #3a3a3a, #2a2a2a);
  border-bottom: 1px solid #111;
  position: sticky;
  top: 0;
  z-index: 10;
}

.gallery-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  color: var(--g-hot);
  letter-spacing: 3px;
  text-shadow: 0 0 8px rgba(0,255,65,0.5);
}

.gallery-close {
  background: linear-gradient(180deg, #4a4a4a, #2e2e2e);
  border-top:   1px solid #5a5a5a;
  border-left:  1px solid #5a5a5a;
  border-right: 1px solid #111;
  border-bottom:1px solid #111;
  color: var(--text-dim);
  width: 28px;
  height: 22px;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.15s;
}

.gallery-close:hover {
  border-color: var(--red);
  color: var(--red);
  background: linear-gradient(180deg, #3a1010, #1e0808);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  background: #000;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  background: #000;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #1a1a1a;
  transition: border-color 0.2s;
}

.gallery-item:hover { border-color: var(--g-mid); }
.gallery-item:hover img { filter: brightness(1.1) saturate(0.9); transform: scale(1.04); }
.gallery-item:hover .gallery-label { color: var(--g-hot); }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.9);
  transition: all 0.3s;
}

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.85);
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  color: var(--g-dim);
  letter-spacing: 1px;
  text-align: center;
  transition: color 0.2s;
}

/* ─── LIGHTBOX ─── */
.lightbox {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 100;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
}

.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border: 1px solid var(--g-dim);
  box-shadow: 0 0 40px rgba(0,255,65,0.15);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(180deg, #4a4a4a, #2e2e2e);
  border-top:   1px solid #5a5a5a;
  border-left:  1px solid #5a5a5a;
  border-right: 1px solid #111;
  border-bottom:1px solid #111;
  color: var(--text-dim);
  width: 34px;
  height: 28px;
  font-size: 16px;
  cursor: pointer;
  z-index: 101;
  font-family: 'Orbitron', sans-serif;
}

.lightbox-close:hover {
  border-color: var(--red);
  color: var(--red);
  background: linear-gradient(180deg, #3a1010, #1e0808);
}

/* ─── MOBILE ─── */
@media (max-width: 800px) {
  body {
    padding: 8px;
    overflow: auto !important;
    align-items: flex-start;
    height: auto;
    min-height: 100vh;
  }

  .player-container {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
    border-radius: 3px;
  }

  /* Stack art above track info — no more side-by-side fighting */
  .main-display {
    grid-template-columns: 1fr;
    padding: 14px 14px 10px;
    gap: 14px;
  }

  /* Art: centered column, frame fills available width */
  .album-art {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .album-frame {
    /* Fill the row — looks like a proper album cover */
    width: min(240px, 100%);
    height: min(240px, 100vw - 60px);
    min-width: unset;
  }

  .album-title { font-size: 22px; letter-spacing: 2px; }
  .album-artist { font-size: 16px; }

  /* Track display takes full width below the art */
  .track-display { width: 100%; }
  .track-marquee span { font-size: 20px; }
  .track-time span { font-size: 16px; min-width: 52px; }
  .time-bar { height: 10px; }

  .explanation-bar { padding: 10px 12px; }
  .explanation-text { font-size: 18px; letter-spacing: 1.5px; }

  .visualizer { height: 80px; }
  .visualizer-text { font-size: 13px; letter-spacing: 3px; }

  /* Controls */
  .controls { padding: 10px 14px; gap: 8px; }
  .control-btn { height: 38px; min-width: 52px; font-size: 20px; }
  .control-btn.play { min-width: 66px; font-size: 22px; }
  .vol-slider { width: 72px; }

  /* Playlist */
  .pl-title { font-size: 13px; letter-spacing: 1px; }
  .pl-count { font-size: 14px; }

  .playlist-tracks .track-item {
    grid-template-columns: 32px 1fr 80px;
    padding: 12px 14px;
    gap: 10px;
  }
  .playlist-tracks .track-item .track-time { display: none; }
  .track-num  { font-size: 17px; }
  .track-name { font-size: 20px; }
  .track-price { font-size: 18px; }

  /* Detail panels */
  .detail-content {
    grid-template-columns: 90px 1fr;
    padding: 16px 14px;
    gap: 14px;
  }
  .track-icon { width: 76px; height: 76px; font-size: 20px; }
  .detail-info h3 { font-size: 18px; }
  .detail-price { font-size: 26px; }
  .detail-list li { font-size: 18px; }
  .detail-note { font-size: 16px; }
  .winamp-btn { font-size: 14px; padding: 10px 16px; }

  #detail-contact .detail-content { grid-template-columns: 1fr; }

  /* Combo builder */
  .combo-label { font-size: 15px; }
  .combo-total { font-size: 24px; }
  .combo-name  { font-size: 15px; }
  .combo-price { font-size: 16px; }

  /* Form */
  .form-row { grid-template-columns: 68px 1fr; gap: 8px; }
  .form-row label { font-size: 12px; padding-top: 10px; }
  .form-row input,
  .form-row select,
  .form-row textarea { font-size: 18px; padding: 8px 10px; }
  .submit-btn { font-size: 15px; padding: 14px 20px; }

  /* Equalizer */
  .equalizer { height: 44px; padding: 8px 14px; gap: 4px; }

  /* Footer */
  .player-footer { padding: 6px 14px; flex-wrap: wrap; gap: 4px; }
  .kbps, .khz, .mono-stereo { font-size: 12px; }
  .parent-link { font-size: 12px; }

  /* Gallery */
  .gallery-window { width: 100%; margin: 8px; max-height: 82vh; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; padding: 2px; }
}