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

body {
  font-family: 'Inter', sans-serif;
  background: #08080f;
  color: #e0ddd5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

/* Film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.04;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="n"><feTurbulence baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="200" height="200" filter="url(%23n)" opacity="1"/></svg>');
}

main {
  text-align: center;
  padding: 40px 20px;
  max-width: 480px;
  width: 100%;
}

/* Title */
.title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5rem;
  letter-spacing: 8px;
  color: #c8a45a;
  margin-bottom: 8px;
}

.tagline {
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: lowercase;
  color: #8a8677;
  margin-bottom: 48px;
}

/* Vinyl record */
.vinyl-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto 40px;
  cursor: pointer;
}

.record {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1a1a 30%, #111 50%, #1a1a1a 51%, #0d0d0d 100%);
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,0.6), inset 0 0 30px rgba(0,0,0,0.5);
  transition: filter 0.5s;
}

.record.spinning {
  animation: spin 2s linear infinite;
}
.record.slow {
  animation: spin 2.72s linear infinite; /* 45/33.33 slower */
}

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

.groove {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
}
.groove.g2 { inset: 25%; }
.groove.g3 { inset: 35%; }

.label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, #c8a45a 0%, #a07830 60%, #886828 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}
.label::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #08080f;
}

.label-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 1.5px;
  color: #08080f;
  position: absolute;
  top: 18px;
  width: 100%;
  text-align: center;
  opacity: 0.6;
}

.drop-zone {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 2;
}
.drop-zone.drag-over {
  box-shadow: 0 0 0 3px #c8a45a;
}

/* Controls */
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.ctrl {
  border: none;
  cursor: pointer;
  background: transparent;
  color: #5a5850;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctrl.play {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid #c8a45a;
  color: #c8a45a;
}
.ctrl.play svg { width: 26px; height: 26px; }
.ctrl.play:hover {
  background: #c8a45a;
  color: #08080f;
}

.ctrl.toeren {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 2px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid #333;
  color: #555;
}
.ctrl.toeren:hover { border-color: #c8a45a; color: #c8a45a; }
.ctrl.toeren.active {
  background: #c8a45a;
  border-color: #c8a45a;
  color: #08080f;
}

.ctrl.stop {
  width: 40px; height: 40px;
  border-radius: 50%;
}
.ctrl.stop svg { width: 18px; height: 18px; }
.ctrl.stop:hover { color: #e0ddd5; }

/* Time bar */
.time-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 280px;
  margin: 0 auto 30px;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: #5a5850;
}
.time-bar input[type="range"] { flex: 1; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: #2a2820;
  border-radius: 1px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #c8a45a;
  cursor: pointer;
  border: none;
}
input[type="range"]::-moz-range-thumb {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #c8a45a;
  cursor: pointer;
  border: none;
}

/* Error & Loading */
.error-msg {
  color: #a04030;
  font-size: 0.8rem;
  margin-bottom: 16px;
}
.loading-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #8a8677;
  font-size: 0.8rem;
  margin-bottom: 16px;
}
.spinner {
  width: 16px; height: 16px;
  border: 2px solid #333;
  border-top-color: #c8a45a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: #111118;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 36px 32px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  color: #555;
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover { color: #e0ddd5; }

.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 4px;
  color: #c8a45a;
  margin-bottom: 28px;
  text-align: center;
}

.modal-option { margin-bottom: 8px; }
.modal-option label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #8a8677;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.modal-url-row {
  display: flex;
  gap: 8px;
}
.modal-url-row input {
  flex: 1;
  background: #0a0a12;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 10px 14px;
  color: #e0ddd5;
  font-size: 0.85rem;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.modal-url-row input:focus { border-color: #c8a45a; }
.modal-url-row input::placeholder { color: #444; }

.modal-btn {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 2px;
  padding: 10px 20px;
  border: 1px solid #c8a45a;
  border-radius: 8px;
  background: transparent;
  color: #c8a45a;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.modal-btn:hover {
  background: #c8a45a;
  color: #08080f;
}

.modal-btn.file-btn {
  width: 100%;
  padding: 14px;
  text-align: center;
  border-style: dashed;
}

.modal-divider {
  text-align: center;
  margin: 20px 0;
  color: #444;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
}
.modal-divider::before, .modal-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: #222;
}
.modal-divider::before { left: 0; }
.modal-divider::after { right: 0; }

/* Pro Mode */
.pro-btn {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 3px;
  border: 1px solid #2a2a2a;
  background: transparent;
  color: #555;
  padding: 6px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 24px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.pro-btn:hover { border-color: #c8a45a; color: #c8a45a; }
.pro-btn.active { background: #c8a45a; border-color: #c8a45a; color: #08080f; }

.pro-section { margin-bottom: 20px; }

.decks {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}

.deck { text-align: center; }

.mini-vinyl {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  cursor: pointer;
  position: relative;
}

.mini-record {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1a1a 30%, #111 50%, #1a1a1a 51%, #0d0d0d 100%);
  position: relative;
  box-shadow: 0 0 30px rgba(0,0,0,0.4), inset 0 0 15px rgba(0,0,0,0.5);
}
.mini-record.spinning { animation: spin 2s linear infinite; }
.mini-record.slow { animation: spin 2.72s linear infinite; }

.mini-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, #c8a45a 0%, #a07830 60%, #886828 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-label::after {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #08080f;
  position: absolute;
}

.mini-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.4rem;
  letter-spacing: 1px;
  color: #08080f;
  opacity: 0.6;
  text-align: center;
  overflow: hidden;
  width: 100%;
  position: absolute;
  top: 8px;
}

.deck-ctrls {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.ctrl.deck-play {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid #c8a45a;
  color: #c8a45a;
  font-size: 1rem;
}
.ctrl.deck-play:hover { background: #c8a45a; color: #08080f; }

.ctrl.toeren-sm {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid #333;
  color: #555;
  align-self: center;
}
.ctrl.toeren-sm:hover { border-color: #c8a45a; color: #c8a45a; }
.ctrl.toeren-sm.active { background: #c8a45a; border-color: #c8a45a; color: #08080f; }

.fader-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 280px;
  margin: 0 auto;
}
.fader-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 2px;
  color: #555;
}
.fader-row input[type="range"] { flex: 1; }

/* Footer */
.footer {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 6px;
  color: #333;
  margin-top: 20px;
}

@media (max-width: 480px) {
  .title { font-size: 3.5rem; }
  .vinyl-wrap { width: 200px; height: 200px; }
  .label { width: 65px; height: 65px; }
  .decks { gap: 16px; }
  .mini-vinyl { width: 100px; height: 100px; }
  .mini-label { width: 32px; height: 32px; }
}
