/* =====================================================
   JAINISTRY – LIGHT THEME (FINAL, CLEAN, WORKING)
   ===================================================== */

/* =====================================================
   ROOT / VARIABLES
   ===================================================== */

[data-theme="light"] {
  /* Backgrounds */
  --bg-main: #f4f3ef;      /* ivory */
  --bg-surface: #ffffff;
  --bg-soft: #eef1ec;

  /* Text */
  --text-primary: #1a2a22;
  --text-secondary: #2c3a33;
  --text-muted: #55645c;

  /* Accents */
  --green-main: #1f6f52;
  --green-strong: #134e37;
  --green-soft: #cfeee0;

  --gold-main: #c39a3c;

  background-color: var(--bg-main) !important;
  color: var(--text-primary) !important;
}

/* =====================================================
   GLOBAL SAFETY RESET (NO DARK BLEED)
   ===================================================== */

[data-theme="light"] * {
  background-image: none;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

/* =====================================================
   LAYOUT (SAFE – NO STRUCTURE CHANGE)
   ===================================================== */

[data-theme="light"] main {
  background-color: var(--bg-main);
  position: relative;
}

[data-theme="light"] aside,
[data-theme="light"] .sidebar {
  background-color: var(--bg-surface);
  border-right: 1px solid rgba(0,0,0,0.15);
  position: relative;
  z-index: 5;
}

/* =====================================================
   HERO / IMAGES (NO OVERLAY)
   ===================================================== */

[data-theme="light"] img,
[data-theme="light"] .hero,
[data-theme="light"] .hero img {
  display: block;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

/* =====================================================
   CARDS
   ===================================================== */

[data-theme="light"] .card,
[data-theme="light"] .lesson-card {
  background-color: var(--bg-surface);
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.16);
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 {
  color: var(--text-primary);
  font-weight: 700;
}

[data-theme="light"] p,
[data-theme="light"] span,
[data-theme="light"] li {
  color: var(--text-secondary);
}

/* =====================================================
   SONG / MUSIC TEXT (FIX INVISIBILITY)
   ===================================================== */

[data-theme="light"] .song-title,
[data-theme="light"] .track-title,
[data-theme="light"] .now-playing,
[data-theme="light"] .player-title,
[data-theme="light"] .audio-title {
  color: var(--text-primary) !important;
  font-weight: 600;
}

[data-theme="light"] .song-artist,
[data-theme="light"] .track-artist,
[data-theme="light"] .song-meta,
[data-theme="light"] .audio-meta {
  color: var(--text-secondary) !important;
}

[data-theme="light"] .song-duration,
[data-theme="light"] .track-duration,
[data-theme="light"] .time {
  color: var(--text-muted) !important;
}

/* =====================================================
   BADGES / LEVELS
   ===================================================== */

[data-theme="light"] .level-beginner,
[data-theme="light"] .badge-beginner {
  background-color: var(--green-soft);
  color: var(--green-strong);
  border: 1px solid var(--green-main);
  font-weight: 700;
  letter-spacing: 0.05em;
}

[data-theme="light"] .level-intermediate {
  background-color: #f1e1b7;
  color: #6b4f0a;
  border: 1px solid var(--gold-main);
  font-weight: 700;
}

[data-theme="light"] .level-expert {
  background-color: #e6ddfb;
  color: #4528a3;
  border: 1px solid #7c3aed;
  font-weight: 700;
}

/* =====================================================
   CTA BUTTONS
   ===================================================== */

[data-theme="light"] .btn-primary,
[data-theme="light"] .cta-primary {
  background: linear-gradient(180deg, #2f8f6b, #1f6f52);
  color: #ffffff;
  border: none;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(31,111,82,0.45);
}

[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .cta-primary:hover {
  background: linear-gradient(180deg, #3aa87f, #1f6f52);
}

[data-theme="light"] .btn-secondary,
[data-theme="light"] .lang-toggle,
[data-theme="light"] .btn-language {
  background-color: #ffffff;
  color: var(--green-main);
  border: 2px solid var(--green-main);
  font-weight: 600;
}

/* =====================================================
   SIDEBAR / MENUS
   ===================================================== */

[data-theme="light"] .sidebar li,
[data-theme="light"] .sidebar a,
[data-theme="light"] .sidebar button {
  background-color: transparent;
  color: var(--text-primary);
}

[data-theme="light"] .sidebar li:hover {
  background-color: rgba(31,111,82,0.18);
}

[data-theme="light"] .sidebar .active {
  background-color: rgba(31,111,82,0.28);
  color: var(--green-main);
}

/* Submenus */
[data-theme="light"] .submenu-item,
[data-theme="light"] .games-submenu li,
[data-theme="light"] .games-submenu button {
  background-color: var(--bg-soft);
  color: var(--text-primary);
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 12px;
}

[data-theme="light"] .submenu-item:hover {
  background-color: rgba(31,111,82,0.22);
}

/* =====================================================
   ICONS
   ===================================================== */

[data-theme="light"] i,
[data-theme="light"] svg {
  color: var(--green-main);
  fill: currentColor;
  stroke: currentColor;
  opacity: 0.95;
}

/* =====================================================
   REMOVE DARK OVERLAYS / PSEUDO ELEMENTS
   ===================================================== */

[data-theme="light"] *::before,
[data-theme="light"] *::after {
  background: none !important;
  opacity: 1 !important;
}

/* =====================================================
   🎵 AUDIO / BHAJAN LIST – LIGHT THEME FIX
   ===================================================== */

/* Base row */
[data-theme="light"] .audio-item,
[data-theme="light"] .song-row,
[data-theme="light"] .track-row,
[data-theme="light"] .playlist-item,
[data-theme="light"] .list-item {
  background-color: #ffffff !important;
  color: #1a2a22 !important;
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* Hover */
[data-theme="light"] .audio-item:hover,
[data-theme="light"] .song-row:hover,
[data-theme="light"] .track-row:hover,
[data-theme="light"] .playlist-item:hover,
[data-theme="light"] .list-item:hover {
  background-color: #eef6f1 !important;
}

/* Song title */
[data-theme="light"] .audio-item .song-title,
[data-theme="light"] .track-row .track-title,
[data-theme="light"] .playlist-item .song-title {
  color: #1a2a22 !important;
  font-weight: 600;
}

/* File size / meta */
[data-theme="light"] .audio-item .song-size,
[data-theme="light"] .audio-item .song-duration,
[data-theme="light"] .track-row .track-meta {
  color: #55645c !important;
}

/* Active / playing row */
[data-theme="light"] .audio-item.active,
[data-theme="light"] .track-row.active,
[data-theme="light"] .playlist-item.active {
  background-color: #d9efe5 !important;
  border-color: #1f6f52;
}
/* =========================================
   FIX EXCESS GAP BETWEEN SIDEBAR & CONTENT
   ========================================= */

/* Main content should start closer to sidebar */
[data-theme="light"] main {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* If you use a centered container */
[data-theme="light"] .container,
[data-theme="light"] .content,
[data-theme="light"] .page,
[data-theme="light"] .page-content {
  max-width: 100% !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}
    /* =========================================
       🎵 PLAYER BAR – VISIBILITY FIX (LIGHT)
       ========================================= */



    /* Song title (Now Playing) */
    [data-theme="light"] .player .song-title,
    [data-theme="light"] .player .track-title,
    [data-theme="light"] .player .now-playing {
      color: #1a2a22 !important;
      font-weight: 600;
      opacity: 1 !important;
    }

    /* Time labels */
    [data-theme="light"] .player .time,
    [data-theme="light"] .player .duration,
    [data-theme="light"] .player .current-time {
      color: #55645c !important;
      opacity: 1 !important;
    }

    /* Controls */
    [data-theme="light"] .player button,
    [data-theme="light"] .player svg {
      color: #1f6f52 !important;
      fill: currentColor;
      opacity: 1 !important;
    }

    /* Progress bar */
    [data-theme="light"] .player input[type="range"] {
      accent-color: #1f6f52;
    }
/* =========================================
   ⬅️ BACK BUTTON – VISIBILITY FIX
   ========================================= */

[data-theme="light"] .back,
[data-theme="light"] .back-button,
[data-theme="light"] .nav-back,
[data-theme="light"] a.back {
  color: #1f6f52 !important;        /* strong green */
  font-weight: 600;
  opacity: 1 !important;
}

/* If it has an icon */
[data-theme="light"] .back svg,
[data-theme="light"] .back-button svg {
  color: #1f6f52 !important;
  stroke: currentColor;
}

/* Add subtle background so it doesn’t blend */
[data-theme="light"] .back,
[data-theme="light"] .back-button {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(31,111,82,0.08);
}

/* =========================================
   🟢 LEVEL BADGES – HIGH CONTRAST
   ========================================= */

[data-theme="light"] .level-beginner,
[data-theme="light"] .badge-beginner {
  background-color: #1f6f52 !important;  /* solid green */
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(31,111,82,0.35);
}

/* Intermediate */
[data-theme="light"] .level-intermediate {
  background-color: #c39a3c !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(195,154,60,0.35);
}

/* =========================================================
   🔆 LIGHT THEME – VISIBILITY FIX (FINAL)
   ========================================================= */

/* ---------- GLOBAL SAFETY ---------- */
[data-theme="light"] * {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* =========================================================
   ⬅️ BACK BUTTON – FORCE VISIBILITY
   ========================================================= */

[data-theme="light"] .back,
[data-theme="light"] .back-button,
[data-theme="light"] .nav-back,
[data-theme="light"] a.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: #1f6f52 !important;
  font-weight: 600;
  opacity: 1 !important;

  background: rgba(31,111,82,0.12);
  padding: 6px 12px;
  border-radius: 8px;
}

/* Icon inside back button */
[data-theme="light"] .back svg,
[data-theme="light"] .back-button svg {
  stroke: #1f6f52 !important;
  fill: none;
}

/* =========================================================
   ❓ QUIZ / QUESTION TEXT – FIX INVISIBILITY
   ========================================================= */

/* Question heading */
[data-theme="light"] .question,
[data-theme="light"] .quiz-question,
[data-theme="light"] .question-text,
[data-theme="light"] h3.question-title {
  color: #1a2a22 !important;
  font-weight: 600;
}

/* =========================================================
   ✅ ANSWER OPTIONS – FORCE READABLE CARDS
   ========================================================= */

[data-theme="light"] .option,
[data-theme="light"] .answer,
[data-theme="light"] .quiz-option,
[data-theme="light"] .choice,
[data-theme="light"] li.option {
  background: #ffffff !important;
  color: #1a2a22 !important;

  border: 2px solid rgba(31,111,82,0.35);
  border-radius: 14px;

  padding: 14px 18px;
  margin-bottom: 12px;

  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* Hover */
[data-theme="light"] .option:hover,
[data-theme="light"] .quiz-option:hover {
  background: rgba(31,111,82,0.08) !important;
}

/* Selected */
[data-theme="light"] .option.selected,
[data-theme="light"] .quiz-option.selected {
  background: rgba(31,111,82,0.18) !important;
  border-color: #1f6f52;
  font-weight: 600;
}

/* =========================================================
   🧠 DISABLED / FADED STATES (FIX)
   ========================================================= */

[data-theme="light"] .disabled,
[data-theme="light"] .option.disabled,
[data-theme="light"] .quiz-option.disabled {
  opacity: 1 !important;
  color: #1a2a22 !important;
}

/* =========================================================
   🟢 CORRECT / ❌ WRONG STATES (IF ANY)
   ========================================================= */

[data-theme="light"] .correct {
  background: #d7f3e6 !important;
  border-color: #1f6f52 !important;
  color: #134e37 !important;
}

[data-theme="light"] .wrong {
  background: #fde2e2 !important;
  border-color: #c0392b !important;
  color: #7a1f1f !important;
}

/* =====================================================
   ⬅️ BACK BUTTON – HARD VISIBILITY FIX (LIGHT THEME)
   ===================================================== */

[data-theme="light"] .back,
[data-theme="light"] .back-button,
[data-theme="light"] .nav-back,
[data-theme="light"] a.back,
[data-theme="light"] button.back {
  color: #134e37 !important;          /* dark forest green */
  font-weight: 700 !important;
  opacity: 1 !important;

  background: #ffffff !important;
  border: 2px solid #1f6f52 !important;
  border-radius: 10px;

  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;

  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Arrow / icon inside back button */
[data-theme="light"] .back svg,
[data-theme="light"] .back-button svg,
[data-theme="light"] .nav-back svg {
  stroke: #134e37 !important;
  fill: none !important;
}

/* Hover */
[data-theme="light"] .back:hover,
[data-theme="light"] .back-button:hover {
  background: rgba(31,111,82,0.08) !important;
}

/* =====================================================
   📘 LESSON PAGE – LIGHT THEME (FINAL FIX)
   ===================================================== */

/* ---------- LESSON HEADER ---------- */

[data-theme="light"] .lesson-header,
[data-theme="light"] .lesson-top,
[data-theme="light"] .lesson-meta {
  background: transparent !important;
  color: #1a2a22;
}

/* ---------- BACK BUTTON ---------- */

[data-theme="light"] .lesson-back,
[data-theme="light"] .back,
[data-theme="light"] .back-button,
[data-theme="light"] .nav-back {
  color: #134e37 !important;
  font-weight: 700;
  opacity: 1 !important;

  background: #ffffff !important;
  border: 2px solid #1f6f52 !important;
  border-radius: 10px;

  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;

  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Arrow icon */
[data-theme="light"] .lesson-back svg,
[data-theme="light"] .back svg {
  stroke: #134e37 !important;
  fill: none !important;
}

/* Hover */
[data-theme="light"] .lesson-back:hover {
  background: rgba(31,111,82,0.08) !important;
}

/* ---------- LEVEL BADGES ---------- */

[data-theme="light"] .level-beginner,
[data-theme="light"] .badge-beginner {
  background: #d3efe1 !important;
  color: #134e37 !important;
  border: 1.5px solid #1f6f52;
  font-weight: 700;
}

[data-theme="light"] .level-intermediate {
  background: #f3e6bf !important;
  color: #6b4f0a !important;
  border: 1.5px solid #c39a3c;
  font-weight: 700;
}

[data-theme="light"] .level-expert {
  background: #e6ddfb !important;
  color: #4528a3 !important;
  border: 1.5px solid #7c3aed;
  font-weight: 700;
}

/* ---------- DURATION PILL ---------- */

[data-theme="light"] .duration,
[data-theme="light"] .duration-pill {
  background: #ffffff !important;
  color: #1a2a22 !important;
  border: 1px solid rgba(0,0,0,0.2);
  font-weight: 600;
}

/* ---------- LESSON TITLES ---------- */

[data-theme="light"] .lesson-title,
[data-theme="light"] h1,
[data-theme="light"] h2 {
  color: #1a2a22 !important;
  font-weight: 800;
}

[data-theme="light"] .lesson-subtitle,
[data-theme="light"] .lesson-description {
  color: #2c3a33 !important;
  opacity: 1 !important;
}

/* ---------- LESSON CONTENT ---------- */

[data-theme="light"] .lesson-content,
[data-theme="light"] .lesson-body {
  color: #2c3a33 !important;
  background: transparent;
}

/* ---------- QUESTION / REFLECTION BLOCK ---------- */

[data-theme="light"] .question,
[data-theme="light"] .reflection,
[data-theme="light"] .quiz-question {
  background: #ffffff !important;
  color: #1a2a22 !important;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 14px;
  padding: 16px;
}

/* ---------- ANSWER OPTIONS ---------- */

[data-theme="light"] .option,
[data-theme="light"] .answer,
[data-theme="light"] .quiz-option {
  background: #f4f3ef !important;
  color: #1a2a22 !important;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 12px;
  opacity: 1 !important;
}

/* Hover */
[data-theme="light"] .option:hover,
[data-theme="light"] .quiz-option:hover {
  background: rgba(31,111,82,0.1) !important;
}

/* Selected / Correct */
[data-theme="light"] .option.active,
[data-theme="light"] .option.correct {
  background: #d3efe1 !important;
  color: #134e37 !important;
  border-color: #1f6f52;
}

/* ---------- REMOVE DARK OVERLAYS ---------- */

[data-theme="light"] .lesson::before,
[data-theme="light"] .lesson::after,
[data-theme="light"] .lesson-content::before,
[data-theme="light"] .lesson-content::after {
  content: none !important;
  background: none !important;
  opacity: 0 !important;
}

/* ---------- SAFETY RESET ---------- */

[data-theme="light"] .lesson * {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* =====================================================
   📱 MOBILE MENU / DRAWER – FULL HEIGHT FIX
   ===================================================== */

/* Detect mobile menu / overlay */
@media (max-width: 768px) {

  /* Main mobile menu container */
  .mobile-menu,
  .menu-drawer,
  .sidebar.mobile,
  .sidebar.open,
  .drawer,
  .nav-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;

    width: 85vw !important;
    max-width: 320px;

    height: 100vh !important;
    max-height: 100vh !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    background: #ffffff !important;
    z-index: 9999 !important;

    box-shadow: 8px 0 30px rgba(0,0,0,0.35);
    padding-bottom: 80px; /* space for bottom nav */
  }

  /* Ensure menu list can scroll */
  .mobile-menu ul,
  .menu-drawer ul,
  .sidebar.mobile ul {
    max-height: none !important;
    overflow: visible !important;
  }

  /* Menu items spacing */
  .mobile-menu li,
  .menu-drawer li,
  .sidebar.mobile li {
    padding: 14px 18px !important;
  }

  /* Prevent body from blocking menu scroll */
  body.menu-open,
  body.drawer-open {
    overflow: hidden;
  }

  /* Prevent parent clipping */
  body,
  main,
  .app,
  .app-layout {
    overflow-x: hidden !important;
  }
}
/* =====================================================
   🎵 AUDIO PLAYER – LIGHT THEME VISIBILITY FIX
   ===================================================== */

/* ---------- ICON BUTTONS ---------- */

[data-theme="light"] .player button,
[data-theme="light"] .audio-player button,
[data-theme="light"] .music-player button {
  background: transparent !important;
  color: #1f6f52 !important;
  opacity: 1 !important;
}

/* SVG icons */
[data-theme="light"] .player svg,
[data-theme="light"] .audio-player svg,
[data-theme="light"] .music-player svg {
  fill: #1f6f52 !important;
  stroke: #1f6f52 !important;
  opacity: 1 !important;
}

/* Active (Play / Pause) */
[data-theme="light"] .player .active svg,
[data-theme="light"] .player .playing svg {
  fill: #134e37 !important;
  stroke: #134e37 !important;
}

/* ---------- MAIN PLAY BUTTON ---------- */

[data-theme="light"] .player .play,
[data-theme="light"] .player .pause {
  background: #1f6f52 !important;
  color: #ffffff !important;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(31,111,82,0.45);
}

[data-theme="light"] .player .play svg,
[data-theme="light"] .player .pause svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

/* ---------- SEEK BAR (RANGE INPUT) ---------- */

[data-theme="light"] input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;

  background: #d8ded9 !important;   /* track */
  border-radius: 6px;
  outline: none;
  opacity: 1 !important;
}

/* Track (Chrome / Safari) */
[data-theme="light"] input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: #d8ded9;
  border-radius: 6px;
}

/* Thumb */
[data-theme="light"] input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;

  width: 16px;
  height: 16px;
  margin-top: -5px;

  background: #1f6f52;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(31,111,82,0.25);
}

/* Firefox */
[data-theme="light"] input[type="range"]::-moz-range-track {
  height: 6px;
  background: #d8ded9;
  border-radius: 6px;
}

[data-theme="light"] input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #1f6f52;
  border-radius: 50%;
  cursor: pointer;
}

/* ---------- PROGRESS (if custom bar exists) ---------- */

[data-theme="light"] .progress,
[data-theme="light"] .seekbar {
  background: #d8ded9 !important;
}

[data-theme="light"] .progress-filled,
[data-theme="light"] .seekbar-fill {
  background: linear-gradient(90deg, #2f8f6b, #1f6f52) !important;
}

/* ---------- TIME LABELS ---------- */

[data-theme="light"] .time,
[data-theme="light"] .current-time,
[data-theme="light"] .duration {
  color: #2c3a33 !important;
  font-weight: 600;
  opacity: 1 !important;
}

/* ---------- SONG TITLE ---------- */

[data-theme="light"] .song-title,
[data-theme="light"] .track-title {
  color: #1a2a22 !important;
  font-weight: 700;
  opacity: 1 !important;
}

/* ---------- ARTIST ---------- */

[data-theme="light"] .song-artist,
[data-theme="light"] .track-artist {
  color: #55645c !important;
  opacity: 1 !important;
}

/* ---------- SAFETY: REMOVE DARK THEME BLEED ---------- */

[data-theme="light"] .player *,
[data-theme="light"] .audio-player *,
[data-theme="light"] .music-player * {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}
/* =========================================
   🎵 AUDIO PLAYER – FIXED (LIGHT THEME)
   ========================================= */

/* =========================================
   🎵 PLAYER – FIXED HEIGHT (LIGHT THEME)
   ========================================= */

[data-theme="light"] .player,
[data-theme="light"] .audio-player,
[data-theme="light"] .music-player {
  position: fixed !important;
  bottom: 0 !important;
  left: 0;
  right: 0;

  height: 96px !important;
  min-height: 96px !important;

  background: #ffffff !important;
  border-top: 1px solid rgba(0,0,0,0.15);

  z-index: 1000 !important;
}

/* =========================================
   📄 RESERVE SPACE FOR PLAYER (LIGHT)
   ========================================= */

[data-theme="light"] body {
  padding-bottom: 140px !important;
}

/* Catch all common scroll containers */
[data-theme="light"] main,
[data-theme="light"] .page,
[data-theme="light"] .content,
[data-theme="light"] .page-content,
[data-theme="light"] .content-wrapper,
[data-theme="light"] .right-panel,
[data-theme="light"] .list-container,
[data-theme="light"] .bhajans-page,
[data-theme="light"] .lesson-page,
[data-theme="light"] .scroll-container {
  padding-bottom: 140px !important;
}

/* =========================================
   📄 PAGINATION – ABOVE PLAYER (LIGHT)
   ========================================= */

[data-theme="light"] .pagination,
[data-theme="light"] .page-controls {
  display: flex;
  align-items: center;
  gap: 12px;

  opacity: 1 !important;
  visibility: visible !important;
}

/* =========================================
   🎛 CONTROL BUTTONS – LIGHT THEME
   ========================================= */

[data-theme="light"] .control-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 8px 14px;
  min-height: 44px;
  min-width: 44px;

  font-size: 14px;
  font-weight: 700;

  border-radius: 10px;
  cursor: pointer;

  opacity: 1 !important;
  visibility: visible !important;

  background-clip: padding-box;
}
/* =========================================
   PRIMARY CONTROL BUTTON
   ========================================= */

[data-theme="light"] .control-btn.primary,
[data-theme="light"] .control-btn--primary {
  background: linear-gradient(180deg, #2f8f6b, #1f6f52) !important;
  color: #ffffff !important;

  border: 2px solid #1f6f52 !important;
  box-shadow: 0 10px 24px rgba(31,111,82,0.4);
}

/* Hover */
[data-theme="light"] .control-btn.primary:hover,
[data-theme="light"] .control-btn--primary:hover {
  background: linear-gradient(180deg, #3aa87f, #1f6f52) !important;
}

/* =========================================
   SECONDARY CONTROL BUTTON
   ========================================= */

[data-theme="light"] .control-btn.secondary,
[data-theme="light"] .control-btn--secondary {
  background: #ffffff !important;
  color: #1f6f52 !important;

  border: 2px solid #1f6f52 !important;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* Hover */
[data-theme="light"] .control-btn.secondary:hover,
[data-theme="light"] .control-btn--secondary:hover {
  background: rgba(31,111,82,0.08) !important;
}

/* =========================================
   DISABLED CONTROL BUTTON
   ========================================= */

[data-theme="light"] .control-btn:disabled,
[data-theme="light"] .control-btn.disabled {
  background: #f1f1f1 !important;
  color: #9aa6a0 !important;
  border-color: #d0d6d3 !important;

  cursor: not-allowed;
  box-shadow: none;
}
/* =========================================
   ICON VISIBILITY
   ========================================= */

[data-theme="light"] .control-btn svg,
[data-theme="light"] .control-btn i {
  color: currentColor !important;
  fill: currentColor !important;
  stroke: currentColor !important;
  opacity: 1 !important;
}

/* =========================================
   🎵 AUDIO PLAYER – MOBILE HEIGHT (LIGHT)
   ========================================= */

@media (max-width: 768px) {
  [data-theme="light"] .player,
  [data-theme="light"] .audio-player,
  [data-theme="light"] .music-player {
    position: fixed !important;
    bottom: 56px !important; /* ⬅ sits ABOVE bottom nav */
    left: 0;
    right: 0;

    height: 88px !important;
    min-height: 88px !important;

    background: #ffffff !important;
    border-top: 1px solid rgba(0,0,0,0.15);

    z-index: 1001 !important;
  }
}

/* =========================================
   🧭 BOTTOM NAV – MOBILE
   ========================================= */

@media (max-width: 768px) {
  .bottom-nav,
  .mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0;
    right: 0;

    height: 56px !important;
    min-height: 56px !important;

    z-index: 1000 !important;
  }
}

/* =========================================
   📄 RESERVE SPACE FOR PLAYER + NAV (LIGHT)
   ========================================= */

@media (max-width: 768px) {
  [data-theme="light"] body {
    padding-bottom: 160px !important; /* 88 + 56 + buffer */
  }

  [data-theme="light"] main,
  [data-theme="light"] .page,
  [data-theme="light"] .content,
  [data-theme="light"] .content-wrapper,
  [data-theme="light"] .list-container,
  [data-theme="light"] .bhajans-page {
    padding-bottom: 160px !important;
  }
}

/* =========================================
   📄 LIST SAFETY
   ========================================= */

@media (max-width: 768px) {
  [data-theme="light"] .song-list,
  [data-theme="light"] .track-list {
    position: relative;
    z-index: 1;
  }
}
/* =====================================================
   🎵 PLAYER – STICKY INSTEAD OF FIXED (LIGHT)
   ===================================================== */

@media (max-width: 768px) {
  [data-theme="light"] .player,
  [data-theme="light"] .audio-player,
  [data-theme="light"] .music-player {
    position: sticky !important;
    bottom: 56px; /* above bottom nav */

    height: 88px;
    z-index: 10;

    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.15);
  }
}

/* =====================================================
   🚨 FIXED PLAYER TRANSFORM BUG – LIGHT THEME
   ===================================================== */

@media (max-width: 768px) {
  [data-theme="light"] body,
  [data-theme="light"] main,
  [data-theme="light"] .page,
  [data-theme="light"] .content,
  [data-theme="light"] .content-wrapper,
  [data-theme="light"] .bhajans-page {
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
  }
}

/* =========================================
   📱 MOBILE SAFETY – LIGHT THEME
   ========================================= */

@media (max-width: 768px) {
  [data-theme="light"] .player {
    height: 88px !important;
    min-height: 88px !important;
  }

  [data-theme="light"] body,
  [data-theme="light"] .page,
  [data-theme="light"] .content {
    padding-bottom: 160px !important;
  }

  [data-theme="light"] .pagination {
    margin-bottom: 140px !important;
  }
}

/* =========================================
   📄 PAGINATION BUTTONS – LIGHT THEME FIX
   ========================================= */

[data-theme="light"] .page-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  padding: 8px 14px;
  min-width: 44px;

  background-color: #ffffff !important;
  color: #1a2a22 !important;

  border: 2px solid #1f6f52 !important;
  border-radius: 10px;

  font-weight: 700;
  font-size: 14px;

  opacity: 1 !important;
  visibility: visible !important;

  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* Hover */
[data-theme="light"] .page-btn:hover {
  background: rgba(31,111,82,0.08) !important;
}

/* Active page */
[data-theme="light"] .page-btn.active {
  background: #1f6f52 !important;
  color: #ffffff !important;
  border-color: #1f6f52 !important;
}

/* Disabled (Prev / Next edge cases) */
[data-theme="light"] .page-btn:disabled,
[data-theme="light"] .page-btn.disabled {
  background: #f0f0f0 !important;
  color: #9aa6a0 !important;
  border-color: #d0d6d3 !important;
  cursor: not-allowed;
  box-shadow: none;
}
