/* ========================================
   Spotify Playlist Portfolio
   ======================================== */

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

:root {
  --bg: #121212;
  --bg-elevated: #181818;
  --bg-highlight: #282828;
  --white: #ffffff;
  --text-muted: #b3b3b3;
  --text-subdued: #6a6a6a;
  --green: #1DB954;
  --green-bright: #1ed760;
  --pink: #FF6B9D;
  --orange: #FF8C42;
  --cyan: #4ECDC4;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.5;
}

/* ========================================
   Grain Overlay
   ======================================== */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========================================
   Gradient Blobs
   ======================================== */
.gradient-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  transition: background 1.5s ease;
  will-change: transform;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: #F5A623;
  top: -200px;
  left: -100px;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: #4ABDAC;
  top: 10%;
  right: -150px;
}

.blob-3 {
  width: 450px;
  height: 450px;
  background: #FC6E51;
  bottom: 30%;
  left: 20%;
}

.blob-4 {
  width: 400px;
  height: 400px;
  background: #F7B733;
  bottom: -100px;
  right: 10%;
}

/* ========================================
   Playlist Container
   ======================================== */
.playlist-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  padding-bottom: 120px;
}

/* ========================================
   Playlist Header
   ======================================== */
.playlist-header {
  display: flex;
  gap: 32px;
  padding: 40px 0;
  position: relative;
  background: linear-gradient(180deg, #1a3a2a 0%, var(--bg) 100%);
  margin: -24px -24px 0;
  padding: 60px 40px 40px;
  border-radius: 8px 8px 0 0;
}

.playlist-cover {
  flex-shrink: 0;
  position: relative;
  transition: transform 0.1s ease-out;
  cursor: pointer;
}

.cover-art {
  width: 232px;
  height: 232px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at center, #1a1a1a 0%, #0d0d0d 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.6),
    inset 0 2px 4px rgba(255,255,255,0.1),
    inset 0 -2px 4px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Vinyl grooves */
.cover-art::before {
  content: '';
  position: absolute;
  width: 92%;
  height: 92%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle at center,
      transparent 0px,
      transparent 2px,
      rgba(40,40,40,0.8) 2px,
      rgba(40,40,40,0.8) 3px,
      rgba(20,20,20,0.9) 3px,
      rgba(20,20,20,0.9) 4px
    );
  pointer-events: none;
}

/* Center label */
.cover-art::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #1a1a1a 8px, transparent 9px),
    linear-gradient(135deg, var(--green) 0%, #0a5a2a 100%);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.2),
    0 2px 8px rgba(0,0,0,0.4);
  z-index: 2;
}

/* Shine reflection */
.playlist-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 232px;
  height: 232px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.2) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255,255,255,0.05) 100%
  );
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.playlist-cover:hover::after {
  opacity: 1;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.3) 0%,
    rgba(255,255,255,0.1) 25%,
    transparent 50%,
    rgba(255,255,255,0.05) 75%,
    rgba(255,255,255,0.15) 100%
  );
}

.cover-art:hover {
  animation: vinylSpin 2s linear infinite;
}

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

/* Tonearm / Needle */
.tonearm {
  position: absolute;
  top: -5px;
  right: 5px;
  z-index: 10;
}

