/* =========================================================
   PlayX | Unified Festival Music Engine Stylesheet
   Eye-Care Protection • Thematic Regional Polish • Anti-Strain
   Powers: Haryanvi, Punjabi, Durga Puja, Saawan, Holi, Bhojpuri
   ========================================================= */

/* --- Base Eye-Care Variables (Default: Midnight Comfort) --- */
:root {
  --bg-dark: #0a0e17;
  --bg-card: rgba(16, 22, 34, 0.82);
  --bg-glass: rgba(12, 18, 28, 0.88);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 255, 255, 0.14);
  
  /* Eye-Care Typography: Soft warm white & muted slate to prevent luminance dazzle */
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  /* Category Defaults (overridden by data-category) */
  --accent: #38bdf8;
  --accent-secondary: #0ea5e9;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --theme-spot-1: rgba(56, 189, 248, 0.07);
  --theme-spot-2: rgba(14, 165, 233, 0.05);
  --btn-play-grad: linear-gradient(135deg, #38bdf8, #0ea5e9);
  --disc-glow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.35);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

/* =========================================================
   AUTHENTIC REGIONAL / FESTIVAL PALETTES
   "sirf reference lena hai, similar na dikhe"
   ========================================================= */

/* 1. Haryanvi Songs: Desi Rustic Royal Amber & Desert Dune */
body[data-category="haryanvi"],
[data-category="haryanvi"] {
  --accent: #f59e0b;
  --accent-secondary: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.28);
  --theme-spot-1: rgba(245, 158, 11, 0.08);
  --theme-spot-2: rgba(217, 119, 6, 0.05);
  --btn-play-grad: linear-gradient(135deg, #f59e0b, #d97706);
  --disc-glow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 28px rgba(245, 158, 11, 0.4), 0 0 50px rgba(217, 119, 6, 0.25);
}

/* 2. Punjabi Songs: Royal Bhangra Gold & Amethyst Electric Violet */
body[data-category="punjabi"],
[data-category="punjabi"] {
  --accent: #fbbf24;
  --accent-secondary: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.3);
  --theme-spot-1: rgba(139, 92, 246, 0.09);
  --theme-spot-2: rgba(251, 191, 36, 0.06);
  --btn-play-grad: linear-gradient(135deg, #8b5cf6, #fbbf24);
  --disc-glow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 28px rgba(139, 92, 246, 0.4), 0 0 50px rgba(251, 191, 36, 0.25);
}

