:root{
  --bg-0:#0a0a1a;
  --bg-1:#12122b;
  --panel:#161632;
  --neon-cyan:#00fff2;
  --neon-magenta:#ff2bd6;
  --neon-yellow:#ffe600;
  --text-main:#e8e8ff;
  --text-dim:#8888b0;
  --border:#2c2c58;
}

*{box-sizing:border-box;}

body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,43,214,0.12), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(0,255,242,0.12), transparent 40%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px),
    linear-gradient(160deg, var(--bg-0), var(--bg-1));
  color:var(--text-main);
  font-family:'Orbitron', 'Malgun Gothic', sans-serif;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.arcade-frame{
  width:100%;
  max-width:1000px;
}

.header{
  text-align:center;
  margin-bottom:24px;
}

.logo{
  font-family:'Press Start 2P', cursive;
  font-size:1.4rem;
  margin:0;
  color:var(--neon-cyan);
  text-shadow:
    0 0 6px var(--neon-cyan),
    0 0 18px rgba(0,255,242,0.6),
    0 0 34px rgba(0,255,242,0.35);
  letter-spacing:2px;
}

.header-sub{
  margin-top:10px;
  font-size:0.75rem;
  letter-spacing:4px;
  color:var(--neon-magenta);
  text-shadow:0 0 8px rgba(255,43,214,0.7);
}

.layout{
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:20px;
}

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

.panel{
  background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.15)), var(--panel);
  border:2px solid var(--border);
  border-radius:16px;
  padding:22px;
  position:relative;
  box-shadow:
    0 0 0 1px rgba(0,255,242,0.05) inset,
    0 8px 30px rgba(0,0,0,0.5);
}

.panel::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:16px;
  padding:1px;
  background:linear-gradient(135deg, var(--neon-cyan), transparent 30%, transparent 70%, var(--neon-magenta));
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  opacity:0.5;
  pointer-events:none;
}

/* ---------- Player panel ---------- */
.player-panel{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
}