.tonearm-base {
  width: 24px;
  height: 24px;
  background: radial-gradient(circle, #666 0%, #333 100%);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
}

.tonearm-arm {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 130px;
  height: 6px;
  background: linear-gradient(180deg, #777 0%, #444 50%, #555 100%);
  border-radius: 3px;
  transform-origin: 4px center;
  transform: rotate(90deg);
  transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.tonearm-head {
  position: absolute;
  right: -6px;
  top: -5px;
  width: 16px;
  height: 16px;
  background: linear-gradient(180deg, #888 0%, #444 100%);
  border-radius: 2px;
}

.tonearm-head::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 8px;
  background: linear-gradient(180deg, #aaa, #666);
  border-radius: 1px;
}

.playlist-cover:hover .tonearm-arm {
  transform: rotate(115deg);
}

.cover-text {
  font-size: 80px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -4px;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.playlist-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 8px;
  position: relative;
}

.playlist-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.playlist-title {
  font-size: 96px;
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 16px;
}

.playlist-title .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: letterReveal 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes letterReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.playlist-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.artist-name {
  color: var(--white);
  font-weight: 600;
}

.meta-dot {
  color: var(--text-subdued);
}

.playlist-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 500px;
}

.mobile-break {
  display: none;
}

.playlist-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.play-btn:hover {
  transform: scale(1.06);
  background: var(--green-bright);
}

.play-btn svg {
  width: 24px;
  height: 24px;
  margin-left: 4px;
  color: var(--bg);
}

/* Social Icons */
.social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 8px;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  color: var(--white);
  transform: scale(1.1);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

/* Hand-drawn decorations */
.scribble-underline {
  position: absolute;
  bottom: 100px;
  left: 320px;
  width: 200px;
  height: 20px;
  opacity: 0.8;
}

.scribble-star {
  position: absolute;
  top: 40px;
  right: 60px;
  width: 40px;
  height: 40px;
  animation: twinkle 2s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 20;
}

.scribble-star:hover {
  transform: scale(1.2) rotate(15deg);
}

.scribble-star:active {
  transform: scale(0.9);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Star burst particles */
.star-particle {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  font-size: 20px;
  animation: starBurst 1s ease-out forwards;
}

@keyframes starBurst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0) rotate(360deg);
  }
}

/* ========================================
   Track List
   ======================================== */
.track-list {
  padding-top: 16px;
}

.track-header {
  display: grid;
  grid-template-columns: 48px 1fr 200px 80px;
  gap: 16px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
  color: var(--text-subdued);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.track-header svg {
  width: 16px;
  height: 16px;
}

.track {
  display: grid;
  grid-template-columns: 48px 1fr 200px 80px;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease-out, box-shadow 0.2s ease;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: trackFadeIn 0.5s ease forwards;
  transform-style: preserve-3d;
  will-change: transform;
}

.track:nth-child(2) { animation-delay: 0.05s; }
.track:nth-child(3) { animation-delay: 0.1s; }
.track:nth-child(4) { animation-delay: 0.15s; }
.track:nth-child(5) { animation-delay: 0.2s; }
.track:nth-child(6) { animation-delay: 0.25s; }
.track:nth-child(7) { animation-delay: 0.3s; }
.track:nth-child(8) { animation-delay: 0.35s; }
.track:nth-child(9) { animation-delay: 0.4s; }
.track:nth-child(10) { animation-delay: 0.45s; }
.track:nth-child(11) { animation-delay: 0.5s; }
.track:nth-child(12) { animation-delay: 0.55s; }
.track:nth-child(13) { animation-delay: 0.6s; }

@keyframes trackFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.track:hover,
.track:active {
  background: var(--bg-highlight);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(29, 185, 84, 0.1);
}

.track.active {
  background: rgba(29, 185, 84, 0.1);
}

.track.active .track-title {
  color: var(--green);
}

.track.active .track-num {
  color: var(--green);
}

.track-num {
  font-size: 16px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.track-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-tool {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.track-duration {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Expanded track content */
.track-expanded {
  display: none;
  grid-column: 1 / -1;
  padding: 24px 0 16px;
  gap: 24px;
}

.track.expanded .track-expanded {
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: fadeIn 0.3s ease;
}

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

.track-video {
  aspect-ratio: 16/9;
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
}

.track-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg);
}

.track-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 8px 0;
}

.track-desc a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.track-desc a:hover {
  color: var(--green-bright);
  text-decoration: underline;
}

/* ========================================
   Now Playing Bar
   ======================================== */
.now-playing {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--bg-elevated);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.now-playing-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.now-playing-thumb {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  aspect-ratio: 1;
  background: var(--bg-highlight);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Mini Vinyl */
.mini-vinyl {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at center, #1a1a1a 0%, #0d0d0d 100%);
  position: relative;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.mini-vinyl-groove {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0px,
    transparent 2px,
    rgba(40,40,40,0.8) 2px,
    rgba(40,40,40,0.8) 3px
  );
}

.mini-vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #1a1a1a 3px, transparent 4px),
              linear-gradient(135deg, var(--green) 0%, #0a5a2a 100%);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.2);
}

/* Playing state */
.now-playing-thumb.playing .mini-vinyl {
  opacity: 1;
  animation: miniVinylSpin 2s linear infinite;
}

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

.now-playing-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 200px;
}

.now-playing-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing-artist {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.control-btn {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.control-btn:hover {
  color: var(--white);
}

.control-btn svg {
  width: 16px;
  height: 16px;
}

.control-btn.play-pause {
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  color: var(--bg);
}

.control-btn.play-pause:hover {
  transform: scale(1.06);
  color: var(--bg);
}

.control-btn.play-pause svg {
  width: 18px;
  height: 18px;
}

.control-btn.play-pause .icon-pause {
  display: none;
}

.control-btn.play-pause.playing .icon-play {
  display: none;
}

.control-btn.play-pause.playing .icon-pause {
  display: block;
}

.now-playing-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.progress-time {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 40px;
}

.progress-bar {
  width: 200px;
  height: 4px;
  background: var(--bg-highlight);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.progress-fill {
  height: 100%;
  background: var(--green);
  width: 0%;
  transition: width 0.1s linear;
}

.progress-bar:hover .progress-fill {
  background: var(--green-bright);
}

/* ========================================
   Social Nav
   ======================================== */
.social-nav {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 20px;
  z-index: 100;
}

.social-nav a {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
}

.social-nav a:hover {
  color: var(--white);
}

/* ========================================
   Video Panel (Right Side)
   ======================================== */
.video-panel {
  position: fixed;
  top: 16px;
  right: 16px;
  width: calc(50% - 32px);
  height: calc(100vh - 32px);
  background:
    linear-gradient(
      160deg,
      rgba(40, 40, 40, 0.35) 0%,
      rgba(24, 24, 24, 0.45) 50%,
      rgba(30, 40, 35, 0.4) 100%
    );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateX(calc(100% + 32px));
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  z-index: 50;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 0 100px rgba(29, 185, 84, 0.08);
  overflow: hidden;
  opacity: 0;
}

.video-panel.active {
  transform: translateX(0);
  opacity: 1;
}

/* Vinyl Drop Animation */
.panel-vinyl-drop {
  position: fixed;
  top: -100px;
  left: 44px;
  transform: translate(-50%, 0) rotate(0deg) scale(1);
  width: 100px;
  height: 100px;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
}

body.panel-open .panel-vinyl-drop {
  animation: vinylDrop 1.4s ease-out forwards;
  animation-delay: 0.1s;
}

.panel-vinyl-record {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 18%, #1a1a1a 19%, #1a1a1a 21%, transparent 22%),
    radial-gradient(circle at 50% 50%, transparent 35%, rgba(30,30,30,0.8) 36%, rgba(30,30,30,0.8) 38%, transparent 39%),
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(25,25,25,0.6) 56%, rgba(25,25,25,0.6) 58%, transparent 59%),
    radial-gradient(circle at 50% 50%, transparent 75%, rgba(20,20,20,0.4) 76%, rgba(20,20,20,0.4) 78%, transparent 79%),
    linear-gradient(135deg, #2a2a2a 0%, #0a0a0a 50%, #1a1a1a 100%);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.1);
  animation: vinylSpinPanel 3s linear infinite;
}

.panel-vinyl-grooves {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0px,
    transparent 1px,
    rgba(0,0,0,0.3) 2px,
    transparent 3px
  );
}

.panel-vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 35%;
  height: 35%;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green) 0%, #15803d 100%);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

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

@keyframes vinylDrop {
  0% {
    top: -100px;
    left: 44px;
    transform: translate(-50%, 0) rotate(0deg) scale(1);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    top: calc(100vh - 52px);
    left: 44px;
    transform: translate(-50%, -50%) rotate(720deg) scale(0.35);
    opacity: 0;
  }
}

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

.panel-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 10;
  backdrop-filter: blur(10px);
}

.panel-close:hover {
  color: var(--white);
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg) scale(1.1);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.panel-close svg {
  width: 20px;
  height: 20px;
}

.panel-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px 40px 24px;
  overflow-y: auto;
  will-change: transform;
}

.panel-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  flex-shrink: 0;
}

