/* ==========================================================================
   KAPRAO MUSIC PLAY - SONG WAT RETRO-CHIC × GEN Z AESTHETIC
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;600;700&family=Playfair+Display:ital,wght@1,600;1,800&family=VT323&display=swap');

:root {
  --bg-sand: #f5f0e8;
  --bg-card: #fdfbf7;
  --songwat-brick: #b84a39;
  --songwat-brick-hover: #9c3b2c;
  --songwat-amber: #e69c24;
  --songwat-olive: #475841;
  --songwat-cream: #faf7f2;
  --songwat-dark: #211c19;
  --songwat-muted: #7d7268;
  --songwat-border: #e0d7c8;
  --songwat-shadow: rgba(33, 28, 25, 0.08);
  --songwat-heavy-shadow: rgba(33, 28, 25, 0.18);
  --neon-accent: #ff4d30;
  --lcd-green: #39e75f;
  --lcd-bg: #111a13;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Kanit', sans-serif;
  background-color: #1a1715;
  color: var(--songwat-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  background-image: 
    radial-gradient(#2f2824 1px, transparent 1px),
    radial-gradient(#25201c 1px, #171412 1px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

/* Mobile Frame Wrapper */
.mobile-wrapper {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  max-height: 932px;
  background: var(--bg-sand);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 0 12px #2d2621;
  border-radius: 42px;
}

@media (max-width: 500px) {
  .mobile-wrapper {
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
  body {
    background: var(--bg-sand);
  }
}

/* Paper Grain Texture Overlay */
.paper-grain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 99;
}

/* Top App Bar */
.app-header {
  padding: 8px 12px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  z-index: 10;
  border-bottom: 1px dashed var(--songwat-border);
  background: rgba(245, 240, 232, 0.96);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.top-header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.top-pill-btn {
  background: #fff;
  border: 1px solid var(--songwat-border);
  border-radius: 14px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #5a3d28;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
  box-shadow: 0 1px 3px var(--songwat-shadow);
  font-family: 'Kanit', sans-serif;
}

.top-pill-btn:hover {
  transform: translateY(-1px);
  border-color: var(--songwat-brick);
}

.top-notif-btn {
  position: relative;
  cursor: pointer;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
  line-height: 1;
}

.heritage-action-btns {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.brand-stamp {
  background: var(--songwat-brick);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  transform: rotate(-2deg);
  box-shadow: 1px 2px 4px rgba(184, 74, 57, 0.3);
}

.app-title-group h1 {
  font-size: 17px;
  font-weight: 700;
  color: var(--songwat-dark);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 5px;
}

.title-play-highlight {
  color: #27ae60;
  font-weight: 700;
  display: inline;
}

.top-shelf-btn {
  background: #fbf7f0;
  border: 1px solid var(--songwat-border);
  padding: 5px 9px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 2px 6px var(--songwat-shadow);
  transition: all 0.2s ease;
  font-family: 'Kanit', sans-serif;
  color: var(--songwat-dark);
}

.top-shelf-btn:hover {
  transform: translateY(-1px);
  border-color: #c49746;
  background: #fff;
}

.top-shelf-label {
  font-size: 11px;
  font-weight: 600;
  color: #5a432d;
}

.top-shelf-badge {
  background: #c49746;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  min-width: 16px;
  text-align: center;
}

.user-status-btn {
  background: #fff;
  border: 1px solid var(--songwat-border);
  padding: 5px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px var(--songwat-shadow);
  transition: all 0.2s ease;
}

.user-status-btn:hover {
  transform: translateY(-1px);
  border-color: var(--songwat-brick);
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--songwat-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name-label {
  font-size: 11px;
  font-weight: 500;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Viewport Container (Fit completely in 1 screen - No Scroll) */
.player-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 16px 10px;
  overflow: hidden;
  position: relative;
}

/* Vintage Sub-header / Song Wat Heritage tag */
.heritage-tagline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.tag-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--songwat-olive);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tag-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--songwat-amber);
  border-radius: 50%;
}

.vibe-switch {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--songwat-border);
  box-shadow: 0 2px 6px var(--songwat-shadow);
  padding: 3px;
  border-radius: 12px;
}

