/* ============================================================
   RESET & BASE
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&display=swap');

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

/* ============================================================
   PAGE
   ============================================================ */
body {
  background-color: #000000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Share Tech Mono', monospace;
}

/* ============================================================
   PLAYER WRAPPER  –  dark purple frame
   ============================================================ */
.player-wrapper {
  width: 660px;
  background: linear-gradient(160deg, #2c2040 0%, #1e1530 50%, #271940 100%);
  border-radius: 6px;
  border: 1.5px solid #5a3090;
  box-shadow:
    0 0 0 1px #3a1860,
    0 0 35px 6px rgba(140, 60, 255, 0.22),
    0 25px 70px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(200, 140, 255, 0.18);
  overflow: hidden;
}

/* ============================================================
   TITLE BAR
   ============================================================ */
.title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px 5px 12px;
  background: linear-gradient(90deg, #3a1858 0%, #4e2478 100%);
  border-bottom: 1px solid #6a30a0;
}

.title-text {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: #c898f8;
  letter-spacing: 2px;
  text-transform: lowercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
  text-shadow: 0 0 8px rgba(180, 100, 255, 0.6);
}

.window-controls {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.win-btn {
  width: 18px;
  height: 16px;
  border: 1px solid #7040a8;
  background: linear-gradient(180deg, #4a2870 0%, #321850 100%);
  border-radius: 2px;
  font-size: 9px;
  color: #c090f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}

.win-btn:hover {
  background: linear-gradient(180deg, #7040c0 0%, #5028a0 100%);
  color: #fff;
}

.win-btn.close:hover {
  background: linear-gradient(180deg, #c04080 0%, #902060 100%);
  border-color: #d06090;
  color: #fff;
}

/* ============================================================
   DISPLAY / ARTWORK AREA
   ============================================================ */
.display-area {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  background: #1a0e2e;
  outline: 2px solid rgba(150, 60, 255, 0.55);
  outline-offset: -4px;
  overflow: hidden;
}

.artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Purple vignette overlay */
.display-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 110%,
    rgba(120, 40, 220, 0.2) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 1;
}

/* ── LINK OVERLAY ── */
.link-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 2;
  background: rgba(10, 4, 22, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(3px);
}

.display-area:hover .link-overlay {
  opacity: 1;
}

.link-btn {
  display: inline-block;
  padding: 7px 28px;
  font-family: 'VT323', monospace;
  font-size: 19px;
  letter-spacing: 3px;
  text-decoration: none;
  color: #e8c8ff;
  background: rgba(120, 40, 200, 0.18);
  border: 1px solid rgba(180, 100, 255, 0.55);
  border-radius: 2px;
  text-shadow: 0 0 10px rgba(180, 80, 255, 0.9);
  box-shadow:
    0 0 12px rgba(140, 60, 255, 0.25),
    inset 0 0 8px rgba(160, 80, 255, 0.06);
  transition: all 0.2s ease;
  min-width: 180px;
  text-align: center;
}

.link-btn:hover {
  background: rgba(140, 60, 220, 0.35);
  border-color: rgba(210, 150, 255, 0.9);
  color: #fff;
  box-shadow:
    0 0 20px rgba(160, 80, 255, 0.6),
    inset 0 0 10px rgba(180, 100, 255, 0.15);
  transform: translateY(-1px);
}

/* ============================================================
   PROGRESS SECTION
   ============================================================ */
.progress-section {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 6px 14px;
  background: linear-gradient(180deg, #221540 0%, #1c1234 100%);
  border-top: 1px solid #4a2880;
}

.timestamp {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: #b068f8;
  background: #140a28;
  padding: 1px 8px;
  border: 1px solid #5a2898;
  border-radius: 2px;
  letter-spacing: 2px;
  text-shadow: 0 0 6px rgba(160, 80, 255, 0.55);
  flex-shrink: 0;
  line-height: 1.3;
  min-width: 44px;
  text-align: center;
}

.progress-track {
  flex: 1;
  height: 10px;
  background: #2a1648;
  border-radius: 2px;
  border: 1px solid #5a2890;
  overflow: hidden;
  cursor: pointer;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
  transition: height 0.15s ease;
}

.progress-track:hover {
  height: 12px;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #5010b0 0%, #9840e8 60%, #bf70ff 100%);
  border-radius: 2px;
  transition: width 0.1s linear;
  box-shadow: 0 0 6px rgba(160, 80, 255, 0.5);
}

/* ============================================================
   CONTROLS SECTION
   ============================================================ */
.controls-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 14px 14px;
  background: linear-gradient(180deg, #1c1234 0%, #180f2e 100%);
  border-top: 1px solid #3a1868;
}

/* ── Volume ── */
.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-icon {
  font-size: 15px;
  color: #a060e0;
  min-width: 18px;
  text-align: center;
}

/* Range input – volume slider */
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 4px;
  background: #3a1868;
  border-radius: 2px;
  border: 1px solid #5a2898;
  outline: none;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.35);
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e0b0ff, #8030d0);
  border: 1px solid #7030b8;
  box-shadow: 0 0 6px rgba(160, 80, 255, 0.6);
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 12px rgba(180, 100, 255, 0.9);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e0b0ff, #8030d0);
  border: 1px solid #7030b8;
  box-shadow: 0 0 6px rgba(160, 80, 255, 0.6);
  cursor: pointer;
}

/* ── Play / Pause button ── */
.media-buttons {
  display: flex;
  align-items: center;
}

.ctrl-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid #6a30a8;
  background: radial-gradient(circle at 35% 30%, #3e2468, #22144a);
  color: #c080f8;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.5),
    0 0 10px rgba(120, 50, 220, 0.2),
    inset 0 1px 0 rgba(200, 140, 255, 0.2);
  transition: all 0.18s ease;
  line-height: 1;
  padding-left: 2px; /* optical center play triangle */
}

.ctrl-btn:hover {
  background: radial-gradient(circle at 35% 30%, #7040c8, #4828a0);
  border-color: #a060e0;
  color: #fff;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.5),
    0 0 18px rgba(160, 80, 255, 0.55),
    inset 0 1px 0 rgba(220, 160, 255, 0.3);
}

.ctrl-btn:active {
  transform: scale(0.93);
}

.ctrl-btn.is-playing {
  padding-left: 0;
  font-size: 13px;
  letter-spacing: 2px;
  color: #d090ff;
  border-color: #a060e0;
  box-shadow:
    0 0 16px rgba(160, 80, 255, 0.5),
    inset 0 1px 0 rgba(220, 160, 255, 0.2);
}


