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

:root {
  --wood-dark: #3a2418;
  --wood: #5a3a26;
  --wood-light: #7a4f33;
  --room: #14100d;
  --accent: #e8a34c;
}

body {
  min-height: 100vh;
  font-family: 'Rubik', sans-serif;
  color: #f0e6d8;
  background:
    radial-gradient(1200px 600px at 30% -10%, rgba(232, 163, 76, 0.14), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(120, 80, 200, 0.10), transparent 60%),
    linear-gradient(180deg, #1c1610 0%, var(--room) 55%, #0b0806 100%);
  overflow-x: hidden;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-header,
.scene {
  position: relative;
  z-index: 2;
}

/* ==================== АТМОСФЕРА КОМНАТЫ ==================== */

.lamp-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(760px 540px at 20% 6%, rgba(255, 178, 92, 0.10), transparent 65%);
}

.lamp-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(820px 600px at 20% 6%, rgba(255, 178, 92, 0.16), transparent 65%),
    radial-gradient(1100px 800px at 55% 45%, rgba(232, 163, 76, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 2s ease;
}

body.playing .lamp-glow::after { opacity: 1; }

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(125% 95% at 50% 42%, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
}

.dust {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.5;
  transition: opacity 2s ease;
}

body.playing .dust { opacity: 1; }

.dust span {
  position: absolute;
  bottom: -3vh;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 235, 200, 0.55);
  filter: blur(1px);
  animation: dust-float linear infinite;
}

.dust span:nth-child(1)  { left: 8%;  animation-duration: 26s; animation-delay: -4s;  }
.dust span:nth-child(2)  { left: 18%; animation-duration: 34s; animation-delay: -20s; width: 2px; height: 2px; }
.dust span:nth-child(3)  { left: 27%; animation-duration: 22s; animation-delay: -11s; }
.dust span:nth-child(4)  { left: 38%; animation-duration: 38s; animation-delay: -30s; width: 2px; height: 2px; }
.dust span:nth-child(5)  { left: 47%; animation-duration: 28s; animation-delay: -7s;  }
.dust span:nth-child(6)  { left: 58%; animation-duration: 31s; animation-delay: -25s; width: 4px; height: 4px; }
.dust span:nth-child(7)  { left: 66%; animation-duration: 24s; animation-delay: -14s; }
.dust span:nth-child(8)  { left: 76%; animation-duration: 36s; animation-delay: -2s;  width: 2px; height: 2px; }
.dust span:nth-child(9)  { left: 85%; animation-duration: 27s; animation-delay: -18s; }
.dust span:nth-child(10) { left: 93%; animation-duration: 33s; animation-delay: -9s;  width: 2px; height: 2px; }

@keyframes dust-float {
  0%   { transform: translate(0, 0); opacity: 0; }
  8%   { opacity: 0.7; }
  85%  { opacity: 0.4; }
  100% { transform: translate(4vw, -108vh); opacity: 0; }
}

.site-header {
  text-align: center;
  padding: 36px 20px 8px;
}

.site-header h1 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 4vw, 44px);
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #f5d9a8, var(--accent), #c96f3a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin-top: 10px;
  color: #b3a591;
  font-weight: 300;
  font-size: clamp(13px, 1.6vw, 16px);
}

.scene {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  padding: 36px 24px 64px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ==================== ПРОИГРЫВАТЕЛЬ ==================== */

.turntable-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Проигрыватель нарисован в фиксированных 560px, а наружу масштабируется
   через --tts: transform на внутренней обёртке + честные размеры бокса. */
.turntable {
  /* деление длины на длину даёт число — коэффициент масштаба */
  --tts: min(1, calc((100vw - 40px) / 560px));
  position: relative;
  width: calc(560px * var(--tts));
  height: calc(414px * var(--tts));
}

.tt-inner {
  width: 560px;
  transform: scale(var(--tts));
  transform-origin: top left;
}

.plinth {
  position: relative;
  width: 560px;
  height: 400px;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.08), transparent 40%),
    repeating-linear-gradient(92deg, rgba(0,0,0,0.10) 0 3px, transparent 3px 9px),
    linear-gradient(180deg, var(--wood-light), var(--wood) 45%, var(--wood-dark));
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,0.15),
    inset 0 -6px 14px rgba(0,0,0,0.45),
    0 24px 48px rgba(0,0,0,0.6);
}

