/*
Theme Name: SonicVault Studio Default
Theme URI: http://localhost/audo-download
Author: SonicVault Studio Team
Author URI: http://localhost/audo-download
Description: State-of-the-art WordPress-style audio streaming and download portal theme with dynamic HTML5 canvas waveforms, spinning vinyl showcase, studio master lossless file cards, multi-bitrate quality switcher, ad intermission countdown, and sleek glassmorphic dark/light aesthetics.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sonicvault-default
Tags: audio, streaming, music-portal, dark-mode, light-mode, responsive, html5-canvas, waveform, wordpress-theme
*/

/* ==========================================================================
   1. Design System & CSS Custom Properties (Tokens)
   ========================================================================== */
:root {
    /* Brand Accent Palettes */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.35);
    
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.3);
    
    --secondary: #818cf8;
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.35);
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;

    /* Dark Mode Defaults */
    --bg-body: #0a0d14;
    --bg-card: rgba(19, 24, 38, 0.75);
    --bg-card-hover: rgba(28, 35, 54, 0.9);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    --bg-card-border-hover: rgba(99, 102, 241, 0.4);
    
    --text-primary: #f8fafc;
    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dim: #64748b;

    --navbar-bg: rgba(10, 13, 20, 0.85);
    --navbar-border: rgba(255, 255, 255, 0.08);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --glass-blur: blur(16px);
    --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-elevated: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Light Mode Overrides */
[data-theme="light"] {
    --bg-body: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --bg-card-border: rgba(0, 0, 0, 0.08);
    --bg-card-border-hover: rgba(99, 102, 241, 0.5);

    --text-primary: #0f172a;
    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-dim: #94a3b8;

    --navbar-bg: rgba(255, 255, 255, 0.9);
    --navbar-border: rgba(0, 0, 0, 0.08);
    --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --shadow-elevated: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   2. Base Reset & Typography
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

img, svg {
    vertical-align: middle;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   3. Layout & Structure
   ========================================================================== */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem 1.5rem;
}

/* Marquee Announcement Bar */
.marquee-wrapper {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2), rgba(16, 185, 129, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-lg);
    padding: 0.65rem 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}
.marquee-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    width: 100%;
}
.marquee-top-bar {
    display: contents;
}
.marquee-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
    animation: marqueePulse 2s infinite ease-in-out;
}
@keyframes marqueePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.65; }
}
.marquee-badge {
    background: var(--accent);
    color: #fff;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.marquee-text {
    flex: 1;
    color: var(--text-primary, #f1f5f9);
    font-weight: 600;
}
.marquee-link {
    color: #fff;
    text-decoration: underline;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.15s ease;
}
.marquee-link:hover {
    color: var(--accent-light, #a5b4fc);
}
.marquee-link-mobile {
    display: none;
}
.marquee-link-desktop {
    display: inline-flex;
}

/* ==========================================================================
   4. Header & Navigation (WordPress get_header)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--navbar-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: var(--transition);
}

.header-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.brand-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.header-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.header-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-full);
    padding: 0.6rem 1rem 0.6rem 2.6rem;
    color: var(--text-primary);
    font-size: 0.88rem;
    transition: var(--transition);
}

.header-search input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--bg-card-border);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: rotate(15deg);
}

/* Mobile Actions in Header */
.header-mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
}

.mobile-action-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-action-btn:hover, .mobile-action-btn:active {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
    color: var(--accent);
}

/* Mobile Expandable Search Bar */
.mobile-search-bar {
    display: none;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--navbar-border);
    padding: 0.75rem 1rem;
    overflow: hidden;
}

.mobile-search-bar.open {
    display: block;
    animation: fadeInDown 0.25s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-full);
    padding: 4px 6px 4px 14px;
}

.mobile-search-inner input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    min-width: 0;
}

.mobile-search-inner svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Mobile Navigation Drawer & Backdrop */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100040 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 320px;
    max-width: 86vw;
    background: #0d111c;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.6);
    z-index: 100050 !important;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.drawer-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.25rem calc(6rem + env(safe-area-inset-bottom, 0px)) 1.25rem !important;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

/* PWA Promo Card in Drawer */
.pwa-drawer-promo {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.drawer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.drawer-link:hover, .drawer-link.active {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.drawer-link.active {
    color: var(--accent);
    background: rgba(99, 102, 241, 0.12);
    border-left: 3px solid var(--accent);
}

.drawer-link svg {
    flex-shrink: 0;
}

.drawer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0.5rem 0;
}

/* ==========================================================================
   5. Buttons & Interactive Elements
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
    color: #ffffff;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

/* Studio Master Badges */
.orig-master-badge, .badge-master {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.storage-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}
.storage-pill-cloud {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.35);
}
.storage-pill-local {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

/* ==========================================================================
   6. Homepage Components (front-page.php)
   ========================================================================== */
.hero-carousel-container {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-subtle);
    backdrop-filter: var(--glass-blur);
}
.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}
.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 3.5rem 3rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    background: radial-gradient(circle at 80% 30%, rgba(99, 102, 241, 0.2) 0%, transparent 60%);
}
.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.slide-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 30%, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.slide-artist {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.slide-specs {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.spec-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.slide-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.slide-artwork {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
/* Hero Simple Thumbnail */
.hero-thumb-link {
    display: block;
    text-decoration: none;
}
.hero-simple-thumbnail {
    width: 270px;
    height: 270px;
    border-radius: 24px;
    overflow: hidden;
    background: #141824;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 25px rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}
.hero-thumb-link:hover .hero-simple-thumbnail {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(236, 72, 153, 0.35);
}
.hero-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.hero-thumb-link:hover .hero-thumb-img {
    transform: scale(1.04);
}
.hero-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05), #111827);
}

.artwork-card {
    width: 270px;
    height: 270px;
    border-radius: 24px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), transparent 70%),
                linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 20px rgba(99, 102, 241, 0.15);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.artwork-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--waveform-progress, var(--accent));
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), var(--waveform-glow, 0 0 25px rgba(236, 72, 153, 0.3));
}
.hero-artwork-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: blur(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.artwork-card:hover .hero-artwork-bg {
    opacity: 0.45;
    transform: scale(1.05);
}
.hero-disc-wrap {
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
}
.hero-vinyl-disc {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, #1a1a2e 0%, #0f0f1a 70%, #000 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}
.artwork-card.is-playing .hero-vinyl-disc {
    animation: vinylSpin 6s linear infinite;
    border-color: var(--waveform-progress, var(--accent));
    box-shadow: 0 0 20px var(--waveform-progress, var(--accent));
}
@keyframes vinylSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.vinyl-groove {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.groove-1 { width: 104px; height: 104px; }
.groove-2 { width: 78px; height: 78px; }
.vinyl-center-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--waveform-progress, linear-gradient(135deg, var(--accent), #ec4899));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 3;
    transition: transform 0.2s ease, background 0.3s ease;
}
.artwork-card:hover .vinyl-center-badge {
    transform: scale(1.1);
}
.hero-disc-play-icon {
    display: block;
    margin-left: 2px;
}
.hero-disc-pause-icon {
    display: none;
}
.artwork-card.is-playing .hero-disc-play-icon {
    display: none;
}
.artwork-card.is-playing .hero-disc-pause-icon {
    display: block;
}

/* Waveform Visualizer on Hero Card */
.waveform-visual {
    position: absolute;
    bottom: 14px;
    left: 18px;
    right: 18px;
    height: 48px;
    display: flex;
    gap: var(--waveform-bar-gap, 3px);
    justify-content: center;
    pointer-events: none;
    z-index: 4;
}
.waveform-visual.mode-mirrored {
    align-items: center; /* Symmetrical double-sided expansion */
}
.waveform-visual.mode-bars {
    align-items: flex-end; /* Bottom anchored */
}
.waveform-visual.mode-wave,
.waveform-visual.mode-radial {
    align-items: center;
}

.wave-bar {
    width: var(--waveform-bar-width, 4px);
    background: var(--waveform-primary, #f59e0b);
    border-radius: var(--waveform-bar-radius, 2px);
    opacity: 0.75;
    transition: height 0.12s ease, background 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
    animation: heroWaveRest 3s ease-in-out infinite alternate;
}

@keyframes heroWaveRest {
    0% { height: 20%; opacity: 0.55; }
    50% { height: 40%; opacity: 0.75; }
    100% { height: 25%; opacity: 0.6; }
}

.artwork-card.is-playing .wave-bar {
    background: var(--waveform-progress, #ef4444);
    box-shadow: var(--waveform-glow, 0 0 10px rgba(239, 68, 68, 0.7));
    opacity: 1;
    animation: heroWavePulse 0.8s ease-in-out infinite alternate;
}

@keyframes heroWavePulse {
    0% { height: 18%; }
    50% { height: 95%; }
    100% { height: 35%; }
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 13, 20, 0.8);
    border: 1px solid var(--bg-card-border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(8px);
}
.carousel-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: var(--transition);
}
.dot.active {
    width: 24px;
    border-radius: 999px;
    background: var(--accent);
}

/* Storage Folders */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.section-title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}
.folder-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    backdrop-filter: var(--glass-blur);
}
.folder-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 24px -6px var(--accent-glow);
}
.folder-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.folder-details h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.folder-details span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* View Switcher Bar */
.view-switcher-bar {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-sm);
    padding: 3px;
}
.switch-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}
.switch-btn.active, .switch-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* Compact Table View (Fully Clickable Rows, No Download Buttons) */
.compact-table-container {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 3.5rem;
    backdrop-filter: var(--glass-blur);
}
.compact-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.compact-table th {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.9rem 1.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    border-bottom: 1px solid var(--bg-card-border);
}
.compact-table td {
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
    vertical-align: middle;
}
.clickable-track-row {
    cursor: pointer;
    transition: var(--transition);
}
.clickable-track-row:hover {
    background: rgba(99, 102, 241, 0.08);
}
.track-cell-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}
.track-thumb-mini {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: #111625;
    border: 1px solid var(--bg-card-border);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.track-cell-title {
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 2px;
}
.track-cell-artist {
    font-size: 0.8rem;
    color: var(--text-dim);
}
.btn-quick-play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.btn-quick-play:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Grid View (Fully Clickable Cards, No Download Buttons) */
.tracks-grid-view, .browse-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}
.grid-track-card, .browse-grid-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    backdrop-filter: var(--glass-blur);
    cursor: pointer;
}
.grid-track-card:hover, .browse-grid-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 30px -8px var(--accent-glow);
}
.card-cover, .grid-cover-wrap {
    height: 180px;
    position: relative;
    background: #0f131d;
    overflow: hidden;
}
.card-cover img, .grid-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-cover-play, .grid-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.grid-track-card:hover .card-cover-play,
.browse-grid-card:hover .grid-play-overlay {
    opacity: 1;
}
.card-cover-play svg, .grid-play-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: transform 0.2s;
}
.card-cover-play:hover svg, .grid-play-overlay:hover .grid-play-circle {
    transform: scale(1.1);
}
.card-duration-badge, .grid-duration-chip {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}
.card-body, .grid-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-title, .grid-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-artist, .grid-artist {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 0.85rem;
}
.card-meta-bar, .grid-stats-grid {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-dim);
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   7. Single Track Showcase (single.php)
   ========================================================================== */