.video-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.panel-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg);
}

.video-swipe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  touch-action: none;
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
}

.panel-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.panel-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.panel-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

#tryItBtn {
  display: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 8px 16px;
  background: transparent;
  background-color: transparent;
  border: 1px solid #1DB954;
  border-radius: 20px;
  color: #1DB954;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  box-sizing: border-box;
  line-height: 1.2;
  flex-shrink: 0;
}

#tryItBtn:hover,
#tryItBtn:active {
  background: #1DB954;
  background-color: #1DB954;
  color: #121212;
}

#tryItBtn.visible {
  display: inline-block;
}

.panel-artist {
  font-size: 16px;
  color: var(--green);
  margin-bottom: 16px;
}

.panel-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.panel-desc a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.panel-desc a:hover {
  color: var(--green-bright);
  text-decoration: underline;
}

.panel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.panel-control-btn {
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.panel-control-btn:hover {
  color: var(--white);
  transform: scale(1.1);
}

.panel-control-btn svg {
  width: 24px;
  height: 24px;
}

.panel-play-btn {
  width: 64px;
  height: 64px;
  background: var(--green);
  border-radius: 50%;
  color: var(--bg);
}

.panel-play-btn:hover {
  background: var(--green-bright);
  color: var(--bg);
}

.panel-play-btn svg {
  width: 28px;
  height: 28px;
}

.panel-play-btn .icon-play {
  transform: translateX(2px);
}

.panel-play-btn .icon-pause {
  display: none;
}

.panel-play-btn.playing .icon-play {
  display: none;
}

.panel-play-btn.playing .icon-pause {
  display: block;
}

.panel-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-time {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 40px;
}

.panel-time:last-child {
  text-align: right;
}

.panel-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-highlight);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
}