.turntable-feet {
  display: flex;
  justify-content: space-between;
  padding: 0 60px;
  margin-top: -4px;
}

.turntable-feet i {
  width: 34px;
  height: 14px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #1c1512, #000);
}

/* Диск проигрывателя (platter) */

.platter {
  position: absolute;
  left: 60px;
  top: 40px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #4a4a52, #26262c 60%, #17171b);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.18),
    0 10px 22px rgba(0,0,0,0.55);
}

/* Строб-точки по ободу, как у Technics */
.platter::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    rgba(255, 255, 255, 0.35) 0deg 0.8deg,
    transparent 0.8deg 4deg
  );
  -webkit-mask: radial-gradient(circle closest-side, transparent 95.5%, #000 96.5% 98.5%, transparent 99.5%);
  mask: radial-gradient(circle closest-side, transparent 95.5%, #000 96.5% 98.5%, transparent 99.5%);
  pointer-events: none;
}

.platter-mat {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, rgba(255,255,255,0.05) 0 2px, transparent 2px 8px),
    radial-gradient(circle at center, #23303a, #16202a);
}

.spindle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8e8e8, #7a7a7a 70%, #4c4c4c);
  box-shadow: 0 1px 3px rgba(0,0,0,0.8);
  z-index: 5;
}

/* Пластинка на диске */

.platter-record {
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}

.platter-record.visible { opacity: 1; }

.platter-record .record-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  background:
    repeating-radial-gradient(circle at center,
      rgba(255,255,255,0.06) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.16), transparent 45%),
    radial-gradient(circle at center, #16161a 0%, #0c0c10 100%);
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
}

.platter-record.spinning .record-disc {
  animation: spin 1.8s linear infinite;
}

/* Едва заметное биение пластинки, как у слегка неровного винила */
.platter-record.spinning {
  animation: wobble 1.8s ease-in-out infinite;
}

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

@keyframes wobble {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(0.7px); }
}

/* Неподвижный блик от лампы поверх крутящегося винила */
.record-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background:
    conic-gradient(from 285deg at 50% 50%,
      transparent 0deg,
      rgba(255, 244, 224, 0.13) 18deg,
      rgba(255, 244, 224, 0.05) 40deg,
      transparent 62deg,
      transparent 170deg,
      rgba(255, 244, 224, 0.07) 195deg,
      transparent 225deg);
  opacity: 0;
  transition: opacity 0.6s;
}

.platter-record.visible .record-sheen { opacity: 1; }
.platter-record.flipping .record-sheen { opacity: 0; }

.platter-record .record-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36%;
  height: 36%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  background: var(--label-bg, radial-gradient(circle, #888, #555));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.15);
}

.platter-record .record-hole {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #101014;
  box-shadow: inset 0 0 3px #000;
}

/* Тонарм */

.tonearm-base {
  position: absolute;
  right: 55px;
  top: 60px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #57575f, #2c2c32 65%, #1b1b20);
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.2), 0 6px 14px rgba(0,0,0,0.5);
}

.tonearm-pivot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #cfcfd4, #77777e 70%, #4a4a50);
  z-index: 4;
}

.tonearm {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  z-index: 3;
  transform: rotate(-4deg);
  transition: transform 1.4s cubic-bezier(0.45, 0.05, 0.25, 1);
}

/* --arm-angle двигает тонарм от края пластинки к центру по мере проигрывания */
.tonearm.on-record { transform: rotate(var(--arm-angle, 27deg)); }