/* 3. Durga Puja & Navratri: Divine Kumkum Vermillion & Temple Marigold Gold */
body[data-category="durga-puja"],
[data-category="durga-puja"] {
  --accent: #ef4444;
  --accent-secondary: #f59e0b;
  --accent-glow: rgba(239, 68, 68, 0.28);
  --theme-spot-1: rgba(239, 68, 68, 0.08);
  --theme-spot-2: rgba(245, 158, 11, 0.06);
  --btn-play-grad: linear-gradient(135deg, #ef4444, #f59e0b);
  --disc-glow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 28px rgba(239, 68, 68, 0.4), 0 0 50px rgba(245, 158, 11, 0.25);
}

/* 4. Saawan Songs: Mystic Neelkanth Azure & Bilva Leaf Emerald (Max Eye Comfort) */
body[data-category="saawan"],
[data-category="saawan"] {
  --accent: #0ea5e9;
  --accent-secondary: #10b981;
  --accent-glow: rgba(14, 165, 233, 0.28);
  --theme-spot-1: rgba(14, 165, 233, 0.08);
  --theme-spot-2: rgba(16, 185, 129, 0.06);
  --btn-play-grad: linear-gradient(135deg, #0ea5e9, #10b981);
  --disc-glow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 28px rgba(14, 165, 233, 0.4), 0 0 50px rgba(16, 185, 129, 0.25);
}

/* 5. Holi Songs: Soft Gulal Rose & Twilight Orchid (Anti-Glare Celebration) */
body[data-category="holi"],
[data-category="holi"] {
  --accent: #f43f5e;
  --accent-secondary: #a855f7;
  --accent-glow: rgba(244, 63, 94, 0.25);
  --theme-spot-1: rgba(244, 63, 94, 0.08);
  --theme-spot-2: rgba(168, 85, 247, 0.06);
  --btn-play-grad: linear-gradient(135deg, #f43f5e, #a855f7);
  --disc-glow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 28px rgba(244, 63, 94, 0.38), 0 0 50px rgba(168, 85, 247, 0.25);
}

/* 6. Bhojpuri Songs: Purvanchal Sunset Copper & Terracotta Flame */
body[data-category="bhojpuri"],
[data-category="bhojpuri"] {
  --accent: #f97316;
  --accent-secondary: #ea580c;
  --accent-glow: rgba(249, 115, 22, 0.28);
  --theme-spot-1: rgba(249, 115, 22, 0.08);
  --theme-spot-2: rgba(234, 88, 12, 0.06);
  --btn-play-grad: linear-gradient(135deg, #f97316, #ea580c);
  --disc-glow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 28px rgba(249, 115, 22, 0.4), 0 0 50px rgba(234, 88, 12, 0.25);
}

/* =========================================================
   EYE-CARE USER THEME MODES (Toggleable from navbar)
   ========================================================= */

/* Warm Amber (Night Shield: Blocks High-Energy Blue Light) */
[data-theme="warm-amber"] {
  --bg-dark: #120d09;
  --bg-card: rgba(28, 20, 14, 0.85);
  --bg-glass: rgba(22, 16, 11, 0.9);
  --border-subtle: rgba(245, 158, 11, 0.16);
  --border-glow: rgba(245, 158, 11, 0.28);
  --text-main: #fef3c7;
  --text-muted: #d97706;
  --text-subtle: #92400e;
  --accent: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.3);
}

/* Twilight Aurora (Dreamy Deep Violet) */
[data-theme="twilight"] {
  --bg-dark: #0e0a1a;
  --bg-card: rgba(26, 18, 44, 0.85);
  --bg-glass: rgba(18, 13, 32, 0.9);
  --border-subtle: rgba(168, 85, 247, 0.16);
  --border-glow: rgba(168, 85, 247, 0.28);
  --text-main: #f5f3ff;
  --text-muted: #a78bfa;
  --text-subtle: #7c3aed;
  --accent: #c084fc;
  --accent-glow: rgba(168, 85, 247, 0.3);
}

/* Emerald Oasis (Minimum Photochemical Retinal Strain) */
[data-theme="emerald"] {
  --bg-dark: #07130e;
  --bg-card: rgba(12, 30, 22, 0.85);
  --bg-glass: rgba(9, 23, 17, 0.9);
  --border-subtle: rgba(16, 185, 129, 0.16);
  --border-glow: rgba(16, 185, 129, 0.28);
  --text-main: #ecfdf5;
  --text-muted: #6ee7b7;
  --text-subtle: #059669;
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.3);
}

/* =========================================================
   GLOBAL RESET & TYPOGRAPHY
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Outfit', 'Mukta', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Deep Eye-Care Background Layer */
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  background: 
    radial-gradient(circle at 18% 25%, var(--theme-spot-1) 0%, transparent 60%),
    radial-gradient(circle at 82% 75%, var(--theme-spot-2) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 80%),
    var(--bg-dark);
  filter: blur(40px);
  transform: translateZ(0);
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.25);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================================
   TOP NAVIGATION FLOATING GLASS NAVBAR
   ========================================================= */

.player-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Go Home Button */
.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-back-home:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  color: #fff;
  transform: translateX(-2px);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Page Title / Brand Badge */
.page-title-badge {
  font-family: 'Yatra One', cursive;
  font-size: 1.35rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: 0.5px;
  user-select: none;
}

.page-title-badge img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  vertical-align: middle;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

/* Right Actions Group */
.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Live IST Clock */
.time-box {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.4rem 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseLiveDot 2s infinite ease-in-out;
}

@keyframes pulseLiveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Theme Selector Dropdown */
.theme-dropdown {
  position: relative;
  display: inline-block;
}

.btn-theme-toggle,
.btn-theme {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-theme-toggle:hover,
.btn-theme:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent);
  color: #fff;
}

.theme-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: #151a26;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 0.45rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: none;
}

.theme-menu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.84rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.theme-menu-item:hover,
.theme-menu-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.theme-color-preview {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* Share Dropdown */
.share-dropdown {
  position: relative;
  display: inline-block;
}

.btn-share-main {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-share-main:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent);
  color: #fff;
}

