/* public/mixtape.css */

.mixtape-app {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

/* ── Vinyl Visual ── */
.vinyl-container {
  flex: 0 0 35vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 20px;
  background: linear-gradient(180deg, rgba(239,154,154,0.1) 0%, transparent 100%);
  border-bottom: 1px solid rgba(239,154,154,0.1);
}

.vinyl {
  width: clamp(150px, 30vh, 250px);
  height: clamp(150px, 30vh, 250px);
  background: #111;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.8), inset 0 0 0 4px #222;
  border: 1px solid #333;
  /* Grooves */
  background-image: 
    radial-gradient(circle at center, transparent 30%, #1a1a1a 31%, transparent 32%, transparent 40%, #1a1a1a 41%, transparent 42%, transparent 50%, #1a1a1a 51%, transparent 52%, transparent 60%, #1a1a1a 61%, transparent 62%, transparent 70%, #1a1a1a 71%, transparent 72%);
  animation: spin 10s linear infinite;
  animation-play-state: paused;
}

.vinyl.is-playing {
  animation-play-state: running;
}

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

.vinyl-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 35%; height: 35%;
  background: var(--accent-mixtape);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #111;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vinyl-label::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 15%; height: 15%;
  background: #111;
  border-radius: 50%;
}

.vinyl-arm {
  position: absolute;
  bottom: 20px;
  right: clamp(20px, 20vw, 150px);
  width: 10px;
  height: clamp(80px, 15vh, 120px);
  background: linear-gradient(90deg, #888, #ccc, #888);
  border-radius: 5px;
  transform-origin: bottom center;
  transform: rotate(15deg);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 2px 0 5px rgba(0,0,0,0.5);
  z-index: 2;
}

.vinyl-arm::before { /* Stylus head */
  content: '';
  position: absolute;
  top: -10px; left: -10px;
  width: 25px; height: 35px;
  background: #333;
  border-radius: 4px;
}

.vinyl-container.is-playing .vinyl-arm {
  transform: rotate(-15deg);
}

/* ── Playlist ── */
.playlist-container {
  flex: 1;
  overflow-y: auto;
  padding: 30px 20px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.playlist-title {
  font-family: var(--font-display);
  color: var(--accent-mixtape);
  font-size: 2rem;
  font-style: italic;
  font-weight: 400;
  text-align: center;
}

.playlist-subtitle {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.track-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.track-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(239,154,154,0.3);
}

.track-card.is-active {
  background: rgba(239,154,154,0.05);
  border-color: rgba(239,154,154,0.4);
}

.track-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.track-number {
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.2rem;
  min-width: 24px;
}

.track-info {
  flex: 1;
}

.track-title {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.track-card.is-active .track-title {
  color: var(--accent-mixtape);
}

.track-artist {
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.track-note {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  color: rgba(255,248,220,0.8);
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
  border-top: 1px solid transparent;
}

.track-card.is-active .track-note {
  max-height: 200px;
  opacity: 1;
  margin-top: 16px;
  padding-top: 16px;
  border-color: rgba(239,154,154,0.2);
}