.vibe-btn {
  border: none;
  background: transparent;
  padding: 3px 8px;
  border-radius: 9px;
  font-size: 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--songwat-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.vibe-btn.active {
  background: #fff;
  color: var(--songwat-brick);
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

/* Artwork / Showcase Section - Flexibly fits remaining screen space */
.artwork-area {
  position: relative;
  flex: 1;
  min-height: 160px;
  max-height: 38vh;
  width: 100%;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating Center Play / Pause Button on Cover */
.center-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
  opacity: 1;
}

.center-play-overlay.hidden-play {
  opacity: 0;
}

/* On hover on desktop, subtly show when playing */
@media (hover: hover) {
  .artwork-area:hover .center-play-overlay.hidden-play {
    opacity: 0.85;
  }
}

.center-play-circle {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(28, 22, 19, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.28);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.3, 1), background 0.2s;
}

.center-play-circle:hover {
  transform: scale(1.08);
  background: var(--songwat-brick);
}

.center-play-circle:active {
  transform: scale(0.94);
}

/* Vinyl Player Mode (Locked 1:1 Circle - Never Oval) */
.vinyl-deck {
  position: relative;
  height: 100%;
  max-height: 250px;
  width: auto;
  aspect-ratio: 1 / 1;
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-disc {
  width: 90%;
  height: 90%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, #242220 20%, #151413 50%, #201e1c 70%, #0e0d0c 100%);
  position: absolute;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
  animation: spinVinyl 16s linear infinite;
  animation-play-state: paused;
}

.vinyl-disc::before {
  content: '';
  position: absolute;
  width: 95%;
  height: 95%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.vinyl-disc::after {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.vinyl-disc.playing {
  animation-play-state: running;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-center-label {
  width: 44%;
  height: 44%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 4px solid #1a1715;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
  background: var(--songwat-cream);
}

.vinyl-center-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vinyl-center-hole {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #f5f0e8;
  border-radius: 50%;
  border: 2px solid #201d1a;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

/* Vinyl Tonearm */
.vinyl-tonearm {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 45px;
  height: 110px;
  pointer-events: none;
  transform-origin: 36px 12px;
  transform: rotate(-24deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
  z-index: 10;
}

.vinyl-tonearm.on-air {
  transform: rotate(5deg);
}

.tonearm-pivot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #a89f91;
  border: 2px solid #6b6357;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tonearm-rod {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 4px;
  height: 75px;
  background: linear-gradient(to right, #cfc6b8, #8f8576);
  border-radius: 2px;
  transform: rotate(6deg);
}

.tonearm-head {
  position: absolute;
  bottom: 12px;
  right: 18px;
  width: 12px;
  height: 18px;
  background: var(--songwat-brick);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Retro Poster Mode Artwork (Full Width Widescreen matching Interlude) */
.poster-deck {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px var(--songwat-heavy-shadow), 0 0 0 1px rgba(0,0,0,0.06);
  position: relative;
  background: #1e1915;
  display: none;
}

.poster-deck.active {
  display: block;
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.poster-deck:hover .poster-image {
  transform: scale(1.02);
}

.poster-watermark {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(33, 28, 25, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 9px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 1px;
  z-index: 2;
}

/* Cassette Mode Deck (Compact & Realistic Dimensions) */
.cassette-deck {
  height: 100%;
  max-height: 160px;
  width: auto;
  aspect-ratio: 1.58 / 1;
  max-width: 82%;
  margin: 0 auto;
  background: #24201d;
  border-radius: 12px;
  border: 3px solid #3d3632;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
  position: relative;
  display: none;
  flex-direction: column;
  padding: 8px 10px;
  color: #e5ded3;
}

.cassette-deck.active {
  display: flex;
}

.cassette-label {
  background: #f1ebd8;
  color: #1e1b18;
  border-radius: 8px;
  padding: 6px 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border-left: 6px solid var(--songwat-brick);
}

.cassette-tape-window {
  background: #111;
  height: 40px;
  border-radius: 20px;
  margin: 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 16px;
  border: 2px solid #555;
  position: relative;
}

.cassette-reel {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 5px dashed #777;
  animation: spinTape 4s linear infinite;
  animation-play-state: paused;
}

.cassette-reel.playing {
  animation-play-state: running;
}

@keyframes spinTape {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cassette-window-glass {
  position: absolute;
  width: 50px;
  height: 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

/* Song Title & Meta Info */
.song-info-card {
  text-align: center;
  margin-bottom: 5px;
  padding: 8px 12px 6px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#loveSongBtn,
#openLyricsBtn {
  background: #ffffff !important;
  border: 1px solid var(--songwat-border) !important;
  border-radius: 16px !important;
  color: #5a3d28 !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06) !important;
  transition: all 0.2s ease;
}

#loveSongBtn:hover,
#openLyricsBtn:hover {
  transform: translateY(-1px);
  border-color: var(--songwat-amber) !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1) !important;
}

.song-comment-snippet {
  background: #ffffff !important;
  border: 1px solid var(--songwat-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06) !important;
  color: #5a3d28 !important;
  transition: all 0.2s ease;
}

.song-comment-snippet:hover {
  transform: translateY(-1px);
  border-color: var(--songwat-amber) !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1) !important;
}

.song-title-text {
  font-size: 18px;
  font-weight: 700;
  color: #1f1812;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-artist-text {
  font-size: 12px;
  color: var(--songwat-muted);
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.genre-pill {
  font-size: 9px;
  font-family: 'Space Grotesk', sans-serif;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e5ded2;
  color: var(--songwat-dark);
  font-weight: 600;
  text-transform: uppercase;
}

/* Audio Visualizer Canvas */
.visualizer-wrapper {
  width: 100%;
  height: 22px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#audioVisualizer {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

/* Retro LCD Counter & Progress */
.playback-progress-section {
  background: #fff;
  border: 1px solid var(--songwat-border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  box-shadow: 0 3px 8px var(--songwat-shadow);
  margin-bottom: 8px;
  flex-shrink: 0;
}

.lcd-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: var(--songwat-muted);
}

.lcd-time {
  color: var(--songwat-brick);
  font-weight: 700;
  letter-spacing: 1px;
}

.lcd-status-tag {
  background: #f0ebe1;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.5px;
}

.progress-track {
  width: 100%;
  height: 7px;
  background: #eee8de;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--songwat-brick), var(--songwat-amber));
  border-radius: 4px;
  transition: width 0.1s linear;
}

/* Controls Toolbar */
.playback-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 0 4px;
  flex-shrink: 0;
}

.ctrl-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--songwat-dark);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.3, 1);
  border-radius: 50%;
}

.ctrl-btn:hover {
  transform: scale(1.08);
  color: var(--songwat-brick);
}

.ctrl-btn:active {
  transform: scale(0.95);
}

.ctrl-btn.secondary {
  width: 36px;
  height: 36px;
  color: var(--songwat-muted);
}

.ctrl-btn.secondary.active {
  color: var(--songwat-brick);
  background: #f0ebe1;
}

.ctrl-btn.step {
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid var(--songwat-border);
  box-shadow: 0 3px 8px var(--songwat-shadow);
}

.ctrl-btn.play-main {
  width: 60px;
  height: 60px;
  background: var(--songwat-brick);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(184, 74, 57, 0.45);
}

.ctrl-btn.play-main:hover {
  background: var(--songwat-brick-hover);
  color: #fff;
  transform: scale(1.05);
}

/* Bottom Floating Bar */
.bottom-dock {
  background: #fff;
  border-top: 1px dashed var(--songwat-border);
  padding: 8px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  flex-shrink: 0;
}

.batch-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.batch-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f5efe6;
  border: 1px solid var(--songwat-border);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--songwat-dark);
}

.batch-pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--songwat-brick);
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
}

.batch-counter {
  background: var(--songwat-brick);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

/* Song Tags Row */
.song-tags-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.song-tag-badge {
  font-size: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--songwat-olive);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* TikTok-style Vertical Slide Transitions for Artwork */
.artwork-area {
  touch-action: none; /* Intercept both vertical and horizontal swipes */
  user-select: none;
  cursor: grab;
}
.artwork-area:active {
  cursor: grabbing;
}

.slide-up-out {
  animation: slideUpOut 0.28s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
.slide-up-in {
  animation: slideUpIn 0.28s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

.slide-down-out {
  animation: slideDownOut 0.28s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
.slide-down-in {
  animation: slideDownIn 0.28s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes slideUpOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-70px) scale(0.92); opacity: 0; }
}

@keyframes slideUpIn {
  from { transform: translateY(70px) scale(0.92); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes slideDownOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(70px) scale(0.92); opacity: 0; }
}

@keyframes slideDownIn {
  from { transform: translateY(-70px) scale(0.92); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* First-time Onboarding Swipe Hint Overlay */
.swipe-hint-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 23, 21, 0.75);
  backdrop-filter: blur(6px);
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.swipe-hint-overlay.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  display: none !important;
}

.swipe-hint-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  border: 1px solid var(--songwat-border);
  max-width: 300px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.swipe-gesture-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f7e6e3;
  color: var(--songwat-brick);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
  position: relative;
  animation: bounceUp 1.4s infinite ease-in-out;
}

@keyframes bounceUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.swipe-hint-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--songwat-dark);
  margin-bottom: 6px;
}

.swipe-hint-desc {
  font-size: 12px;
  color: var(--songwat-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.swipe-hint-btn {
  background: var(--songwat-brick);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-family: 'Kanit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(184, 74, 57, 0.35);
  transition: transform 0.2s;
}

.swipe-hint-btn:active {
  transform: scale(0.96);
}

.quick-vol-slider {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--songwat-muted);
}

.quick-vol-slider input[type="range"] {
  -webkit-appearance: none;
  width: 80px;
  height: 4px;
  background: #ddd5c7;
  border-radius: 2px;
  outline: none;
}

.quick-vol-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--songwat-brick);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ==========================================================================
   DRAWER & MODALS
   ========================================================================== */

/* Playlist Drawer (Bottom Sheet) */
.playlist-drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 23, 21, 0.65);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.playlist-drawer.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.drawer-content {
  background: var(--bg-card);
  border-radius: 28px 28px 0 0;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 30px;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.playlist-drawer.open .drawer-content {
  transform: translateY(0);
}

.drawer-handle {
  width: 44px;
  height: 5px;
  background: #dfd7cb;
  border-radius: 3px;
  margin: 0 auto 14px;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.drawer-title {
  font-size: 17px;
  font-weight: 700;
}

.close-drawer-btn {
  background: #f0ebe1;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--songwat-muted);
}

.song-search-box {
  background: #f4ede2;
  border: 1px solid var(--songwat-border);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.song-search-box input {
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Kanit', sans-serif;
  font-size: 13px;
  width: 100%;
}

.song-list-scroll {
  overflow-y: auto;
  max-height: 420px;
  padding-right: 4px;
}

.song-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f2ece0;
}

.song-item:hover {
  background: #f5eee4;
}

.song-item.active {
  background: #f5e4df;
  border-left: 4px solid var(--songwat-brick);
}

.song-item-cover {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #dfd7cb;
  flex-shrink: 0;
}

.song-item-info {
  flex: 1;
  min-width: 0;
}

.song-item-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--songwat-dark);
}

.song-item-meta {
  font-size: 11px;
  color: var(--songwat-muted);
  display: flex;
  gap: 8px;
}

.song-now-playing-icon {
  color: var(--songwat-brick);
  display: none;
}

.song-item.active .song-now-playing-icon {
  display: block;
}

/* Empty State */
.empty-songs-notice {
  text-align: center;
  padding: 40px 20px;
  color: var(--songwat-muted);
}
.empty-songs-notice .folder-path {
  background: #eee6d8;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 11px;
  margin-top: 8px;
  display: inline-block;
  color: var(--songwat-brick);
}

/* ==========================================================================
   GOOGLE LOGIN & AUTH MODAL
   ========================================================================== */
.auth-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 23, 21, 0.85);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.3s;
}