.share-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #151a26;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 0.45rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: none;
}

.share-menu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.84rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.share-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Nav More Menu (3 Dots) */
.nav-more-menu-wrap {
  position: relative;
  display: inline-block;
}

.btn-nav-more {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-nav-more:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: var(--accent);
}

.nav-more-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: #151a26;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 0.45rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: none;
}

.nav-more-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.84rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.nav-more-item:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* =========================================================
   HERO HEADER SECTION (Eye-Care Polish & Cultural Warmth)
   ========================================================= */

.hero-section {
  text-align: center;
  padding: 2.25rem 1rem 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.main-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.65rem;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.main-title-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.tagline-wrapper {
  margin-bottom: 1.15rem;
}

.tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.hero-features-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.hero-feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.hero-feat-pill.eye-care-pill {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.08);
}

/* =========================================================
   MAIN PLAYER LAYOUT GRID
   ========================================================= */

.player-page-grid {
  display: grid;
  grid-template-columns: 410px 1fr;
  gap: 2rem;
  padding: 1.75rem 0 3.5rem;
  align-items: start;
}

/* =========================================================
   LEFT AUDIO DECK CARD
   ========================================================= */

.audio-deck-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: sticky;
  top: 5rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

/* Video Stage (Hidden for pure audio streaming, visible when toggled) */
.video-stage {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0.001 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  left: -9999px !important;
  top: -9999px !important;
  z-index: -9999 !important;
}

.video-stage.visible-video {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  overflow: hidden !important;
  left: auto !important;
  top: auto !important;
  z-index: 10 !important;
  border-radius: var(--radius-md);
  margin-bottom: 1.35rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #000;
}

.video-stage.visible-video iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
  display: block;
}

.btn-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.btn-view-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

/* Vinyl Record Deck with Concentric Grooves */
.vinyl-deck {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at center, transparent 35px, rgba(0, 0, 0, 0.6) 36px),
    repeating-radial-gradient(circle at center, #181c24 0, #181c24 2px, #0b0e14 3px, #0b0e14 4px);
  border: 6px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--disc-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: rotateDisc 14s linear infinite;
  animation-play-state: paused;
  position: relative;
  transition: box-shadow 0.35s ease;
}

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

.vinyl-center-label {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #090d16;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.vinyl-center-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Track Information */
.deck-track-info {
  width: 100%;
  margin-bottom: 1.35rem;
}

.deck-tag {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.deck-title {
  font-family: 'Mukta', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.35rem;
  letter-spacing: -0.2px;
}

.deck-singer {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

/* Seek Bar & Timestamps */
.deck-seek-wrap {
  width: 100%;
  margin-bottom: 1.35rem;
}

.seek-slider {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  accent-color: var(--accent);
  transition: all 0.2s ease;
}

.seek-slider:hover {
  height: 7px;
}

.seek-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-subtle);
  margin-top: 0.45rem;
}

/* Deck Playback Controls */
.deck-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  width: 100%;
  margin-bottom: 1.35rem;
}

.control-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.06);
}

.control-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-main-play {
  width: 60px;
  height: 60px;
  background: var(--btn-play-grad);
  color: #fff;
  border: none;
  box-shadow: 0 6px 24px var(--accent-glow);
  font-size: 1.35rem;
}

.btn-main-play:hover {
  filter: brightness(1.15);
  transform: scale(1.08);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* Volume, Speed & Sleep Timer Extra Controls */
.deck-extra-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-subtle);
}

.volume-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-mute {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-mute:hover {
  color: var(--text-main);
}

.volume-slider {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  accent-color: var(--accent);
  cursor: pointer;
}

.btn-speed {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-speed:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: var(--accent);
}

/* =========================================================
   RIGHT PLAYLIST DECK CARD
   ========================================================= */

.playlist-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.75rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
}

.playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.playlist-header h3 {
  font-family: 'Outfit', 'Mukta', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.playlist-header h3 span {
  color: var(--accent);
}

.playlist-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.playlist-search-box input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.55rem 1.25rem 0.55rem 2.4rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  width: 250px;
  transition: all 0.25s ease;
}

