/* ---------------------------------------------------------
   🎨 CORE VARIABLES & Z-INDEX TRACKING
--------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');
:root {
  --primary: #00a8ff;
  --primary-glow: rgba(0, 168, 255, 0.4);
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(26, 26, 32, 0.6);
  --glass-shadow: rgba(0, 0, 0, 0.5);
  --bg-gradient: radial-gradient(circle at top left, #1a1a2e, #0a0a0c, #12121a);
  --header-bg: rgba(0, 0, 0, 0.4);
  --nav-bg: rgba(12, 12, 16, 0.6);
  --card-bg: rgba(20, 20, 28, 0.6);
  --nav-hover: rgba(255, 255, 255, 0.1);
  --nav-active-bg: rgba(0, 168, 255, 0.15);
  --font-main: "Segoe UI", system-ui, sans-serif;
  --nav-width: 220px;

  --z-header: 1000;
  --z-sidebar: 2000;
  --z-vault: 2500;
  --z-modal: 3000;
  --z-fullscreen: 9999;
}

/* ---------------------------------------------------------
   ☀️ LIGHT MODE VARIABLES
--------------------------------------------------------- */
[data-theme="light"] {
  --primary: #007bb5;
  --primary-glow: rgba(0, 123, 181, 0.4);
  --text-main: #1c1e21;
  --text-muted: #555b63;
  --border-color: rgba(0, 0, 0, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  --bg-gradient: radial-gradient(circle at top left, #ffffff, #e2e8f0);
  --header-bg: rgba(255, 255, 255, 0.75);
  --nav-bg: rgba(255, 255, 255, 0.75);
  --card-bg: rgba(255, 255, 255, 0.85);
  --nav-hover: rgba(0, 0, 0, 0.05);
  --nav-active-bg: rgba(0, 168, 255, 0.1);
}

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

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ========================================= */
/* 🔝 HEADER BAR                             */
/* ========================================= */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border-bottom: 1px solid var(--border-color);
  background: var(--header-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}

.menu-toggle-btn { background: transparent; border: none; color: var(--text-main); font-size: 1.3rem; cursor: pointer; }
.header-brand { text-align: center; }
.header-brand h1 { font-size: 2.2rem; margin: 0; letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 0 20px var(--primary-glow); color: var(--text-main); }
.subtitle { color: var(--primary); letter-spacing: 4px; text-transform: uppercase; font-size: 0.8rem; margin-top: 4px; font-weight: 600; }
.theme-toggle-btn { background: var(--glass-bg); border: 1px solid var(--border-color); color: var(--text-main); font-size: 1.1rem; padding: 10px 14px; border-radius: 12px; cursor: pointer; transition: 0.3s; }
.theme-toggle-btn:hover { color: var(--primary); border-color: var(--primary); }
.auth-container { display: flex; gap: 24px; align-items: center; }
.auth-container span { font-weight: 500; letter-spacing: 0.5px; color: var(--text-main); opacity: 0.9; }
.auth-btn { background: var(--glass-bg); border: 1px solid var(--border-color); color: var(--text-main); padding: 8px 16px; border-radius: 20px; cursor: pointer; transition: 0.3s; font-weight: bold; font-size: 0.85rem; text-decoration: none; }
.auth-btn:hover { background: var(--primary); color: #fff; }

/* ========================================= */
/* 📱 APP GRID LAYOUT & SIDEBAR              */
/* ========================================= */
.app-container { display: flex; flex: 1; overflow: hidden; }

.left-nav {
  width: var(--nav-width);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  transition: width 0.3s ease, padding 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

@media (min-width: 769px) {
  .left-nav.collapsed { width: 0 !important; padding-left: 0 !important; padding-right: 0 !important; border-right: none !important; opacity: 0; }
}

.nav-section { display: flex; flex-direction: column; gap: 4px; }
.nav-section-title { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; padding: 10px 14px 4px 14px; letter-spacing: 1px; }
.nav-item { display: flex; align-items: center; gap: 15px; padding: 12px 16px; color: var(--text-main); text-decoration: none; border-radius: 10px; font-size: 0.9rem; font-weight: 500; transition: 0.2s; }
.nav-item:hover { background: var(--nav-hover); color: var(--text-main); }
.nav-item.active { background: var(--nav-active-bg); color: var(--primary); }
.nav-item i { font-size: 1.1rem; width: 20px; text-align: center; }
.nav-divider { height: 1px; background: var(--border-color); margin: 10px 0; }

/* ========================================= */
/* 🖥️ MAIN CONTENT & BENTO CARDS            */
/* ========================================= */
.main-content { flex: 1; padding: 40px 30px; overflow-y: auto; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { border-left: 4px solid var(--primary); padding-left: 15px; font-size: 1.5rem; margin-bottom: 30px; text-shadow: 0 0 10px var(--primary-glow); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }

.card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px var(--glass-shadow);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px var(--primary-glow);
  border-color: var(--primary);
}

.card::before {
    content: ''; 
    position: absolute; 
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.08) 0%, transparent 60%);
    opacity: 0; transition: 0.5s ease; pointer-events: none; z-index: 0;
}
.card:hover::before { opacity: 1; transform: rotate(15deg); }

.card-img { width: 100%; height: 240px; object-fit: cover; border-bottom: 1px solid var(--border-color); border-radius: 16px 16px 0 0; transition: transform 0.5s ease; }
.card:hover .card-img { transform: scale(1.05); }

.card-content { padding: 20px; position: relative; z-index: 1; }
.card-title { font-size: 1.1rem; font-weight: bold; margin: 0 0 15px 0; height: 48px; overflow: hidden; color: var(--text-main); }
.card-actions { display: flex; justify-content: space-between; align-items: center; }

.btn-play { background: linear-gradient(135deg, #007bb5, var(--primary)); color: #fff; border: none; padding: 8px 20px; border-radius: 20px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.btn-play:hover { transform: scale(1.05); }

.stats { display: flex; gap: 15px; color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
.stats span, .stats i { cursor: pointer; transition: color 0.2s, transform 0.2s; }
.stats span:hover, .stats i:hover { color: var(--primary); transform: scale(1.15); }

/* ========================================= */
/* 🎧 AUDIO PLAYER (MINIMIZED & FULLSCREEN)  */
/* ========================================= */
.player-bar {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background: var(--header-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-color); padding: 12px 30px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: var(--z-sidebar);
  transform: translateY(100%); opacity: 0; visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.player-bar.active, .player-bar.is-fullscreen { transform: translateY(0); opacity: 1; visibility: visible; }

.now-playing { display: flex; align-items: center; gap: 15px; width: 30%; }
.now-playing img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; }
.now-playing-info { display: flex; flex-direction: column; }
.now-playing-title { font-weight: bold; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; color: var(--text-main); }
.now-playing-dj { color: var(--primary); font-size: 0.8rem; font-weight: 600; }

.player-controls-wrapper { display: flex; flex-direction: column; align-items: center; width: 40%; gap: 8px; }
.media-buttons { display: flex; align-items: center; gap: 20px; }
.media-btn { background: none; border: none; color: var(--text-main); font-size: 1.2rem; cursor: pointer; transition: 0.2s; }
.media-btn:hover { color: var(--primary); }
.btn-main-play { font-size: 2.2rem; color: var(--primary); }

audio { width: 100%; height: 35px; border-radius: 30px; }
audio:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.extra-controls { display: flex; align-items: center; justify-content: flex-end; gap: 18px; width: 30%; color: var(--text-muted); }
.extra-controls i { cursor: pointer; }
.extra-controls i:hover { color: var(--primary); }
.volume-slider { width: 80px; accent-color: var(--primary); cursor: pointer; }

/* 🎬 Cinematic Fullscreen Mode */
.player-bar.is-fullscreen { flex-direction: column; justify-content: center; align-items: center; height: 100vh; padding: 40px 20px; z-index: var(--z-fullscreen); }
.fullscreen-backdrop { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; filter: blur(40px) brightness(0.3); z-index: -1; }
.player-bar.is-fullscreen .fullscreen-backdrop { display: block; }
.player-bar.is-fullscreen .now-playing { width: 100%; flex-direction: column; align-items: center; text-align: center; gap: 25px; margin-bottom: 30px; }
.player-bar.is-fullscreen .now-playing img { width: 350px; height: 350px; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8); }
.player-bar.is-fullscreen .now-playing-title { font-size: 2.5rem; max-width: 90%; white-space: normal; text-align: center; line-height: 1.3; text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9); margin: 0 auto; color: var(--text-main); }
.player-bar.is-fullscreen .now-playing-dj { font-size: 1.2rem; letter-spacing: 3px; margin-top: 5px; text-transform: uppercase; }
.player-bar.is-fullscreen .player-controls-wrapper { width: 85%; max-width: 800px; gap: 30px; }
.player-bar.is-fullscreen .media-buttons { gap: 40px; }
.player-bar.is-fullscreen .btn-main-play { font-size: 4rem; }
.player-bar.is-fullscreen .extra-controls { width: 85%; max-width: 800px; justify-content: center; margin-top: 20px; gap: 35px; }
.player-bar.is-fullscreen .extra-controls i { font-size: 1.5rem; }

/* ========================================= */
/* 🔴 TIKTOK STYLE LIVE ALERT BANNER         */
/* ========================================= */
.live-alert-banner {
  background: linear-gradient(90deg, #ff0055, #ff4d4d); color: #fff; padding: 12px 20px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; box-shadow: 0 0 20px rgba(255, 0, 85, 0.5); animation: pulseGlow 2s infinite; cursor: pointer;
}
@keyframes pulseGlow { 0% { box-shadow: 0 0 15px rgba(255, 0, 85, 0.4); } 50% { box-shadow: 0 0 30px rgba(255, 0, 85, 0.8); } 100% { box-shadow: 0 0 15px rgba(255, 0, 85, 0.4); } }
.live-dot-pulse { width: 10px; height: 10px; background-color: #fff; border-radius: 50%; display: inline-block; margin-right: 8px; animation: ping 1s infinite alternate; }
@keyframes ping { from { opacity: 0.3; transform: scale(0.8); } to { opacity: 1; transform: scale(1.3); } }

/* ========================================= */
/* 🔗 SHARE MODAL STYLES                     */
/* ========================================= */
.share-modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(10px); display: none; justify-content: center; align-items: center; z-index: var(--z-modal); }
.share-modal-overlay.open { display: flex; }
.share-modal { background: var(--glass-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 25px; width: 90%; max-width: 440px; }
.share-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; color: var(--text-main); }
.close-share-btn { background: transparent; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.share-options { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 12px; margin-bottom: 25px; }
.share-icon { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-main); text-decoration: none; font-size: 0.75rem; }
.share-icon i { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff;}
.share-icon.whatsapp i { background: #25D366; }
.share-icon.twitter i { background: #000; border: 1px solid #333; }
.share-icon.telegram i { background: #0088cc; }
.share-icon.instagram i { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.share-icon.pinterest i { background: #E60023; }
.share-icon.linkedin i { background: #0A66C2; }
.share-icon.email i { background: #ea4335; }
.share-link-box { display: flex; gap: 10px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border-color); padding: 8px 12px; border-radius: 12px; }
.share-link-box input { flex: 1; background: transparent; border: none; color: var(--primary); outline: none; }
.share-link-box input:focus-visible { outline: 2px solid var(--primary); border-radius: 4px; }
.share-link-box button { background: var(--primary); color: #fff; border: none; padding: 8px 16px; border-radius: 8px; font-weight: bold; cursor: pointer; }

/* ========================================= */
/* 💬 COMMENTS UI & VAULT SIDEBAR FIXES      */
/* ========================================= */
.vault-sidebar, .comments-sidebar {
  position: fixed; top: 0; width: 400px; height: 100vh;
  background: var(--glass-bg); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  z-index: var(--z-vault); padding: 30px 25px; overflow-y: auto; overflow-x: hidden;
  color: var(--text-main); box-shadow: -5px 0 30px var(--glass-shadow);
}
.vault-sidebar { right: -400px; transition: right 0.4s; }
.vault-sidebar.open { right: 0; }
.comments-sidebar { left: -400px; transition: left 0.4s; }
.comments-sidebar.open { left: 0; }

.vault-header, .comments-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); width: 100%; }
.vault-header h3, .comments-header h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; flex: 1; margin: 0; color: var(--text-main); }
.close-vault { flex-shrink: 0; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); color: var(--text-muted); width: 35px; height: 35px; border-radius: 50%; cursor: pointer; }

.comments-toggle-btn { background: transparent; border: none; color: var(--primary); font-weight: 600; font-size: 0.95rem; cursor: pointer; padding: 8px 0; display: inline-flex; align-items: center; gap: 8px; transition: filter 0.2s; }
.comments-toggle-btn:hover { filter: brightness(1.2); }

.comment-card { background: transparent; border: none; border-radius: 0; padding: 12px 0; margin-bottom: 5px; }
.comment-card.reply { margin-left: 40px; border-left: none; }
.comment-header { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 6px; }
.comment-author { font-weight: bold; color: var(--text-main); }
.comment-header span { color: var(--text-muted); }
.comment-body { font-size: 0.9rem; line-height: 1.4; margin-bottom: 8px; color: var(--text-main); opacity: 0.9; }
.comment-actions { display: flex; gap: 15px; font-size: 0.8rem; color: var(--text-muted); }
.comment-action-btn { cursor: pointer; }

.comment-input-box { background: transparent; border: none; border-bottom: 1px solid var(--border-color); border-radius: 0; padding: 8px 0; display: flex; gap: 10px; margin-bottom: 20px; }
.comment-input-box input { border: none; background: transparent; flex: 1; color: var(--text-main); outline: none; }
.comment-input-box input::placeholder { color: var(--text-muted); }
.comment-input-box button { background: var(--primary); color: #fff; border: none; padding: 0 16px; border-radius: 8px; font-weight: bold; cursor: pointer; }

.reply-accordion-btn { background: transparent; border: none; color: var(--primary); font-weight: 600; font-size: 0.85rem; cursor: pointer; padding: 6px 16px; border-radius: 20px; display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s; }
.reply-accordion-btn:hover { background: var(--nav-active-bg); }

/* ========================================= */
/* 🎛️ ELEGANT CUSTOM SORT DROPDOWN          */
/* ========================================= */
.comments-sort-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 5px; }
.comments-count-label { font-weight: bold; font-size: 1.1rem; color: var(--text-main); }
.custom-dropdown { position: relative; }
.dropdown-toggle { background: transparent; border: none; color: var(--text-main); font-size: 0.95rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; transition: background 0.2s; }
.dropdown-toggle:hover { background: rgba(150, 150, 150, 0.15); }
.dropdown-menu { position: absolute; top: 100%; right: 0; margin-top: 8px; background: var(--glass-bg); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid var(--border-color); border-radius: 12px; min-width: 240px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: var(--z-modal); }
.custom-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { padding: 12px 16px; cursor: pointer; transition: background 0.2s; border-bottom: 1px solid var(--border-color); }
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: rgba(150, 150, 150, 0.15); }
.dropdown-item.active { background: var(--nav-active-bg); border-left: 3px solid var(--primary); }
.item-title { display: block; color: var(--text-main); font-weight: 600; font-size: 0.95rem; }
.item-desc { display: block; color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }

/* ========================================= */
/* 🌟 PREMIUM SWEETALERT MODAL THEMING       */
/* ========================================= */
div:where(.swal2-container) div:where(.swal2-popup) { background: var(--glass-bg); backdrop-filter: blur(20px); border: 1px solid var(--border-color); border-radius: 20px; color: var(--text-main); box-shadow: 0 20px 50px var(--glass-shadow); }
div:where(.swal2-container) button:where(.swal2-styled.swal2-confirm) { background-color: var(--primary); border-radius: 10px; font-weight: bold; }
div:where(.swal2-container) button:where(.swal2-styled.swal2-cancel) { background-color: var(--border-color); color: var(--text-main); border-radius: 10px; }
div:where(.swal2-container) h2:where(.swal2-title) { color: var(--text-main); }
div:where(.swal2-container) div:where(.swal2-html-container) { color: var(--text-muted); }

/* ---------------------------------------------------------
   ☁️ UPLOAD MODAL LIGHT/DARK MODE FIX
--------------------------------------------------------- */
#upload-modal > div {
    background: var(--glass-bg) !important;
    border: 1px solid var(--border-color) !important;
    backdrop-filter: blur(20px);
}
#upload-modal h2, #upload-modal p {
    color: var(--text-main) !important;
}
#upload-modal input {
    background: rgba(120, 120, 120, 0.15) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px;
}
#upload-modal input::placeholder {
    color: var(--text-muted) !important;
}

/* ========================================= */
/* 📱 BULLETPROOF MOBILE RESPONSIVE FIXES    */
/* ========================================= */
@media (max-width: 768px) {
  /* 1. Restore Native App-like Scrolling Architecture */
  body {
    overflow: hidden !important; 
  }
  .app-container {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    width: 100vw !important;
    overflow: hidden !important;
  }
  
  /* 2. Fix Header Overcrowding */
  header {
    padding: 12px 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
    height: auto !important;
  }
  .header-brand h1 {
    font-size: 1.3rem !important;
    letter-spacing: 1px !important;
  }
  .subtitle {
    font-size: 0.65rem !important;
  }
  .auth-container {
    gap: 10px !important;
  }
  /* Hide "Welcome dj_greyyy" to save space */
  .auth-container > span {
    display: none !important; 
  }
  .auth-btn {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
  }

  /* 3. Convert Main Menu to Floating Drawer */
  .left-nav { 
    position: fixed !important; 
    top: 0 !important; 
    left: -100vw !important; /* Move fully off-screen */
    width: 280px !important;
    height: 100vh !important;
    z-index: 4000 !important; 
    transition: left 0.3s ease-in-out !important;
    box-shadow: 10px 0 30px rgba(0,0,0,0.9) !important;
    /* 🚨 FIX: Swapped hardcoded dark background for theme variables */
    background: var(--nav-bg) !important; 
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    padding-top: 20px !important;
  }
  .left-nav.open { 
    left: 0 !important; 
  }
  
  /* 4. Fix Main Content Grid & Restoring the Scrollbar */
  .main-content {
    margin-left: 0 !important;
    width: 100vw !important;
    flex: 1 !important; /* Take remaining height */
    overflow-y: auto !important; /* Restores scrolling */
    padding: 20px 15px 140px 15px !important; /* Extra bottom padding */
    box-sizing: border-box !important;
  }
  .grid {
    display: grid !important;
    grid-template-columns: 1fr !important; /* Force Single Column */
    gap: 20px !important;
    width: 100% !important;
  }
  .card-img {
    height: 220px !important;
  }
  
  /* 5. Fix Sidebars (Vault & Comments) Full-Screen Overlays */
  .vault-sidebar { 
    width: 100vw !important; 
    right: -100vw !important; /* Guarantee off-screen */
    height: 100vh !important;
    /* 🚨 FIX: Swapped hardcoded dark background for theme variables */
    background: var(--glass-bg) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    z-index: 5000 !important;
  }
  .vault-sidebar.open { right: 0 !important; }

  .comments-sidebar { 
    width: 100vw !important; 
    left: -100vw !important; /* Guarantee off-screen */
    height: 100vh !important;
    /* 🚨 FIX: Swapped hardcoded dark background for theme variables */
    background: var(--glass-bg) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    z-index: 5000 !important;
  }
  .comments-sidebar.open { left: 0 !important; }

  /* 6. Clean up the Mobile Player Bar */
  .player-bar {
    padding: 15px !important;
    flex-direction: column !important;
    gap: 15px !important;
    height: auto !important;
  }
  .now-playing { 
    width: 100% !important; 
    justify-content: flex-start !important; 
  }
  .player-controls-wrapper { 
    width: 100% !important; 
  }
  .extra-controls { 
    display: none !important; /* Hide volume/eq on mobile to save space */
  } 
}