/* ── Vinyl Player ── */
.vinyl-player {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  user-select: none;
}

/* vinyl disc */
.vinyl-disc {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #111 0deg, #1a1a1a 15deg,
    #111 30deg, #1a1a1a 45deg,
    #111 60deg, #1a1a1a 75deg,
    #111 90deg, #1a1a1a 105deg,
    #111 120deg, #1a1a1a 135deg,
    #111 150deg, #1a1a1a 165deg,
    #111 180deg, #1a1a1a 195deg,
    #111 210deg, #1a1a1a 225deg,
    #111 240deg, #1a1a1a 255deg,
    #111 270deg, #1a1a1a 285deg,
    #111 300deg, #1a1a1a 315deg,
    #111 330deg, #1a1a1a 345deg,
    #111 360deg
  );
  position: relative;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  transition: box-shadow 0.3s;
  flex-shrink: 0;
}

.vinyl-disc:hover {
  box-shadow: 0 2px 18px rgba(0,0,0,0.5);
}

/* grooves */
.vinyl-disc::before {
  content: "";
  position: absolute;
  top: 4px; left: 4px;
  right: 4px; bottom: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,0.02),
    inset 0 0 0 6px rgba(255,255,255,0.015),
    inset 0 0 0 9px rgba(255,255,255,0.02),
    inset 0 0 0 12px rgba(255,255,255,0.015),
    inset 0 0 0 15px rgba(255,255,255,0.02);
  pointer-events: none;
}

/* center label with cover */
.vinyl-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 51px;
  height: 51px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}

.vinyl-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* fallback center dot */
.vinyl-center::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  z-index: 1;
}

/* spinning */
.vinyl-disc.spinning {
  animation: vinyl-spin 4s linear infinite;
}

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

/* info bar */
.vinyl-info {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  max-width: 160px;
  box-shadow: var(--shadow);
  transition: background-color 0.3s, border-color 0.3s;
}

.vinyl-song {
  white-space: nowrap;
  overflow: hidden;
  flex: 1;
  position: relative;
}

.vinyl-song-inner {
  display: inline-block;
  white-space: nowrap;
}

.vinyl-song-inner.scrolling {
  animation: marquee 8s linear infinite;
}

@keyframes marquee {
  0%, 15% { transform: translateX(0); }
  85%, 100% { transform: translateX(-50%); }
}

.vinyl-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 0.85rem;
  padding: 2px;
  line-height: 1;
  transition: color 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.vinyl-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

/* progress ring (on disc) */
.vinyl-progress {
  position: absolute;
  top: 0; left: 0;
  width: 60px;
  height: 60px;
  pointer-events: none;
}

.vinyl-progress circle {
  fill: none;
  stroke-width: 2;
  transform: rotate(-90deg);
  transform-origin: center;
}

.vinyl-progress .track { stroke: rgba(255,255,255,0.06); }
.vinyl-progress .bar { stroke: var(--accent); transition: stroke-dashoffset 0.3s; }

/* mobile */
@media (max-width: 600px) {
  .vinyl-player {
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: row;
    justify-content: center;
    padding: 6px 16px;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    border-radius: 0;
    gap: 10px;
    transition: background-color 0.3s, border-color 0.3s;
  }
  .vinyl-disc {
    width: 36px;
    height: 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  .vinyl-center { width: 30px; height: 30px; }
  .vinyl-center::after { width: 2px; height: 2px; }
  .vinyl-disc::before {
    top: 2px; left: 2px; right: 2px; bottom: 2px;
    box-shadow:
      inset 0 0 0 2px rgba(255,255,255,0.02),
      inset 0 0 0 4px rgba(255,255,255,0.015),
      inset 0 0 0 6px rgba(255,255,255,0.02);
  }
  .vinyl-progress { width: 36px; height: 36px; }
  .vinyl-info { border: none; box-shadow: none; background: transparent; padding: 0; }
}