.single-track-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
.track-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    margin-bottom: 2rem;
}
.hero-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: center;
}

/* Vinyl Showcase */
.vinyl-showcase-container {
    width: 260px;
    height: 260px;
    position: relative;
    margin: 0 auto;
}
.vinyl-disc {
    position: absolute;
    top: 5px;
    right: -25px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, #0a0a0a 0%, #151515 40%, #000 65%, #222 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    animation: spinVinyl 12s linear infinite;
    animation-play-state: paused;
}
.vinyl-disc.playing {
    animation-play-state: running;
}
@keyframes spinVinyl {
    100% { transform: rotate(360deg); }
}
.vinyl-groove {
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}
.vinyl-center-label {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #333;
}
.vinyl-center-label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.artwork-cover {
    width: 250px;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    background: #111625;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.artwork-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Canvas Waveform Visualizer & Scrubber */
.single-waveform-player-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 1.25rem 0 0.75rem 0;
    width: 100%;
}
.single-waveform-player-row .waveform-canvas-box {
    flex: 1;
    min-width: 0;
    margin: 0;
}
.btn-wave-play {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent, #6366f1), #ec4899);
    border: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease;
}
.btn-wave-play:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(236, 72, 153, 0.65);
}
.btn-wave-play:active {
    transform: scale(0.95);
}
.btn-wave-play.is-playing {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.7);
    animation: wavePlayPulse 2s infinite;
}
@keyframes wavePlayPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.6);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(236, 72, 153, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0);
    }
}
.waveform-canvas-box {
    position: relative;
    height: 85px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    margin: 1.25rem 0 0.75rem 0;
}
.waveform-canvas-box canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.waveform-hover-time {
    position: absolute;
    top: 6px;
    left: 0;
    transform: translateX(-50%);
    background: rgba(10, 13, 20, 0.9);
    border: 1px solid var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
    display: none;
}
.scrubber-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    margin-bottom: 1.25rem;
}
.scrubber-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #ec4899);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

/* Master File Card */
.master-file-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(236, 72, 153, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.25);
}
.master-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 8px;
}
.master-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.master-grid-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.master-file-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.master-meta-tags {
    font-size: 0.85rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.master-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-master-play {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-master-play:hover {
    background: rgba(255, 255, 255, 0.15);
}
.btn-master-download {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}
.btn-master-download:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Converted Formats Matrix Card */
.download-matrix-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2.5rem;
    backdrop-filter: var(--glass-blur);
}
.formats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.formats-table th {
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--bg-card-border);
}
.formats-table td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.88rem;
    vertical-align: middle;
}

/* ==========================================================================
   8. Download Intermission Page (download.php)
   ========================================================================== */
.dl-intermission-wrap {
    max-width: 760px;
    margin: 1.5rem auto 4rem auto;
    padding: 0 1rem;
}
.dl-track-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-subtle);
    margin-bottom: 1.75rem;
}
.dl-track-thumb {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    overflow: hidden;
    background: #111625;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}
.dl-track-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dl-ad-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: var(--glass-blur);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-subtle);
}
.ad-slot-body {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: center;
}
.countdown-bar-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}
.countdown-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
}
.btn-skip-ad {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-skip-ad:hover:not(:disabled) {
    background: var(--accent);
    border-color: var(--accent);
}
.btn-skip-ad:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.download-action-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    text-align: center;
    backdrop-filter: var(--glass-blur);
    margin-bottom: 1.75rem;
}
.btn-click-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1.15rem 2.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
    transition: var(--transition);
    cursor: pointer;
}
.btn-click-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.65);
    color: #fff;
}

/* ==========================================================================
   9. Floating Audio Player Bar
   ========================================================================== */
.global-audio-bar {
    display: none !important;
}

.bar-top-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    z-index: 10;
}

.bar-top-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--waveform-primary, #6366f1), var(--waveform-progress, #ec4899));
    transition: width 0.1s linear;
}

.global-audio-inner {
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.bar-track-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 200px;
    max-width: 320px;
}

.bar-thumb-wrap {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: #141824;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bar-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.bar-text-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bar-track-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.bar-track-title:hover {
    color: var(--accent);
}

.bar-meta-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bar-meta-sep {
    opacity: 0.4;
}

.orig-master-badge {
    color: #10b981;
    font-weight: 700;
}

/* Center Controls: Waveform & Scrubber */
.bar-center-controls {
    flex: 1;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bar-player-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-play-circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ec4899);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: var(--transition);
}

.bar-play-circle-btn:hover {
    transform: scale(1.08);
    filter: brightness(1.15);
}

.bar-play-circle-btn:active {
    transform: scale(0.95);
}

.bar-canvas-wrap {
    flex: 1;
    height: 42px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.bar-canvas-wrap:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.55);
}

.bar-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.bar-time-display {
    font-size: 0.76rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-dim);
    min-width: 85px;
    text-align: right;
    flex-shrink: 0;
}

.bar-scrubber-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    margin-top: 2px;
}

.bar-scrubber-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--waveform-primary, #6366f1), var(--waveform-progress, #ec4899));
    border-radius: 2px;
    position: relative;
}

/* Right Controls */
.bar-right-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.bar-mobile-play-btn {
    display: none;
}

.bar-vol-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-mute-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.bar-mute-btn:hover {
    color: #fff;
}

.bar-vol-slider {
    width: 75px;
    height: 4px;
    accent-color: var(--waveform-progress, var(--accent));
    cursor: pointer;
}

.bar-quality-wrap {
    position: relative;
}

.bar-quality-menu {
    display: none;
    position: absolute;
    bottom: 120%;
    right: 0;
    width: 220px;
    background: #111523;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    padding: 8px;
    z-index: 10000;
}

.bar-quality-menu.show {
    display: block;
}

.bar-quality-menu-header {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    padding: 4px 8px 8px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 4px;
}

.bar-quality-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
}

.bar-quality-item:hover, .bar-quality-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.bar-quality-item.active {
    color: var(--accent);
    font-weight: 700;
}

.bar-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

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

/* ==========================================================================
   10. Pre-Footer & Nice Studio Footer
   ========================================================================== */
.footer-pre-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem 1.5rem;
}

.footer-newsletter-card {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.75) 0%, rgba(17, 24, 39, 0.85) 50%, rgba(88, 28, 135, 0.5) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-xl);
    padding: 2.75rem;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 2.5rem;
    align-items: center;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 20px 45px -15px rgba(99, 102, 241, 0.25);
    position: relative;
    overflow: hidden;
}

.footer-newsletter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.newsletter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.85rem;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.newsletter-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 0.65rem;
}

.newsletter-desc {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 540px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-input-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    padding: 4px;
    transition: var(--transition);
}

.newsletter-input-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.65rem 1.25rem;
    color: #fff;
    font-size: 0.92rem;
    outline: none;
    min-width: 0;
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-btn {
    border-radius: var(--radius-full) !important;
    padding: 0.65rem 1.5rem !important;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.newsletter-fineprint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-dim);
    padding-left: 0.5rem;
}