.auth-modal.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  display: none !important;
}

.auth-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  text-align: center;
  border: 1px solid var(--songwat-border);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--songwat-brick), var(--songwat-amber));
}

.auth-badge {
  display: inline-block;
  background: #f2ece0;
  color: var(--songwat-brick);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--songwat-dark);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 12px;
  color: var(--songwat-muted);
  line-height: 1.5;
  margin-bottom: 22px;
}

.google-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  min-height: 44px;
}

.mock-google-acc-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--songwat-border);
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.mock-google-acc-btn:hover {
  border-color: var(--songwat-brick);
  background: #faf6f0;
  transform: translateY(-1px);
}

.mock-google-acc-btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.demo-login-btn {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: 1px dashed var(--songwat-border);
  border-radius: 12px;
  font-family: 'Kanit', sans-serif;
  font-size: 12px;
  color: var(--songwat-muted);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.demo-login-btn:hover {
  background: #f7f1e6;
  color: var(--songwat-dark);
}

.oauth-client-config {
  margin-top: 16px;
  font-size: 10px;
  color: var(--songwat-muted);
  border-top: 1px solid #efe8dc;
  padding-top: 12px;
}

.toggle-config-link {
  color: var(--songwat-brick);
  text-decoration: underline;
  cursor: pointer;
}

.config-input-box {
  margin-top: 8px;
  display: none;
}

.config-input-box.open {
  display: block;
}

.config-input-box input {
  width: 100%;
  padding: 6px 10px;
  font-size: 11px;
  border: 1px solid var(--songwat-border);
  border-radius: 6px;
  margin-bottom: 6px;
  outline: none;
}

.save-config-btn {
  background: var(--songwat-dark);
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  cursor: pointer;
}

/* User Profile Modal */
.profile-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 23, 21, 0.7);
  backdrop-filter: blur(8px);
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.profile-modal.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.profile-card {
  background: #fffaf4;
  border: 1px solid #e8dbcc;
  border-radius: 20px;
  padding: 18px 16px 14px;
  width: 100%;
  max-width: 350px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  position: relative;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #d4c2af transparent;
}