.disc-wrap{
  position:relative;
  width:150px;
  height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.disc{
  width:140px;
  height:140px;
  border-radius:50%;
  background:
    repeating-radial-gradient(circle at center, #1a1a3a 0px, #1a1a3a 4px, #23234a 5px, #23234a 8px);
  border:3px solid var(--neon-magenta);
  box-shadow:0 0 18px rgba(255,43,214,0.55);
  display:flex;
  align-items:center;
  justify-content:center;
  animation-play-state:paused;
  animation:spin 3.5s linear infinite;
}

.disc.spinning{animation-play-state:running;}

.disc-hole{
  width:22px;
  height:22px;
  border-radius:50%;
  background:var(--bg-0);
  border:2px solid var(--neon-cyan);
  box-shadow:0 0 10px rgba(0,255,242,0.8);
}

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

.track-info{
  text-align:center;
  min-height:44px;
}

.track-title{
  font-weight:800;
  font-size:1rem;
  color:var(--neon-yellow);
  text-shadow:0 0 8px rgba(255,230,0,0.6);
  word-break:break-all;
}

.track-sub{
  font-size:0.7rem;
  color:var(--text-dim);
  margin-top:6px;
}

.visualizer{
  width:100%;
  height:70px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:3px;
  padding:0 6px;
}

.bar{
  width:6px;
  min-height:3px;
  border-radius:3px 3px 0 0;
  background:linear-gradient(180deg, var(--neon-cyan), var(--neon-magenta));
  box-shadow:0 0 6px rgba(0,255,242,0.5);
  transition:height 0.08s linear;
}

.progress-row{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
}

.time{
  font-size:0.65rem;
  color:var(--text-dim);
  min-width:36px;
}

.seek-bar, .vol-bar{
  -webkit-appearance:none;
  appearance:none;
  flex:1;
  height:6px;
  border-radius:4px;
  background:var(--border);
  outline:none;
  cursor:pointer;
}

.seek-bar::-webkit-slider-thumb, .vol-bar::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:14px;
  height:14px;
  border-radius:50%;
  background:var(--neon-cyan);
  box-shadow:0 0 8px var(--neon-cyan);
  cursor:pointer;
}

.seek-bar::-moz-range-thumb, .vol-bar::-moz-range-thumb{
  width:14px;
  height:14px;
  border:none;
  border-radius:50%;
  background:var(--neon-cyan);
  box-shadow:0 0 8px var(--neon-cyan);
  cursor:pointer;
}

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

.btn-icon{
  background:transparent;
  border:2px solid var(--border);
  color:var(--text-main);
  width:38px;
  height:38px;
  border-radius:50%;
  cursor:pointer;
  font-size:1rem;
  transition:all 0.15s;
}

.btn-icon:hover{
  border-color:var(--neon-cyan);
  color:var(--neon-cyan);
  box-shadow:0 0 10px rgba(0,255,242,0.5);
}

.btn-play{
  width:64px;
  height:64px;
  border-radius:50%;
  border:2px solid var(--neon-cyan);
  background:radial-gradient(circle, rgba(0,255,242,0.18), rgba(0,0,0,0.2));
  color:var(--neon-cyan);
  font-size:1.4rem;
  cursor:pointer;
  box-shadow:0 0 16px rgba(0,255,242,0.6);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform 0.1s;
}

.btn-play:active{transform:scale(0.92);}

.volume-row{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
}

.vol-label{
  font-size:0.65rem;
  color:var(--text-dim);
}

/* ---------- List panel ---------- */
.list-panel{
  display:flex;
  flex-direction:column;
  gap:14px;
  max-height:560px;
}

.list-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.list-header h2{
  font-family:'Press Start 2P', cursive;
  font-size:0.85rem;
  color:var(--neon-cyan);
  text-shadow:0 0 8px rgba(0,255,242,0.6);
  margin:0;
}

.btn-add{
  background:linear-gradient(135deg, var(--neon-magenta), #7a1caf);
  color:#fff;
  border:none;
  padding:8px 14px;
  border-radius:8px;
  font-size:0.7rem;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 0 12px rgba(255,43,214,0.5);
  white-space:nowrap;
}

.btn-add:hover{filter:brightness(1.15);}

.drop-zone{
  border:2px dashed var(--border);
  border-radius:10px;
  padding:14px;
  text-align:center;
  font-size:0.72rem;
  color:var(--text-dim);
  transition:all 0.15s;
}

.drop-zone.dragover{
  border-color:var(--neon-cyan);
  color:var(--neon-cyan);
  box-shadow:0 0 14px rgba(0,255,242,0.35) inset;
}

.track-list{
  list-style:none;
  margin:0;
  padding:0;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.track-list::-webkit-scrollbar{width:8px;}
.track-list::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px;}

.empty-msg{
  text-align:center;
  color:var(--text-dim);
  font-size:0.75rem;
  padding:20px 0;
}

.track-item{
  display:flex;
  align-items:center;
  gap:10px;
  background:rgba(255,255,255,0.03);
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px 12px;
  cursor:pointer;
  transition:all 0.15s;
}

.track-item:hover{
  border-color:var(--neon-cyan);
  background:rgba(0,255,242,0.06);
}

.track-item.active{
  border-color:var(--neon-magenta);
  background:rgba(255,43,214,0.1);
  box-shadow:0 0 12px rgba(255,43,214,0.35);
}

.track-num{
  font-size:0.65rem;
  color:var(--text-dim);
  min-width:22px;
}

.track-item.active .track-num{color:var(--neon-magenta);}

.track-name{
  flex:1;
  font-size:0.8rem;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.track-play-icon{
  font-size:0.8rem;
  color:var(--neon-cyan);
  opacity:0;
}

.track-item.active .track-play-icon{opacity:1;}

.track-remove{
  background:transparent;
  border:none;
  color:var(--text-dim);
  cursor:pointer;
  font-size:0.85rem;
  padding:2px 6px;
  border-radius:6px;
}

.track-remove:hover{
  color:var(--neon-magenta);
  background:rgba(255,43,214,0.12);
}