.panel-progress-fill {
  height: 100%;
  background: var(--green);
  width: 0%;
  transition: width 0.1s linear;
}

.panel-progress-bar:hover .panel-progress-fill {
  background: var(--green-bright);
}

/* Secret Video Popover */
.playlist-info {
  position: relative;
}

.artist-name {
  cursor: pointer;
  transition: color 0.2s ease;
}

.artist-name:hover {
  color: var(--green);
}

.secret-popover {
  position: absolute;
  top: 160px;
  left: 0;
  width: 400px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(29, 185, 84, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1000;
}

.secret-popover.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.secret-popover video {
  width: 100%;
  display: block;
  border-radius: 0 0 16px 16px;
}

.secret-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.secret-close:hover {
  color: var(--white);
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.2);
  transform: rotate(90deg) scale(1.1);
}

.secret-message {
  color: #b3b3b3;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  padding: 16px 20px;
  line-height: 1.5;
}

.secret-close svg {
  width: 16px;
  height: 16px;
}

/* Split layout when panel is open */
.playlist-container {
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1), margin 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

body.panel-open .playlist-container {
  width: 50%;
  margin: 0;
}

.now-playing {
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1), left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

body.panel-open .now-playing {
  width: 50%;
  right: auto;
}

.playlist-header {
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

body.panel-open .playlist-header {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.playlist-cover {
  transition: opacity 0.3s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

body.panel-open .playlist-cover {
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
  position: absolute;
}

body.panel-open .playlist-info {
  padding-bottom: 0;
}

body.panel-open .playlist-label {
  display: none;
}

.playlist-title {
  letter-spacing: 2px;
  transition: font-size 0.6s cubic-bezier(0.22, 1, 0.36, 1), letter-spacing 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

body.panel-open .playlist-title {
  font-size: 24px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

body.panel-open .playlist-meta {
  font-size: 12px;
  margin-bottom: 0;
}

.playlist-desc,
.playlist-actions,
.scribble-star {
  transition: opacity 0.3s ease;
}

body.panel-open .playlist-desc {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

body.panel-open .playlist-actions {
  opacity: 0;
  height: 0;
  overflow: hidden;
}

body.panel-open .scribble-star {
  display: none;
}

body.panel-open .track-expanded {
  display: none !important;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
  .playlist-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
  }

  .playlist-info {
    align-items: center;
  }

  .playlist-title {
    font-size: 48px;
  }

  .scribble-underline {
    display: none;
  }

  .scribble-star {
    top: 60px;
    right: 20px;
    width: 35px;
    height: 35px;
  }

  /* Remove shine overlay on mobile */
  .playlist-cover::after {
    display: none;
  }


  .track-header,
  .track {
    grid-template-columns: 32px 1fr 60px;
  }

  .track-tool {
    display: none;
  }

  .track.expanded .track-expanded {
    grid-template-columns: 1fr;
  }

  /* Medium screens: full-width panel, hide now-playing when open */
  .video-panel {
    width: calc(100% - 32px);
  }

  body.panel-open .now-playing {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 600px) {
  /* Lock scroll when panel open on mobile */
  body.panel-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  .cover-art {
    width: 160px;
    height: 160px;
  }

  .cover-text {
    font-size: 56px;
  }

  .playlist-title {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .mobile-break {
    display: block;
  }

  .playlist-container {
    padding: 16px;
    padding-bottom: 100px;
  }

  /* Mobile: Full screen video panel */
  .video-panel {
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    transform: translateY(100%);
  }

  .video-panel.active {
    transform: translateY(0);
  }

  /* Keep playlist full width on mobile */
  body.panel-open .playlist-container {
    width: 100%;
  }

  body.panel-open .now-playing {
    width: 100%;
    left: 0;
  }

  /* Panel content adjustments */
  .panel-content {
    padding: 50px 20px 16px;
  }

  .panel-video {
    margin-bottom: 16px;
  }

  .panel-title {
    font-size: 24px;
  }

  .panel-artist {
    margin-bottom: 10px;
  }

  .panel-desc {
    font-size: 14px;
    flex: 0;
    margin-bottom: 24px;
  }

  .panel-title {
    font-size: 24px;
  }

  #tryItBtn {
    padding: 6px 14px;
    font-size: 13px;
  }

  .panel-controls {
    gap: 16px;
  }

  .panel-control-btn {
    width: 44px;
    height: 44px;
  }

  .panel-play-btn {
    width: 56px;
    height: 56px;
  }

  /* Track list on mobile - show more text */
  .track-info {
    min-width: 0;
  }

  .track-title {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
  }

  .track-artist {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
  }

  /* Now playing bar mobile */
  .now-playing {
    padding: 8px 12px;
    gap: 8px;
  }

  .now-playing-thumb {
    width: 40px;
    height: 40px;
  }

  .now-playing-title {
    font-size: 12px;
  }

  .now-playing-artist {
    font-size: 10px;
  }

  .control-btn {
    width: 32px;
    height: 32px;
  }

  .play-pause {
    width: 40px;
    height: 40px;
  }

  /* Hide vinyl drop on mobile */
  .panel-vinyl-drop {
    display: none;
  }

  /* Secret popover - center on mobile */
  .secret-popover {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: calc(100vw - 32px);
    max-width: 350px;
  }

  .secret-popover.active {
    transform: translate(-50%, -50%) scale(1);
  }

  /* Hide now-playing bar when panel is open on mobile */
  body.panel-open .now-playing {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
  }

  /* Swipe hint */
  .video-panel::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
  }

  /* Lower grain z-index on mobile to prevent touch interference */
  .grain {
    z-index: 1;
  }
}