.profile-card::-webkit-scrollbar {
  width: 4px;
}
.profile-card::-webkit-scrollbar-thumb {
  background: #d4c2af;
  border-radius: 4px;
}

.profile-avatar-large {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 6px;
  border: 2.5px solid var(--songwat-brick);
  overflow: hidden;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 15px;
  font-weight: 700;
  color: #2e241c;
  margin-bottom: 1px;
}

.profile-email {
  font-size: 11px;
  color: var(--songwat-muted);
  margin-bottom: 6px;
}

/* Profile 2x2 Feature Grid Buttons */
.profile-grid-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 6px;
  border-radius: 12px;
  font-family: 'Kanit', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  min-height: 52px;
  box-sizing: border-box;
  line-height: 1.2;
  text-align: center;
}

.profile-grid-btn:active {
  transform: scale(0.97);
}

.profile-btn-cassettes {
  background: #2f2a24;
  color: #f5eedc;
  border-color: #1a1715;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.profile-btn-shelf {
  background: #f0e6d8;
  color: #433527;
  border-color: #d4c4b2;
}

.profile-btn-postbox {
  background: #a83626;
  color: #fff;
  border-color: #852618;
  box-shadow: 0 2px 8px rgba(168,54,38,0.2);
}

.profile-btn-artist {
  background: linear-gradient(135deg, #3d2f23, #241a12);
  color: #ffd899;
  border-color: #5a4430;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Profile Utility Footer Buttons */
.profile-util-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: 'Kanit', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  transition: all 0.15s ease;
  min-height: 36px;
}

.profile-util-btn:active {
  transform: scale(0.97);
}

.signout-btn {
  background: #f7e6e3;
  color: var(--songwat-brick);
  border: 1px solid #ebcdc8;
}

/* ==========================================================================
   MY CASSETTES VIEW & TAPE SHELF CATALOG MODALS
   ========================================================================== */

.my-cassettes-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #141210;
  z-index: 180;
  display: none;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.shelf-catalog-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #141210;
  z-index: 190;
  display: none;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.my-cassettes-modal.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.shelf-catalog-modal.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.my-cassettes-container,
.shelf-catalog-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: #181512;
  position: relative;
}

/* Header */
.my-cassettes-header,
.shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #201c18;
  border-bottom: 1px solid #2f2a24;
  flex-shrink: 0;
}

.back-circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2d2721;
  color: #f1ebd8;
  border: 1px solid #433b32;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding-bottom: 3px;
}

.catalog-shortcut-btn {
  background: #3c3227;
  color: #eeddc6;
  border: 1px solid #5a4b3b;
  border-radius: 20px;
  padding: 6px 12px;
  font-family: 'Kanit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.shelf-credit-pill {
  background: #2b1f14;
  color: #f5a623;
  border: 1px solid #6b4618;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
}

/* Empty State */
.empty-cassettes-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  height: 100%;
}

.empty-tape-icon {
  font-size: 54px;
  margin-bottom: 12px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
  animation: floatTape 3s ease-in-out infinite;
}