/* Site Footer Base */
.site-footer {
    background: linear-gradient(180deg, #090c14 0%, #05070b 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4.5rem 1.5rem calc(6.5rem + env(safe-area-inset-bottom)) 1.5rem;
    margin-top: auto;
    position: relative;
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.15fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.footer-col-brand .brand-bio {
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 380px;
}

.footer-network-status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.status-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: statusPulse 2s infinite;
    flex-shrink: 0;
}

@keyframes statusPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #10b981;
    letter-spacing: 0.02em;
}

.status-meta {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.footer-social-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.social-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon-btn:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.footer-col h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.88rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(3px);
}

/* Footer Bottom Bar */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.footer-trust-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-footer-install-btn {
    color: var(--accent) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

.pwa-footer-install-btn:hover {
    background: rgba(99, 102, 241, 0.15) !important;
    border-color: var(--accent) !important;
}

.footer-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.footer-back-to-top:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   11. Comprehensive Responsive Design & PWA Enhancements
   ========================================================================== */

/* Tablet (<= 1024px) */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2rem;
    }
    .footer-col:nth-child(4), .footer-col:nth-child(5) {
        grid-column: span 1;
    }
    .footer-newsletter-card {
        padding: 2rem;
        gap: 2rem;
    }
}

/* Mobile & Small Tablets (<= 768px) */
@media (max-width: 768px) {
    /* Header & Nav */
    .site-header {
        position: sticky;
        top: 0;
    }
    .header-container {
        padding: 0.75rem 1rem;
    }
    .header-search, .header-nav {
        display: none !important;
    }
    .header-mobile-actions {
        display: flex;
    }

    /* Main Container Padding */
    .site-main {
        padding: 1rem 1rem 6rem 1rem;
    }

    /* Hero Carousel on Mobile */
    .hero-carousel {
        margin-bottom: 2rem;
    }
    .carousel-slide {
        grid-template-columns: 1fr;
        padding: 1.75rem 1.25rem;
        gap: 1.5rem;
        text-align: center;
    }
    .slide-artwork {
        order: -1;
    }
    .artwork-card {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }
    .slide-title {
        font-size: 1.5rem;
        line-height: 1.25;
    }
    .slide-artist {
        justify-content: center;
    }
    .slide-specs, .slide-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    .carousel-arrow {
        width: 34px;
        height: 34px;
    }
    .carousel-arrow.prev { left: 8px; }
    .carousel-arrow.next { right: 8px; }

    /* Catalog Grids & Cards */
    .audios-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .track-card {
        padding: 0.75rem;
    }
    .card-thumb {
        height: 140px;
    }
    .card-title {
        font-size: 0.92rem;
    }

    /* Track List Rows */
    .track-list-item {
        padding: 0.65rem 0.85rem;
        gap: 10px;
    }
    .track-col-specs, .track-col-cat {
        display: none !important;
    }

    /* Single Track Page */
    .single-hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    .single-artwork-box {
        max-width: 220px;
        margin: 0 auto;
    }
    .single-meta-row, .single-action-row {
        justify-content: center;
    }
    .master-grid-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .master-actions {
        width: 100%;
        display: flex;
    }
    .master-actions .btn {
        flex: 1;
        justify-content: center;
    }

    /* Footer on Mobile */
    .footer-pre-container {
        padding: 0 1rem 2rem 1rem;
    }
    .footer-newsletter-card {
        grid-template-columns: 1fr;
        padding: 1.75rem 1.25rem;
        gap: 1.5rem;
        text-align: left;
    }
    .newsletter-title {
        font-size: 1.35rem;
    }
    .newsletter-input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 8px;
    }
    .newsletter-input {
        background: rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: var(--radius-md);
        width: 100%;
        padding: 0.75rem 1rem;
    }
    .newsletter-btn {
        width: 100%;
        border-radius: var(--radius-md) !important;
        padding: 0.75rem !important;
        justify-content: center;
    }
    .site-footer {
        padding: 3rem 1rem calc(6.5rem + env(safe-area-inset-bottom)) 1rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    .footer-bottom-right {
        width: 100%;
        justify-content: space-between;
    }

    /* Mobile Sticky Bottom Audio Player */
    .global-audio-bar {
        height: auto;
        min-height: 64px;
        padding: 8px 12px max(8px, env(safe-area-inset-bottom)) 12px;
    }
    .global-audio-inner {
        gap: 10px;
    }
    .bar-track-info {
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 95px);
        gap: 10px;
    }
    .bar-thumb-wrap {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }
    .bar-track-title {
        font-size: 0.88rem;
    }
    .bar-meta-sub {
        font-size: 0.72rem;
    }
    .bar-center-controls {
        display: none !important;
    }
    .bar-vol-wrap, .bar-quality-wrap, .bar-download-btn {
        display: none !important;
    }
    .bar-right-controls {
        gap: 8px;
    }
    .bar-mobile-play-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--accent), #ec4899);
        color: #fff;
        border: none;
        cursor: pointer;
        flex-shrink: 0;
        box-shadow: 0 4px 12px var(--accent-glow);
    }
    .bar-close-btn {
        width: 32px;
        height: 32px;
    }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
    .audios-grid {
        grid-template-columns: 1fr !important;
    }
    .card-thumb {
        height: 180px;
    }
    .slide-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .dl-track-card {
        flex-direction: column;
        text-align: center;
    }
    .dl-track-thumb {
        margin: 0 auto;
    }
    .btn-click-download {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    .master-pill-tag {
        font-size: 0.7rem;
    }
    .footer-newsletter-card {
        padding: 1.25rem 1rem;
    }
}

/* ==========================================================================
   Download Intermission Page & Formats Matrix
   ========================================================================== */
.dl-intermission-wrap {
    max-width: 820px;
    margin: 1.5rem auto 4.5rem auto;
    padding: 0 1rem;
}

.dl-track-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.75rem;
}

.dl-track-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: #111625;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.dl-track-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dl-track-meta {
    flex: 1;
    min-width: 0;
}

.dl-track-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.dl-track-sub {
    font-size: 0.85rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Formats & File Sizes Matrix Card */
.dl-formats-matrix-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    margin-bottom: 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.dl-matrix-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 8px;
}

