@font-face {
      font-family: 'D-DIN Condensed';
      src: url('D-DINCondensed-Bold.woff') format('woff'),
           url('https://fonts.cdnfonts.com/s/23112/D-DINCondensed-Bold.woff') format('woff');
      font-weight: 700;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: 'D-DIN Condensed';
      src: url('D-DINCondensed.woff') format('woff'),
           url('https://fonts.cdnfonts.com/s/23112/D-DINCondensed.woff') format('woff');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    /* 
      ===============================================================
      🎥 FULLSCREEN BACKGROUND VIDEO / GIF CONFIGURATION
      ===============================================================
      Place your background.mp4, background.gif, sound effect/Hover.mp3 & sound effect/Click.mp3 here!
      ===============================================================
    */

    :root {
      --font-logo: 'Oswald', 'Kanit', sans-serif;
      --font-mono: 'Space Mono', 'Kanit', monospace;
      --font-sans: 'Inter', 'Kanit', 'Noto Sans Thai', sans-serif;

      /* 🎚️ 1-LINE AUDIO GRAPH SETTINGS: Change numbers directly in CSS */
      --bgm-viz-sensitivity: 0.7;  /* ⚡ Sensitivity / Amplitude (0.5 = subtle, 1.15 = balanced, 1.6 = punchy) */
      --bgm-viz-smoothing: 0.8;    /* 🌊 Smoothing (0.2 = fast/raw transients, 0.68 = balanced, 0.9 = butter smooth) */
      --bgm-viz-max-height: 0.6;   /* 📏 Max height ratio (0.2 to 0.7) */
    }

    * {
      box-sizing: border-box;
      scroll-behavior: smooth;
    }

    body {
      
      background-color: #0b0c0e;
      color: #e2e8f0;
      font-family: var(--font-sans);
      min-height: 100vh;
      overflow-x: hidden;
      margin: 0;
    }

    /* Fullscreen Media Element */
    .bg-media-element {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: brightness(1.15) contrast(1.05);
      transition: filter 0.5s ease;
      will-change: transform;
      backface-visibility: hidden;
    }

    #bg-wrapper {
      position: fixed;
      inset: 0;
      overflow: hidden;
      pointer-events: none;
      z-index: 0;
    }

    /* =============================================
       COLOR WIPE PAGE TRANSITION
       Full-width curtain panels slide like a cinema wipe
    ============================================= */
    #wipe-overlay {
      position: fixed;
      inset: 0;
      z-index: 100002;
      pointer-events: none !important;
    }
    #wipe-overlay.wipe-entering {
      pointer-events: all !important;
    }
    #wipe-overlay.wipe-exiting {
      pointer-events: none !important;
    }

    #wipe-overlay .wipe-panel {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none !important;
      /* Default: panels off-screen so content is always visible */
      transform: translateX(100%);
    }

    #wipe-overlay .wipe-panel:nth-child(1) { background: #f43f5e; z-index: 1; }
    #wipe-overlay .wipe-panel:nth-child(2) { background: #a855f7; z-index: 2; }
    #wipe-overlay .wipe-panel:nth-child(3) { background: #6366f1; z-index: 3; }
    #wipe-overlay .wipe-panel:nth-child(4) { background: #0b0c0e; z-index: 4; }

    @keyframes curtainIn {
      0%   { transform: translateX(-100%); }
      100% { transform: translateX(0%); }
    }

    @keyframes curtainOut {
      0%   { transform: translateX(0%); }
      100% { transform: translateX(100%); }
    }

    /* Stagger in: rose first, dark last */
    #wipe-overlay.wipe-entering .wipe-panel:nth-child(1) { animation: curtainIn 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.00s both; }
    #wipe-overlay.wipe-entering .wipe-panel:nth-child(2) { animation: curtainIn 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.06s both; }
    #wipe-overlay.wipe-entering .wipe-panel:nth-child(3) { animation: curtainIn 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.12s both; }
    #wipe-overlay.wipe-entering .wipe-panel:nth-child(4) { animation: curtainIn 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.18s both; }

    /* Stagger out: dark first, rose last */
    #wipe-overlay.wipe-exiting .wipe-panel:nth-child(4) { animation: curtainOut 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.00s both; }
    #wipe-overlay.wipe-exiting .wipe-panel:nth-child(3) { animation: curtainOut 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.06s both; }
    #wipe-overlay.wipe-exiting .wipe-panel:nth-child(2) { animation: curtainOut 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.12s both; }
    #wipe-overlay.wipe-exiting .wipe-panel:nth-child(1) { animation: curtainOut 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.18s both; }


    /* Clean Logo with Oswald Google Font */
    .oswald-logo {
      font-family: var(--font-logo);
      font-weight: 700;
      font-size: 3.2rem;
      color: #ffffff;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      user-select: none;
      line-height: 1;
      text-shadow: 0 4px 16px rgba(0, 0, 0, 0.95);
    }

    /* Section Headings with Oswald Font */
    .heading-oswald {
      font-family: var(--font-logo);
      letter-spacing: 0.03em;
    }

    /* Minimalist Numbered Menu */
    .hero-menu-item {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 10px 0;
      color: rgba(255, 255, 255, 0.8);
      font-family: var(--font-mono);
      font-size: 0.85rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      transition: all 0.3s ease;
      cursor: pointer;
      text-decoration: none;
      width: fit-content;
      text-shadow: 0 2px 6px rgba(0,0,0,0.9);
      position: relative;
    }

    .hero-menu-item:hover {
      color: #ffffff;
      transform: translateX(8px);
      text-shadow: 0 0 12px rgba(255,255,255,0.6);
    }

    .hero-menu-num {
      color: rgba(255, 255, 255, 0.55);
      font-size: 0.75rem;
      transition: color 0.3s ease;
    }

    .hero-menu-item:hover .hero-menu-num {
      color: #ffffff;
    }

    /* Crisp SVG Vector Play Arrow Icon */
    .hero-menu-arrow {
      opacity: 0;
      transform: translateX(-6px);
      transition: all 0.3s ease;
      width: 10px;
      height: 10px;
      fill: currentColor;
    }

    .hero-menu-item:hover .hero-menu-arrow {
      opacity: 1;
      transform: translateX(0);
    }

    /* FLY TO THE RIGHT CLICK ANIMATION */
    @keyframes flyRight {
      0% {
        transform: translateX(0) scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 4px #ffffff);
      }
      40% {
        transform: translateX(45px) scale(1.5);
        opacity: 0.9;
        filter: drop-shadow(0 0 8px #f43f5e);
      }
      100% {
        transform: translateX(140px) scale(0.4);
        opacity: 0;
        filter: drop-shadow(0 0 16px #a855f7);
      }
    }

    .fly-right {
      animation: flyRight 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
    }

    /* Border line dividers */
    .menu-rule {
      height: 1px;
      background: rgba(255, 255, 255, 0.25);
      width: 180px;
      margin: 8px 0;
      box-shadow: 0 1px 4px rgba(0,0,0,0.8);
    }

    /* Glass card container styling */
    .glass-card {
      background: rgba(15, 17, 23, 0.82);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 14px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .glass-card:hover {
      border-color: rgba(255, 255, 255, 0.3);
      transform: translateY(-2px);
      box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.7);
    }

    /* Expandable About Me Card Transition */
    .about-expandable {
      display: grid;
      grid-template-rows: 0fr;
      opacity: 0;
      transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    }
    .about-expandable.is-expanded {
      grid-template-rows: 1fr;
      opacity: 1;
    }
    .about-expandable > .expand-inner {
      overflow: hidden;
    }

    /* Terminal Cursor Blink */
    @keyframes termBlink {
      0%, 49% { opacity: 1; }
      50%, 100% { opacity: 0; }
    }
    .term-cursor-blink {
      animation: termBlink 0.9s steps(1) infinite;
    }

    /* Theme-Aware Terminal Badge */
    .theme-terminal-badge {
      background-color: rgba(0, 0, 0, 0.55);
      border: 1px solid rgba(var(--glow-rgb), 0.28);
      box-shadow: 0 0 10px rgba(var(--glow-rgb), 0.08);
      transition: all 0.25s ease;
    }
    .theme-terminal-badge:hover {
      border-color: rgba(var(--glow-rgb), 0.6) !important;
      box-shadow: 0 0 16px rgba(var(--glow-rgb), 0.3) !important;
    }

    /* Theme-Aware Expand/Collapse Button */
    .theme-expand-btn {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(var(--glow-rgb), 0.28);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 10px rgba(var(--glow-rgb), 0.08);
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .theme-expand-btn:hover {
      background: rgba(var(--glow-rgb), 0.12) !important;
      border-color: rgba(var(--glow-rgb), 0.65) !important;
      box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.7), 0 0 22px rgba(var(--glow-rgb), 0.35) !important;
      color: #ffffff !important;
      transform: translateY(-1px);
    }

    /* Custom Range Slider (Anti-clipping & Theme-Aware) */
    input[type=range] {
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      background: transparent;
      --range-color: rgb(var(--glow-rgb));
      --range-progress: 40%;
      height: 22px;
      margin: 0;
      padding: 0;
      cursor: pointer;
      display: flex;
      align-items: center;
      overflow: visible !important;
    }
    input[type=range]::-webkit-slider-thumb {
      -webkit-appearance: none;
      height: 12px;
      width: 12px;
      border-radius: 50%;
      background: #ffffff;
      border: 2px solid var(--range-color);
      cursor: pointer;
      box-shadow: 0 0 10px var(--range-color), 0 0 4px rgba(0,0,0,0.5);
      margin-top: -4px;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    input[type=range]::-webkit-slider-thumb:hover {
      transform: scale(1.25);
      box-shadow: 0 0 14px var(--range-color), 0 0 6px rgba(0,0,0,0.6);
    }
    input[type=range]::-webkit-slider-runnable-track {
      width: 100%;
      height: 4px;
      cursor: pointer;
      background: linear-gradient(to right, var(--range-color) var(--range-progress), rgba(255, 255, 255, 0.2) var(--range-progress));
      border-radius: 2px;
    }
    #bgm-progress {
      --range-color: rgb(var(--glow-rgb));
      --range-progress: 0%;
      height: 22px;
    }
    #bgm-progress::-webkit-slider-thumb {
      height: 14px;
      width: 14px;
      margin-top: -5px;
      background: #ffffff;
      border: 2px solid var(--range-color);
      box-shadow: 0 0 12px var(--range-color), 0 0 4px rgba(0,0,0,0.5);
    }

    /* Custom scrollbar */
    ::-webkit-scrollbar {
      width: 6px;
    }

    /* =============================================
       TRACK NAME, NUMBER & COVER SWITCH ANIMATION
    ============================================= */

    /* Song title: sweeps in from left with a blur flash */
    @keyframes trackNameIn {
      0%   { opacity: 0; transform: translateX(-14px) skewX(-4deg); filter: blur(6px) brightness(1.6); }
      55%  { opacity: 1; transform: translateX(2px)  skewX(1deg);  filter: blur(0px)  brightness(1.15); }
      100% { opacity: 1; transform: translateX(0)    skewX(0deg);  filter: blur(0px)  brightness(1); }
    }

    /* Compact track name: soft fade + slide */
    @keyframes compactTrackFlash {
      0%   { opacity: 0; transform: translateX(-10px); filter: blur(4px) brightness(1.5); }
      60%  { opacity: 1; transform: translateX(1px);  filter: blur(0px)  brightness(1.1); }
      100% { opacity: 1; transform: translateX(0);    filter: blur(0px)  brightness(1); }
    }

    /* Cover: scale up from 0.85 with a glow flash */
    @keyframes coverPopIn {
      0%   { opacity: 0; transform: scale(0.82) rotate(-4deg); filter: blur(6px) brightness(1.8); }
      60%  { opacity: 1; transform: scale(1.05) rotate(0.5deg); filter: blur(0)   brightness(1.15); }
      100% { opacity: 1; transform: scale(1)    rotate(0deg);  filter: blur(0)    brightness(1); }
    }

    /* Number roll — next track: sweeps up */
    @keyframes rollUpOut {
      0%   { transform: translateY(0);    opacity: 1; filter: blur(0); }
      100% { transform: translateY(-16px); opacity: 0; filter: blur(3px); }
    }
    @keyframes rollUpIn {
      0%   { transform: translateY(16px); opacity: 0; filter: blur(3px); }
      100% { transform: translateY(0);    opacity: 1; filter: blur(0); }
    }
    /* Number roll — prev track: sweeps down */
    @keyframes rollDownOut {
      0%   { transform: translateY(0);   opacity: 1; filter: blur(0); }
      100% { transform: translateY(16px); opacity: 0; filter: blur(3px); }
    }
    @keyframes rollDownIn {
      0%   { transform: translateY(-16px); opacity: 0; filter: blur(3px); }
      100% { transform: translateY(0);     opacity: 1; filter: blur(0); }
    }

    .track-name-animate {
      animation: trackNameIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
      will-change: transform, opacity, filter;
    }
    .compact-track-animate {
      animation: compactTrackFlash 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
      will-change: transform, opacity, filter;
    }
    .cover-animate {
      animation: coverPopIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
      will-change: transform, opacity, filter;
    }
    .roll-out      { animation: rollUpOut   0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
    .roll-in       { animation: rollUpIn    0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
    .roll-down-out { animation: rollDownOut 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
    .roll-down-in  { animation: rollDownIn  0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards; }


    /* =============================================
       PLAYLIST & SETTINGS OVERLAY MENUS (INSIDE MUSIC PLAYER)
    ============================================= */
    #playlist-menu, #settings-menu {
      position: absolute !important;
      inset: 0 !important;
      width: 100% !important;
      height: 100% !important;
      border-radius: 1.25rem !important;
      background: rgba(10, 14, 23, 0.94) !important;
      backdrop-filter: blur(32px) saturate(190%) !important;
      -webkit-backdrop-filter: blur(32px) saturate(190%) !important;
      border: 1px solid rgba(255, 255, 255, 0.15) !important;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85),
                  0 0 0 1px rgba(var(--glow-rgb), 0.25),
                  0 0 25px rgba(var(--glow-rgb), 0.18) !important;
      z-index: 35 !important;
      transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                  transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
      will-change: opacity, transform;
    }

    #playlist-menu.menu-hidden, #settings-menu.menu-hidden {
      opacity: 0 !important;
      pointer-events: none !important;
      transform: translateY(10px) scale(0.97) !important;
    }

    #playlist-menu.menu-visible, #settings-menu.menu-visible {
      opacity: 1 !important;
      pointer-events: auto !important;
      transform: translateY(0px) scale(1) !important;
    }

    @keyframes playlistItemCascade {
      0% {
        opacity: 0;
        transform: translateY(8px) translateX(-6px);
        filter: blur(3px);
      }
      100% {
        opacity: 1;
        transform: translateY(0) translateX(0);
        filter: blur(0);
      }
    }

    .playlist-item {
      position: relative;
      border-left: 3px solid transparent;
      transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
      cursor: pointer;
    }

    #playlist-menu.menu-visible .playlist-item {
      animation: playlistItemCascade 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    #playlist-menu.menu-visible .playlist-item:nth-child(1) { animation-delay: 0.02s; }
    #playlist-menu.menu-visible .playlist-item:nth-child(2) { animation-delay: 0.05s; }
    #playlist-menu.menu-visible .playlist-item:nth-child(3) { animation-delay: 0.08s; }
    #playlist-menu.menu-visible .playlist-item:nth-child(4) { animation-delay: 0.11s; }
    #playlist-menu.menu-visible .playlist-item:nth-child(5) { animation-delay: 0.14s; }
    #playlist-menu.menu-visible .playlist-item:nth-child(6) { animation-delay: 0.17s; }
    #playlist-menu.menu-visible .playlist-item:nth-child(7) { animation-delay: 0.20s; }
    #playlist-menu.menu-visible .playlist-item:nth-child(8) { animation-delay: 0.23s; }
    #playlist-menu.menu-visible .playlist-item:nth-child(9) { animation-delay: 0.26s; }

    .playlist-item:hover {
      background: rgba(var(--glow-rgb), 0.18) !important;
      border-left-color: rgb(var(--glow-rgb)) !important;
      color: #ffffff !important;
      padding-left: 0.85rem !important;
      transform: translateX(2px);
    }

    .playlist-item.active {
      background: rgba(var(--glow-rgb), 0.28) !important;
      border-left-color: rgb(var(--glow-rgb)) !important;
      color: #ffffff !important;
      font-weight: 700 !important;
      box-shadow: 0 0 16px rgba(var(--glow-rgb), 0.25);
    }

    #btn-playlist-toggle {
      transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
    }
    #btn-playlist-toggle:hover {
      transform: scale(1.22);
      color: rgb(var(--glow-rgb)) !important;
    }
    /* No active shrink on playlist toggle */

    /* Vinyl Disc Spin Animation */
    @keyframes discSpin {
      from { transform: rotate(0deg); }
      to   { transform: rotate(360deg); }
    }
    .animate-disc-spin {
      animation: discSpin 3s linear infinite;
      animation-play-state: paused;
    }
    .animate-disc-spin.is-playing {
      animation-play-state: running;
    }

    /* =============================================
       MUSIC PLAYER — PREMIUM EXPAND/COMPACT ANIMS
    ============================================= */

    /* Container hover lift when compact */
    #bgm-player-container.compact:hover {
      transform: translateY(-2px) scale(1.015);
      border-color: rgba(255,255,255,0.22) !important;
      box-shadow: 0 8px 32px -4px rgba(0,0,0,0.7), 0 0 0 1px rgba(var(--glow-rgb),0.18), 0 0 18px rgba(var(--glow-rgb), 0.15) !important;
    }
    /* No active shrink — makes hitting buttons easier */

    /* Compact UI — staggered fade-in when returning from expanded */
    @keyframes compactReveal {
      0%   { opacity: 0; transform: translateX(-8px) scale(0.96); filter: blur(3px); }
      100% { opacity: 1; transform: translateX(0) scale(1);       filter: blur(0); }
    }
    #compact-ui.reveal {
      animation: compactReveal 0.38s cubic-bezier(0.16,1,0.3,1) both;
    }

    /* Expanded UI — staggered children fade down */
    @keyframes expandedChildIn {
      0%   { opacity: 0; transform: translateY(10px); filter: blur(4px); }
      100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
    }
    #expanded-ui > * {
      animation: none;
    }
    #expanded-ui.animating > *:nth-child(1) { animation: expandedChildIn 0.35s 0.05s cubic-bezier(0.16,1,0.3,1) both; }
    #expanded-ui.animating > *:nth-child(2) { animation: expandedChildIn 0.35s 0.11s cubic-bezier(0.16,1,0.3,1) both; }
    #expanded-ui.animating > *:nth-child(3) { animation: expandedChildIn 0.35s 0.17s cubic-bezier(0.16,1,0.3,1) both; }
    #expanded-ui.animating > *:nth-child(4) { animation: expandedChildIn 0.35s 0.22s cubic-bezier(0.16,1,0.3,1) both; }
    #expanded-ui.animating > *:nth-child(5) { animation: expandedChildIn 0.35s 0.27s cubic-bezier(0.16,1,0.3,1) both; }

    /* Play button in expanded — pulse glow on hover */
    #bgm-toggle-expanded {
      transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
    }
    #bgm-toggle-expanded:hover {
      transform: scale(1.13) !important;
      box-shadow: 0 0 22px rgba(var(--glow-rgb), 0.55), 0 0 6px rgba(var(--glow-rgb), 0.35) !important;
    }
    /* No active shrink on expanded play button */

    /* Prev/Next buttons bounce-spring on hover */
    #btn-prev, #btn-next {
      transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), color 0.18s ease;
    }
    #btn-prev:hover  { transform: scale(1.25) translateX(-2px); }
    #btn-next:hover  { transform: scale(1.25) translateX(2px); }
    /* No active shrink on prev/next */

    /* Close button spin-in on hover */
    #btn-close-expanded {
      transition: background 0.18s ease, transform 0.22s cubic-bezier(0.34,1.56,0.64,1), color 0.18s ease;
    }
    #btn-close-expanded:hover {
      transform: rotate(90deg) scale(1.15);
      background: rgba(var(--glow-rgb),0.18) !important;
      color: rgb(var(--glow-rgb)) !important;
    }

    /* Compact play button spring */
    #bgm-toggle-compact {
      transition: background 0.18s ease, transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
    }
    #bgm-toggle-compact:hover { transform: scale(1.2); }
    /* No active shrink on compact play */


    #bgm-progress {
      filter: drop-shadow(0 0 6px var(--range-color));
    }
    ::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.4);
    }
    ::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.25);
      border-radius: 3px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: rgba(255, 255, 255, 0.45);
    }

    /* =============================================
       SPA PHOTOS PANEL
    ============================================= */
    #photos-panel {
      position: fixed;
      inset: 0;
      z-index: 200;
      background: #060608;
      overflow-y: auto;
      transform: translateX(100%);
      transition: none;
      pointer-events: none;
    }

    #photos-panel.panel-visible {
      transform: translateX(0);
      pointer-events: all;
    }

    #photos-panel .panel-header {
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(18px);
      background: rgba(6, 8, 11, 0.85);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      padding: 1.25rem 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    #photos-panel .panel-nav-link {
      color: rgba(255,255,255,0.7);
      font-family: var(--font-mono);
      font-size: 0.7rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      font-weight: 700;
      text-decoration: none;
      transition: color 0.2s;
    }

    #photos-panel .panel-nav-link:hover,
    #photos-panel .panel-nav-link.active { color: #fff; }

    #photos-panel .photo-card {
      background: rgba(12, 14, 19, 0.78);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 24px;
      overflow: hidden;
      box-shadow: 0 35px 90px -72px rgba(0,0,0,0.9);
      transition: transform 0.35s ease, border-color 0.35s ease;
    }

    #photos-panel .photo-card:hover {
      transform: translateY(-6px);
      border-color: rgba(var(--glow-rgb), 0.4);
    }

    #photos-panel .photo-card img {
      width: 100%;
      height: 18rem;
      object-fit: cover;
      transition: transform 0.45s ease;
      display: block;
    }

    #photos-panel .photo-card:hover img { transform: scale(1.04); }

    #photos-panel .photo-meta {
      display: grid;
      gap: 0.6rem;
      padding: 1rem;
      background: rgba(8,10,15,0.88);
      border-top: 1px solid rgba(255,255,255,0.06);
    }

    #photos-panel .photo-meta span {
      color: rgba(203,213,225,0.86);
      font-size: 0.72rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-family: var(--font-mono);
    }

    #photos-panel .photo-meta h3 {
      margin: 0;
      font-size: 0.95rem;
      font-weight: 700;
      color: #f8fafc;
      line-height: 1.25;
    }

    #photos-panel .photo-meta p {
      margin: 0;
      color: rgba(203,213,225,0.75);
      font-size: 0.88rem;
    }

    #photos-panel .panel-badge {
      display: inline-flex;
      align-items: center;
      padding: 0.4rem 0.8rem;
      border-radius: 999px;
      background: rgba(255,255,255,0.06);
      color: #f8fafc;
      font-size: 0.7rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      font-family: var(--font-mono);
    }

    #photos-panel .panel-back-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      color: rgba(226,232,240,0.74);
      font-family: var(--font-mono);
      font-size: 0.7rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      background: none;
      border: none;
      cursor: pointer;
      transition: color 0.2s;
      padding: 0;
    }

    #photos-panel .panel-back-btn:hover { color: #f8fafc; }

    #photos-panel .panel-hero-title {
      font-family: var(--font-logo);
      letter-spacing: -0.03em;
      font-size: clamp(2rem, 4vw, 3.5rem);
      line-height: 0.96;
      margin: 0;
      color: #f8fafc;
    }

    /* =============================================
       GRASS THEME OVERRIDES (Theme asset/Wavy Grass 4K60FPS.mp4)
    ============================================= */
    body.theme-grass .text-rose-300 { color: #6ee7b7 !important; /* emerald-300 */ }
    body.theme-grass .text-rose-400 { color: #34d399 !important; /* emerald-400 */ }
    body.theme-grass .text-rose-500 { color: #10b981 !important; /* emerald-500 */ }
    body.theme-grass .bg-rose-400 { background-color: #34d399 !important; }
    body.theme-grass .bg-rose-500 { background-color: #10b981 !important; }
    body.theme-grass .border-rose-500 { border-color: #10b981 !important; }
    body.theme-grass .from-rose-500 { --tw-gradient-from: #10b981 var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(16, 185, 129, 0)) !important; }
    body.theme-grass .to-rose-600 { --tw-gradient-to: #059669 var(--tw-gradient-to-position) !important; }
    body.theme-grass .to-purple-500 { --tw-gradient-to: #059669 var(--tw-gradient-to-position) !important; } /* Fix for play button gradient end */
    body.theme-grass .shadow-\[0_0_15px_rgba\(244\,63\,94\,0\.5\)\] { box-shadow: 0 0 15px rgba(16, 185, 129, 0.5) !important; }
    body.theme-grass .bg-rose-500\/20 { background-color: rgba(16, 185, 129, 0.2) !important; }
    body.theme-grass .bg-rose-500\/10, body.theme-grass #version-link, body.theme-grass .version-badge { background-color: rgba(16, 185, 129, 0.12) !important; color: #34d399 !important; border-color: rgba(16, 185, 129, 0.3) !important; }
    body.theme-grass .border-rose-500\/20 { border-color: rgba(16, 185, 129, 0.3) !important; }
    body.theme-grass .hover\:bg-rose-500\/25:hover, body.theme-grass #version-link:hover, body.theme-grass .version-badge:hover { background-color: rgba(16, 185, 129, 0.25) !important; }
    body.theme-grass .hover\:border-rose-500\/40:hover, body.theme-grass #version-link:hover, body.theme-grass .version-badge:hover { border-color: rgba(16, 185, 129, 0.5) !important; }
    body.theme-grass .hover\:shadow-\[0_0_12px_rgba\(244\,63\,94\,0\.4\)\]:hover, body.theme-grass #version-link:hover, body.theme-grass .version-badge:hover { box-shadow: 0 0 12px rgba(16, 185, 129, 0.45) !important; }
    body.theme-grass .group-hover\:text-rose-400:hover { color: #34d399 !important; }
    body.theme-grass .hover\:text-rose-400:hover { color: #34d399 !important; }
    body.theme-grass .focus\:border-rose-500:focus { border-color: #10b981 !important; }
    
    body.theme-grass #wipe-overlay .wipe-panel:nth-child(1) { background: #10b981 !important; } /* emerald */
    body.theme-grass #wipe-overlay .wipe-panel:nth-child(2) { background: #84cc16 !important; } /* lime */
    body.theme-grass #wipe-overlay .wipe-panel:nth-child(3) { background: #22c55e !important; } /* green */
    
    body.theme-grass input[type=range] { --range-color: #10b981 !important; }
    body.theme-grass input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 10px rgba(16, 185, 129, 0.6) !important; }
    body.theme-grass #bgm-toggle-expanded { background-image: linear-gradient(to top right, #10b981, #84cc16) !important; box-shadow: 0 0 12px rgba(16, 185, 129, 0.4) !important; }
    body.theme-grass #bgm-toggle-expanded:hover { box-shadow: 0 0 22px rgba(16, 185, 129, 0.75) !important; }

    /* =============================================
       KLEE THEME OVERRIDES (Theme asset/KleeWP.mp4)
    ============================================= */
    body.theme-klee .text-rose-300 { color: #fdba74 !important; /* orange-300 */ }
    body.theme-klee .text-rose-400 { color: #fb923c !important; /* orange-400 */ }
    body.theme-klee .text-rose-500 { color: #ef4444 !important; /* red-500 */ }
    body.theme-klee .bg-rose-400 { background-color: #fb923c !important; }
    body.theme-klee .bg-rose-500 { background-color: #ef4444 !important; }
    body.theme-klee .border-rose-500 { border-color: #ef4444 !important; }
    body.theme-klee .from-rose-500 { --tw-gradient-from: #ef4444 var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 68, 68, 0)) !important; }
    body.theme-klee .to-rose-600 { --tw-gradient-to: #dc2626 var(--tw-gradient-to-position) !important; }
    body.theme-klee .to-purple-500 { --tw-gradient-to: #ea580c var(--tw-gradient-to-position) !important; } /* Fix for play button gradient end */
    body.theme-klee .shadow-\[0_0_15px_rgba\(244\,63\,94\,0\.5\)\] { box-shadow: 0 0 15px rgba(239, 68, 68, 0.5) !important; }
    body.theme-klee .bg-rose-500\/20 { background-color: rgba(239, 68, 68, 0.2) !important; }
    body.theme-klee .bg-rose-500\/10, body.theme-klee #version-link, body.theme-klee .version-badge { background-color: rgba(239, 68, 68, 0.12) !important; color: #fb923c !important; border-color: rgba(239, 68, 68, 0.3) !important; }
    body.theme-klee .border-rose-500\/20 { border-color: rgba(239, 68, 68, 0.3) !important; }
    body.theme-klee .hover\:bg-rose-500\/25:hover, body.theme-klee #version-link:hover, body.theme-klee .version-badge:hover { background-color: rgba(239, 68, 68, 0.25) !important; }
    body.theme-klee .hover\:border-rose-500\/40:hover, body.theme-klee #version-link:hover, body.theme-klee .version-badge:hover { border-color: rgba(239, 68, 68, 0.5) !important; }
    body.theme-klee .hover\:shadow-\[0_0_12px_rgba\(244\,63\,94\,0\.4\)\]:hover, body.theme-klee #version-link:hover, body.theme-klee .version-badge:hover { box-shadow: 0 0 12px rgba(239, 68, 68, 0.45) !important; }
    body.theme-klee .group-hover\:text-rose-400:hover { color: #fb923c !important; }
    body.theme-klee .hover\:text-rose-400:hover { color: #fb923c !important; }
    body.theme-klee .focus\:border-rose-500:focus { border-color: #ef4444 !important; }
    
    body.theme-klee #wipe-overlay .wipe-panel:nth-child(1) { background: #ef4444 !important; } /* red */
    body.theme-klee #wipe-overlay .wipe-panel:nth-child(2) { background: #f97316 !important; } /* orange */
    body.theme-klee #wipe-overlay .wipe-panel:nth-child(3) { background: #fbbf24 !important; } /* amber */
    
    body.theme-klee input[type=range] { --range-color: #ef4444 !important; }
    body.theme-klee input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 10px rgba(239, 68, 68, 0.6) !important; }
    body.theme-klee #bgm-toggle-expanded { background-image: linear-gradient(to top right, #ef4444, #f97316) !important; box-shadow: 0 0 12px rgba(239, 68, 68, 0.4) !important; }
    body.theme-klee #bgm-toggle-expanded:hover { box-shadow: 0 0 22px rgba(239, 68, 68, 0.75) !important; }

    /* =============================================
       PORSCHE THEME OVERRIDES (Theme asset/porsh hd.mp4)
    ============================================= */
    body.theme-porsche .text-rose-300 { color: #7dd3fc !important; /* sky-300 */ }
    body.theme-porsche .text-rose-400 { color: #38bdf8 !important; /* sky-400 */ }
    body.theme-porsche .text-rose-500 { color: #0ea5e9 !important; /* sky-500 */ }
    body.theme-porsche .bg-rose-400 { background-color: #38bdf8 !important; }
    body.theme-porsche .bg-rose-500 { background-color: #0ea5e9 !important; }
    body.theme-porsche .border-rose-500 { border-color: #0ea5e9 !important; }
    body.theme-porsche .from-rose-500 { --tw-gradient-from: #0ea5e9 var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(14, 165, 233, 0)) !important; }
    body.theme-porsche .to-rose-600 { --tw-gradient-to: #0284c7 var(--tw-gradient-to-position) !important; }
    body.theme-porsche .to-purple-500 { --tw-gradient-to: #0369a1 var(--tw-gradient-to-position) !important; } /* Fix for play button gradient end */
    body.theme-porsche .shadow-\[0_0_15px_rgba\(244\,63\,94\,0\.5\)\] { box-shadow: 0 0 15px rgba(14, 165, 233, 0.5) !important; }
    body.theme-porsche .bg-rose-500\/20 { background-color: rgba(14, 165, 233, 0.2) !important; }
    body.theme-porsche .bg-rose-500\/10, body.theme-porsche #version-link, body.theme-porsche .version-badge { background-color: rgba(14, 165, 233, 0.12) !important; color: #38bdf8 !important; border-color: rgba(14, 165, 233, 0.3) !important; }
    body.theme-porsche .border-rose-500\/20 { border-color: rgba(14, 165, 233, 0.3) !important; }
    body.theme-porsche .hover\:bg-rose-500\/25:hover, body.theme-porsche #version-link:hover, body.theme-porsche .version-badge:hover { background-color: rgba(14, 165, 233, 0.25) !important; }
    body.theme-porsche .hover\:border-rose-500\/40:hover, body.theme-porsche #version-link:hover, body.theme-porsche .version-badge:hover { border-color: rgba(14, 165, 233, 0.5) !important; }
    body.theme-porsche .hover\:shadow-\[0_0_12px_rgba\(244\,63\,94\,0\.4\)\]:hover, body.theme-porsche #version-link:hover, body.theme-porsche .version-badge:hover { box-shadow: 0 0 12px rgba(14, 165, 233, 0.45) !important; }
    body.theme-porsche .group-hover\:text-rose-400:hover { color: #38bdf8 !important; }
    body.theme-porsche .hover\:text-rose-400:hover { color: #38bdf8 !important; }
    body.theme-porsche .focus\:border-rose-500:focus { border-color: #0ea5e9 !important; }
    
    body.theme-porsche #wipe-overlay .wipe-panel:nth-child(1) { background: #0ea5e9 !important; } /* sky blue */
    body.theme-porsche #wipe-overlay .wipe-panel:nth-child(2) { background: #3b82f6 !important; } /* blue */
    body.theme-porsche #wipe-overlay .wipe-panel:nth-child(3) { background: #06b6d4 !important; } /* cyan */
    
    body.theme-porsche input[type=range] { --range-color: #0ea5e9 !important; }
    body.theme-porsche input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 10px rgba(14, 165, 233, 0.6) !important; }
    body.theme-porsche #bgm-toggle-expanded { background-image: linear-gradient(to top right, #0ea5e9, #3b82f6) !important; box-shadow: 0 0 12px rgba(14, 165, 233, 0.4) !important; }
    body.theme-porsche #bgm-toggle-expanded:hover { box-shadow: 0 0 22px rgba(14, 165, 233, 0.75) !important; }

    /* =============================================
       NIGHT THEME OVERRIDES (Theme asset/noire_night_v2.mp4) - Dark Gray / Slate / Silver
    ============================================= */
    body.theme-night .text-rose-300 { color: #cbd5e1 !important; /* slate-300 */ }
    body.theme-night .text-rose-400 { color: #94a3b8 !important; /* slate-400 */ }
    body.theme-night .text-rose-500 { color: #64748b !important; /* slate-500 */ }
    body.theme-night .bg-rose-400 { background-color: #94a3b8 !important; }
    body.theme-night .bg-rose-500 { background-color: #64748b !important; }
    body.theme-night .border-rose-500 { border-color: #64748b !important; }
    body.theme-night .from-rose-500 { --tw-gradient-from: #64748b var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(100, 116, 139, 0)) !important; }
    body.theme-night .to-rose-600 { --tw-gradient-to: #475569 var(--tw-gradient-to-position) !important; }
    body.theme-night .to-purple-500 { --tw-gradient-to: #334155 var(--tw-gradient-to-position) !important; } /* Fix for play button gradient end */
    body.theme-night .shadow-[0_0_15px_rgba(244,63,94,0.5)] { box-shadow: 0 0 15px rgba(148, 163, 184, 0.5) !important; }
    body.theme-night .bg-rose-500\/20 { background-color: rgba(148, 163, 184, 0.2) !important; }
    body.theme-night .bg-rose-500\/10, body.theme-night #version-link, body.theme-night .version-badge { background-color: rgba(148, 163, 184, 0.15) !important; color: #cbd5e1 !important; border-color: rgba(148, 163, 184, 0.3) !important; }
    body.theme-night .border-rose-500\/20, body.theme-night .border-rose-500\/10, body.theme-night .border-rose-500\/25, body.theme-night .border-rose-500\/30 { border-color: rgba(148, 163, 184, 0.3) !important; }
    body.theme-night .bg-rose-500\/\[0\.04\] { background-color: rgba(148, 163, 184, 0.05) !important; }
    body.theme-night .hover\:bg-rose-500\/25:hover, body.theme-night #version-link:hover, body.theme-night .version-badge:hover { background-color: rgba(148, 163, 184, 0.28) !important; }
    body.theme-night .hover\:border-rose-500\/40:hover, body.theme-night #version-link:hover, body.theme-night .version-badge:hover { border-color: rgba(148, 163, 184, 0.55) !important; }
    body.theme-night .hover\:shadow-\[0_0_12px_rgba\(244\,63\,94\,0\.4\)\]:hover, body.theme-night #version-link:hover, body.theme-night .version-badge:hover { box-shadow: 0 0 12px rgba(148, 163, 184, 0.45) !important; }
    body.theme-night .group\:hover .group-hover\:text-rose-400 { color: #cbd5e1 !important; }
    body.theme-night .hover\:text-rose-400:hover { color: #cbd5e1 !important; }
    body.theme-night .focus\:border-rose-500:focus { border-color: #94a3b8 !important; }
    
    body.theme-night #wipe-overlay .wipe-panel:nth-child(1) { background: #334155 !important; } /* slate-700 */
    body.theme-night #wipe-overlay .wipe-panel:nth-child(2) { background: #475569 !important; } /* slate-600 */
    body.theme-night #wipe-overlay .wipe-panel:nth-child(3) { background: #64748b !important; } /* slate-500 */
    
    body.theme-night input[type=range] { --range-color: #94a3b8 !important; }
    body.theme-night input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 10px rgba(148, 163, 184, 0.6) !important; }
    body.theme-night #bgm-toggle-expanded { background-image: linear-gradient(to top right, #64748b, #334155) !important; box-shadow: 0 0 12px rgba(148, 163, 184, 0.4) !important; }
    body.theme-night #bgm-toggle-expanded:hover { box-shadow: 0 0 22px rgba(148, 163, 184, 0.75) !important; }

    /* =============================================
       ARISU THEME OVERRIDES (Theme asset/Arisuwallpaper.mp4) - Electric Cyan & Indigo
    ============================================= */
    body.theme-arisu .text-rose-300 { color: #7dd3fc !important; }
    body.theme-arisu .text-rose-400 { color: #38bdf8 !important; }
    body.theme-arisu .text-rose-500 { color: #0284c7 !important; }
    body.theme-arisu .bg-rose-400 { background-color: #38bdf8 !important; }
    body.theme-arisu .bg-rose-500 { background-color: #0ea5e9 !important; }
    body.theme-arisu .border-rose-500 { border-color: #38bdf8 !important; }
    body.theme-arisu .from-rose-500 { --tw-gradient-from: #38bdf8 var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(56, 189, 248, 0)) !important; }
    body.theme-arisu .to-rose-600 { --tw-gradient-to: #0284c7 var(--tw-gradient-to-position) !important; }
    body.theme-arisu .to-purple-500 { --tw-gradient-to: #6366f1 var(--tw-gradient-to-position) !important; }
    body.theme-arisu .shadow-[0_0_15px_rgba(244,63,94,0.5)] { box-shadow: 0 0 15px rgba(56, 189, 248, 0.5) !important; }
    body.theme-arisu .bg-rose-500\/20 { background-color: rgba(56, 189, 248, 0.2) !important; }
    body.theme-arisu .bg-rose-500\/10, body.theme-arisu #version-link, body.theme-arisu .version-badge { background-color: rgba(56, 189, 248, 0.12) !important; color: #7dd3fc !important; border-color: rgba(56, 189, 248, 0.3) !important; }
    body.theme-arisu .border-rose-500\/20, body.theme-arisu .border-rose-500\/10, body.theme-arisu .border-rose-500\/25, body.theme-arisu .border-rose-500\/30 { border-color: rgba(56, 189, 248, 0.3) !important; }
    body.theme-arisu .bg-rose-500\/\[0\.04\] { background-color: rgba(56, 189, 248, 0.05) !important; }
    body.theme-arisu .hover\:bg-rose-500\/25:hover, body.theme-arisu #version-link:hover, body.theme-arisu .version-badge:hover { background-color: rgba(56, 189, 248, 0.25) !important; }
    body.theme-arisu .hover\:border-rose-500\/40:hover, body.theme-arisu #version-link:hover, body.theme-arisu .version-badge:hover { border-color: rgba(56, 189, 248, 0.5) !important; }
    body.theme-arisu .hover\:shadow-\[0_0_12px_rgba\(244\,63\,94\,0\.4\)\]:hover, body.theme-arisu #version-link:hover, body.theme-arisu .version-badge:hover { box-shadow: 0 0 12px rgba(56, 189, 248, 0.45) !important; }
    body.theme-arisu .group\:hover .group-hover\:text-rose-400 { color: #38bdf8 !important; }
    body.theme-arisu .hover\:text-rose-400:hover { color: #38bdf8 !important; }
    body.theme-arisu .focus\:border-rose-500:focus { border-color: #38bdf8 !important; }
    body.theme-arisu #wipe-overlay .wipe-panel:nth-child(1) { background: #38bdf8 !important; }
    body.theme-arisu #wipe-overlay .wipe-panel:nth-child(2) { background: #818cf8 !important; }
    body.theme-arisu #wipe-overlay .wipe-panel:nth-child(3) { background: #6366f1 !important; }
    body.theme-arisu input[type=range] { --range-color: #38bdf8 !important; }
    body.theme-arisu input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 10px rgba(56, 189, 248, 0.6) !important; }
    body.theme-arisu #bgm-toggle-expanded { background-image: linear-gradient(to top right, #38bdf8, #6366f1) !important; box-shadow: 0 0 12px rgba(56, 189, 248, 0.4) !important; }
    body.theme-arisu #bgm-toggle-expanded:hover { box-shadow: 0 0 22px rgba(56, 189, 248, 0.75) !important; }

    /* =============================================
       GAWR GURA THEME OVERRIDES (Theme asset/Gawgura.mp4) - Ocean Cyan & Royal Blue
    ============================================= */
    body.theme-gura .text-rose-300 { color: #67e8f9 !important; }
    body.theme-gura .text-rose-400 { color: #06b6d4 !important; }
    body.theme-gura .text-rose-500 { color: #0891b2 !important; }
    body.theme-gura .bg-rose-400 { background-color: #06b6d4 !important; }
    body.theme-gura .bg-rose-500 { background-color: #0891b2 !important; }
    body.theme-gura .border-rose-500 { border-color: #06b6d4 !important; }
    body.theme-gura .from-rose-500 { --tw-gradient-from: #06b6d4 var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(6, 182, 212, 0)) !important; }
    body.theme-gura .to-rose-600 { --tw-gradient-to: #0891b2 var(--tw-gradient-to-position) !important; }
    body.theme-gura .to-purple-500 { --tw-gradient-to: #2563eb var(--tw-gradient-to-position) !important; }
    body.theme-gura .shadow-[0_0_15px_rgba(244,63,94,0.5)] { box-shadow: 0 0 15px rgba(6, 182, 212, 0.5) !important; }
    body.theme-gura .bg-rose-500\/20 { background-color: rgba(6, 182, 212, 0.2) !important; }
    body.theme-gura .bg-rose-500\/10, body.theme-gura #version-link, body.theme-gura .version-badge { background-color: rgba(6, 182, 212, 0.12) !important; color: #67e8f9 !important; border-color: rgba(6, 182, 212, 0.3) !important; }
    body.theme-gura .border-rose-500\/20, body.theme-gura .border-rose-500\/10, body.theme-gura .border-rose-500\/25, body.theme-gura .border-rose-500\/30 { border-color: rgba(6, 182, 212, 0.3) !important; }
    body.theme-gura .bg-rose-500\/\[0\.04\] { background-color: rgba(6, 182, 212, 0.05) !important; }
    body.theme-gura .hover\:bg-rose-500\/25:hover, body.theme-gura #version-link:hover, body.theme-gura .version-badge:hover { background-color: rgba(6, 182, 212, 0.25) !important; }
    body.theme-gura .hover\:border-rose-500\/40:hover, body.theme-gura #version-link:hover, body.theme-gura .version-badge:hover { border-color: rgba(6, 182, 212, 0.5) !important; }
    body.theme-gura .hover\:shadow-\[0_0_12px_rgba\(244\,63\,94\,0\.4\)\]:hover, body.theme-gura #version-link:hover, body.theme-gura .version-badge:hover { box-shadow: 0 0 12px rgba(6, 182, 212, 0.45) !important; }
    body.theme-gura .group\:hover .group-hover\:text-rose-400 { color: #22d3ee !important; }
    body.theme-gura .hover\:text-rose-400:hover { color: #22d3ee !important; }
    body.theme-gura .focus\:border-rose-500:focus { border-color: #06b6d4 !important; }
    body.theme-gura #wipe-overlay .wipe-panel:nth-child(1) { background: #06b6d4 !important; }
    body.theme-gura #wipe-overlay .wipe-panel:nth-child(2) { background: #3b82f6 !important; }
    body.theme-gura #wipe-overlay .wipe-panel:nth-child(3) { background: #1d4ed8 !important; }
    body.theme-gura input[type=range] { --range-color: #06b6d4 !important; }
    body.theme-gura input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 10px rgba(6, 182, 212, 0.6) !important; }
    body.theme-gura #bgm-toggle-expanded { background-image: linear-gradient(to top right, #06b6d4, #2563eb) !important; box-shadow: 0 0 12px rgba(6, 182, 212, 0.4) !important; }
    body.theme-gura #bgm-toggle-expanded:hover { box-shadow: 0 0 22px rgba(6, 182, 212, 0.75) !important; }

    /* =============================================
       STEAM GIRL THEME OVERRIDES (Theme asset/Steam girl.mp4) - Cyberpunk Fuchsia & Pink
    ============================================= */
    body.theme-steam-girl .text-rose-300 { color: #f0abfc !important; }
    body.theme-steam-girl .text-rose-400 { color: #d946ef !important; }
    body.theme-steam-girl .text-rose-500 { color: #c026d3 !important; }
    body.theme-steam-girl .bg-rose-400 { background-color: #d946ef !important; }
    body.theme-steam-girl .bg-rose-500 { background-color: #c026d3 !important; }
    body.theme-steam-girl .border-rose-500 { border-color: #d946ef !important; }
    body.theme-steam-girl .from-rose-500 { --tw-gradient-from: #d946ef var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(217, 70, 239, 0)) !important; }
    body.theme-steam-girl .to-rose-600 { --tw-gradient-to: #c026d3 var(--tw-gradient-to-position) !important; }
    body.theme-steam-girl .to-purple-500 { --tw-gradient-to: #ec4899 var(--tw-gradient-to-position) !important; }
    body.theme-steam-girl .shadow-[0_0_15px_rgba(244,63,94,0.5)] { box-shadow: 0 0 15px rgba(217, 70, 239, 0.5) !important; }
    body.theme-steam-girl .bg-rose-500\/20 { background-color: rgba(217, 70, 239, 0.2) !important; }
    body.theme-steam-girl .bg-rose-500\/10, body.theme-steam-girl #version-link, body.theme-steam-girl .version-badge { background-color: rgba(217, 70, 239, 0.12) !important; color: #f0abfc !important; border-color: rgba(217, 70, 239, 0.3) !important; }
    body.theme-steam-girl .border-rose-500\/20, body.theme-steam-girl .border-rose-500\/10, body.theme-steam-girl .border-rose-500\/25, body.theme-steam-girl .border-rose-500\/30 { border-color: rgba(217, 70, 239, 0.3) !important; }
    body.theme-steam-girl .bg-rose-500\/\[0\.04\] { background-color: rgba(217, 70, 239, 0.05) !important; }
    body.theme-steam-girl .hover\:bg-rose-500\/25:hover, body.theme-steam-girl #version-link:hover, body.theme-steam-girl .version-badge:hover { background-color: rgba(217, 70, 239, 0.25) !important; }
    body.theme-steam-girl .hover\:border-rose-500\/40:hover, body.theme-steam-girl #version-link:hover, body.theme-steam-girl .version-badge:hover { border-color: rgba(217, 70, 239, 0.5) !important; }
    body.theme-steam-girl .hover\:shadow-\[0_0_12px_rgba\(244\,63\,94\,0\.4\)\]:hover, body.theme-steam-girl #version-link:hover, body.theme-steam-girl .version-badge:hover { box-shadow: 0 0 12px rgba(217, 70, 239, 0.45) !important; }
    body.theme-steam-girl .group\:hover .group-hover\:text-rose-400 { color: #e879f9 !important; }
    body.theme-steam-girl .hover\:text-rose-400:hover { color: #e879f9 !important; }
    body.theme-steam-girl .focus\:border-rose-500:focus { border-color: #d946ef !important; }
    body.theme-steam-girl #wipe-overlay .wipe-panel:nth-child(1) { background: #d946ef !important; }
    body.theme-steam-girl #wipe-overlay .wipe-panel:nth-child(2) { background: #ec4899 !important; }
    body.theme-steam-girl #wipe-overlay .wipe-panel:nth-child(3) { background: #a855f7 !important; }
    body.theme-steam-girl input[type=range] { --range-color: #d946ef !important; }
    body.theme-steam-girl input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 10px rgba(217, 70, 239, 0.6) !important; }
    body.theme-steam-girl #bgm-toggle-expanded { background-image: linear-gradient(to top right, #d946ef, #ec4899) !important; box-shadow: 0 0 12px rgba(217, 70, 239, 0.4) !important; }
    body.theme-steam-girl #bgm-toggle-expanded:hover { box-shadow: 0 0 22px rgba(217, 70, 239, 0.75) !important; }

    /* =============================================
       SPACEX THEME OVERRIDES (Theme asset/SpaceX.mp4) - Raptor Flame Gold & Fire Red
    ============================================= */
    body.theme-spacex .text-rose-300 { color: #fcd34d !important; }
    body.theme-spacex .text-rose-400 { color: #f59e0b !important; }
    body.theme-spacex .text-rose-500 { color: #d97706 !important; }
    body.theme-spacex .bg-rose-400 { background-color: #f59e0b !important; }
    body.theme-spacex .bg-rose-500 { background-color: #d97706 !important; }
    body.theme-spacex .border-rose-500 { border-color: #f59e0b !important; }
    body.theme-spacex .from-rose-500 { --tw-gradient-from: #f59e0b var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(245, 158, 11, 0)) !important; }
    body.theme-spacex .to-rose-600 { --tw-gradient-to: #ea580c var(--tw-gradient-to-position) !important; }
    body.theme-spacex .to-purple-500 { --tw-gradient-to: #ef4444 var(--tw-gradient-to-position) !important; }
    body.theme-spacex .shadow-[0_0_15px_rgba(244,63,94,0.5)] { box-shadow: 0 0 15px rgba(245, 158, 11, 0.5) !important; }
    body.theme-spacex .bg-rose-500\/20 { background-color: rgba(245, 158, 11, 0.2) !important; }
    body.theme-spacex .bg-rose-500\/10, body.theme-spacex #version-link, body.theme-spacex .version-badge { background-color: rgba(245, 158, 11, 0.12) !important; color: #fcd34d !important; border-color: rgba(245, 158, 11, 0.3) !important; }
    body.theme-spacex .border-rose-500\/20, body.theme-spacex .border-rose-500\/10, body.theme-spacex .border-rose-500\/25, body.theme-spacex .border-rose-500\/30 { border-color: rgba(245, 158, 11, 0.3) !important; }
    body.theme-spacex .bg-rose-500\/\[0\.04\] { background-color: rgba(245, 158, 11, 0.05) !important; }
    body.theme-spacex .hover\:bg-rose-500\/25:hover, body.theme-spacex #version-link:hover, body.theme-spacex .version-badge:hover { background-color: rgba(245, 158, 11, 0.25) !important; }
    body.theme-spacex .hover\:border-rose-500\/40:hover, body.theme-spacex #version-link:hover, body.theme-spacex .version-badge:hover { border-color: rgba(245, 158, 11, 0.5) !important; }
    body.theme-spacex .hover\:shadow-\[0_0_12px_rgba\(244\,63\,94\,0\.4\)\]:hover, body.theme-spacex #version-link:hover, body.theme-spacex .version-badge:hover { box-shadow: 0 0 12px rgba(245, 158, 11, 0.45) !important; }
    body.theme-spacex .group\:hover .group-hover\:text-rose-400 { color: #fbbf24 !important; }
    body.theme-spacex .hover\:text-rose-400:hover { color: #fbbf24 !important; }
    body.theme-spacex .focus\:border-rose-500:focus { border-color: #f59e0b !important; }
    body.theme-spacex #wipe-overlay .wipe-panel:nth-child(1) { background: #f59e0b !important; }
    body.theme-spacex #wipe-overlay .wipe-panel:nth-child(2) { background: #f97316 !important; }
    body.theme-spacex #wipe-overlay .wipe-panel:nth-child(3) { background: #ef4444 !important; }
    body.theme-spacex input[type=range] { --range-color: #f59e0b !important; }
    body.theme-spacex input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 10px rgba(245, 158, 11, 0.6) !important; }
    body.theme-spacex #bgm-toggle-expanded { background-image: linear-gradient(to top right, #f59e0b, #f97316) !important; box-shadow: 0 0 12px rgba(245, 158, 11, 0.4) !important; }
    body.theme-spacex #bgm-toggle-expanded:hover { box-shadow: 0 0 22px rgba(245, 158, 11, 0.75) !important; }

    /* =============================================
       PORTAL 2 THEME OVERRIDES
    ============================================= */
    body.theme-portal .text-rose-300 { color: #7dd3fc !important; }
    body.theme-portal .text-rose-400 { color: #00a2ff !important; }
    body.theme-portal .text-rose-500 { color: #0284c7 !important; }
    body.theme-portal .bg-rose-400 { background-color: #00a2ff !important; }
    body.theme-portal .bg-rose-500 { background-color: #0284c7 !important; }
    body.theme-portal .border-rose-400, body.theme-portal .border-rose-500 { border-color: #00a2ff !important; }
    body.theme-portal .from-rose-500 { --tw-gradient-from: #00a2ff var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 162, 255, 0)) !important; }
    body.theme-portal .to-rose-600 { --tw-gradient-to: #0284c7 var(--tw-gradient-to-position) !important; }
    body.theme-portal .to-purple-500 { --tw-gradient-to: #f59e0b var(--tw-gradient-to-position) !important; }
    body.theme-portal .shadow-[0_0_15px_rgba(244,63,94,0.5)] { box-shadow: 0 0 15px rgba(0, 162, 255, 0.5) !important; }
    body.theme-portal .bg-rose-500\/20 { background-color: rgba(0, 162, 255, 0.2) !important; }
    body.theme-portal .bg-rose-500\/10, body.theme-portal #version-link, body.theme-portal .version-badge { background-color: rgba(0, 162, 255, 0.12) !important; color: #7dd3fc !important; border-color: rgba(0, 162, 255, 0.3) !important; }
    body.theme-portal .border-rose-500\/20, body.theme-portal .border-rose-500\/10, body.theme-portal .border-rose-500\/25, body.theme-portal .border-rose-500\/30 { border-color: rgba(0, 162, 255, 0.3) !important; }
    body.theme-portal .bg-rose-500\/\[0\.04\] { background-color: rgba(0, 162, 255, 0.05) !important; }
    body.theme-portal .hover\:bg-rose-500\/25:hover, body.theme-portal #version-link:hover, body.theme-portal .version-badge:hover { background-color: rgba(0, 162, 255, 0.25) !important; }
    body.theme-portal .hover\:border-rose-500\/40:hover, body.theme-portal #version-link:hover, body.theme-portal .version-badge:hover { border-color: rgba(0, 162, 255, 0.5) !important; }
    body.theme-portal .hover\:shadow-\[0_0_12px_rgba\(244\,63\,94\,0\.4\)\]:hover, body.theme-portal #version-link:hover, body.theme-portal .version-badge:hover { box-shadow: 0 0 12px rgba(0, 162, 255, 0.45) !important; }
    body.theme-portal .group\:hover .group-hover\:text-rose-400 { color: #38bdf8 !important; }
    body.theme-portal .hover\:text-rose-400:hover { color: #38bdf8 !important; }
    body.theme-portal .focus\:border-rose-500:focus { border-color: #00a2ff !important; }
    body.theme-portal .filter-btn.active { background: rgba(0, 162, 255, 0.2) !important; border-color: rgba(0, 162, 255, 0.55) !important; color: #7dd3fc !important; box-shadow: 0 0 15px rgba(0, 162, 255, 0.3) !important; }
    body.theme-portal .theme-badge { background-color: rgba(0, 162, 255, 0.12) !important; color: #7dd3fc !important; border-color: rgba(0, 162, 255, 0.3) !important; }
    body.theme-portal .section-dash, body.theme-portal .theme-dash { background-color: #00a2ff !important; box-shadow: 0 0 10px rgba(0, 162, 255, 0.7) !important; }
    body.theme-portal #wipe-overlay .wipe-panel:nth-child(1) { background: #00a2ff !important; }
    body.theme-portal #wipe-overlay .wipe-panel:nth-child(2) { background: #0ea5e9 !important; }
    body.theme-portal #wipe-overlay .wipe-panel:nth-child(3) { background: #f59e0b !important; }
    body.theme-portal input[type=range] { --range-color: #00a2ff !important; }
    body.theme-portal input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 10px rgba(0, 162, 255, 0.6) !important; }
    body.theme-portal #bgm-toggle-expanded { background-image: linear-gradient(to top right, #00a2ff, #f59e0b) !important; box-shadow: 0 0 12px rgba(0, 162, 255, 0.4) !important; }
    body.theme-portal #bgm-toggle-expanded:hover { box-shadow: 0 0 22px rgba(0, 162, 255, 0.75) !important; }

    /* =============================================
       THEME-AWARE PLAYER CONTROLS & GLOW
    ============================================= */
    body                { --glow-rgb: 244, 63, 94;  --glow-sec-rgb: 168, 85, 247; } /* rose to purple */
    body.theme-grass    { --glow-rgb: 16, 185, 129; --glow-sec-rgb: 132, 204, 22;  } /* emerald to lime */
    body.theme-klee     { --glow-rgb: 239, 68, 68;  --glow-sec-rgb: 249, 115, 22;  } /* red to orange */
    body.theme-porsche  { --glow-rgb: 14, 165, 233; --glow-sec-rgb: 59, 130, 246;  } /* sky to blue */
    body.theme-night    { --glow-rgb: 148, 163, 184;--glow-sec-rgb: 71, 85, 105;   } /* slate to dark slate */
    body.theme-arisu    { --glow-rgb: 56, 189, 248; --glow-sec-rgb: 99, 102, 241;  } /* electric cyan to indigo */
    body.theme-gura     { --glow-rgb: 6, 182, 212;  --glow-sec-rgb: 37, 99, 235;   } /* ocean cyan to deep blue */
    body.theme-steam-girl { --glow-rgb: 217, 70, 239; --glow-sec-rgb: 236, 72, 153; } /* cyber fuchsia to neon pink */
    body.theme-spacex   { --glow-rgb: 245, 158, 11; --glow-sec-rgb: 239, 68, 68;   } /* raptor gold to fire red */
    body.theme-portal   { --glow-rgb: 0, 162, 255;  --glow-sec-rgb: 245, 158, 11;  } /* Wheatley Core Blue to Aperture Amber */

    /* Universal Dynamic Theme Accent Rules */
    
    /* Universal Theme-Aware Version Badge */
    #version-link, .version-badge {
      background-color: rgba(var(--glow-rgb), 0.12) !important;
      color: rgb(var(--glow-rgb)) !important;
      border: 1px solid rgba(var(--glow-rgb), 0.35) !important;
      box-shadow: 0 0 10px rgba(var(--glow-rgb), 0.15) !important;
    }
    #version-link:hover, .version-badge:hover {
      background-color: rgba(var(--glow-rgb), 0.25) !important;
      border-color: rgba(var(--glow-rgb), 0.6) !important;
      color: #ffffff !important;
      box-shadow: 0 0 16px rgba(var(--glow-rgb), 0.5) !important;
    }

    .section-dash, .theme-dash {
      background-color: rgb(var(--glow-rgb)) !important;
      box-shadow: 0 0 10px rgba(var(--glow-rgb), 0.5) !important;
    }
    .theme-text {
      color: rgb(var(--glow-rgb)) !important;
    }
    .theme-badge {
      background-color: rgba(var(--glow-rgb), 0.12) !important;
      color: rgb(var(--glow-rgb)) !important;
      border: 1px solid rgba(var(--glow-rgb), 0.25) !important;
    }
    .theme-music-badge {
      background-color: rgba(var(--glow-rgb), 0.12) !important;
      color: rgb(var(--glow-rgb)) !important;
      border: 1px solid rgba(var(--glow-rgb), 0.3) !important;
    }
    .theme-music-dot {
      background-color: rgb(var(--glow-rgb)) !important;
    }
    .theme-music-live-card {
      background-color: rgba(var(--glow-rgb), 0.08) !important;
      border-color: rgba(var(--glow-rgb), 0.3) !important;
    }
    .theme-music-live-card:hover {
      background-color: rgba(var(--glow-rgb), 0.15) !important;
      border-color: rgba(var(--glow-rgb), 0.5) !important;
    }
    .theme-link {
      color: rgb(var(--glow-rgb)) !important;
      transition: all 0.2s ease;
    }
    .theme-link:hover {
      color: #ffffff !important;
      text-shadow: 0 0 10px rgba(var(--glow-rgb), 0.6);
    }
    .theme-card-hover {
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    
    /* Theme-Aware Game Collection Card Hover Glow */
    .game-card {
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
    }
    .game-card:hover {
      border-color: rgba(var(--glow-rgb), 0.5) !important;
      box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.8), 0 0 25px rgba(var(--glow-rgb), 0.45) !important;
    }

    .theme-card-hover:hover {
      border-color: rgba(var(--glow-rgb), 0.5) !important;
      box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.8), 0 0 24px rgba(var(--glow-rgb), 0.16) !important;
    }
    .theme-card-hover:hover .theme-card-title {
      color: rgb(var(--glow-rgb)) !important;
    }
    .theme-card-hover:hover .theme-card-arrow {
      background-color: rgba(var(--glow-rgb), 0.22) !important;
      color: rgb(var(--glow-rgb)) !important;
      box-shadow: 0 0 12px rgba(var(--glow-rgb), 0.4) !important;
    }

    /* Minimal Premium "View All Photos" Button */
    #view-more-photos {
      border-color: rgba(255, 255, 255, 0.1);
      box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    #view-more-photos:hover {
      border-color: rgba(var(--glow-rgb), 0.45) !important;
      box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(var(--glow-rgb), 0.2) !important;
      transform: translateY(-2px);
    }
    #view-more-photos .btn-dot {
      background-color: rgb(var(--glow-rgb));
      box-shadow: 0 0 6px rgba(var(--glow-rgb), 0.6);
      opacity: 0.75;
    }
    #view-more-photos:hover .btn-dot {
      opacity: 1;
      box-shadow: 0 0 10px rgba(var(--glow-rgb), 0.9);
      transform: scale(1.2);
    }

    /* Theme-aware Recent Track List Items */
    .recent-track-item {
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    .recent-track-item:hover {
      background-color: rgba(var(--glow-rgb), 0.08) !important;
      border-color: rgba(var(--glow-rgb), 0.3) !important;
    }
    .recent-track-item:hover .recent-track-name {
      color: rgb(var(--glow-rgb)) !important;
    }

    /* Fallback theme class overrides for group-hover and Tailwind rose utilities */
    body.theme-grass .hover\:border-rose-400\/50:hover, body.theme-grass .hover\:border-rose-500\/40:hover { border-color: rgba(16, 185, 129, 0.5) !important; box-shadow: 0 0 20px rgba(16, 185, 129, 0.15) !important; }
    body.theme-grass .group:hover .group-hover\:text-rose-400 { color: #34d399 !important; }
    body.theme-grass .group:hover .group-hover\:bg-rose-500\/20 { background-color: rgba(16, 185, 129, 0.25) !important; color: #34d399 !important; }
    body.theme-grass .w-8.h-\[1px\].bg-rose-400 { background-color: #10b981 !important; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6) !important; }

    body.theme-klee .hover\:border-rose-400\/50:hover, body.theme-klee .hover\:border-rose-500\/40:hover { border-color: rgba(239, 68, 68, 0.5) !important; box-shadow: 0 0 20px rgba(239, 68, 68, 0.15) !important; }
    body.theme-klee .group:hover .group-hover\:text-rose-400 { color: #fb923c !important; }
    body.theme-klee .group:hover .group-hover\:bg-rose-500\/20 { background-color: rgba(239, 68, 68, 0.25) !important; color: #fb923c !important; }
    body.theme-klee .w-8.h-\[1px\].bg-rose-400 { background-color: #ef4444 !important; box-shadow: 0 0 8px rgba(239, 68, 68, 0.6) !important; }

    body.theme-porsche .hover\:border-rose-400\/50:hover, body.theme-porsche .hover\:border-rose-500\/40:hover { border-color: rgba(14, 165, 233, 0.5) !important; box-shadow: 0 0 20px rgba(14, 165, 233, 0.15) !important; }
    body.theme-porsche .group:hover .group-hover\:text-rose-400 { color: #38bdf8 !important; }
    body.theme-porsche .group:hover .group-hover\:bg-rose-500\/20 { background-color: rgba(14, 165, 233, 0.25) !important; color: #38bdf8 !important; }
    body.theme-porsche .w-8.h-\[1px\].bg-rose-400 { background-color: #0ea5e9 !important; box-shadow: 0 0 8px rgba(14, 165, 233, 0.6) !important; }

    body.theme-night .hover\:border-rose-400\/50:hover, body.theme-night .hover\:border-rose-500\/40:hover { border-color: rgba(148, 163, 184, 0.5) !important; box-shadow: 0 0 20px rgba(148, 163, 184, 0.15) !important; }
    body.theme-night .group:hover .group-hover\:text-rose-400 { color: #cbd5e1 !important; }
    body.theme-night .group:hover .group-hover\:bg-rose-500\/20 { background-color: rgba(148, 163, 184, 0.25) !important; color: #cbd5e1 !important; }
    body.theme-night .w-8.h-\[1px\].bg-rose-400 { background-color: #94a3b8 !important; box-shadow: 0 0 8px rgba(148, 163, 184, 0.6) !important; }
    
    body.theme-arisu .hover\:border-rose-400\/50:hover, body.theme-arisu .hover\:border-rose-500\/40:hover { border-color: rgba(56, 189, 248, 0.5) !important; box-shadow: 0 0 20px rgba(56, 189, 248, 0.2) !important; }
    body.theme-arisu .group:hover .group-hover\:text-rose-400 { color: #38bdf8 !important; }
    body.theme-arisu .group:hover .group-hover\:bg-rose-500\/20 { background-color: rgba(56, 189, 248, 0.25) !important; color: #38bdf8 !important; }
    body.theme-arisu .w-8.h-\[1px\].bg-rose-400 { background-color: #38bdf8 !important; box-shadow: 0 0 8px rgba(56, 189, 248, 0.8) !important; }

    body.theme-gura .hover\:border-rose-400\/50:hover, body.theme-gura .hover\:border-rose-500\/40:hover { border-color: rgba(6, 182, 212, 0.5) !important; box-shadow: 0 0 20px rgba(6, 182, 212, 0.2) !important; }
    body.theme-gura .group:hover .group-hover\:text-rose-400 { color: #22d3ee !important; }
    body.theme-gura .group:hover .group-hover\:bg-rose-500\/20 { background-color: rgba(6, 182, 212, 0.25) !important; color: #22d3ee !important; }
    body.theme-gura .w-8.h-\[1px\].bg-rose-400 { background-color: #06b6d4 !important; box-shadow: 0 0 8px rgba(6, 182, 212, 0.8) !important; }

    body.theme-steam-girl .hover\:border-rose-400\/50:hover, body.theme-steam-girl .hover\:border-rose-500\/40:hover { border-color: rgba(217, 70, 239, 0.5) !important; box-shadow: 0 0 20px rgba(217, 70, 239, 0.2) !important; }
    body.theme-steam-girl .group:hover .group-hover\:text-rose-400 { color: #e879f9 !important; }
    body.theme-steam-girl .group:hover .group-hover\:bg-rose-500\/20 { background-color: rgba(217, 70, 239, 0.25) !important; color: #e879f9 !important; }
    body.theme-steam-girl .w-8.h-\[1px\].bg-rose-400 { background-color: #d946ef !important; box-shadow: 0 0 8px rgba(217, 70, 239, 0.8) !important; }

    body.theme-spacex .hover\:border-rose-400\/50:hover, body.theme-spacex .hover\:border-rose-500\/40:hover { border-color: rgba(245, 158, 11, 0.5) !important; box-shadow: 0 0 20px rgba(245, 158, 11, 0.2) !important; }
    body.theme-spacex .group:hover .group-hover\:text-rose-400 { color: #fbbf24 !important; }
    body.theme-spacex .group:hover .group-hover\:bg-rose-500\/20 { background-color: rgba(245, 158, 11, 0.25) !important; color: #fbbf24 !important; }
    body.theme-spacex .w-8.h-\[1px\].bg-rose-400 { background-color: #f59e0b !important; box-shadow: 0 0 8px rgba(245, 158, 11, 0.8) !important; }

    body.theme-portal .hover\:border-rose-400\/50:hover, body.theme-portal .hover\:border-rose-500\/40:hover { border-color: rgba(0, 162, 255, 0.5) !important; box-shadow: 0 0 20px rgba(0, 162, 255, 0.2) !important; }
    body.theme-portal .group:hover .group-hover\:text-rose-400 { color: #38bdf8 !important; }
    body.theme-portal .group:hover .group-hover\:bg-rose-500\/20 { background-color: rgba(0, 162, 255, 0.25) !important; color: #38bdf8 !important; }
    body.theme-portal .w-8.h-\[1px\].bg-rose-400 { background-color: #00a2ff !important; box-shadow: 0 0 8px rgba(0, 162, 255, 0.8) !important; }

    /* Compact hover glow — uses theme color */
    #bgm-player-container.compact:hover {
      box-shadow:
        0 8px 32px -4px rgba(0,0,0,0.7),
        0 0 0 1px rgba(var(--glow-rgb), 0.25),
        0 0 20px rgba(var(--glow-rgb), 0.18) !important;
      border-color: rgba(var(--glow-rgb), 0.35) !important;
    }

    /* Main Play/Pause Button — dynamic matching gradient & crisp dark contrast */
    #bgm-toggle-expanded {
      background: linear-gradient(135deg, rgb(var(--glow-rgb)), rgb(var(--glow-sec-rgb))) !important;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 16px rgba(var(--glow-rgb), 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
      border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
      transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
    }
    #bgm-toggle-expanded:hover {
      transform: scale(1.12) !important;
      box-shadow: 0 6px 24px rgba(0, 0, 0, 0.75), 0 0 24px rgba(var(--glow-rgb), 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.55) !important;
      border-color: rgba(255, 255, 255, 0.45) !important;
    }
    /* No active shrink on expanded play */

    /* Compact Play button */
    #bgm-toggle-compact {
      transition: background 0.18s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    }
    #bgm-toggle-compact:hover {
      transform: scale(1.15);
      box-shadow: 0 0 12px rgba(var(--glow-rgb), 0.5);
    }
    /* No active shrink on compact play */

    /* Close (x) button — theme tint on hover */
    #btn-close-expanded:hover {
      background: rgba(var(--glow-rgb), 0.18) !important;
      color: rgb(var(--glow-rgb)) !important;
    }

    #btn-settings-toggle.active {
      color: rgb(var(--glow-rgb)) !important;
    }

    /* Compact 3-bar visualizer dots — in theme colors */
    .music-bar-compact {
      background-color: rgb(var(--glow-rgb)) !important;
      box-shadow: 0 0 6px rgba(var(--glow-rgb), 0.6);
    }

    /* Full Background Visualizer 32 bars */
    .music-bar-full {
      width: 4px;
      min-height: 2px;
      border-radius: 2px 2px 0 0;
      background: linear-gradient(to top, rgba(var(--glow-rgb), 0.45), rgba(var(--glow-rgb), 0.05)) !important;
      border-top: 1.5px solid rgba(var(--glow-rgb), 0.75);
      box-shadow: 0 -2px 8px rgba(var(--glow-rgb), 0.25);
      transition: height 0.08s ease;
    }

    /* Live Track Indicator — pulsing dot */
    @keyframes livePing {
      0%, 100% { transform: scale(1); opacity: 0.9; }
      50% { transform: scale(1.55); opacity: 0; }
    }
    @keyframes liveDotBreath {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.6; }
    }
    .live-ping { animation: livePing 1.4s ease-out infinite; }
    .live-dot  { animation: liveDotBreath 1.4s ease-in-out infinite; }

    /* =============================================
       🖥️ MACOS REAL KERNEL & BUFFER STREAM LOADER
    ============================================= */
    #app-loading-screen {
      position: fixed;
      inset: 0;
      z-index: 100000;
      background: radial-gradient(circle at center, rgba(16, 18, 27, 0.97) 0%, rgba(6, 7, 10, 0.99) 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      will-change: opacity, transform;
    }

    #app-loading-screen.loaded {
      opacity: 0;
      transform: scale(1.03);
      pointer-events: none;
    }

    .terminal-card {
      width: 100%;
      max-width: 820px;
      background: rgba(13, 16, 23, 0.96);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 1rem;
      box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.95), 0 0 45px rgba(var(--glow-rgb), 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(28px);
      -webkit-backdrop-filter: blur(28px);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    /* MacOS Title Bar */
    .terminal-header {
      height: 44px;
      background: rgba(255, 255, 255, 0.03);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 1.25rem;
      user-select: none;
    }

    .terminal-buttons {
      display: flex;
      align-items: center;
      gap: 8px;
      width: 60px;
    }

    .term-btn {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      display: inline-block;
      box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
    }
    .term-close { background-color: #ff5f56; }
    .term-min   { background-color: #ffbd2e; }
    .term-max   { background-color: #27c93f; }

    .terminal-title {
      font-family: 'Space Mono', monospace;
      font-size: 12.5px;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.75);
      letter-spacing: 0.04em;
    }

    .terminal-header-right {
      width: 60px;
      text-align: right;
      font-family: 'Space Mono', monospace;
      font-size: 10.5px;
      color: rgba(255, 255, 255, 0.35);
    }

    /* Terminal Body */
    .terminal-body {
      padding: 1.5rem 1.75rem 1.75rem;
      font-family: 'Space Mono', monospace;
      display: flex;
      flex-direction: column;
      gap: 1.1rem;
    }

    .terminal-ascii-art {
      font-family: 'Space Mono', monospace;
      font-size: 8px;
      line-height: 1.15;
      font-weight: 700;
      color: #f43f5e;
      text-shadow: 0 0 14px rgba(var(--glow-rgb), 0.5);
      margin: 0;
      padding: 0.3rem 0;
      overflow-x: auto;
      text-align: center;
      user-select: none;
      filter: drop-shadow(0 0 10px rgba(var(--glow-rgb), 0.4));
    }

    @media (min-width: 480px) {
      .terminal-ascii-art { font-size: 10px; }
    }

    @media (min-width: 640px) {
      .terminal-ascii-art { font-size: 11.5px; }
    }

    @media (min-width: 768px) {
      .terminal-ascii-art { font-size: 13px; }
    }

    .terminal-logs-viewport {
      height: 195px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
      font-size: 11.5px;
      color: #cbd5e1;
      padding-right: 8px;
      background: rgba(0, 0, 0, 0.35);
      padding: 0.85rem 1rem;
      border-radius: 0.6rem;
      border: 1px solid rgba(255, 255, 255, 0.06);
      scroll-behavior: smooth;
    }

    .terminal-logs-viewport::-webkit-scrollbar {
      width: 5px;
    }
    .terminal-logs-viewport::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.18);
      border-radius: 9999px;
    }

    .term-line {
      display: flex;
      align-items: baseline;
      gap: 0.5rem;
      line-height: 1.45;
      white-space: nowrap;
      animation: termFadeIn 0.15s ease-out both;
    }

    @keyframes termFadeIn {
      from { opacity: 0; transform: translateY(2px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .term-ts { color: #64748b; font-size: 10.5px; }
    .term-tag { color: #f43f5e; font-weight: 700; }
    .term-text { color: #cbd5e1; }
    .term-ok { color: #34d399; font-weight: 700; margin-left: auto; }
    .term-exec { color: #38bdf8; font-weight: 700; }

    .term-cursor {
      display: inline-block;
      color: #f43f5e;
      animation: termBlink 0.8s step-end infinite;
      font-weight: 700;
    }

    @keyframes termBlink {
      50% { opacity: 0; }
    }

    .terminal-progress-wrap {
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
      padding-top: 0.2rem;
    }

    .terminal-progress-track {
      width: 100%;
      height: 5px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 9999px;
      overflow: hidden;
    }

    .terminal-progress-bar {
      height: 100%;
      width: 0%;
      background: #f43f5e;
      border-radius: 9999px;
      transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 0 0 10px #f43f5e;
    }

    .terminal-progress-info {
      display: flex;
      justify-content: space-between;
      font-size: 10.5px;
      color: #64748b;
      font-weight: 600;
    }

    /* Theme overrides for macOS terminal loader */
    body.theme-grass .terminal-ascii-art { color: #10b981 !important; filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3)) !important; }
    body.theme-grass .term-tag, body.theme-grass .term-cursor { color: #10b981 !important; }
    body.theme-grass .terminal-progress-bar { background: #10b981 !important; box-shadow: 0 0 10px #10b981 !important; }
    body.theme-grass .terminal-card { box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(16, 185, 129, 0.12) !important; }

    body.theme-klee .terminal-ascii-art { color: #ef4444 !important; filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.3)) !important; }
    body.theme-klee .term-tag, body.theme-klee .term-cursor { color: #ef4444 !important; }
    body.theme-klee .terminal-progress-bar { background: #ef4444 !important; box-shadow: 0 0 10px #ef4444 !important; }
    body.theme-klee .terminal-card { box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(239, 68, 68, 0.12) !important; }

    body.theme-porsche .terminal-ascii-art { color: #0ea5e9 !important; filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.3)) !important; }
    body.theme-porsche .term-tag, body.theme-porsche .term-cursor { color: #0ea5e9 !important; }
    body.theme-porsche .terminal-progress-bar { background: #0ea5e9 !important; box-shadow: 0 0 10px #0ea5e9 !important; }
    body.theme-porsche .terminal-card { box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(14, 165, 233, 0.12) !important; }

    body.theme-night .terminal-ascii-art { color: #cbd5e1 !important; filter: drop-shadow(0 0 8px rgba(203, 213, 225, 0.35)) !important; }
    body.theme-night .term-tag, body.theme-night .term-cursor { color: #94a3b8 !important; }
    body.theme-night .terminal-progress-bar { background: #94a3b8 !important; box-shadow: 0 0 10px #94a3b8 !important; }
    body.theme-night .terminal-card { box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(148, 163, 184, 0.15) !important; }

    body.theme-arisu .terminal-ascii-art { color: #38bdf8 !important; filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.35)) !important; }
    body.theme-arisu .term-tag, body.theme-arisu .term-cursor { color: #38bdf8 !important; }
    body.theme-arisu .terminal-progress-bar { background: #38bdf8 !important; box-shadow: 0 0 10px #38bdf8 !important; }
    body.theme-arisu .terminal-card { box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(56, 189, 248, 0.15) !important; }

    body.theme-gura .terminal-ascii-art { color: #06b6d4 !important; filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.35)) !important; }
    body.theme-gura .term-tag, body.theme-gura .term-cursor { color: #06b6d4 !important; }
    body.theme-gura .terminal-progress-bar { background: #06b6d4 !important; box-shadow: 0 0 10px #06b6d4 !important; }
    body.theme-gura .terminal-card { box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(6, 182, 212, 0.15) !important; }

    body.theme-steam-girl .terminal-ascii-art { color: #d946ef !important; filter: drop-shadow(0 0 8px rgba(217, 70, 239, 0.35)) !important; }
    body.theme-steam-girl .term-tag, body.theme-steam-girl .term-cursor { color: #d946ef !important; }
    body.theme-steam-girl .terminal-progress-bar { background: #d946ef !important; box-shadow: 0 0 10px #d946ef !important; }
    body.theme-steam-girl .terminal-card { box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(217, 70, 239, 0.15) !important; }

    body.theme-spacex .terminal-ascii-art { color: #f59e0b !important; filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.35)) !important; }
    body.theme-spacex .term-tag, body.theme-spacex .term-cursor { color: #f59e0b !important; }
    body.theme-spacex .terminal-progress-bar { background: #f59e0b !important; box-shadow: 0 0 10px #f59e0b !important; }
    body.theme-spacex .terminal-card { box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(245, 158, 11, 0.15) !important; }

    body.theme-portal .terminal-ascii-art { color: #00a2ff !important; filter: drop-shadow(0 0 10px rgba(0, 162, 255, 0.45)) !important; }
    body.theme-portal .term-tag, body.theme-portal .term-cursor { color: #00a2ff !important; }
    body.theme-portal .terminal-progress-bar { background: #00a2ff !important; box-shadow: 0 0 12px #00a2ff !important; }
    body.theme-portal .terminal-card { box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 162, 255, 0.22) !important; }

    /* 🍰 Portal 2 Hero Menu & Logo Theme Overrides */
    body.theme-portal .default-hero-brand { display: none !important; }
    body.theme-portal .portal-hero-brand {
      display: block !important;
      margin-bottom: 8.5rem !important;
    }
    @media (min-width: 768px) {
      body.theme-portal .portal-hero-brand {
        margin-bottom: 11rem !important;
      }
    }
    body.theme-portal #home {
      justify-content: flex-start !important;
      padding-top: 6rem !important;
      min-height: 94vh !important;
    }
    body.theme-portal .default-label { display: none !important; }
    body.theme-portal .portal-label { display: inline-flex !important; align-items: center; }
    body.theme-portal .menu-rule { display: none !important; }
    body.theme-portal .hero-menu-num { display: none !important; }
    body.theme-portal .hero-menu-item {
      font-family: 'D-DIN Condensed', sans-serif !important;
      font-size: 1.6rem !important;
      font-weight: 700 !important;
      letter-spacing: 0.06em !important;
      text-transform: uppercase !important;
      color: rgba(225, 238, 255, 0.85) !important;
      padding: 6px 0 !important;
      gap: 14px !important;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95) !important;
    }
    body.theme-portal .hero-menu-item:hover {
      color: #ffffff !important;
      transform: translateX(12px) !important;
      text-shadow: 0 0 16px rgba(0, 162, 255, 0.95), 0 0 32px rgba(0, 162, 255, 0.6) !important;
    }
    body.theme-portal .portal-enrichment-item {
      display: block !important;
      font-family: 'D-DIN Condensed', sans-serif !important;
      font-size: 1.15rem !important;
      font-weight: 700 !important;
      letter-spacing: 0.08em !important;
    }
    body.theme-portal .hero-menu-arrow {
      width: 12px !important;
      height: 12px !important;
      fill: #00a2ff !important;
      filter: drop-shadow(0 0 8px #00a2ff) !important;
    }

  
    @keyframes musicItemSlideIn {
      0% {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
      }
      100% {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    .music-track-entrance {
      animation: musicItemSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
      will-change: transform, opacity;
    }
    .music-tab-btn {
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .music-tab-btn.active {
      background: rgba(var(--glow-rgb), 0.18) !important;
      border-color: rgba(var(--glow-rgb), 0.45) !important;
      color: #ffffff !important;
      box-shadow: 0 0 14px rgba(var(--glow-rgb), 0.25);
    }
    .music-tab-btn:not(.active) {
      background: transparent !important;
      border-color: transparent !important;
      color: #94a3b8 !important;
    }
    .music-tab-btn:not(.active):hover {
      background: rgba(255, 255, 255, 0.06) !important;
      color: #f1f5f9 !important;
    }
    #music-tracks-list {
      transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* 🍰 GLaDOS Easter Egg Terminal Resizing & Layout (Instant 0-delay Resizing) */
    #glados-window {
      resize: both;
      overflow: hidden;
      min-width: 360px;
      min-height: 300px;
      max-width: 96vw;
      max-height: 94vh;
      transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    #glados-window::-webkit-resizer {
      background-color: transparent;
      background-image: radial-gradient(circle, rgba(245, 158, 11, 0.6) 1.5px, transparent 1.5px);
      background-size: 4px 4px;
      background-position: bottom right;
    }

    /* =============================================
       🎨 THEME SELECTOR DROPDOWN STYLES
    ============================================= */

    /* --- Panel base (closed state) --- */
    #theme-dropdown {
      background: rgba(8, 12, 20, 0.52) !important;
      backdrop-filter: blur(24px) saturate(180%) !important;
      -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
      border: 1px solid rgba(255, 255, 255, 0.12) !important;
      box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7),
                  0 0 0 1px rgba(var(--glow-rgb), 0.12),
                  0 0 28px rgba(var(--glow-rgb), 0.1) !important;
      opacity: 0 !important;
      transform: translateY(-8px) !important;
      transform-origin: top right !important;
      pointer-events: none !important;
      /* Close transition: fast, clean ease-out */
      transition: opacity 0.18s ease-out,
                  transform 0.18s ease-out !important;
    }

    /* --- Panel open state --- */
    #theme-dropdown.is-open {
      opacity: 1 !important;
      pointer-events: auto !important;
      transform: translateY(0) !important;
      /* Open transition: bouncy spring */
      transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                  transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }

    /* --- Dropdown header slide --- */
    #theme-dropdown > div:first-child {
      opacity: 0;
      transform: translateY(-6px);
      transition: opacity 0.2s ease 0.06s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) 0.06s;
    }
    #theme-dropdown.is-open > div:first-child {
      opacity: 1;
      transform: translateY(0);
    }

    /* --- Item cascade animation --- */
    @keyframes themeItemDrop {
      0%   { opacity: 0; transform: translateY(-14px) scale(0.95); filter: blur(2px); }
      60%  { opacity: 1; transform: translateY(2px)   scale(1.01); filter: blur(0); }
      100% { opacity: 1; transform: translateY(0)     scale(1);    filter: blur(0); }
    }

    .theme-dropdown-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      padding: 7px 10px;
      border-radius: 10px;
      font-size: 12px;
      color: rgba(255, 255, 255, 0.85);
      background: transparent;
      border: 1px solid transparent;
      cursor: pointer;
      text-align: left;
      opacity: 0;
      transition: background 0.15s ease, border-color 0.15s ease,
                  box-shadow 0.15s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1),
                  color 0.15s ease;
    }

    /* When open, each item drops in with stagger */
    #theme-dropdown.is-open .theme-dropdown-item {
      animation: themeItemDrop 0.36s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }
    #theme-dropdown.is-open .theme-dropdown-item:nth-child(1) { animation-delay: 0.05s; }
    #theme-dropdown.is-open .theme-dropdown-item:nth-child(2) { animation-delay: 0.09s; }
    #theme-dropdown.is-open .theme-dropdown-item:nth-child(3) { animation-delay: 0.13s; }
    #theme-dropdown.is-open .theme-dropdown-item:nth-child(4) { animation-delay: 0.17s; }
    #theme-dropdown.is-open .theme-dropdown-item:nth-child(5) { animation-delay: 0.21s; }
    #theme-dropdown.is-open .theme-dropdown-item:nth-child(6) { animation-delay: 0.25s; }
    #theme-dropdown.is-open .theme-dropdown-item:nth-child(7) { animation-delay: 0.29s; }
    #theme-dropdown.is-open .theme-dropdown-item:nth-child(8) { animation-delay: 0.33s; }
    #theme-dropdown.is-open .theme-dropdown-item:nth-child(9) { animation-delay: 0.37s; }

    /* --- Item hover --- */
    .theme-dropdown-item:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.1);
      color: #ffffff;
      transform: translateX(4px);
    }

    /* --- Active item glow --- */
    .theme-dropdown-item.is-active {
      background: rgba(var(--glow-rgb), 0.15) !important;
      border-color: rgba(var(--glow-rgb), 0.35) !important;
      color: #ffffff !important;
      box-shadow: inset 0 0 16px rgba(var(--glow-rgb), 0.1),
                  0 0 12px rgba(var(--glow-rgb), 0.18) !important;
    }
    .theme-dropdown-item.is-active .theme-item-check {
      opacity: 1 !important;
      color: rgb(var(--glow-rgb)) !important;
      text-shadow: 0 0 8px rgba(var(--glow-rgb), 0.8);
    }



    /* --- Custom Sleek Scrollbar for Theme Dropdown & Popups --- */
    #theme-list-items,
    .custom-scrollbar {
      overflow-x: hidden !important;
      scrollbar-width: thin;
      scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    }
    #theme-list-items::-webkit-scrollbar,
    .custom-scrollbar::-webkit-scrollbar {
      width: 4px !important;
      height: 0px !important;
    }
    #theme-list-items::-webkit-scrollbar-track,
    .custom-scrollbar::-webkit-scrollbar-track {
      background: transparent !important;
    }
    #theme-list-items::-webkit-scrollbar-thumb,
    .custom-scrollbar::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.2) !important;
      border-radius: 9999px !important;
    }
    #theme-list-items::-webkit-scrollbar-thumb:hover,
    .custom-scrollbar::-webkit-scrollbar-thumb:hover {
      background: rgba(var(--glow-rgb), 0.7) !important;
    }
    #theme-list-items::-webkit-scrollbar-corner,
    .custom-scrollbar::-webkit-scrollbar-corner {
      background: transparent !important;
    }