@keyframes floatTape {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.primary-gold-btn {
  background: linear-gradient(135deg, #c49746, #9c6e28);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 20px;
  font-family: 'Kanit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(196, 151, 70, 0.35);
  transition: transform 0.15s;
}

.primary-gold-btn:active {
  transform: scale(0.96);
}

/* My Cassettes Body / Shelf Grid */
.my-cassettes-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  position: relative;
}

.cassette-tape-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Realistic Vintage Cassette Card item */
.cassette-card-item {
  background: linear-gradient(180deg, #2b2722 0%, #1e1b17 100%);
  border: 1px solid #3d362e;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.cassette-card-item:hover {
  background: #332e28;
  border-color: #655644;
  transform: translateY(-2px);
}

.cassette-card-item.playing {
  border-color: #d1754f;
  background: linear-gradient(180deg, #382820 0%, #251b15 100%);
  box-shadow: 0 6px 16px rgba(209, 117, 79, 0.25);
}

.cassette-card-item.playing::before {
  content: "PLAYING";
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #ff8555;
  font-weight: 700;
}

.cassette-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #4a4136;
  flex-shrink: 0;
}

.cassette-meta {
  flex: 1;
  min-width: 0;
}

.cassette-song-title {
  font-size: 13px;
  font-weight: 600;
  color: #f1ebd8;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cassette-song-artist {
  font-size: 11px;
  color: #a89f91;
}

.cassette-item-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3d352b;
  color: #f1ebd8;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.cassette-card-item.playing .cassette-item-play-btn {
  background: var(--songwat-brick);
  color: #fff;
}

/* Dedicated Bottom Control Dock in My Cassettes */
.my-cassettes-player-dock {
  background: #12100e;
  border-top: 1px solid #2a251f;
  padding: 12px 16px 16px;
  flex-shrink: 0;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.45);
}

.dock-track-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.dock-cover-thumb {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  background: #2a251f;
}

.dock-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-artist {
  font-size: 10px;
  color: #a89f91;
}

.dock-tape-badge {
  font-size: 8px;
  color: #8c7f6e;
  border: 1px solid #3d352a;
  border-radius: 4px;
  padding: 2px 5px;
  letter-spacing: 0.5px;
}

.dock-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.dock-time {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: #9c9183;
  min-width: 30px;
}

.dock-slider-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.dock-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  background: #332d25;
  border-radius: 2px;
  outline: none;
}

.dock-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--songwat-brick);
  cursor: pointer;
}

.dock-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.dock-ctrl-btn {
  background: transparent;
  border: none;
  color: #d8cebf;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: transform 0.1s;
}

.dock-ctrl-btn:active {
  transform: scale(0.9);
}

.dock-play-btn {
  width: 44px;
  height: 44px;
  background: var(--songwat-brick);
  color: #fff;
  box-shadow: 0 4px 12px rgba(184, 74, 57, 0.4);
}

.dock-vol-box {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #887c6d;
}

/* Shelf Catalog Modal */
.shelf-search-row {
  padding: 10px 16px;
  background: #181512;
  border-bottom: 1px solid #28221b;
}

.shelf-search-box {
  width: 100%;
  background: #25201a;
  border: 1px solid #3d3429;
  border-radius: 20px;
  padding: 8px 14px;
  color: #fff;
  font-family: 'Kanit', sans-serif;
  font-size: 12px;
  outline: none;
}

/* Unique Tag Filter Chips Bar */
.shelf-tags-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #151210;
  border-bottom: 1px solid #231d17;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.shelf-tags-filter-bar::-webkit-scrollbar {
  display: none;
}

.shelf-tag-chip {
  background: #26201a;
  color: #b7a996;
  border: 1px solid #3d3327;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-family: 'Space Grotesk', 'Kanit', sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  flex-shrink: 0;
}

.shelf-tag-chip:hover {
  background: #332b22;
  color: #f5eedc;
}

.shelf-tag-chip.active {
  background: var(--songwat-brick);
  color: #fff;
  border-color: var(--songwat-brick);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(184, 74, 57, 0.35);
}

.shelf-catalog-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shelf-song-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #221d18;
  border: 1px solid #362e24;
  border-radius: 12px;
  padding: 10px 12px;
}

.shelf-song-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #4a3e31;
}

.shelf-claim-btn {
  background: #c49746;
  color: #1a140a;
  border: none;
  border-radius: 16px;
  padding: 6px 14px;
  font-family: 'Kanit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.shelf-claim-btn:disabled {
  background: #3a3227;
  color: #7a6e5d;
  cursor: not-allowed;
}

.shelf-claim-btn.already-claimed {
  background: #2d382e;
  color: #72b979;
  border: 1px solid #3d5840;
  cursor: default;
}


/* Lyrics Drawer */
.lyrics-drawer { position: absolute; top: 0; right: -100%; width: 100%; height: 100%; background: rgba(20, 18, 16, 0.95); backdrop-filter: blur(10px); z-index: 100; display: flex; flex-direction: column; transition: right 0.3s cubic-bezier(0.2, 0.8, 0.3, 1); pointer-events: none; opacity: 0; }
.lyrics-drawer.open { right: 0; pointer-events: auto; opacity: 1; }
.lyrics-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.lyrics-drawer-body { flex: 1; overflow-y: auto; padding: 20px; color: #d0beaa; font-size: 14px; line-height: 2; white-space: pre-wrap; font-family: 'Kanit', sans-serif; text-align: center; scroll-behavior: smooth; }



/* Interlude: hide all player controls while the ad plays */
body.interlude-active #likedBySection,
body.interlude-active .liked-by-section,
body.interlude-active #centerPlayOverlay,
body.interlude-active .center-play-overlay,
body.interlude-active .swipe-hint,
body.interlude-active #dockPlayBtn,
body.interlude-active .dock-play-btn {
  display: none !important;
  pointer-events: none !important;
}
body.interlude-active #adVideo {
  pointer-events: auto !important;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

body.interlude-active #adVideo:active {
  cursor: grabbing;
}