.playlist-search-box::before {
  content: '🔍';
  position: absolute;
  left: 0.85rem;
  font-size: 0.82rem;
  opacity: 0.5;
  pointer-events: none;
}

.playlist-search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  width: 280px;
}

/* Song Item Rows (Anti-Strain Comfortable Spacing) */
.song-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.song-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.15rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.song-item-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-subtle);
  border-left-color: var(--accent);
  transform: translateX(4px);
}

.song-item-row.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glow);
  border-left: 4px solid var(--accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.song-num {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-subtle);
  width: 26px;
  flex-shrink: 0;
  text-align: center;
}

.song-item-row.active .song-num {
  color: var(--accent);
}

.song-thumb-col {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.song-row-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.song-info-col {
  flex: 1;
  min-width: 0;
}

.song-name-text {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.96rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.1px;
}

.song-item-row.active .song-name-text {
  color: #fff;
  font-weight: 700;
}

.song-singer-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}

.tag-pill {
  color: var(--accent);
  font-weight: 600;
}

.song-actions-col {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Play Video Button (Exact matching Play button styling, No YouTube icon) */
.btn-row-video {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-row-video:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

/* Favorite Heart Icon Button */
.fav-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem;
  transition: transform 0.2s ease;
}

.fav-icon-btn:hover {
  transform: scale(1.2);
}

.song-dur-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-subtle);
  min-width: 36px;
  text-align: right;
}

/* Play Button */
.row-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.82rem;
}

.row-play-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: scale(1.08);
  box-shadow: 0 0 12px var(--accent-glow);
}

.song-item-row.active .row-play-btn {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* =========================================================
   YOUTUBE EMBED VIDEO MODAL (Glassmorphic)
   ========================================================= */

.playx-video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.playx-video-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.playx-video-modal-card {
  background: #141926;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 820px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  animation: modalScaleUp 0.25s ease forwards;
}

@keyframes modalScaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.playx-video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.playx-video-modal-title-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.video-modal-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}

.video-modal-song-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.btn-video-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-video-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: #ef4444;
}

.playx-video-modal-body {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
}

.playx-video-modal-body iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================================================
   FOOTER (Eye-Care Protected)
   ========================================================= */

.festival-footer {
  text-align: center;
  padding: 2.5rem 1rem 3.5rem;
  color: var(--text-subtle);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 3rem;
}

.festival-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.festival-footer a:hover {
  color: var(--accent);
}

/* =========================================================
   RESPONSIVE DESIGN (ALL DEVICES)
   ========================================================= */

