/* ── 라이트 / 다크 모드 색상 변수 ── */
[data-theme="light"] {
  --nav-bg: rgba(250, 250, 252, 0.88);
  --record-bth-icon: rgba(35, 37, 64, 0.7);
  --record-bth-bg: rgba(255, 255, 255, 0.8);
}




[data-theme="dark"] {
  --nav-bg: rgba(10, 10, 18, 0.85);
  --record-bth-icon: rgba(255, 255, 255, 0.8);
  --record-bth-bg: rgba(35, 37, 64, 0.7);
}



/* ── 턴테이블 전체 감싸기 ── */
.turntable-wrap {
  overflow: visible;
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  user-select: none;
  transform: scale(0.65);
  transform-origin: top center;
}

/* ── 턴테이블 본체 ── */
.turntable-body {
  position: relative;
  width: 200px;
  height: 200px;
}

/* ── 레코드 판 ── */
.record-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.record {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--char-1) 40%, var(--char-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--char-1);
  animation: none;
}

.record.is-playing {
  animation: spin 2.5s linear infinite;
}

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

  to {
    transform: rotate(360deg);
  }
}

.record-icon {
  font-size: 3rem;
  color: var(--char-2);
}

/* ── 카트리지 (토암) ── */
.tonearm {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 80px;
  height: 80px;
  transform-origin: top right;
  transform: rotate(-25deg);
  /* 기본: 레코드 밖 */
  transition: transform 0.5s ease;
  z-index: 2;
}

.tonearm.is-playing {
  transform: rotate(0deg);
  /* 재생 중: 레코드 위로 */
}

.tonearm-arm {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 70px;
  background: linear-gradient(to bottom, #888, #555);
  border-radius: 2px;
  transform-origin: top center;
  transform: rotate(15deg);
}

.tonearm-head {
  position: absolute;
  bottom: 10px;
  right: 20px;
  width: 10px;
  height: 10px;
  background: #aaa;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ── 재생 버튼 ── */
.record-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--record-bth-icon);
  background: var(--record-bth-bg);
  color: var(--record-bth-icon);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  position: relative;
  bottom: 6px;
}

.record-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

/* YouTube 플레이어 숨기기 */
#yt-player {
  display: none;
}


.volume-wrap {
  position: relative;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;

}

.volume-icon {
  color: var(--record-bth-icon);
  font-size: 0.85rem;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 120px;
  height: 3px;
  border-radius: 999px;
  background: var(--record-bth-icon);
  outline: none;
  cursor: pointer;
}

/* 슬라이더 채워진 부분 */
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--char-1);
  box-shadow: 0 4px 12px var(--char-1);
  cursor: pointer;
  transition: transform 0.2s ease;

}

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









/* ── 토글 버튼 ── */
.drawer-toggle {
  position: fixed;
  left: 0;
  top: 35%;
  transform: translateY(-50%);
  z-index: 200;
  width: 36px;
  height: 60px;
  background: var(--char-1, rgba(255,255,255,0.1));
  border: none;
  border-radius: 0 8px 8px 0;
  color: var(--char-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: width 0.2s ease, background 0.2s ease;
}

.drawer-toggle:hover {
  width: 44px;
}

/* ── 드로어 ── */
.drawer {
  position: fixed;
  top: 0;
  left: -320px; /* ← 기본: 화면 밖에 숨김 */
  width: 300px;
  height: 100vh;
  background: var(--bg-card, #1e293b);
  z-index: 300;
  overflow-y: auto;
  padding: 2rem 1rem;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 20px rgba(0,0,0,0.3);
}

.drawer.is-open {
  left: 0; /* ← 열리면 화면 안으로 */
}

/* ── 오버레이 ── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer .card {
  width: auto;
}