.arm-tube {
  position: absolute;
  left: -3px;
  top: 0;
  width: 6px;
  height: 218px;
  border-radius: 3px;
  background: linear-gradient(90deg, #9b9ba3, #d9d9de 45%, #808088);
  box-shadow: 0 3px 6px rgba(0,0,0,0.45);
}

.counterweight {
  position: absolute;
  left: -13px;
  top: -46px;
  width: 26px;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(90deg, #2b2b30, #55555c 45%, #222226);
  box-shadow: 0 3px 6px rgba(0,0,0,0.5);
}

.headshell {
  position: absolute;
  left: -8px;
  top: 214px;
  width: 16px;
  height: 30px;
  border-radius: 4px 4px 6px 6px;
  background: linear-gradient(180deg, #2e2e34, #131316);
  box-shadow: 0 3px 6px rgba(0,0,0,0.5);
}

.headshell::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 3px;
  height: 6px;
  transform: translateX(-50%);
  background: #d8d8dc;
}

/* Кнопки на корпусе */

.tt-controls {
  position: absolute;
  right: 55px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.power-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4a2020;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
  transition: background 0.3s, box-shadow 0.3s;
}

.power-light.on {
  background: #ff5540;
  box-shadow: 0 0 10px rgba(255, 85, 64, 0.9);
}

.speed-knob {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: #cfc4b2;
  background: radial-gradient(circle at 35% 30%, #4c4c54, #232328);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.2), 0 4px 8px rgba(0,0,0,0.5);
}

/* Панель «сейчас играет» */

.now-playing {
  width: min(560px, calc(100vw - 40px));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
}

.np-cover {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--cover, var(--label-bg, linear-gradient(160deg, #3a3a42, #232328))) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10), 0 4px 10px rgba(0,0,0,0.4);
  transition: opacity 0.4s, filter 0.4s;
}

.now-playing:not(.has-record) .np-cover {
  filter: saturate(0.3);
  opacity: 0.4;
}

.np-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }

.np-status {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.np-title {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-time {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #9c8e79;
  min-height: 13px;
}

/* Кнопки управления — отдельным рядом под названием трека */
.np-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.skip-btns { display: flex; gap: 6px; }

.skip-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, opacity 0.25s;
}

.skip-btn svg {
  width: 14px;
  height: 14px;
  fill: #e8dcc8;
}

.skip-btn:hover:not(:disabled) { background: rgba(255,255,255,0.14); transform: translateY(-1px); }
.skip-btn:disabled { opacity: 0.3; cursor: default; }

.volume {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #b3a591;
}

.volume input { width: 110px; accent-color: var(--accent); }

.stop-btn {
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: #1c1208;
  background: linear-gradient(180deg, #f0be74, var(--accent));
  box-shadow: 0 4px 10px rgba(232, 163, 76, 0.3);
  transition: opacity 0.25s, transform 0.15s;
}

.stop-btn:hover:not(:disabled) { transform: translateY(-1px); }
.stop-btn:disabled { opacity: 0.35; cursor: default; }

/* ==================== ТРЕКЛИСТ ==================== */

.tracklist {
  width: min(560px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 22px;
  padding: 16px 18px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(6px);
  animation: tracklist-in 0.5s ease both;
}

.tracklist[hidden] { display: none; }

@keyframes tracklist-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tl-side { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.tl-head {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9c8e79;
  padding: 2px 10px 8px;
}

.tl-track {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  text-align: left;
  color: #cfc4b2;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  min-width: 0;
}

.tl-track:hover { background: rgba(255,255,255,0.07); color: #f0e6d8; }

.tl-num {
  flex-shrink: 0;
  width: 16px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #7d7261;
}

.tl-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-track.current {
  background: rgba(232, 163, 76, 0.13);
  color: #f5d9a8;
}

.tl-track.current .tl-num { color: var(--accent); }

/* Эквалайзер-индикатор у играющего трека */
.tl-track.current::after {
  content: '';
  flex-shrink: 0;
  margin-left: auto;
  align-self: center;
  width: 12px;
  height: 11px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 100% / 2.5px 60% no-repeat,
    linear-gradient(var(--accent), var(--accent)) 50% 100% / 2.5px 100% no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 100% / 2.5px 40% no-repeat;
  animation: eq-bounce 0.9s ease-in-out infinite alternate;
}

@keyframes eq-bounce {
  from { transform: scaleY(0.6); transform-origin: bottom; }
  to   { transform: scaleY(1); transform-origin: bottom; }
}

/* ==================== СТОЙКА С ПЛАСТИНКАМИ ==================== */

.crate-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 60px;
}

.crate {
  position: relative;
  padding: 26px 22px 0;
}

.crate-back {
  position: absolute;
  inset: 0 0 46px 0;
  border-radius: 10px 10px 0 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.12) 0 3px, transparent 3px 10px),
    linear-gradient(180deg, #4a2f1e, #33200f);
  box-shadow: inset 0 3px 8px rgba(0,0,0,0.55), 0 18px 36px rgba(0,0,0,0.5);
}

.crate-front {
  position: relative;
  height: 96px;
  margin: -50px -22px 0;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.07), transparent 45%),
    repeating-linear-gradient(91deg, rgba(0,0,0,0.10) 0 3px, transparent 3px 9px),
    linear-gradient(180deg, #6b4429, #4a2d18 70%, #38210f);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,0.14),
    inset 0 -5px 12px rgba(0,0,0,0.45),
    0 20px 40px rgba(0,0,0,0.55);
  z-index: 6;
}

.crate-brand {
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(240, 220, 180, 0.55);
}

.slots {
  position: relative;
  display: flex;
  gap: 14px;
}

.slot {
  position: relative;
  width: 150px;
  height: 210px;
  cursor: pointer;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.3s ease;
}

.slot:hover,
.slot:focus-visible { transform: rotate(var(--tilt, 0deg)) translateY(-10px); }
.slot:focus-visible { outline: none; }
.slot:focus-visible .sleeve {
  box-shadow:
    0 0 0 2px var(--accent),
    inset 0 8px 16px rgba(0,0,0,0.25),
    0 14px 26px rgba(0,0,0,0.6);
}
.slot.empty { cursor: default; }
.slot.empty:hover { transform: rotate(var(--tilt, 0deg)); }

/* Бумажные конверты-заполнители: чтобы ящик не пустовал,
   пока коллекция маленькая */
.slot.filler { cursor: default; }
.slot.filler:hover { transform: rotate(var(--tilt, 0deg)); }

.filler-sleeve {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 150px;
  height: 148px;
  border-radius: 4px 4px 3px 3px;
  background:
    radial-gradient(circle at 50% 46%, #17171b 0 19px, rgba(0,0,0,0.30) 19px 20.5px, transparent 21px),
    linear-gradient(115deg, rgba(255,255,255,0.20), transparent 40%, rgba(0,0,0,0.14) 88%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.03) 0 2px, transparent 2px 5px),
    linear-gradient(160deg, #cdbb97, #b3a07d 60%, #97835f);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 0 -8px 14px rgba(0,0,0,0.14),
    0 6px 14px rgba(0,0,0,0.45);
}

/* Кусочек винила, видимый в вырезе бумажного конверта */
.filler-sleeve::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 46%;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 38%, rgba(255,255,255,0.10), transparent 55%),
    repeating-radial-gradient(circle at center, rgba(255,255,255,0.05) 0 1px, transparent 1px 3px),
    radial-gradient(circle at center, #101014 0 3.5px, #17171b 3.5px);
}

/* Диск в конверте */

.disc {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 138px;
  height: 138px;
  margin-left: -69px;
  border-radius: 50%;
  z-index: 1;
  transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.3, 1);
  background:
    repeating-radial-gradient(circle at center,
      rgba(255,255,255,0.06) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.16), transparent 45%),
    radial-gradient(circle at center, #16161a 0%, #0c0c10 100%);
  box-shadow: 0 4px 10px rgba(0,0,0,0.55);
}

.slot .disc { transform: translateY(28px); }
.slot.pulled .disc { transform: translateY(-86px) rotate(20deg); }
.slot .disc.hidden { visibility: hidden; }

.disc-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38%;
  height: 38%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  font-family: 'Unbounded', sans-serif;
  font-size: 8px;
  line-height: 1.3;
  color: rgba(255,255,255,0.92);
  background: var(--label-bg, radial-gradient(circle, #888, #555));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}

.disc-hole {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #101014;
}

/* Конверт */

.sleeve {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 150px;
  height: 150px;
  border-radius: 4px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  background: var(--sleeve-bg, linear-gradient(160deg, #555, #333));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 0 8px 16px rgba(0,0,0,0.25),
    0 6px 14px rgba(0,0,0,0.5);
  transition: box-shadow 0.3s;
}

.slot:hover .sleeve {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.18),
    inset 0 8px 16px rgba(0,0,0,0.25),
    0 14px 26px rgba(0,0,0,0.6);
}

.sleeve::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(115deg, rgba(255,255,255,0.16), transparent 35%, rgba(0,0,0,0.18) 85%);
  pointer-events: none;
}

.sleeve-artist {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.sleeve-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.sleeve-year {
  margin-top: 6px;
  font-size: 10px;
  opacity: 0.6;
}

.slot.empty .sleeve { opacity: 0.75; filter: saturate(0.6); }

.crate-hint {
  font-size: 13px;
  font-weight: 300;
  color: #9c8e79;
}

/* ==================== ТЕМЫ ПЛАСТИНОК ==================== */

.theme-lofi {
  --sleeve-bg: linear-gradient(160deg, #7e6bb5, #4c3a78 60%, #35284f);
  --label-bg: radial-gradient(circle at 40% 35%, #b39ddb, #6a4fa3 75%);
  color: #f0eaff;
}

.theme-jazz {
  --sleeve-bg: linear-gradient(160deg, #1e3a5f, #12233d 60%, #0b1626);
  --label-bg: radial-gradient(circle at 40% 35%, #e8c56a, #a87824 75%);
  color: #f5e9c8;
}

.theme-synthwave {
  --sleeve-bg: linear-gradient(160deg, #d94f8a, #7b2d7d 55%, #2a1560);
  --label-bg: radial-gradient(circle at 40% 35%, #ff8ec7, #c2308e 75%);
  color: #ffe9f6;
}

.theme-bossa {
  --sleeve-bg: linear-gradient(160deg, #d9924f, #a35c2d 60%, #6e3a1a);
  --label-bg: radial-gradient(circle at 40% 35%, #8fd0a0, #3f8a58 75%);
  color: #fff3e4;
}

.theme-petal {
  --cover: url(assets/petal/cover.webp);
  --vinyl: url(assets/petal/vinyl-a.webp);
  --sleeve-bg:
    linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.15) 42%, transparent 58%),
    var(--cover) center / cover no-repeat;
  color: #f4f4f4;
}

.theme-petal.side-b {
  --vinyl: url(assets/petal/vinyl-b.webp);
}

.platter-record.flipping {
  perspective: 900px;
}

.platter-record.flipping .record-disc {
  animation: none;
  transform-style: preserve-3d;
}

.sleeve.theme-petal {
  background: var(--sleeve-bg);
}

/* Picture disc: весь диск — картинка винила (дырка уже в ассете) */
.disc.theme-petal {
  background: var(--vinyl) center / cover no-repeat;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55);
}

.platter-record.theme-petal .record-disc {
  background: var(--vinyl) center / cover no-repeat;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.disc.theme-petal .disc-label,
.disc.theme-petal .disc-hole,
.platter-record.theme-petal .record-label,
.platter-record.theme-petal .record-hole {
  display: none;
}

/* ==================== ЛЕТАЮЩАЯ ПЛАСТИНКА ==================== */

.flying-record {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,0.5));
}

.flying-record .disc {
  position: relative;
  left: auto;
  bottom: auto;
  margin: 0;
  width: 100%;
  height: 100%;
  transform: none;
  transition: none;
}

.flying-record .disc-label { font-size: 7px; }

/* ==================== АДАПТИВ ==================== */
/* Проигрыватель масштабируется сам через --tts, здесь только раскладка */

@media (max-width: 680px) {
  .slots { flex-wrap: wrap; justify-content: center; }
  .scene { gap: 28px; padding: 24px 16px 48px; }
  .crate-area { padding-top: 12px; }
}

/* ==================== ДОСТУПНОСТЬ ==================== */

@media (prefers-reduced-motion: reduce) {
  .platter-record.spinning .record-disc { animation-duration: 20s; }
  .platter-record.spinning { animation: none; }
  .dust { display: none; }
  .tl-track.current::after { animation: none; }
  .tracklist { animation: none; }
}