.dl-matrix-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dl-matrix-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dl-matrix-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dl-format-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--bg-card-border);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.dl-format-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.dl-format-option.is-selected {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.dl-format-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.dl-format-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.dl-format-badge.badge-master {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.dl-format-badge.badge-hq {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(16, 185, 129, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #818cf8;
}

.dl-format-badge.badge-std {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
}

.dl-format-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dl-format-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dl-format-desc {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.dl-format-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.dl-filesize-tag {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dl-format-option.is-selected .dl-filesize-tag {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #10b981;
}

.dl-status-chip {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 12px;
    border-radius: 999px;
}

.dl-status-chip.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.dl-switch-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 6px 14px;
    border-radius: 999px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.dl-switch-link:hover {
    background: #6366f1;
    color: #fff;
}

/* Ad Card */
.dl-ad-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    margin-bottom: 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.ad-card-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ad-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ad-slot-body {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.countdown-bar-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.countdown-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
    font-variant-numeric: tabular-nums;
}

.btn-skip-ad {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-skip-ad:hover:not(:disabled) {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-skip-ad:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Download Action Card */
.download-action-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    text-align: center;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.75rem;
    animation: fadeInCard 0.4s ease-out forwards;
}

.btn-click-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1.15rem 2.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff !important;
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
    transition: var(--transition);
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.btn-click-download:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.6);
}

/* Multiple Format Direct Download Pills */
.dl-multi-size-container {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dl-multi-size-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dl-size-pills-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.dl-size-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.dl-size-pill-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: #fff;
    transform: translateY(-1px);
}

.dl-size-pill-btn.is-active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.dl-pill-bytes {
    font-size: 0.76rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 7px;
    border-radius: 4px;
    color: #cbd5e1;
}

/* ==========================================================================
   21. Monetization & Dynamic Ads Manager Display Styles
   ========================================================================== */
.ad-slot-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ad-slot-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-slot-wrap img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ad-slot-wrap a:hover img {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.3);
}

.ad-banner-link {
    display: inline-block;
    max-width: 100%;
    text-decoration: none;
}

/* Specific Slot Wrappers */
.hero-ad-wrap,
.folders-ad-wrap,
.catalog-ad-wrap,
.featured-top-ad-wrap,
.before-footer-ad-wrap,
.archive-top-ad-wrap,
.header-leaderboard-wrap {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.single-sidebar-ad-wrap,
.sidebar-ad-wrap {
    width: 100%;
}

.before-player-ad-wrap {
    background: rgba(15, 23, 42, 0.5);
    border: 1px dashed rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    padding: 8px;
}

.before-download-ad-wrap {
    background: rgba(15, 23, 42, 0.5);
    border: 1px dashed rgba(236, 72, 153, 0.25);
    border-radius: 12px;
    padding: 8px;
}

/* Responsive Single Track 2-Column Layout */
.single-track-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .single-track-layout {
        grid-template-columns: 1fr !important;
    }
    .single-sidebar-column {
        position: static !important;
        margin-top: 1.5rem;
    }
}

/* ==========================================================================
   STICKY BOTTOM AD DRAWER SYSTEM
   ========================================================================== */
.sonic-sticky-ad-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    transition: bottom 0.3s ease;
}

.ad-drawer-box {
    pointer-events: auto;
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    background: rgba(13, 17, 28, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.65);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .ad-drawer-box {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

.ad-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.ad-drawer-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .ad-drawer-header {
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .ad-drawer-header:hover {
    background: rgba(0, 0, 0, 0.06);
}

.ad-drawer-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

[data-theme="light"] .ad-drawer-badge {
    color: #64748b;
}

.ad-drawer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ec4899;
    box-shadow: 0 0 8px #ec4899;
    display: inline-block;
}

.ad-drawer-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ad-drawer-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    transform: translateY(-1px);
}

[data-theme="light"] .ad-drawer-toggle-btn {
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #334155;
}

[data-theme="light"] .ad-drawer-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

.ad-drawer-arrow {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform: rotate(0deg);
}

.ad-drawer-body {
    max-height: 250px;
    opacity: 1;
    padding: 8px 14px 10px 14px;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.35s ease;
    overflow: hidden;
}

.ad-drawer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

/* Collapsed Drawer State */
.sonic-sticky-ad-drawer.ad-drawer-collapsed .ad-drawer-body {
    max-height: 0 !important;
    opacity: 0 !important;
    padding: 0 14px !important;
}

.sonic-sticky-ad-drawer.ad-drawer-collapsed .ad-drawer-header {
    border-bottom: none;
}

.sonic-sticky-ad-drawer.ad-drawer-collapsed .ad-drawer-arrow {
    transform: rotate(180deg);
}

/* ==========================================================================
   22. Android Native App Mobile Experience & Mini Player
   ========================================================================== */

/* Universal Native Mobile Feel */
@media (max-width: 768px) {
    html {
        -webkit-tap-highlight-color: transparent;
        scroll-behavior: smooth;
    }

    body {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
        overflow-x: clip !important;
    }

    /* Hide bottom navigation bar & mini player & floating ads when navigation drawer is open */
    body.drawer-open .android-bottom-bar,
    body.drawer-open .android-mini-player,
    body.drawer-open .sonic-sticky-ad-drawer,
    body.drawer-open #sonicStickyBottomAd {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Prevent any element horizontal overflow */
    .site, #page, .site-main, .container {
        max-width: 100vw;
        overflow-x: clip !important;
    }

    /* Android Bottom Navigation Bar (Fixed docked at bottom on mobile) */
    .android-bottom-bar {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        height: calc(52px + env(safe-area-inset-bottom, 0px)) !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        background: rgba(10, 13, 20, 0.96) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        z-index: 9999 !important;
        align-items: center;
        justify-content: space-around;
        box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.55);
        user-select: none;
        -webkit-user-select: none;
        box-sizing: border-box;
    }

    [data-theme="light"] .android-bottom-bar {
        background: rgba(255, 255, 255, 0.96) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    }

    /* Ad drawer sits above the bottom bar on mobile */
    .sonic-sticky-ad-drawer {
        bottom: calc(52px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .before-footer-ad-section {
        margin: 1.5rem auto 1rem auto !important;
        padding: 0 0.75rem !important;
    }

    .android-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        height: 100%;
        color: var(--text-dim, #94a3b8);
        text-decoration: none;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 4px 0;
        transition: color 0.15s ease, transform 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .android-tab:active {
        transform: scale(0.92);
    }

    .android-tab-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 28px;
        border-radius: 999px;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .android-tab-label {
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        line-height: 1;
    }

    .android-tab.active {
        color: #fff;
    }

    [data-theme="light"] .android-tab.active {
        color: #0f172a;
    }

    .android-tab.active .android-tab-icon {
        color: var(--accent, #6366f1);
        background: rgba(99, 102, 241, 0.14);
    }

    .android-tab.active .android-tab-label {
        font-weight: 700;
        color: var(--accent, #6366f1);
    }

    /* Floating Android Mini Music Player */
    .android-mini-player {
        position: fixed !important;
        bottom: calc(54px + env(safe-area-inset-bottom, 0px)) !important;
        left: 8px !important;
        right: 8px !important;
        margin: 0 !important;
        background: rgba(18, 24, 38, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 1px rgba(99, 102, 241, 0.3);
        z-index: 9995 !important;
        overflow: hidden;
        animation: androidMiniSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    [data-theme="light"] .android-mini-player {
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    }

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

    .android-mini-progress-track {
        width: 100%;
        height: 3px;
        background: rgba(255, 255, 255, 0.1);
        position: relative;
    }

    .android-mini-progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #6366f1, #ec4899);
        transition: width 0.15s linear;
    }

    .android-mini-inner {
        display: flex;
        align-items: center;
        padding: 8px 12px;
        gap: 10px;
        cursor: pointer;
    }

    .android-mini-thumb-wrap {
        width: 42px;
        height: 42px;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
        flex-shrink: 0;
        background: #111625;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .android-mini-thumb {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .android-mini-equalizer {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        align-items: center;
        justify-content: center;
        gap: 2.5px;
    }

    .android-mini-player.is-playing .android-mini-equalizer {
        display: flex;
    }

    .eq-bar {
        width: 3px;
        background: #10b981;
        border-radius: 2px;
        height: 16px;
        animation: eqBounce 0.8s infinite ease-in-out alternate;
    }

    .eq-bar.bar-1 { animation-delay: 0.1s; height: 10px; }
    .eq-bar.bar-2 { animation-delay: 0.3s; height: 16px; }
    .eq-bar.bar-3 { animation-delay: 0.2s; height: 8px; }

    @keyframes eqBounce {
        0% { height: 4px; }
        100% { height: 18px; }
    }

    .android-mini-meta {
        flex: 1;
        min-width: 0;
    }

    .android-mini-title {
        font-size: 0.88rem;
        font-weight: 700;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.25;
    }

    [data-theme="light"] .android-mini-title {
        color: #0f172a;
    }

    .android-mini-artist {
        font-size: 0.74rem;
        color: var(--text-dim, #94a3b8);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-top: 1px;
    }

    .android-mini-controls {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .android-mini-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        border: none;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.15s ease, background 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    [data-theme="light"] .android-mini-btn {
        background: rgba(0, 0, 0, 0.06);
        color: #0f172a;
    }

    .android-mini-btn:active {
        transform: scale(0.9);
    }

    .android-mini-btn#androidMiniPlayBtn {
        background: linear-gradient(135deg, var(--accent, #6366f1), #ec4899);
        color: #fff;
        box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
    }

    .android-mini-btn.btn-close {
        width: 32px;
        height: 32px;
        color: var(--text-dim, #94a3b8);
        background: transparent;
    }

    /* Spotify-Style Compact Table on Mobile */
    .compact-table-container {
        border-radius: var(--radius-md);
        margin-bottom: 2rem;
        overflow-x: hidden;
    }

    .compact-table {
        table-layout: fixed;
        width: 100%;
    }

    .compact-table thead {
        display: none !important;
    }

    /* Hide desktop table columns on mobile */
    .compact-table th:nth-child(3),
    .compact-table td:nth-child(3),
    .compact-table th:nth-child(4),
    .compact-table td:nth-child(4),
    .compact-table th:nth-child(6),
    .compact-table td:nth-child(6),
    .compact-table th:nth-child(7),
    .compact-table td:nth-child(7) {
        display: none !important;
    }

    .compact-table th:nth-child(1),
    .compact-table td:nth-child(1) {
        width: 44px !important;
        padding: 0.65rem 0.35rem !important;
        text-align: center;
    }

    .compact-table th:nth-child(2),
    .compact-table td:nth-child(2) {
        width: auto !important;
        padding: 0.65rem 0.5rem !important;
    }

    .compact-table th:nth-child(5),
    .compact-table td:nth-child(5) {
        width: 60px !important;
        padding: 0.65rem 0.4rem !important;
        text-align: right;
        font-size: 0.78rem;
    }

    .compact-table th:nth-child(8),
    .compact-table td:nth-child(8) {
        width: 30px !important;
        padding: 0.65rem 0.35rem !important;
        text-align: center;
    }

    .track-cell-flex {
        gap: 8px;
    }

    .track-thumb-mini {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }

    .track-cell-title {
        font-size: 0.88rem;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 165px;
    }

    .track-cell-artist {
        font-size: 0.74rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 165px;
    }

    /* Single Track Turntable & Showcase Mobile */
    .track-hero-card {
        padding: 1.5rem 1rem !important;
    }

    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }

    .vinyl-showcase-container {
        width: 190px !important;
        height: 190px !important;
    }

    .vinyl-disc {
        width: 180px !important;
        height: 180px !important;
        right: -12px !important;
    }

    .artwork-cover {
        width: 180px !important;
        height: 180px !important;
        border-radius: 14px !important;
    }

    .vinyl-center-label {
        width: 55px !important;
        height: 55px !important;
    }
}

/* Desktop Floating Mini Player (>= 769px) */
@media (min-width: 769px) {
    .android-bottom-bar {
        display: none !important;
    }

    .android-mini-player {
        position: fixed;
        bottom: 24px;
        right: 24px;
        width: 360px;
        background: rgba(18, 24, 38, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 14px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 1px rgba(99, 102, 241, 0.3);
        z-index: 9998;
        overflow: hidden;
        animation: androidMiniSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    [data-theme="light"] .android-mini-player {
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    }

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

    .android-mini-progress-track {
        width: 100%;
        height: 3px;
        background: rgba(255, 255, 255, 0.1);
        position: relative;
    }

    .android-mini-progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #6366f1, #ec4899);
        transition: width 0.15s linear;
    }

    .android-mini-inner {
        display: flex;
        align-items: center;
        padding: 10px 14px;
        gap: 12px;
        cursor: pointer;
    }

    .android-mini-thumb-wrap {
        width: 44px;
        height: 44px;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
        flex-shrink: 0;
        background: #111625;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .android-mini-thumb {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .android-mini-equalizer {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        align-items: center;
        justify-content: center;
        gap: 2.5px;
    }

    .android-mini-player.is-playing .android-mini-equalizer {
        display: flex;
    }

    .eq-bar {
        width: 3px;
        background: #10b981;
        border-radius: 2px;
        height: 16px;
        animation: eqBounce 0.8s infinite ease-in-out alternate;
    }

    .eq-bar.bar-1 { animation-delay: 0.1s; height: 10px; }
    .eq-bar.bar-2 { animation-delay: 0.3s; height: 16px; }
    .eq-bar.bar-3 { animation-delay: 0.2s; height: 8px; }

    @keyframes eqBounce {
        0% { height: 4px; }
        100% { height: 18px; }
    }

    .android-mini-meta {
        flex: 1;
        min-width: 0;
    }

    .android-mini-title {
        font-size: 0.92rem;
        font-weight: 700;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.25;
    }

    [data-theme="light"] .android-mini-title {
        color: #0f172a;
    }

    .android-mini-artist {
        font-size: 0.78rem;
        color: var(--text-dim, #94a3b8);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-top: 1px;
    }

    .android-mini-controls {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .android-mini-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        border: none;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.15s ease, background 0.15s ease;
    }

    .android-mini-btn:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .android-mini-btn#androidMiniPlayBtn {
        background: linear-gradient(135deg, var(--accent, #6366f1), #ec4899);
        color: #fff;
        box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
    }

    .android-mini-btn.btn-close {
        width: 32px;
        height: 32px;
        color: var(--text-dim, #94a3b8);
        background: transparent;
    }

    .android-mini-btn.btn-close:hover {
        color: #fff;
    }
}

/* Extra Small Phones (<= 480px) Adjustments */
@media (max-width: 480px) {
    .site-main {
        padding: 0.75rem 0.75rem 0.5rem 0.75rem !important;
    }

    .header-container {
        padding: 0.65rem 0.85rem !important;
    }

    .track-cell-title {
        max-width: 125px !important;
    }

    .track-cell-artist {
        max-width: 125px !important;
    }

    .dl-format-option {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .dl-format-right {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .single-waveform-player-row {
        gap: 10px !important;
    }

    .btn-wave-play {
        width: 48px !important;
        height: 48px !important;
    }

    .waveform-canvas-box {
        height: 65px !important;
    }
}

/* ==========================================================================
   CATALOG / AUDIOS EXPLORER - MODERN RESPONSIVE STYLES
   ========================================================================== */
.catalog-wrapper {
    width: 100%;
    margin-bottom: 2rem;
}

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

.catalog-heading {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main, #ffffff);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.catalog-subheading {
    color: var(--text-muted, #94a3b8);
    font-size: 0.92rem;
    margin-top: 4px;
}

.catalog-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    padding: 5px 12px;
    border-radius: 999px;
    color: #a5b4fc;
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
}

/* Toolbar & Filters */
.catalog-toolbar-form {
    background: var(--bg-card, rgba(19, 24, 38, 0.75));
    border: 1px solid var(--bg-card-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-lg, 14px);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.catalog-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.catalog-search-wrap {
    position: relative;
    flex: 1 1 240px;
    display: flex;
    align-items: center;
}

.catalog-search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-dim, #64748b);
    pointer-events: none;
}

.catalog-search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--bg-card-border, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-md, 8px);
    padding: 0.55rem 2rem 0.55rem 2.25rem;
    color: #fff;
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition, all 0.2s ease);
}

[data-theme="light"] .catalog-search-input {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.12);
    color: #0f172a;
}

.catalog-search-input:focus {
    border-color: var(--accent, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.catalog-search-clear {
    position: absolute;
    right: 10px;
    color: var(--text-dim, #94a3b8);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.catalog-selects-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.catalog-select {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--bg-card-border, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-md, 8px);
    padding: 0.55rem 0.85rem;
    color: var(--text-main, #f8fafc);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: var(--transition, all 0.2s ease);
}

[data-theme="light"] .catalog-select {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.12);
    color: #0f172a;
}

.catalog-select:focus {
    border-color: var(--accent, #6366f1);
}

.view-switcher-bar {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md, 8px);
    padding: 3px;
    gap: 2px;
}

[data-theme="light"] .view-switcher-bar {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
}

.view-switcher-bar .switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--text-dim, #94a3b8);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-switcher-bar .switch-btn.active {
    background: var(--accent, #6366f1);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

/* ==========================================================================
   BROWSE LIST VIEW - DESKTOP & MOBILE ARCHITECTURE
   ========================================================================== */
.browse-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 2.5rem;
}

.browse-list-item {
    background: var(--bg-card, rgba(19, 24, 38, 0.75));
    border: 1px solid var(--bg-card-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-md, 10px);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

[data-theme="light"] .browse-list-item {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(0, 0, 0, 0.08);
}

.browse-list-item:hover {
    background: var(--bg-card-hover, rgba(28, 35, 54, 0.9));
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.browse-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.track-thumb-mini {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.track-thumb-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
    color: #fff;
}

.track-thumb-mini:hover .thumb-play-overlay {
    opacity: 1;
}

.thumb-fallback-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent, #6366f1);
}

.browse-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.browse-item-title {
    color: var(--text-main, #ffffff);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

[data-theme="light"] .browse-item-title {
    color: #0f172a;
}

.browse-item-meta {
    font-size: 0.78rem;
    color: var(--text-dim, #94a3b8);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browse-item-artist {
    color: var(--text-dim, #94a3b8);
    font-weight: 500;
}

.browse-item-category {
    color: #a5b4fc;
    font-weight: 600;
}

.meta-dot {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
}

[data-theme="light"] .meta-dot {
    color: rgba(0, 0, 0, 0.25);
}

.browse-item-specs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.orig-master-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(236, 72, 153, 0.35);
    color: #f472b6;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.spec-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim, #cbd5e1);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
}

[data-theme="light"] .spec-pill {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #475569;
}

.spec-stat {
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.spec-plays {
    color: #a78bfa;
}

.spec-dl {
    color: #34d399;
}

.browse-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-quick-play {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

[data-theme="light"] .btn-quick-play {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

.btn-quick-play:hover {
    background: var(--accent, #6366f1);
    border-color: var(--accent, #6366f1);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.browse-item-arrow {
    color: var(--text-dim, #64748b);
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

.browse-list-item:hover .browse-item-arrow {
    color: var(--text-main, #ffffff);
    transform: translateX(2px);
}

/* Visibility helpers */
.mobile-meta-item {
    display: none;
}
.mobile-quick-play {
    display: none;
}

/* Grid View Desktop & Base */
.browse-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.browse-grid-card {
    background: var(--bg-card, rgba(19, 24, 38, 0.75));
    border: 1px solid var(--bg-card-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

[data-theme="light"] .browse-grid-card {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(0, 0, 0, 0.08);
}

.browse-grid-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.grid-cover-wrap {
    position: relative;
    width: 100%;
    height: 160px;
    background: #0f1422;
    overflow: hidden;
}

.grid-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.browse-grid-card:hover .grid-cover-img {
    transform: scale(1.05);
}

.grid-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.browse-grid-card:hover .grid-play-overlay {
    opacity: 1;
}

.grid-play-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent, #6366f1), #ec4899);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5);
    transition: transform 0.15s ease;
}

.grid-play-overlay:hover .grid-play-circle {
    transform: scale(1.1);
}

.grid-duration-chip {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
}

.grid-body {
    padding: 0.85rem 1rem;
}

.grid-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 6px;
}

.grid-size-label {
    font-size: 0.74rem;
    color: var(--text-dim, #94a3b8);
    font-weight: 600;
}

.grid-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main, #ffffff);
    margin-bottom: 3px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="light"] .grid-title {
    color: #0f172a;
}

.grid-title a {
    color: inherit;
    text-decoration: none;
}

.grid-artist {
    font-size: 0.78rem;
    color: var(--text-dim, #94a3b8);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid-category-name {
    color: #a5b4fc;
    font-weight: 600;
}

.grid-stats-grid {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.74rem;
    font-weight: 600;
}

.grid-stat-plays {
    color: #a78bfa;
}

.grid-stat-dl {
    color: #34d399;
}

.grid-action-box {
    margin-top: 0.75rem;
}

.grid-preview-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    border-radius: 8px;
    border: 1px solid var(--bg-card-border, rgba(255, 255, 255, 0.1));
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="light"] .grid-preview-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

.grid-preview-btn:hover {
    background: var(--accent, #6366f1);
    color: #fff;
    border-color: var(--accent, #6366f1);
}

.catalog-empty-box {
    background: var(--bg-card, rgba(19, 24, 38, 0.75));
    border: 1px solid var(--bg-card-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-lg, 14px);
    padding: 3rem 1.5rem;
    text-align: center;
    margin: 2rem 0;
}

.catalog-empty-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
}

.catalog-empty-desc {
    color: var(--text-dim, #94a3b8);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.catalog-pagination-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

/* ==========================================================================
   GLOBAL MOBILE COMPACT DESIGN SYSTEM (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Global Shell & Tight Spacing */
    .site-main {
        padding: 0.65rem 0.65rem 0.5rem 0.65rem !important;
        max-width: 100vw !important;
        overflow-x: clip !important;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 999;
    }

    .header-container {
        padding: 0.45rem 0.75rem !important;
        min-height: 48px !important;
    }

    .brand-logo {
        gap: 8px !important;
    }

    .brand-logo span {
        font-size: 1.05rem !important;
    }

    .brand-icon-wrap {
        width: 30px !important;
        height: 30px !important;
    }

    .marquee-wrapper {
        margin-bottom: 0.75rem !important;
        padding: 0.65rem 0.85rem !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(168, 85, 247, 0.12), rgba(16, 185, 129, 0.1)) !important;
        border: 1px solid rgba(99, 102, 241, 0.28) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        display: flex !important;
    }

    [data-theme="light"] .marquee-wrapper {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.06), rgba(16, 185, 129, 0.06)) !important;
        border: 1px solid rgba(99, 102, 241, 0.2) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    }

    .marquee-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .marquee-top-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .marquee-badge {
        padding: 2.5px 7.5px !important;
        font-size: 0.65rem !important;
        letter-spacing: 0.04em !important;
        border-radius: 5px !important;
        gap: 5px !important;
    }

    .marquee-pulse-dot {
        width: 6px !important;
        height: 6px !important;
    }

    .marquee-text {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        font-weight: 500 !important;
        color: #e2e8f0 !important;
        word-break: break-word !important;
    }

    [data-theme="light"] .marquee-text {
        color: #1e293b !important;
    }

    .marquee-link-mobile {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        color: #fff !important;
        text-decoration: none !important;
        background: linear-gradient(135deg, var(--accent, #6366f1), #8b5cf6) !important;
        padding: 3px 10px !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35) !important;
        transition: transform 0.15s ease !important;
    }

    .marquee-link-mobile:active {
        transform: scale(0.95) !important;
    }

    .marquee-link-desktop {
        display: none !important;
    }

    .ad-slot-container {
        margin: 0.65rem 0 !important;
    }

    .section-header {
        margin-bottom: 0.65rem !important;
        gap: 6px !important;
    }

    .section-title {
        font-size: 1.15rem !important;
    }

    .section-subtitle {
        font-size: 0.78rem !important;
    }

    /* 2. Catalog (/audios) Mobile Compact List View (Native Music App Aesthetic) */
    .catalog-wrapper {
        margin-bottom: 1.5rem !important;
    }

    .catalog-header-wrap {
        margin-bottom: 0.65rem !important;
        gap: 6px !important;
    }

    .catalog-heading {
        font-size: 1.25rem !important;
        letter-spacing: -0.01em !important;
    }

    .catalog-subheading {
        font-size: 0.76rem !important;
        margin-top: 2px !important;
    }

    .catalog-count-badge {
        padding: 3px 8px !important;
        font-size: 0.7rem !important;
    }

    .catalog-toolbar-form {
        padding: 0.55rem 0.65rem !important;
        margin-bottom: 0.75rem !important;
        border-radius: 10px !important;
    }

    .catalog-toolbar-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
    }

    .catalog-search-wrap {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    .catalog-search-input {
        padding: 0.4rem 1.75rem 0.4rem 2rem !important;
        font-size: 0.82rem !important;
        height: 34px !important;
        border-radius: 8px !important;
    }

    .catalog-selects-wrap {
        width: 100% !important;
        display: flex !important;
        gap: 6px !important;
    }

    .catalog-select {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 0.35rem 0.5rem !important;
        font-size: 0.76rem !important;
        height: 34px !important;
        border-radius: 8px !important;
        text-overflow: ellipsis !important;
    }

    .view-switcher-bar {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .view-switcher-bar .switch-btn {
        flex: 1 !important;
        justify-content: center !important;
        padding: 0.35rem 0.5rem !important;
        font-size: 0.75rem !important;
    }

    /* Spotify-Style Mobile Compact List View Item */
    .browse-list-container {
        gap: 6px !important;
        margin-bottom: 1.5rem !important;
    }

    .browse-list-item {
        padding: 6px 10px !important;
        gap: 8px !important;
        border-radius: 10px !important;
        min-height: 52px !important;
    }

    .browse-item-left {
        gap: 9px !important;
    }

    .desktop-quick-play {
        display: none !important;
    }

    .track-thumb-mini {
        width: 40px !important;
        height: 40px !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
    }

    .thumb-play-overlay {
        opacity: 0.8 !important;
        background: rgba(0, 0, 0, 0.3) !important;
    }

    .browse-item-info {
        gap: 1px !important;
        min-width: 0 !important;
    }

    .browse-item-title {
        font-size: 0.86rem !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
        max-width: 100% !important;
    }

    .browse-item-meta {
        font-size: 0.72rem !important;
        line-height: 1.2 !important;
        max-width: 100% !important;
    }

    .mobile-meta-item {
        display: inline !important;
    }

    .desktop-specs {
        display: none !important;
    }

    .mobile-quick-play {
        display: flex !important;
        width: 30px !important;
        height: 30px !important;
        background: linear-gradient(135deg, var(--accent, #6366f1), #ec4899) !important;
        border: none !important;
        color: #fff !important;
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4) !important;
    }

    .browse-item-arrow {
        display: none !important;
    }

    /* 3. Catalog & Homepage Mobile Grid View (Strict 2-Column Grid) */
    .browse-grid-container,
    .tracks-grid-view {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 1.5rem !important;
        width: 100% !important;
    }

    .browse-grid-card,
    .grid-track-card {
        border-radius: 9px !important;
        padding: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--bg-card-border) !important;
        min-width: 0 !important;
    }

    .grid-cover-wrap,
    .card-cover {
        height: 110px !important;
        position: relative !important;
        overflow: hidden !important;
        background: #0f131d !important;
    }

    .grid-cover-img,
    .card-cover img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .grid-play-overlay,
    .card-cover-play {
        position: absolute !important;
        inset: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(0, 0, 0, 0.35) !important;
        opacity: 0.9 !important;
    }

    .grid-play-circle,
    .card-cover-play svg {
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        background: var(--accent) !important;
        color: #fff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4) !important;
    }

    .grid-play-circle svg,
    .card-cover-play svg {
        width: 15px !important;
        height: 15px !important;
    }

    .grid-duration-chip,
    .card-duration-badge {
        font-size: 0.62rem !important;
        padding: 1px 4px !important;
        bottom: 4px !important;
        right: 4px !important;
        border-radius: 4px !important;
        background: rgba(0, 0, 0, 0.75) !important;
    }

    .grid-body,
    .card-body {
        padding: 6px 8px !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .grid-badge-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 4px !important;
        margin-bottom: 3px !important;
    }

    .orig-master-badge {
        font-size: 0.62rem !important;
        padding: 1px 4px !important;
    }

    .grid-size-label {
        font-size: 0.68rem !important;
    }

    .grid-title,
    .card-title {
        font-size: 0.8rem !important;
        line-height: 1.25 !important;
        margin-bottom: 2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-weight: 700 !important;
    }

    .card-title a,
    .grid-title a {
        color: var(--text-main, #ffffff) !important;
        text-decoration: none !important;
    }

    .grid-artist,
    .card-artist {
        font-size: 0.7rem !important;
        margin-bottom: 3px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        color: var(--text-dim) !important;
    }

    .grid-stats-grid,
    .card-meta-bar {
        font-size: 0.66rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 4px !important;
        color: var(--text-dim) !important;
        margin-top: auto !important;
        padding-top: 4px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .grid-action-box {
        margin-top: 5px !important;
    }

    .grid-preview-btn {
        width: 100% !important;
        padding: 0.3rem 0.5rem !important;
        font-size: 0.7rem !important;
        border-radius: 6px !important;
        justify-content: center !important;
    }

    /* 4. Homepage Hero Carousel Mobile Compact */
    .hero-carousel-container {
        margin-bottom: 1rem !important;
        border-radius: 12px !important;
    }

    .carousel-slide {
        padding: 0.75rem 0.65rem !important;
        gap: 0.65rem !important;
        text-align: center !important;
    }

    .slide-badge {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
        margin-bottom: 0.25rem !important;
    }

    .slide-title {
        font-size: 1.15rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.2rem !important;
    }

    .slide-artist {
        font-size: 0.75rem !important;
        margin-bottom: 0.4rem !important;
    }

    .hero-simple-thumbnail {
        width: 80px !important;
        height: 80px !important;
        border-radius: 8px !important;
        margin: 0 auto !important;
    }

    .slide-actions {
        margin-top: 0.5rem !important;
        gap: 6px !important;
        justify-content: center !important;
    }

    .slide-actions .btn {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.8rem !important;
        border-radius: 6px !important;
    }

    .carousel-btn {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.7rem !important;
    }

    .carousel-dots {
        margin-top: 6px !important;
        gap: 4px !important;
    }

    .dot {
        width: 5px !important;
        height: 5px !important;
    }

    /* 5. Front Page Compact Table */
    .compact-table-container {
        margin-bottom: 1.25rem !important;
        border-radius: 9px !important;
    }

    .compact-table td {
        padding: 0.45rem 0.35rem !important;
    }

    .track-thumb-mini {
        width: 36px !important;
        height: 36px !important;
        border-radius: 6px !important;
    }

    .track-cell-title {
        font-size: 0.82rem !important;
        line-height: 1.2 !important;
        max-width: 140px !important;
    }

    .track-cell-artist {
        font-size: 0.7rem !important;
        max-width: 140px !important;
    }

    /* 6. Single Audio Page Mobile Compact */
    .single-track-layout {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .track-hero-card {
        padding: 0.85rem 0.65rem !important;
        border-radius: 10px !important;
        margin-bottom: 0.85rem !important;
    }

    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
        text-align: center !important;
        justify-items: center !important;
    }

    .hero-content > div:last-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .vinyl-showcase-container {
        width: 130px !important;
        height: 130px !important;
        margin: 0 auto !important;
    }

    .vinyl-disc {
        width: 120px !important;
        height: 120px !important;
        right: -6px !important;
    }

    .artwork-cover {
        width: 120px !important;
        height: 120px !important;
        border-radius: 8px !important;
    }

    .vinyl-center-label {
        width: 38px !important;
        height: 38px !important;
    }

    .track-main-title {
        font-size: 1.25rem !important;
        line-height: 1.25 !important;
        margin-bottom: 4px !important;
        text-align: center !important;
    }

    .track-artist-row {
        font-size: 0.8rem !important;
        justify-content: center !important;
        margin-bottom: 0.75rem !important;
    }

    .track-meta-chips {
        gap: 4px !important;
        margin: 0.4rem 0 0.85rem 0 !important;
        justify-content: center !important;
    }

    .meta-chip, .spec-pill {
        font-size: 0.68rem !important;
        padding: 2px 7px !important;
    }

    .single-action-row {
        margin-top: 0.65rem !important;
        gap: 6px !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .single-action-row .btn {
        padding: 0.55rem 1rem !important;
        font-size: 0.84rem !important;
        border-radius: 8px !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .single-player-section {
        margin-top: 0.85rem !important;
        padding-top: 0.85rem !important;
        width: 100%;
    }

    .waveform-canvas-box {
        height: 48px !important;
    }

    .btn-wave-play {
        width: 38px !important;
        height: 38px !important;
    }

    .btn-wave-play svg {
        width: 16px !important;
        height: 16px !important;
    }

    .single-waveform-player-row {
        gap: 8px !important;
    }

    #singleQualityPills {
        gap: 4px !important;
        margin-bottom: 6px !important;
        justify-content: center !important;
    }

    #singleQualityPills button {
        padding: 2px 7px !important;
        font-size: 0.68rem !important;
    }

    .master-file-card {
        padding: 0.85rem 0.75rem !important;
        border-radius: 10px !important;
        margin-bottom: 1rem !important;
    }

    .master-grid-box {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .master-file-name {
        font-size: 0.95rem !important;
    }

    .master-meta-tags {
        font-size: 0.74rem !important;
        gap: 4px !important;
    }

    .master-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 6px !important;
    }

    .btn-master-play, .btn-master-download {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.82rem !important;
    }

    .download-matrix-card {
        padding: 0.85rem 0.65rem !important;
        border-radius: 10px !important;
        margin-bottom: 1.25rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .formats-table th:nth-child(3),
    .formats-table td:nth-child(3),
    .formats-table th:nth-child(4),
    .formats-table td:nth-child(4) {
        display: none !important;
    }

    .formats-table th, .formats-table td {
        padding: 0.5rem 0.4rem !important;
        font-size: 0.76rem !important;
    }

    .formats-table .btn-sm {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.72rem !important;
        white-space: nowrap !important;
    }

    /* 7. Download Gateway Page Mobile Compact */
    .dl-intermission-wrap {
        padding: 0 0.5rem !important;
        margin: 0.75rem auto 2.5rem auto !important;
    }

    .dl-track-card {
        padding: 0.65rem 0.75rem !important;
        gap: 0.75rem !important;
        border-radius: 10px !important;
        margin-bottom: 0.85rem !important;
    }

    .dl-track-thumb {
        width: 44px !important;
        height: 44px !important;
        border-radius: 8px !important;
    }

    .dl-track-title {
        font-size: 0.98rem !important;
        line-height: 1.25 !important;
    }

    .dl-track-sub {
        font-size: 0.72rem !important;
        gap: 4px !important;
    }

    .dl-formats-matrix-card {
        padding: 0.85rem 0.75rem !important;
        border-radius: 10px !important;
        margin-bottom: 0.85rem !important;
    }

    .dl-matrix-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        margin-bottom: 0.75rem !important;
    }

    .dl-matrix-title {
        font-size: 1rem !important;
    }

    .dl-matrix-subtitle {
        font-size: 0.72rem !important;
    }

    .dl-format-option {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 8px 10px !important;
        border-radius: 8px !important;
        gap: 6px !important;
    }

    .dl-format-left {
        gap: 8px !important;
        width: 100% !important;
    }

    .dl-format-right {
        width: 100% !important;
        justify-content: space-between !important;
        margin-top: 2px !important;
    }

    .dl-format-badge {
        font-size: 0.64rem !important;
        padding: 2px 6px !important;
    }

    .dl-format-name {
        font-size: 0.82rem !important;
    }

    .dl-format-desc {
        font-size: 0.68rem !important;
    }

    .dl-filesize-tag {
        font-size: 0.75rem !important;
        padding: 3px 8px !important;
    }

    .dl-ad-card {
        padding: 0.75rem !important;
        border-radius: 10px !important;
        margin-bottom: 0.85rem !important;
    }

    .ad-slot-body {
        min-height: 180px !important;
    }

    .countdown-bar-wrap {
        margin-top: 0.65rem !important;
        padding-top: 0.65rem !important;
        gap: 6px !important;
    }

    .download-action-card {
        padding: 0.85rem 0.75rem !important;
        border-radius: 10px !important;
    }

    .btn-click-download {
        padding: 0.65rem 1rem !important;
        font-size: 0.88rem !important;
        border-radius: 8px !important;
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .dl-multi-size-container {
        margin-top: 0.85rem !important;
        padding-top: 0.75rem !important;
    }

    .dl-size-pills-row {
        gap: 6px !important;
    }

    .dl-size-pill-btn {
        padding: 4px 8px !important;
        font-size: 0.72rem !important;
        border-radius: 6px !important;
    }

    /* 7b. Static Page Template Mobile Compact */
    .page-wrapper-card {
        margin: 0.75rem auto 2.5rem auto !important;
        padding: 0 0.5rem !important;
    }

    .page-article-card {
        padding: 1rem 0.85rem !important;
        border-radius: 10px !important;
    }

    .page-article-title {
        font-size: 1.35rem !important;
        line-height: 1.25 !important;
    }

    /* 8. Categories Page Compact (Mobile) */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .category-card {
        padding: 8px 10px !important;
        border-radius: 9px !important;
    }

    .category-icon {
        width: 24px !important;
        height: 24px !important;
    }

    .category-name {
        font-size: 0.8rem !important;
    }

    .category-count {
        font-size: 0.68rem !important;
    }

    /* 9. Footer & Newsletter Mobile Compact */
    .site-footer {
        padding: 1.25rem 0.65rem calc(5rem + env(safe-area-inset-bottom)) 0.65rem !important;
    }

    .footer-newsletter-card {
        padding: 0.85rem !important;
        gap: 0.75rem !important;
        border-radius: 10px !important;
    }

    .newsletter-title {
        font-size: 1.1rem !important;
    }

    .newsletter-desc {
        font-size: 0.75rem !important;
    }

    .newsletter-input {
        padding: 0.45rem 0.65rem !important;
        font-size: 0.78rem !important;
    }

    .newsletter-btn {
        padding: 0.45rem 0.75rem !important;
        font-size: 0.8rem !important;
    }

    .footer-grid {
        gap: 1rem !important;
    }

    .footer-col h4 {
        font-size: 0.85rem !important;
        margin-bottom: 0.35rem !important;
    }

    .footer-links li {
        margin-bottom: 0.25rem !important;
        font-size: 0.78rem !important;
    }

    .brand-bio {
        font-size: 0.75rem !important;
        line-height: 1.35 !important;
    }

    .footer-network-status {
        padding: 6px 10px !important;
        font-size: 0.72rem !important;
    }

    /* 10. Mobile Bottom Navigation & Mini Player Compact Dock */
    .android-bottom-bar {
        height: 48px !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .android-tab-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .android-tab-label {
        font-size: 0.6rem !important;
    }

    .android-mini-player {
        position: fixed !important;
        bottom: calc(50px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .sonic-sticky-ad-drawer {
        bottom: calc(48px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .android-mini-inner {
        padding: 5px 8px !important;
        gap: 8px !important;
    }

    .android-mini-thumb-wrap {
        width: 36px !important;
        height: 36px !important;
        border-radius: 6px !important;
    }

    .android-mini-title {
        font-size: 0.82rem !important;
    }

    .android-mini-artist {
        font-size: 0.68rem !important;
    }

    .android-mini-btn {
        width: 32px !important;
        height: 32px !important;
    }
}

/* ==========================================================================
   24. Comprehensive Light Mode Theme System & High Contrast Overrides
   ========================================================================== */
[data-theme="light"] {
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-card-border: rgba(0, 0, 0, 0.08);
    --bg-card-border-hover: rgba(99, 102, 241, 0.5);

    --text-primary: #0f172a;
    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #475569;
    --text-dim: #64748b;

    --navbar-bg: rgba(255, 255, 255, 0.96);
    --navbar-border: rgba(0, 0, 0, 0.08);
    --shadow-subtle: 0 4px 16px rgba(0, 0, 0, 0.05);
    --shadow-elevated: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 1. Global Typography & Headings in Light Mode */
[data-theme="light"] body {
    background-color: #f8fafc;
    color: #0f172a;
}
[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3, 
[data-theme="light"] h4, 
[data-theme="light"] h5, 
[data-theme="light"] h6 {
    color: #0f172a;
}
[data-theme="light"] p {
    color: #334155;
}

/* 2. Hero Section in Light Mode */
[data-theme="light"] .hero-carousel-container {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .slide-title {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: #0f172a !important;
}
[data-theme="light"] .slide-title a {
    color: #0f172a !important;
}
[data-theme="light"] .slide-artist {
    color: #475569 !important;
}
[data-theme="light"] .slide-badge {
    background: rgba(99, 102, 241, 0.1) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    color: #4f46e5 !important;
}
[data-theme="light"] .hero-btn-download.btn-ghost,
[data-theme="light"] .btn-ghost {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .hero-btn-download.btn-ghost:hover,
[data-theme="light"] .btn-ghost:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}
[data-theme="light"] .carousel-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .carousel-dots .dot {
    background: #cbd5e1 !important;
}
[data-theme="light"] .carousel-dots .dot.active {
    background: #6366f1 !important;
}

/* 3. Button & Pill Elements in Light Mode */
[data-theme="light"] .spec-pill {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .badge {
    color: #334155;
}
[data-theme="light"] .btn-quick-play {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #4f46e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .btn-quick-play:hover {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

/* 4. Browse Rows, Cards & Tables in Light Mode */
[data-theme="light"] .clickable-row-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .clickable-row-card:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}
[data-theme="light"] .track-cell-title,
[data-theme="light"] .card-title,
[data-theme="light"] .grid-title,
[data-theme="light"] .browse-item-title {
    color: #0f172a !important;
}
[data-theme="light"] .card-title a,
[data-theme="light"] .grid-title a,
[data-theme="light"] .browse-item-title a {
    color: #0f172a !important;
}
[data-theme="light"] .home-showcase-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .folder-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .folder-details h4 {
    color: #0f172a !important;
}
[data-theme="light"] .folder-details span {
    color: #64748b !important;
}
[data-theme="light"] .browse-list-item {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
[data-theme="light"] .browse-list-item:hover {
    background: #f8fafc !important;
}
[data-theme="light"] .browse-grid-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .compact-table-container {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .compact-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .compact-table td {
    color: #1e293b !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
[data-theme="light"] .clickable-track-row:hover {
    background: #f8fafc !important;
}

/* 5. Catalog Search & Filters in Light Mode */
[data-theme="light"] .catalog-search-wrap {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .catalog-search-input {
    background: transparent !important;
    color: #0f172a !important;
}
[data-theme="light"] .catalog-search-input::placeholder {
    color: #94a3b8 !important;
}
[data-theme="light"] .catalog-select {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}
[data-theme="light"] .catalog-select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}
[data-theme="light"] .catalog-heading {
    color: #0f172a !important;
}
[data-theme="light"] .catalog-subheading {
    color: #475569 !important;
}
[data-theme="light"] .catalog-count-badge {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}
[data-theme="light"] .view-switcher-bar {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
}
[data-theme="light"] .view-switcher-bar .switch-btn {
    color: #64748b !important;
}
[data-theme="light"] .view-switcher-bar .switch-btn.active {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 6. Single Track Details Page in Light Mode */
[data-theme="light"] .track-hero-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .track-main-title {
    color: #0f172a !important;
}
[data-theme="light"] .track-artist-row {
    color: #475569 !important;
}
[data-theme="light"] .waveform-canvas-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
[data-theme="light"] #singleCurTime {
    color: #334155 !important;
}
[data-theme="light"] #singleTotalTime {
    color: #64748b !important;
}
[data-theme="light"] .master-file-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.07), rgba(236, 72, 153, 0.04)) !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.08) !important;
}
[data-theme="light"] .master-file-name {
    color: #0f172a !important;
}
[data-theme="light"] .btn-master-play {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .btn-master-play:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}
[data-theme="light"] .download-matrix-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .download-matrix-card h2 {
    color: #0f172a !important;
}
[data-theme="light"] .formats-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .formats-table td {
    color: #1e293b !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
[data-theme="light"] .formats-table td strong {
    color: #0f172a !important;
}
[data-theme="light"] .side-spec-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .side-spec-card h3 {
    color: #0f172a !important;
}
[data-theme="light"] .side-spec-card span {
    color: #0f172a !important;
}
[data-theme="light"] .side-spec-card span[style*="var(--text-dim)"] {
    color: #64748b !important;
}

/* 7. Download Intermission Page in Light Mode */
[data-theme="light"] .dl-track-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .dl-track-title {
    color: #0f172a !important;
}
[data-theme="light"] .dl-track-sub {
    color: #475569 !important;
}
[data-theme="light"] .dl-track-sub span {
    color: #475569 !important;
}
[data-theme="light"] .dl-track-sub strong {
    color: #0f172a !important;
}
[data-theme="light"] .dl-ad-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .ad-card-top-bar {
    border-bottom: 1px solid #f1f5f9 !important;
}
[data-theme="light"] .ad-label {
    color: #64748b !important;
}
[data-theme="light"] .ad-slot-body {
    background: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
}
[data-theme="light"] .countdown-bar-wrap {
    border-top: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}
[data-theme="light"] .btn-skip-ad {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .btn-skip-ad:hover:not(:disabled) {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}
[data-theme="light"] .download-action-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(99, 102, 241, 0.05)) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .dl-multi-size-container {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .dl-multi-size-title {
    color: #0f172a !important;
}
[data-theme="light"] .dl-size-pill-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .dl-size-pill-btn:hover {
    background: #f1f5f9 !important;
    border-color: #6366f1 !important;
    color: #6366f1 !important;
}
[data-theme="light"] .dl-size-pill-btn.is-active {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #059669 !important;
}
[data-theme="light"] .dl-pill-bytes {
    background: #f1f5f9 !important;
    color: #475569 !important;
}
[data-theme="light"] .dl-formats-matrix-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .dl-matrix-header {
    border-bottom: 1px solid #f1f5f9 !important;
}
[data-theme="light"] .dl-matrix-title {
    color: #0f172a !important;
}
[data-theme="light"] .dl-matrix-subtitle {
    color: #64748b !important;
}
[data-theme="light"] .dl-format-option {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .dl-format-option:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}
[data-theme="light"] .dl-format-name {
    color: #0f172a !important;
}
[data-theme="light"] .dl-format-desc {
    color: #64748b !important;
}
[data-theme="light"] .dl-filesize-tag {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}
[data-theme="light"] .dl-switch-link {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .dl-switch-link:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

/* 8. Site Footer in Light Mode */
[data-theme="light"] .site-footer {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .footer-col h4 {
    color: #0f172a !important;
}
[data-theme="light"] .footer-links a {
    color: #475569 !important;
}
[data-theme="light"] .footer-links a:hover {
    color: #0f172a !important;
}
[data-theme="light"] .brand-bio {
    color: #64748b !important;
}
[data-theme="light"] .footer-newsletter-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .newsletter-title {
    color: #0f172a !important;
}
[data-theme="light"] .newsletter-desc {
    color: #475569 !important;
}
[data-theme="light"] .newsletter-input-group {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .newsletter-input {
    color: #0f172a !important;
}
[data-theme="light"] .newsletter-fineprint {
    color: #64748b !important;
}
[data-theme="light"] .social-icon-btn {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}
[data-theme="light"] .social-icon-btn:hover {
    color: #ffffff !important;
}
[data-theme="light"] .footer-bottom {
    border-top: 1px solid #f1f5f9 !important;
    color: #64748b !important;
}
[data-theme="light"] .footer-bottom-left {
    color: #64748b !important;
}

/* 9. Header & Global Player Bar in Light Mode */
[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .nav-link {
    color: #475569 !important;
}
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: #0f172a !important;
    background: rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .global-audio-bar {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .bar-track-title {
    color: #0f172a !important;
}
[data-theme="light"] .bar-artist-name {
    color: #475569 !important;
}
/* 10. Featured Selections Showcase */
[data-theme="light"] .clickable-row-card {
    transition: background 0.15s ease;
}
[data-theme="light"] .clickable-row-card:hover {
    background: #f1f5f9 !important;
}
[data-theme="light"] .clickable-row-card a {
    color: #0f172a !important;
}