/* Interlude Skip Badge */
.interlude-skip-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(26, 21, 18, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 7px 14px;
  border-radius: 20px;
  font-family: 'Kanit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.3, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.interlude-skip-badge:hover,
.interlude-skip-badge:active {
  background: #b84a39;
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

/* Interlude Swipe Hint */
.interlude-swipe-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 15, 13, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e5ded3;
  padding: 4px 14px;
  border-radius: 16px;
  font-family: 'Kanit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.5px;
  pointer-events: none;
  white-space: nowrap;
  animation: pulseInterludeSwipe 2.2s infinite ease-in-out;
}

@keyframes pulseInterludeSwipe {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

/* ==========================================================================
   EXCLUSIVE SONGS & LIMITED DROPS STYLES
   ========================================================================== */
.exclusive-drop-banner {
  background: linear-gradient(135deg, rgba(43, 34, 22, 0.95), rgba(74, 58, 34, 0.92));
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 4px 18px rgba(184, 134, 11, 0.25), inset 0 0 12px rgba(212, 175, 55, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeInBanner 0.3s ease-out;
}

@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.exc-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.exc-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #b8860b, #d4af37);
  color: #1a140a;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
}

.exc-timer-pill {
  font-size: 11px;
  font-weight: 600;
  color: #ffd700;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-variant-numeric: tabular-nums;
}

.exc-banner-desc {
  font-size: 12px;
  color: #e5ded3;
  line-height: 1.45;
  font-weight: 400;
}

.exc-action-row {
  margin-top: 4px;
}

.exc-claim-button {
  width: 100%;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #1c150a;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: 'Kanit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.exc-claim-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
}

.exc-claim-button.claimed {
  background: #2d382e !important;
  color: #72b979 !important;
  border: 1px solid #3d5840 !important;
  box-shadow: none !important;
  cursor: default !important;
}

.exc-claim-button.expired {
  background: #3a3227 !important;
  color: #8c8071 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

/* Exclusive Tape styling in My Cassettes list */
.cassette-card-item.is-exclusive {
  border: 1px solid rgba(212, 175, 55, 0.7) !important;
  background: linear-gradient(135deg, #2a2217, #382c1e) !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.2);
}

.cassette-card-item.is-exclusive::after {
  content: '👑 EXCLUSIVE';
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 8px;
  font-weight: 700;
  color: #ffd700;
  background: rgba(0, 0, 0, 0.6);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

/* Admin Exclusive Cards */
.admin-exc-card {
  background: #fff;
  border: 1px solid #e2d5c3;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   TAPE QUANTITY BADGE & SEND OPTIONS
   ========================================================================== */
.cassette-qty-badge {
  background: #3d3126;
  border: 1px solid #c59f42;
  color: #f7d277;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-right: 6px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.send-method-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1.5px solid #d8c2aa;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.send-method-card.selected {
  border-color: #b84a39;
  background: #fff3ee;
}

.send-method-card input[type="radio"] {
  accent-color: #b84a39;
  width: 16px;
  height: 16px;
}

/* Voice Note Recording Controls */
.voice-recorder-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #f4ede2;
  border: 1px dashed #cbb79f;
  border-radius: 12px;
  margin-top: 8px;
}

.voice-record-btn {
  background: #b84a39;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'Kanit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.voice-record-btn.recording {
  background: #d32f2f;
  animation: pulse-recording 1.2s infinite;
}

@keyframes pulse-recording {
  0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(211, 47, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}

.voice-bubble-player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.06);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  margin-top: 6px;
  cursor: pointer;
}

/* ==========================================================================
   BLIND TAPE TRADING (POSTBOX 📮)
   ========================================================================== */
.top-postbox-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.top-postbox-btn:hover {
  transform: scale(1.15) rotate(-5deg);
}

.top-postbox-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.postbox-fallback-icon {
  font-size: 22px;
  line-height: 1;
}

.blind-exchange-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #141210;
  z-index: 185;
  display: none;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.blind-exchange-modal.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.blind-exchange-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: #181512;
  position: relative;
}

.blind-exchange-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #a83626;
  border-bottom: 2px solid #852618;
  color: #fff;
  flex-shrink: 0;
}

.blind-exchange-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  color: #e5ded3;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.postbox-hero {
  background: linear-gradient(135deg, #2b1f1c, #3a2520);
  border: 1px solid #703328;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.postbox-hero-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 8px;
  display: block;
}

.exchange-tape-selector {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.exchange-tape-item {
  width: 90px;
  flex-shrink: 0;
  background: #25201b;
  border: 1.5px solid #3d352b;
  border-radius: 10px;
  padding: 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.exchange-tape-item.selected {
  border-color: #ff5e42;
  background: #3d2420;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 94, 66, 0.25);
}

.exchange-tape-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 4px;
  background: #110e0c;
}

.exchange-postcard-box {
  background: #fdfaf4;
  color: #3d3126;
  border: 2px solid #d2be9f;
  border-radius: 14px;
  padding: 14px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.exchange-postcard-box::before {
  content: 'POSTCARD 📮';
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #9c8a74;
}

.exchange-result-card {
  background: linear-gradient(135deg, #2e231b, #433324);
  border: 2px solid #d4af37;
  border-radius: 18px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  animation: pop-trade-result 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop-trade-result {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* === DECK VIBE CANVAS BACKGROUND & STUDIO === */
.deck-vibe-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.deck-vibe-bg.active {
  opacity: 1;
}

.deck-vibe-bg::after {
  display: none;
}

.heritage-tagline,
.artwork-area,
.song-info-card,
.visualizer-wrapper,
.playback-progress-section,
.player-controls {
  position: relative;
  z-index: 2;
}

.vibe-canvas-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fdfbf7;
  border: 1px solid var(--songwat-border);
  padding: 3px 9px;
  border-radius: 12px;
  font-family: 'Space Grotesk', 'Kanit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #5a432d;
  cursor: pointer;
  box-shadow: 0 2px 5px var(--songwat-shadow);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vibe-canvas-trigger:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: #c49746;
  background: #fff;
  color: var(--songwat-brick);
  box-shadow: 0 3px 8px rgba(184, 74, 57, 0.15);
}

.vibe-canvas-trigger:active {
  transform: translateY(0) scale(0.98);
}

.vibe-shop-card {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #ebdccb;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.22s ease;
  align-items: center;
}

.vibe-shop-card.is-active-vibe {
  border-color: #27ae60;
  background: #f4faf6;
  box-shadow: 0 3px 12px rgba(39, 174, 96, 0.15);
}

.vibe-shop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.vibe-thumb-wrapper {
  width: 72px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: #2b2216;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vibe-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vibe-shop-card:hover .vibe-thumb-img {
  transform: scale(1.05);
}

.vibe-default-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #f5eedf;
  color: #7a634e;
  font-size: 26px;
  border: 1px dashed #d5be9f;
  border-radius: 10px;
}

.vibe-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vibe-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #3d2f23;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.25;
}

.vibe-card-tag {
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 6px;
  background: #efe4d3;
  color: #7b5938;
}

.vibe-card-desc {
  font-size: 11px;
  color: #7a6858;
  line-height: 1.35;
  margin-top: 2px;
}

.vibe-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  gap: 8px;
}

.vibe-card-price {
  font-size: 11px;
  font-weight: 700;
  color: #b84a39;
  display: flex;
  align-items: center;
  gap: 3px;
}

.vibe-action-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-vibe-preview {
  padding: 4px 9px;
  font-size: 10.5px;
  font-weight: 600;
  border: 1px solid #d4c4b2;
  background: #fdfaf6;
  color: #554131;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-vibe-preview:hover {
  background: #ece3d7;
  border-color: #baa48e;
}

.btn-vibe-equip {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  background: #27ae60;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(39, 174, 96, 0.25);
}

.btn-vibe-equip:hover {
  background: #219653;
  transform: translateY(-1px);
}

.btn-vibe-equipped {
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 700;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: default;
}

.btn-vibe-buy {
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  background: linear-gradient(135deg, #c49746, #b84a39);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(184, 74, 57, 0.25);
}

.btn-vibe-buy:hover {
  opacity: 0.93;
  transform: translateY(-1px);
}

/* ==========================================================================
   ADMIN DECK VIBE (SKIN) MANAGEMENT STYLES
   ========================================================================== */
.admin-vibe-card {
  background: #ffffff;
  border: 1.5px solid #ebdccb;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.admin-vibe-card.is-inactive {
  opacity: 0.65;
  background: #fbf9f6;
  border-style: dashed;
}

.admin-vibe-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.admin-vibe-card-thumb {
  width: 60px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  background: #2b2216;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.admin-vibe-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-vibe-badge-active {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
}

.admin-vibe-badge-inactive {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
}

.admin-vibe-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fdf8f0;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ebd8c4;
  font-size: 12px;
  font-weight: 600;
  color: #554131;
}

.admin-vibe-price-input {
  width: 70px;
  padding: 4px 8px;
  border: 1px solid #cbb69e;
  border-radius: 6px;
  font-family: 'Space Grotesk', 'Kanit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #b84a39;
  text-align: center;
  background: #fff;
}

.admin-vibe-btn-save-price {
  background: #5a4432;
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-vibe-btn-save-price:hover {
  background: #3d2f23;
}

.admin-vibe-actions-row {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  border-top: 1px solid #f0e6da;
  padding-top: 8px;
}

.admin-vibe-action-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #dcd1c2;
  background: #fff;
  color: #4a3a2b;
}

.admin-vibe-action-btn:hover {
  background: #f4ecdf;
}

.admin-vibe-action-btn.btn-danger {
  color: #a83232;
  border-color: #f0c3c3;
  background: #fff5f5;
}

.admin-vibe-action-btn.btn-danger:hover {
  background: #fee2e2;
}

/* ============================================================== */
/* IN-APP ARTIST STUDIO MODAL */
/* ============================================================== */
.artist-studio-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--songwat-cream, #fbf7ef);
  z-index: 210;
  display: none;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow: hidden;
}
.artist-studio-modal.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.artist-studio-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: var(--songwat-cream, #fbf7ef);
}
.artist-studio-header {
  padding: 12px 16px;
  background: #1e150f;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #3d2f23;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.artist-studio-tab-bar {
  display: flex;
  background: #2a1f16;
  border-bottom: 1px solid #4a3829;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.artist-studio-tab-bar::-webkit-scrollbar { display: none; }
.studio-tab-btn {
  background: transparent;
  border: none;
  color: #cbb8a3;
  padding: 10px 14px;
  font-family: 'Kanit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.studio-tab-btn.active {
  color: #ffd899;
  border-bottom-color: #ffd899;
  background: rgba(255,255,255,0.06);
  font-weight: 600;
}
.artist-studio-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 60px;
  -webkit-overflow-scrolling: touch;
}
.studio-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.studio-stat-card {
  background: #fff;
  border: 1px solid #e6d8c5;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(36,26,18,0.04);
}
.studio-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fdf5e8;
  color: #c49746;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.studio-stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #241a12;
  line-height: 1.1;
}
.studio-stat-label {
  font-size: 10.5px;
  color: #7d6b5b;
}
.studio-banner-card {
  background: linear-gradient(135deg, #fdfaf5, #f8efe2);
  border: 1px solid #eedcc6;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.studio-section-card {
  background: #fff;
  border: 1px solid #e6d8c5;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(36,26,18,0.04);
}
.studio-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.studio-table-scroll {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #efe5d8;
}
.studio-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  text-align: left;
}
.studio-mini-table th {
  background: #fbf5ea;
  padding: 8px 10px;
  color: #543f2d;
  font-weight: 600;
  border-bottom: 1px solid #efe5d8;
  white-space: nowrap;
}
.studio-mini-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f6eee4;
  color: #241a12;
  white-space: nowrap;
}
.studio-btn-primary {
  background: linear-gradient(135deg, #b84a39, #963526);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: 'Kanit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.studio-btn-subtle {
  background: #f0e6d8;
  border: 1px solid #d9c8b4;
  color: #4a3829;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.studio-form-group {
  margin-bottom: 10px;
}
.studio-form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #5a3d28;
  margin-bottom: 4px;
}
.studio-form-input, .studio-form-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #d8c2aa;
  border-radius: 8px;
  font-family: 'Kanit', sans-serif;
  font-size: 12.5px;
  background: #fff;
  color: #241a12;
}