@media (max-width: 1024px) {
  .player-page-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem 0 3rem;
  }

  .audio-deck-card {
    position: static;
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }

  .playlist-card {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .time-box {
    display: inline-flex;
    padding: 0.32rem 0.6rem;
    font-size: 0.74rem;
  }

  .main-title {
    font-size: 2.1rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .page-title-badge {
    font-size: 1.15rem;
  }

  .audio-deck-card {
    padding: 1.75rem 1.25rem;
  }

  .vinyl-deck {
    width: 175px;
    height: 175px;
  }

  .vinyl-center-label {
    width: 66px;
    height: 66px;
  }

  .playlist-card {
    padding: 1.4rem 1.15rem;
  }
}

@media (max-width: 600px) {
  .playlist-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .playlist-header h3 {
    text-align: center;
    justify-content: center;
  }

  .playlist-search-box {
    width: 100%;
  }

  .playlist-search-box input {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .navbar-inner {
    gap: 0.5rem;
  }

  .btn-back-home {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }

  .page-title-badge {
    font-size: 1.05rem;
    gap: 0.35rem;
  }

  .page-title-badge img {
    width: 24px;
    height: 24px;
  }

  .btn-theme-toggle,
  .btn-theme,
  .btn-share-main {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
  }

  .main-title {
    font-size: 1.75rem;
  }

  .vinyl-deck {
    width: 150px;
    height: 150px;
  }

  .vinyl-center-label {
    width: 56px;
    height: 56px;
  }

  .deck-title {
    font-size: 1.25rem;
  }

  .deck-controls-row {
    gap: 0.65rem;
  }

  .control-btn {
    width: 38px;
    height: 38px;
    font-size: 0.88rem;
  }

  .btn-main-play {
    width: 52px;
    height: 52px;
    font-size: 1.15rem;
  }

  .song-item-row {
    padding: 0.65rem 0.75rem;
    gap: 0.65rem;
  }

  .song-num {
    width: 20px;
    font-size: 0.75rem;
  }

  .song-thumb-col {
    width: 40px;
    height: 40px;
  }

  .btn-row-video {
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
  }

  .row-play-btn {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 0.5rem;
  }

  .btn-back-home span {
    display: none;
  }

  .page-title-badge {
    font-size: 0.95rem;
  }

  .page-title-badge img {
    width: 20px;
    height: 20px;
  }

  .btn-theme-toggle,
  .btn-theme,
  .btn-share-main {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }

  .vinyl-deck {
    width: 130px;
    height: 130px;
    border-width: 5px;
    margin-bottom: 1rem;
  }

  .vinyl-center-label {
    width: 48px;
    height: 48px;
  }

  .deck-title {
    font-size: 1.15rem;
  }

  .deck-controls-row {
    gap: 0.4rem;
  }

  .control-btn {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }

  .btn-main-play {
    width: 46px;
    height: 46px;
    font-size: 1.05rem;
  }

  .volume-slider {
    width: 55px;
  }

  .playlist-card {
    padding: 1rem 0.65rem;
  }

  .song-item-row {
    padding: 0.55rem 0.55rem;
    gap: 0.5rem;
  }

  .song-num {
    display: inline-block;
    width: 20px;
    font-size: 0.74rem;
  }

  .song-dur-text {
    display: inline-block;
    font-size: 0.74rem;
    min-width: 32px;
  }

  .btn-row-video .btn-video-text {
    display: none;
  }

  .song-thumb-col {
    width: 36px;
    height: 36px;
  }

  .btn-row-video {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }

  .row-play-btn {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }
}

/* Ultra-Narrow Foldable Screens (<= 330px, e.g. Galaxy Z Fold Outer Screen) */
@media (max-width: 330px) {
  .container {
    padding: 0 0.35rem;
  }

  .page-title-badge span {
    font-size: 0.82rem;
  }

  .btn-theme-toggle span:last-child,
  .btn-share-main span:last-child {
    display: none;
  }

  .btn-theme-toggle,
  .btn-share-main {
    padding: 0.3rem 0.45rem;
  }

  .btn-main-play {
    width: 42px;
    height: 42px;
  }

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

/* =========================================================
   DYNAMIC ISLAND (DISABLED TO PREVENT MOBILE NAVBAR CLASH)
   ========================================================= */
.dynamic-island-container {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* Compact Pill Mode (Pixel-perfect Vivo Origin Island) */
.dynamic-island-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 182px;
  height: 38px;
  padding: 0 14px 0 6px;
  background: #000000;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.dynamic-island-compact:active {
  transform: scale(0.96);
}

.island-compact-art-box {
  width: 28px;
  height: 28px;
  border-radius: 8.5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  flex-shrink: 0;
  padding: 0;
}

.island-compact-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Neon Coral-Pink / Magenta Live Waveform Visualizer (Exact match to Vivo Origin Island) */
.island-compact-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding-right: 2px;
}

.island-compact-waveform .island-wave-bar {
  width: 3.6px;
  height: 4px;
  border-radius: 999px;
  background: #ff1352;
  transition: height 0.18s ease, opacity 0.18s ease;
}

.island-compact-waveform.playing .island-wave-bar {
  animation: islandWaveformBlink 0.72s ease-in-out infinite alternate;
}

.island-compact-waveform .island-wave-bar.b1 { animation-delay: 0.12s; }
.island-compact-waveform .island-wave-bar.b2 { animation-delay: 0.32s; }
.island-compact-waveform .island-wave-bar.b3 { animation-delay: 0.08s; }
.island-compact-waveform .island-wave-bar.b4 { animation-delay: 0.42s; }
.island-compact-waveform .island-wave-bar.b5 { animation-delay: 0.22s; }

@keyframes islandWaveformBlink {
  0% { height: 4px; }
  50% { height: 20px; }
  100% { height: 7px; }
}

.island-compact-waveform:not(.playing) .island-wave-bar {
  height: 4px;
  opacity: 0.45;
}