/* Beta Tester & Utility Controls */
.sleep-preset-btn:hover {
  background: #fbf5eb !important;
  border-color: #b84a39 !important;
  color: #b84a39 !important;
  transform: translateY(-1px);
}

.sleep-preset-btn:active {
  transform: scale(0.97);
}

@media (max-width: 480px) {
  .desktop-only-text {
    display: none !important;
  }
}


.yt-preset-chip {
  background: #f4ecdf;
  border: 1px solid #d8c2aa;
  border-radius: 14px;
  padding: 4px 10px;
  font-family: 'Kanit', sans-serif;
  font-size: 11px;
  color: #5a3d28;
  cursor: pointer;
  transition: all 0.2s ease;
}

.yt-preset-chip:hover {
  background: #b82a2a;
  border-color: #8e1e1e;
  color: #fff;
  transform: translateY(-1px);
}


/* YouTube Search & Results Styles */
.yt-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid #ebdccb;
  border-top-color: #b82a2a;
  border-radius: 50%;
  animation: ytSpin 0.8s linear infinite;
  display: inline-block;
}

@keyframes ytSpin {
  to { transform: rotate(360deg); }
}

.yt-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #ebdccb;
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: left;
}

.yt-result-item:hover {
  background: #fdf6ee;
  border-color: #d8a88a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 42, 42, 0.08);
}

.yt-result-item.is-active-playing {
  background: #fbeee4;
  border-color: #b82a2a;
  box-shadow: 0 0 0 2px rgba(184, 42, 42, 0.2);
}

.yt-thumb-box {
  position: relative;
  width: 96px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #222;
}

.yt-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-duration-badge {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 4px;
  line-height: 1.2;
}

.yt-info-box {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.yt-item-title {
  font-size: 12px;
  font-weight: 600;
  color: #3d2f23;
  margin-bottom: 2px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-item-meta {
  font-size: 10.5px;
  color: #8c7a6b;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yt-item-channel {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.yt-play-icon-btn {
  background: #b82a2a;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.yt-result-item:hover .yt-play-icon-btn {
  transform: scale(1.1);
  background: #a02222;
}

.yt-result-item.is-active-playing .yt-play-icon-btn {
  background: #27ae60;
}

/* Mobile Responsive Protections against Top Bar Overflow */
@media (max-width: 440px) {
  .app-header {
    padding: 6px 8px 5px !important;
    gap: 4px !important;
  }
  .top-btn-label {
    display: none !important;
  }
  .top-pill-btn {
    padding: 0 !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    justify-content: center !important;
  }
  .user-name-label {
    display: none !important;
  }
  .user-status-btn {
    padding: 2px !important;
    border-radius: 50% !important;
  }
  .user-avatar {
    width: 24px !important;
    height: 24px !important;
  }
  .brand-logo-img {
    width: 28px !important;
    height: 28px !important;
  }
  .app-title-group h1 {
    font-size: 13px !important;
  }
  .vibe-switch {
    padding: 2px !important;
    gap: 2px !important;
  }
  .vibe-btn {
    padding: 3px 6px !important;
    font-size: 10px !important;
  }
  .vibe-canvas-trigger {
    padding: 3px 6px !important;
    font-size: 10px !important;
  }
}

@media (max-width: 360px) {
  .trigger-label {
    display: none !important;
  }
  .vibe-canvas-trigger {
    padding: 3px 5px !important;
    border-radius: 8px !important;
  }
  .vibe-btn {
    padding: 3px 4px !important;
    font-size: 9.5px !important;
  }
}
