/* ==========================================================================
   AURASTREAM - LUXURY AMBIENT GLASS DESIGN SYSTEM & HI-FI AUDIO ENGINE
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-page: #f4f6fa;
    --bg-surface: rgba(255, 255, 255, 0.88);
    --bg-surface-solid: #ffffff;
    --bg-surface-hover: #f8fafc;
    --bg-surface-subtle: #f1f5f9;
    
    --brand-primary: #10b981;
    --brand-primary-hover: #059669;
    --brand-primary-light: rgba(16, 185, 129, 0.1);
    --brand-primary-shadow: rgba(16, 185, 129, 0.3);

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-subdued: #94a3b8;

    --border-main: #e2e8f0;
    --border-light: #f1f5f9;
    
    --glass-bg: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.08);
    --shadow-floating: 0 16px 40px rgba(15, 23, 42, 0.08);

    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --player-height: 90px;
    --sidebar-width: 250px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-family);
    background: radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.06) 0px, transparent 40%),
                radial-gradient(at 100% 0%, rgba(14, 165, 233, 0.06) 0px, transparent 40%),
                radial-gradient(at 50% 100%, rgba(244, 63, 94, 0.03) 0px, transparent 50%),
                var(--bg-page);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

/* App Container Layout */
.app-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: 1fr var(--player-height);
    height: 100vh;
    width: 100vw;
    padding: 10px 10px 12px 10px;
    gap: 10px;
}

/* ==========================================================================
   SIDEBAR NAVIGATION
   ========================================================================== */
.sidebar {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    gap: 18px;
    overflow-y: auto;
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
    padding: 0 8px;
    margin-bottom: 4px;
}

.logo svg {
    width: 30px;
    height: 30px;
    fill: var(--brand-primary);
}

.logo span {
    font-weight: 900;
    color: var(--brand-primary);
    margin-left: 2px;
}

.nav-group {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.nav-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.nav-link:hover {
    color: var(--text-main);
    background-color: var(--bg-surface-subtle);
}

.nav-link.active {
    color: var(--brand-primary);
    background-color: var(--brand-primary-light);
    font-weight: 800;
}

.sidebar-divider {
    height: 1px;
    background-color: var(--border-main);
    margin: 2px 6px;
}

.sidebar-library {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.library-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    color: var(--text-subdued);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ==========================================================================
   MAIN CONTENT AREA & TOPBAR
   ========================================================================== */
.main-content {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-sm);
}

/* Sticky Top Bar */
.topbar {
    height: 64px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-main);
    gap: 14px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    max-width: 440px;
    min-width: 0;
}

.nav-arrows {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-surface-subtle);
    border: 1px solid var(--border-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.btn-arrow:hover {
    background-color: #e2e8f0;
    transform: scale(1.05);
}

.btn-arrow svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Category Filter Pills */
.category-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.pill {
    padding: 6px 14px;
    border-radius: 500px;
    border: 1px solid var(--border-main);
    background: #ffffff;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.pill:hover {
    color: var(--text-main);
    background-color: var(--bg-surface-subtle);
}

.pill.active {
    background: var(--text-main);
    color: #ffffff;
    border-color: var(--text-main);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

/* Search Bar */
.search-bar-container {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 140px;
    max-width: 380px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-surface-subtle);
    border: 1px solid var(--border-main);
    border-radius: 500px;
    padding: 7px 14px;
    width: 100%;
    transition: all var(--transition-fast);
}

.search-bar:focus-within {
    background-color: #ffffff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-light);
}

.search-bar svg {
    width: 16px;
    height: 16px;
    fill: var(--text-muted);
    flex-shrink: 0;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    outline: none;
    min-width: 0;
}

.search-bar input::placeholder {
    color: var(--text-subdued);
    font-weight: 500;
}

.search-clear-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 4px;
    border-radius: 50%;
    transition: color var(--transition-fast);
    flex-shrink: 0;
}

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

/* Search Page Aesthetics */
.search-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.search-tag {
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: 500px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-tag:hover {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--brand-primary-shadow);
}

.browse-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.category-tile {
    position: relative;
    height: 120px;
    border-radius: 14px;
    padding: 16px;
    overflow: hidden;
    color: #ffffff;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-tile:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.category-tile-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.category-tile-desc {
    font-size: 12px;
    opacity: 0.85;
    font-weight: 600;
}

.search-top-result-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    margin-bottom: 35px;
}

@media (max-width: 900px) {
    .search-top-result-layout {
        grid-template-columns: 1fr;
    }
}

.top-result-card {
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.top-result-card:hover {
    background: #fafafa;
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

.top-result-card:hover .card-play-btn {
    opacity: 1;
    transform: translateY(0);
}

.top-result-img {
    width: 85px;
    height: 85px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.top-result-img.artist-circle {
    border-radius: 50%;
}

.top-result-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.top-result-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 500px;
    background: var(--bg-surface-subtle);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    width: fit-content;
}

/* Topbar Actions */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-flac {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 500px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--brand-primary);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    box-shadow: 0 0 8px var(--brand-primary);
    animation: pulseDot 2s infinite ease-in-out;
}

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

.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 500px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-main);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-admin:hover {
    background-color: #e2e8f0;
    transform: translateY(-1px);
}

/* Scrollable Main Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px 48px 28px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.content-area::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.queue-body::-webkit-scrollbar {
    width: 6px;
}

.content-area::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb,
.queue-body::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

/* ==========================================================================
   FEATURED HERO SHOWCASE BANNER & AMBIENT DISCOGRAPHY STAGE
   ========================================================================== */
.hero-showcase {
    position: relative;
    border-radius: 26px;
    background: linear-gradient(135deg, #070d1e 0%, #0d172e 35%, #191638 70%, #032b28 100%);
    padding: 44px 52px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    min-height: 280px;
    transition: all var(--transition-normal);
}

.hero-showcase::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, rgba(6, 182, 212, 0.25) 40%, rgba(99, 102, 241, 0.18) 65%, transparent 80%);
    filter: blur(65px);
    pointer-events: none;
    animation: pulseAurora 10s ease-in-out infinite alternate;
}

.hero-showcase::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(16, 185, 129, 0.12) 50%, transparent 75%);
    filter: blur(55px);
    pointer-events: none;
}

@keyframes pulseAurora {
    0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    50% { transform: scale(1.12) translate(-20px, 15px); opacity: 1; }
    100% { transform: scale(0.95) translate(15px, -10px); opacity: 0.85; }
}

.hero-info {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-badge-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #34d399;
    background: rgba(16, 185, 129, 0.16);
    padding: 6px 14px;
    border-radius: 500px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    backdrop-filter: blur(8px);
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(6, 182, 212, 0.14);
    padding: 6px 14px;
    border-radius: 500px;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.hero-artist-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 14px 5px 7px;
    border-radius: 500px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: all var(--transition-fast);
}

.hero-artist-tag:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-artist-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-title {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 900;
    letter-spacing: -0.8px;
    line-height: 1.15;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
    margin: 0;
}

.hero-title span {
    background: linear-gradient(135deg, #a7f3d0 0%, #38bdf8 60%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
    line-height: 1.6;
    max-width: 700px;
    margin: 0;
    hyphens: none;
    word-break: normal;
}

.hero-stats-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 600;
    margin-top: 4px;
}

.hero-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero-stat-item svg {
    color: #34d399;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.btn-hero-play-featured {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 500px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    transition: all var(--transition-fast);
}

.btn-hero-play-featured:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 26px rgba(16, 185, 129, 0.6);
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.btn-hero-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 500px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-hero-explore:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-hero-quick-track {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 500px;
    background: rgba(6, 182, 212, 0.15);
    color: #38bdf8;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(6, 182, 212, 0.35);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-hero-quick-track:hover {
    background: rgba(6, 182, 212, 0.28);
    transform: translateY(-2px);
    color: #ffffff;
}

.hero-vinyl-wrapper {
    position: relative;
    width: 250px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 3;
}

.hero-album-jacket {
    width: 175px;
    height: 175px;
    border-radius: 16px;
    object-fit: cover;
    position: relative;
    z-index: 4;
    box-shadow: -12px 14px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-normal);
}

.hero-vinyl-wrapper:hover .hero-album-jacket {
    transform: scale(1.04) rotate(-2deg);
}

.hero-vinyl-disc {
    position: absolute;
    right: 8px;
    width: 162px;
    height: 162px;
    border-radius: 50%;
    background: repeating-radial-gradient(#080808, #080808 2px, #161616 3px, #080808 4px);
    z-index: 3;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    border: 2px solid #222;
    animation: rotateVinyl 12s linear infinite;
    transition: right var(--transition-normal);
}

.hero-vinyl-wrapper:hover .hero-vinyl-disc {
    right: -16px;
}

.hero-vinyl-disc::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle, #059669 0%, #10b981 60%, #06b6d4 100%);
    border: 5px solid #111;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

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

/* ==========================================================================
   HI-FI AUDIO CLOUD FEATURE RIBBON
   ========================================================================== */
.hifi-feature-ribbon {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.hifi-feature-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-main);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.hifi-feature-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

.hifi-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.hifi-feature-icon.emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.hifi-feature-icon.cyan {
    background: rgba(6, 182, 212, 0.12);
    color: #06b6d4;
}

.hifi-feature-icon.indigo {
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
}

.hifi-feature-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.hifi-feature-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.35;
}

/* ==========================================================================
   6-CARD QUICK ACCESS HERO GRID (Balanced 3-Column Layout)
   ========================================================================== */
.greeting-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.greeting-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.quick-picks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 32px;
}

.quick-card {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    padding-right: 12px;
}

.quick-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: #ffffff;
}

.quick-card-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: var(--bg-surface-subtle);
}

.quick-card-info {
    flex: 1;
    padding: 0 12px;
    min-width: 0;
}

.quick-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.quick-card-artist {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    flex-shrink: 0;
}

.quick-card:hover .quick-play-btn {
    opacity: 1;
    transform: scale(1);
}

.quick-play-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    margin-left: 2px;
}

.quick-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-card-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: var(--bg-surface-subtle);
}

.quick-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    padding: 0 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.quick-play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--brand-primary-shadow);
    opacity: 0;
    transform: scale(0.85);
    transition: all var(--transition-fast);
    margin-right: 12px;
    flex-shrink: 0;
}

.quick-card:hover .quick-play-btn {
    opacity: 1;
    transform: scale(1);
}

.quick-play-btn:hover {
    background-color: var(--brand-primary-hover);
    transform: scale(1.08);
}

.quick-play-btn svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
    margin-left: 2px;
}

/* ==========================================================================
   CARDS GRIDS (Albums, Artists)
   ========================================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.4px;
}

.section-show-all {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.section-show-all:hover {
    color: var(--brand-primary);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    width: 100%;
}

.media-card {
    background: #ffffff;
    padding: 12px;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.media-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.media-card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--bg-surface-subtle);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.media-card.artist-card .media-card-img-wrapper {
    border-radius: 50%;
    width: 100%;
    max-width: 130px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 10px auto;
}

.media-card.artist-card {
    text-align: center;
}

.media-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
    transition: transform var(--transition-normal);
}

.media-card-img.artist-circle {
    border-radius: 50%;
}

.media-card:hover .media-card-img {
    transform: scale(1.05);
}

.card-play-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px var(--brand-primary-shadow);
    opacity: 0;
    transform: translateY(6px);
    transition: all var(--transition-fast);
    cursor: pointer;
    z-index: 10;
}

.media-card:hover .card-play-btn {
    opacity: 1;
    transform: translateY(0);
}

.card-play-btn:hover {
    background-color: var(--brand-primary-hover);
    transform: scale(1.08);
}

.card-play-btn svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
    margin-left: 2px;
}

.media-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 8px;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.media-card-subtitle {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

/* ==========================================================================
   TRACKLIST TABLE
   ========================================================================== */
.tracks-list-header {
    display: grid;
    grid-template-columns: 44px 1fr 1fr 100px;
    align-items: center;
    padding: 10px 14px;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-main);
    margin-bottom: 6px;
    gap: 12px;
}

.header-col-num {
    text-align: center;
}

.header-col-title {
    text-align: left;
}

.header-col-album {
    text-align: left;
}

.header-col-time {
    text-align: right;
    padding-right: 4px;
}

.tracks-list-container {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.track-row {
    display: grid;
    grid-template-columns: 44px 1fr 1fr 100px;
    align-items: center;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
    gap: 12px;
    background: transparent;
    border: 1px solid transparent;
}

.track-row:hover {
    background-color: #ffffff;
    border-color: var(--border-main);
    box-shadow: var(--shadow-sm);
}

.track-row.active,
.track-row.playing {
    background-color: rgba(16, 185, 129, 0.08) !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.track-row.playing .track-name,
.track-row.active .track-name {
    color: var(--brand-primary) !important;
    font-weight: 800;
}

.track-row.playing .track-index,
.track-row.active .track-index {
    color: var(--brand-primary) !important;
}

.track-index {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.track-play-icon,
.row-play-btn {
    display: none;
    width: 16px;
    height: 16px;
    fill: var(--text-main);
}

.track-row:hover .track-play-icon,
.track-row:hover .row-play-btn {
    display: block;
}

.track-row:hover .track-num-text {
    display: none;
}

.track-row.playing .track-num-text,
.track-row.active .track-num-text {
    display: none;
}

.track-row.playing .equalizer-bars,
.track-row.active .equalizer-bars {
    display: inline-flex;
}

/* Equalizer Bars Animation */
.equalizer-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 14px;
    width: 14px;
}

.equalizer-bars .bar {
    width: 2.5px;
    background: linear-gradient(to top, var(--brand-primary), #34d399);
    border-radius: 1px;
    height: 100%;
    animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.equalizer-bars .bar:nth-child(1) { animation-delay: 0.1s; height: 35%; }
.equalizer-bars .bar:nth-child(2) { animation-delay: 0.35s; height: 95%; }
.equalizer-bars .bar:nth-child(3) { animation-delay: 0.2s; height: 60%; }
.equalizer-bars .bar:nth-child(4) { animation-delay: 0.45s; height: 80%; }

.equalizer-bars.paused .bar {
    animation-play-state: paused !important;
}

@keyframes eqBounce {
    0% { height: 20%; }
    100% { height: 100%; }
}

/* ==========================================================================
   DYNAMIC SOUND MOTION EQUALIZER BARS (BOTTOM PLAYER BAR)
   ========================================================================== */
.btn-motion-bars {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: all var(--transition-fast);
    background: transparent;
    cursor: pointer;
}

.btn-motion-bars:hover {
    background: rgba(16, 185, 129, 0.12);
    transform: scale(1.08);
}

.motion-eq-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 18px;
    width: 22px;
    padding-bottom: 1px;
}

.motion-eq-bars .motion-bar {
    width: 2.5px;
    border-radius: 2px;
    background-color: var(--text-muted);
    transition: height 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.motion-eq-bars .mb-1 { height: 4px; }
.motion-eq-bars .mb-2 { height: 10px; }
.motion-eq-bars .mb-3 { height: 6px; }
.motion-eq-bars .mb-4 { height: 14px; }
.motion-eq-bars .mb-5 { height: 7px; }

/* Active Sound Motion State */
body.is-playing .motion-eq-bars .motion-bar,
.player-bar.is-playing .motion-eq-bars .motion-bar {
    background: linear-gradient(to top, var(--brand-primary), #34d399);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
    animation: liveAudioMotion 0.85s ease-in-out infinite alternate;
}

body.is-playing .motion-eq-bars .mb-1,
.player-bar.is-playing .motion-eq-bars .mb-1 { animation-delay: 0.1s; animation-duration: 0.7s; }
body.is-playing .motion-eq-bars .mb-2,
.player-bar.is-playing .motion-eq-bars .mb-2 { animation-delay: 0.35s; animation-duration: 0.95s; }
body.is-playing .motion-eq-bars .mb-3,
.player-bar.is-playing .motion-eq-bars .mb-3 { animation-delay: 0.2s; animation-duration: 0.65s; }
body.is-playing .motion-eq-bars .mb-4,
.player-bar.is-playing .motion-eq-bars .mb-4 { animation-delay: 0.45s; animation-duration: 0.85s; }
body.is-playing .motion-eq-bars .mb-5,
.player-bar.is-playing .motion-eq-bars .mb-5 { animation-delay: 0.15s; animation-duration: 0.75s; }

body.is-playing .motion-eq-bars.paused .motion-bar,
.player-bar.is-playing .motion-eq-bars.paused .motion-bar {
    animation-play-state: paused !important;
}

@keyframes liveAudioMotion {
    0% { height: 3px; }
    25% { height: 16px; }
    50% { height: 6px; }
    75% { height: 18px; }
    100% { height: 10px; }
}

.track-title-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
}

.track-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background-color: var(--bg-surface-subtle);
    border: 1px solid var(--border-main);
}

.track-text-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    overflow: hidden;
    flex: 1;
}

.track-title-text,
.track-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.25;
}

.track-row.playing .track-name {
    color: var(--brand-primary);
    font-weight: 800;
}

.track-singer-text {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.25;
}

.track-album {
    font-size: 13px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.track-actions-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.track-duration {
    font-size: 12.5px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    text-align: right;
    font-weight: 600;
    min-width: 32px;
}

/* ==========================================================================
   DETAIL BANNER (Artist / Album Banner)
   ========================================================================== */
.detail-banner {
    display: flex;
    align-items: flex-end;
    gap: 28px;
    padding: 12px 0 24px 0;
    margin-bottom: 20px;
}

.detail-banner-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-main);
    flex-shrink: 0;
}

.detail-banner-img.artist-circle {
    border-radius: 50%;
    width: 210px;
    height: 210px;
}

.detail-banner-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-banner-type {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.verified-icon {
    width: 18px;
    height: 18px;
    fill: #0284c7;
}

.detail-banner-title {
    font-size: clamp(34px, 4.5vw, 60px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.05;
    color: var(--text-main);
}

.detail-banner-desc {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

.action-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.btn-hero-play {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--brand-primary-shadow);
    transition: all var(--transition-fast);
}

.btn-hero-play:hover {
    transform: scale(1.06);
    background-color: var(--brand-primary-hover);
}

.btn-hero-play svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    margin-left: 3px;
}

.btn-action-outline {
    padding: 8px 22px;
    border-radius: 500px;
    border: 1px solid var(--border-main);
    background: #ffffff;
    color: var(--text-main);
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.btn-action-outline:hover {
    border-color: #94a3b8;
    background-color: var(--bg-surface-subtle);
    transform: translateY(-1px);
}

/* ==========================================================================
   FLOATING ISLAND PLAYER BAR (Luxury Light & Ambient Glass)
   ========================================================================== */
.player-bar.floating-island {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-radius: 16px;
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-floating);
    z-index: 200;
    color: var(--text-main);
}

/* Left: Current Track Info */
.track-info {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 30%;
    min-width: 180px;
}

.player-poster {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    background-color: var(--bg-surface-subtle);
    border: 1px solid var(--border-main);
    flex-shrink: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.player-poster.bass-pulse {
    box-shadow: 0 0 20px var(--brand-primary-shadow);
}

.track-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.track-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-artist {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Center: Controls & Scrubber */
.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 42%;
    max-width: 680px;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-icon:hover {
    color: var(--text-main);
    background-color: var(--bg-surface-subtle);
}

.btn-icon.active {
    color: var(--brand-primary);
    position: relative;
}

.btn-icon.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--brand-primary);
    border-radius: 50%;
}

.btn-play-pause {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--brand-primary-shadow);
    transition: all var(--transition-fast);
}

.btn-play-pause:hover {
    transform: scale(1.08);
    background-color: var(--brand-primary-hover);
}

.btn-play-pause svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.timeline-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.time-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    min-width: 35px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.slider-track {
    position: relative;
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    transition: height var(--transition-fast);
}

.slider-track:hover {
    height: 6px;
}

.slider-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #cbd5e1;
    border-radius: 4px;
    width: 0%;
    pointer-events: none;
}

.slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--brand-primary);
    border-radius: 4px;
    width: 0%;
    pointer-events: none;
}

.slider-track:hover .slider-fill {
    background: var(--brand-primary-hover);
}

.slider-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 2px solid var(--brand-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.slider-track:hover .slider-thumb {
    opacity: 1;
}

/* Right: Utilities */
.player-utilities {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: 28%;
    min-width: 180px;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 120px;
}

.volume-container .slider-track {
    flex: 1;
}

/* Scrubber / Progress Bar */
.timeline-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.time-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 34px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.slider-track {
    flex: 1;
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    transition: height var(--transition-fast);
}

.slider-track:hover {
    height: 6px;
}

.slider-buffer {
    height: 100%;
    background-color: #cbd5e1;
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    pointer-events: none;
}

.slider-fill {
    height: 100%;
    background-color: var(--brand-primary);
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
}

.slider-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 0%;
    opacity: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.slider-track:hover .slider-thumb {
    opacity: 1;
}

.timeline-tooltip {
    position: absolute;
    top: -26px;
    transform: translateX(-50%);
    background: var(--text-main);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.slider-track:hover .timeline-tooltip {
    opacity: 1;
}

/* Right: Utilities & Volume */
.player-utilities {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 30%;
    min-width: 180px;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 120px;
}

.btn-like {
    margin-left: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.btn-like svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.btn-like:hover {
    color: var(--text-main);
    transform: scale(1.15);
}

.btn-like.active {
    color: var(--brand-primary);
    animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* Equalizer Bars */
.equalizer-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 14px;
    width: 14px;
}

.equalizer-bars .bar {
    width: 2.5px;
    background-color: var(--brand-primary);
    border-radius: 1px;
    transition: height 0.05s ease;
}

/* Play Queue Drawer */
.queue-drawer {
    position: fixed;
    top: 0;
    right: -380px;
    width: 360px;
    height: calc(100vh - 100px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-left: 1px solid var(--border-main);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.08);
    z-index: 900;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 16px 0 0 16px;
}

.queue-drawer.open {
    right: 0;
}

.queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-main);
}

.queue-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
}

.queue-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.queue-section-title {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--border-main);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.queue-item:hover {
    background: var(--bg-surface-subtle);
    transform: translateX(2px);
}

.queue-item.active-now {
    background: var(--brand-primary-light);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.queue-item img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background-color: var(--bg-surface-subtle);
}

.queue-item-info {
    flex: 1;
    overflow: hidden;
}

.queue-item-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queue-item-artist {
    font-size: 11.5px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queue-empty-text {
    font-size: 13px;
    color: var(--text-subdued);
    padding: 10px 0;
}

/* ==========================================================================
   SYNCED LYRICS STUDIO OVERLAY (APPLE MUSIC & SPOTIFY STUDIO AESTHETIC)
   ========================================================================== */
.lyrics-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: calc(100vh - 96px);
    background: radial-gradient(circle at 25% 25%, #0f172a 0%, #030712 100%);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    z-index: 950;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.lyrics-overlay.active {
    display: flex;
    opacity: 1;
}

.btn-lyrics-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 50;
}

.btn-lyrics-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.08);
}

.lyrics-studio-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    width: 100%;
    max-width: 1380px;
    height: 100%;
    padding: 30px 48px;
    align-items: center;
    overflow: hidden;
}

/* Left: Studio Album Art & Song Metadata Showcase */
.lyrics-sidebar-showcase {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    animation: fadeIn 0.4s ease-out;
}

.lyrics-album-art-wrap {
    position: relative;
    width: 320px;
    height: 320px;
    margin-bottom: 24px;
}

.lyrics-album-art {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 2;
}

.lyrics-album-art-glow {
    position: absolute;
    inset: -15px;
    border-radius: 30px;
    background: rgba(22, 163, 74, 0.25);
    filter: blur(40px);
    z-index: 1;
    opacity: 0.6;
    transition: all 0.5s ease;
}

.lyrics-meta-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.lyrics-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-radius: 500px;
    font-size: 11.5px;
    font-weight: 800;
    border: 1px solid rgba(34, 197, 94, 0.3);
    width: fit-content;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.lyrics-showcase-title {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.6px;
    margin: 0;
    word-break: break-word;
}

.lyrics-showcase-artist {
    font-size: 17px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.lyrics-showcase-album {
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* Right: Synced Kinetic Lyrics Stream */
.lyrics-stream-panel {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    position: relative;
}

.lyrics-wrapper {
    width: 100%;
    height: 75vh;
    overflow-y: scroll;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 220px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.lyrics-wrapper::-webkit-scrollbar {
    display: none;
    width: 0 !important;
    height: 0 !important;
}

.lyrics-line {
    font-size: 32px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.32);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 8px 16px;
    border-radius: 12px;
    letter-spacing: -0.5px;
    line-height: 1.35;
    transform-origin: left center;
    user-select: none;
}

.lyrics-line:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(6px);
}

.lyrics-line.active {
    color: #ffffff;
    font-size: 38px;
    font-weight: 900;
    transform: scale(1.03) translateX(12px);
    text-shadow: 0 0 35px rgba(34, 197, 94, 0.85), 0 0 70px rgba(16, 185, 129, 0.4);
    opacity: 1;
}

.lyrics-placeholder {
    font-size: 22px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-align: left;
    margin-top: 80px;
    line-height: 1.5;
}

/* ==========================================================================
   SEAMLESS DARK OBSIDIAN PLAYER BAR IN LYRICS VIEW
   ========================================================================== */
body.lyrics-view-active .player-bar,
.player-bar.lyrics-theme-dark {
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
    color: #ffffff !important;
    z-index: 1000 !important;
}

body.lyrics-view-active .player-bar .track-title,
.player-bar.lyrics-theme-dark .track-title {
    color: #ffffff !important;
}

body.lyrics-view-active .player-bar .track-artist,
.player-bar.lyrics-theme-dark .track-artist {
    color: rgba(255, 255, 255, 0.65) !important;
}

body.lyrics-view-active .player-bar .player-poster,
.player-bar.lyrics-theme-dark .player-poster {
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

body.lyrics-view-active .player-bar .btn-icon,
.player-bar.lyrics-theme-dark .btn-icon {
    color: rgba(255, 255, 255, 0.65) !important;
}

body.lyrics-view-active .player-bar .btn-icon:hover,
.player-bar.lyrics-theme-dark .btn-icon:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

body.lyrics-view-active .player-bar .btn-icon.active,
.player-bar.lyrics-theme-dark .btn-icon.active {
    color: #22c55e !important;
}

body.lyrics-view-active .player-bar .time-label,
.player-bar.lyrics-theme-dark .time-label {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.lyrics-view-active .player-bar .slider-track,
.player-bar.lyrics-theme-dark .slider-track {
    background: rgba(255, 255, 255, 0.15) !important;
}

body.lyrics-view-active .player-bar .slider-fill,
.player-bar.lyrics-theme-dark .slider-fill {
    background: #22c55e !important;
}

body.lyrics-view-active .player-bar .slider-thumb,
.player-bar.lyrics-theme-dark .slider-thumb {
    background: #ffffff !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8) !important;
}

body.lyrics-view-active .player-bar .slider-buffer,
.player-bar.lyrics-theme-dark .slider-buffer {
    background: rgba(255, 255, 255, 0.25) !important;
}

body.lyrics-view-active .player-bar .btn-play-pause,
.player-bar.lyrics-theme-dark .btn-play-pause {
    background: #22c55e !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4) !important;
}

body.lyrics-view-active .player-bar .btn-play-pause:hover,
.player-bar.lyrics-theme-dark .btn-play-pause:hover {
    background: #16a34a !important;
    transform: scale(1.08) !important;
}

@media (max-width: 960px) {
    .lyrics-studio-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    .lyrics-sidebar-showcase {
        display: none;
    }
    .lyrics-line {
        font-size: 24px;
    }
    .lyrics-line.active {
        font-size: 28px;
    }
}

/* Fullscreen Motion Sound Visualizer */
.visualizer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: calc(100vh - 100px);
    background: radial-gradient(circle at center, #f0fdf4 0%, #ffffff 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 950;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.visualizer-overlay.active {
    display: flex;
    opacity: 1;
}

.btn-visualizer-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: #ffffff;
    border: 1px solid var(--border-main);
    color: var(--text-main);
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    z-index: 10;
}

.btn-visualizer-close:hover {
    background: var(--bg-surface-subtle);
    transform: scale(1.08);
}

.visualizer-container {
    width: 90%;
    max-width: 1100px;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.main-visualizer-canvas {
    width: 100%;
    height: 380px;
    border-radius: 16px;
}

.visualizer-track-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    padding: 12px 24px;
    border-radius: 100px;
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-lg);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.vis-poster {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background-color: var(--bg-surface-subtle);
}

.vis-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vis-details h2 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.vis-details p {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.visualizer-mode-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 6px;
    border-radius: 30px;
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-sm);
}

.vis-mode-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.vis-mode-btn.active {
    background: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 2px 12px var(--brand-primary-shadow);
}

.loader {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
}

/* ==========================================================================
   MINI PLAYER TOP PROGRESS BAR (MOBILE ACCENT)
   ========================================================================== */
.mini-player-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    display: none;
    pointer-events: none;
    z-index: 10;
}

.mini-player-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #06b6d4 100%);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    transition: width 0.15s linear;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (DESKTOP, LAPTOP, TABLET, MOBILE)
   ========================================================================== */

/* 1. Large Laptops & Desktops (<= 1280px) */
@media (max-width: 1280px) {
    .topbar-left {
        max-width: 380px;
    }
    .badge-flac {
        display: none;
    }
    .hero-showcase {
        padding: 36px 40px;
        gap: 28px;
    }
    .hero-vinyl-wrapper {
        width: 210px;
        height: 175px;
    }
    .hero-album-jacket {
        width: 150px;
        height: 150px;
    }
    .hero-vinyl-disc {
        width: 140px;
        height: 140px;
    }
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
        gap: 14px;
    }
}

/* 2. Medium Laptops & Tablets Landscape (<= 1024px) */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 76px;
        --player-height: 84px;
    }

    .app-container {
        grid-template-columns: 76px 1fr;
        padding: 8px 8px 10px 8px;
        gap: 8px;
    }

    /* Tablet Icon Sidebar */
    .sidebar {
        padding: 16px 8px;
        align-items: center;
        gap: 14px;
    }

    .sidebar .logo {
        font-size: 0;
        padding: 0;
        margin-bottom: 8px;
        justify-content: center;
    }

    .sidebar .logo svg {
        width: 32px;
        height: 32px;
    }

    .sidebar .logo span {
        display: none;
    }

    .sidebar .nav-group {
        width: 100%;
        gap: 8px;
    }

    .sidebar .nav-link {
        flex-direction: column;
        gap: 3px;
        padding: 10px 4px;
        font-size: 11px;
        text-align: center;
        justify-content: center;
        border-radius: 12px;
    }

    .sidebar .nav-link svg {
        width: 22px;
        height: 22px;
    }

    .sidebar .nav-link span {
        font-size: 10.5px;
        line-height: 1;
    }

    .sidebar-divider,
    .sidebar-library,
    .library-header {
        display: none !important;
    }

    /* Topbar on Tablet */
    .topbar {
        padding: 0 16px;
        height: 60px;
    }

    .topbar-left {
        max-width: 340px;
    }

    .category-pills {
        gap: 4px;
    }

    .pill {
        padding: 5px 12px;
        font-size: 12px;
    }

    /* Hero Showcase on Tablet */
    .hero-showcase {
        padding: 28px 32px;
        gap: 20px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(22px, 3.2vw, 32px);
    }

    .hero-subtitle {
        font-size: 13px;
        line-height: 1.5;
    }

    .hero-vinyl-wrapper {
        width: 175px;
        height: 150px;
    }

    .hero-album-jacket {
        width: 130px;
        height: 130px;
    }

    .hero-vinyl-disc {
        width: 120px;
        height: 120px;
    }

    /* Quick Picks 2 Columns */
    .quick-picks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Hi-Fi Ribbon */
    .hifi-feature-ribbon {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .hifi-feature-card {
        padding: 12px 14px;
        gap: 10px;
    }

    .hifi-feature-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    /* Tracklist table */
    .tracks-list-header,
    .track-row {
        grid-template-columns: 40px 1fr 140px 80px;
        padding: 8px 12px;
    }

    /* Player Bar Tablet */
    .player-bar.floating-island {
        padding: 0 16px;
    }

    .track-info {
        width: 28%;
        min-width: 160px;
    }

    .player-controls {
        width: 44%;
    }

    .player-utilities {
        width: 28%;
        min-width: 160px;
        gap: 8px;
    }

    .volume-container {
        width: 95px;
    }

    /* Lyrics Overlay Tablet */
    .lyrics-studio-container {
        grid-template-columns: 300px 1fr;
        gap: 32px;
        padding: 24px 32px;
    }

    .lyrics-album-art-wrap {
        width: 240px;
        height: 240px;
    }

    .lyrics-line {
        font-size: 26px;
    }

    .lyrics-line.active {
        font-size: 32px;
    }
}

/* 3. Small Tablets & Large Phones (<= 900px) */
@media (max-width: 900px) {
    .category-pills {
        display: none !important;
    }

    .search-top-result-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .lyrics-studio-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .lyrics-sidebar-showcase {
        display: none;
    }

    .lyrics-line {
        font-size: 24px;
    }

    .lyrics-line.active {
        font-size: 28px;
    }
}

/* 4. Mobile Devices & Smartphones (<= 768px down to 320px) */
@media (max-width: 768px) {
    :root {
        --player-height: 60px;
    }

    body {
        overflow: hidden;
        height: 100%;
        height: 100dvh;
        width: 100%;
        max-width: 100%;
    }

    /* App Container -> Single column flex with touch viewport */
    .app-container {
        display: flex;
        flex-direction: column;
        height: 100%;
        height: 100dvh;
        width: 100vw;
        max-width: 100%;
        padding: 0;
        margin: 0;
        gap: 0;
        overflow: hidden;
        position: relative;
    }

    .main-content {
        flex: 1;
        border-radius: 0;
        border: none;
        height: 100%;
        height: 100dvh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: none;
        background: var(--bg-page);
    }

    /* Mobile Topbar */
    .topbar {
        height: 54px;
        min-height: 54px;
        padding: 0 14px;
        gap: 10px;
        border-radius: 0;
        border-bottom: 1px solid var(--border-main);
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .nav-arrows {
        display: none !important;
    }

    .topbar-left {
        flex: 1;
        max-width: 100%;
        min-width: 0;
        gap: 0;
    }

    .search-bar-container {
        flex: 1;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    .search-bar {
        padding: 7px 12px;
        background: var(--bg-surface-subtle);
        border: 1px solid var(--border-main);
    }

    .search-bar svg {
        width: 15px;
        height: 15px;
    }

    .search-bar input {
        font-size: 13px;
    }

    .category-pills {
        display: none !important;
    }

    .topbar-actions .badge-flac {
        display: none !important;
    }

    .btn-admin {
        padding: 6px 12px;
        font-size: 12px;
        gap: 6px;
        white-space: nowrap;
        background: var(--text-main);
        color: #ffffff;
        border: 1px solid var(--text-main);
        border-radius: 500px;
        flex-shrink: 0;
    }

    .btn-admin svg {
        width: 14px;
        height: 14px;
    }

    .btn-admin-text {
        font-size: 12px;
        font-weight: 700;
    }

    /* Content Area with dynamic bottom padding to clear floating player bar & bottom nav */
    .content-area {
        flex: 1 1 auto;
        min-height: 0;
        padding: 14px 14px calc(140px + env(safe-area-inset-bottom, 0px)) 14px;
        gap: 20px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
    }

    /* Fixed Bottom Navigation Bar */
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: calc(56px + env(safe-area-inset-bottom, 0px));
        padding: 0 0 env(safe-area-inset-bottom, 0px) 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        border-top: 1px solid var(--border-main);
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        z-index: 2000;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        margin: 0;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
    }

    .sidebar .logo,
    .sidebar .sidebar-divider,
    .sidebar .sidebar-library,
    .sidebar .library-header,
    .sidebar .desktop-only {
        display: none !important;
    }

    .sidebar .nav-group {
        display: flex;
        flex-direction: row;
        width: 100%;
        height: 100%;
        justify-content: space-around;
        align-items: center;
        gap: 0;
        padding: 0;
        margin: 0;
    }

    .sidebar .nav-group li {
        flex: 1;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 6px 2px;
        font-size: 10px;
        font-weight: 700;
        background: transparent !important;
        color: var(--text-muted);
        border-radius: 8px;
        width: 100%;
        height: 100%;
        text-align: center;
        transition: color var(--transition-fast), transform var(--transition-fast);
        -webkit-tap-highlight-color: transparent;
    }

    .sidebar .nav-link svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
        transition: transform var(--transition-fast);
    }

    .sidebar .nav-link span {
        display: block !important;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: -0.2px;
    }

    .sidebar .nav-link:active {
        transform: scale(0.92);
    }

    .sidebar .nav-link.active {
        color: var(--brand-primary);
        font-weight: 800;
    }

    .sidebar .nav-link.active svg {
        transform: translateY(-1px);
    }

    /* Mobile Hero Showcase Billboard */
    .hero-showcase {
        position: relative;
        padding: 20px 16px;
        border-radius: 18px;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start;
        gap: 12px;
        min-height: auto;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        background: linear-gradient(135deg, #091224 0%, #111c38 40%, #1a173d 75%, #05332e 100%) !important;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
        flex-shrink: 0;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .hero-vinyl-wrapper {
        display: none !important;
    }

    .hero-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
        z-index: 3;
    }

    .hero-badge-group {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 0;
    }

    .hero-badge,
    .hero-badge-pill {
        font-size: 10px;
        padding: 3px 8px;
        line-height: 1.2;
    }

    .hero-artist-tag {
        font-size: 11px;
        padding: 2px 8px 2px 4px;
        gap: 5px;
        line-height: 1.2;
    }

    .hero-artist-avatar {
        width: 20px;
        height: 20px;
    }

    .hero-title {
        font-size: clamp(20px, 5.5vw, 24px);
        line-height: 1.22;
        letter-spacing: -0.5px;
        font-weight: 900;
        word-break: normal;
        margin: 2px 0 0 0;
        color: #ffffff !important;
    }

    .hero-subtitle {
        font-size: 12px;
        line-height: 1.45;
        color: #cbd5e1 !important;
        display: block;
        margin: 0;
    }

    .hero-stats-row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 12px;
        font-size: 11px;
        color: #94a3b8;
        margin-top: 2px;
    }

    .hero-stat-item {
        gap: 4px;
    }

    .hero-stat-item svg {
        width: 13px;
        height: 13px;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 7px;
        width: 100%;
        margin-top: 4px;
    }

    .btn-hero-play-featured {
        width: 100%;
        padding: 11px 14px;
        font-size: 12.5px;
        font-weight: 800;
        justify-content: center;
        box-sizing: border-box;
        gap: 6px;
    }

    .btn-hero-explore {
        width: 100%;
        padding: 9px 14px;
        font-size: 12px;
        font-weight: 700;
        justify-content: center;
        box-sizing: border-box;
        gap: 6px;
    }

    .btn-hero-quick-track {
        width: 100%;
        padding: 8px 14px;
        font-size: 11.5px;
        font-weight: 700;
        justify-content: center;
        box-sizing: border-box;
    }

    /* Hi-Fi Ribbon Mobile */
    .hifi-feature-ribbon {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 20px;
    }

    .hifi-feature-card {
        padding: 12px 14px;
        border-radius: 12px;
        gap: 12px;
    }

    .hifi-feature-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 8px;
    }

    .hifi-feature-title {
        font-size: 12.5px;
        margin-bottom: 1px;
    }

    .hifi-feature-desc {
        font-size: 11px;
        line-height: 1.3;
    }

    /* Section Headers */
    .greeting-header {
        margin-bottom: 10px;
    }

    .greeting-title {
        font-size: 19px;
    }

    .section-header {
        margin-bottom: 10px;
    }

    .section-title {
        font-size: 17px;
    }

    .section-show-all {
        font-size: 12px;
    }

    /* Quick Picks Grid (6 items) */
    .quick-picks-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 24px;
    }

    .quick-card {
        padding-right: 8px;
        border-radius: 10px;
    }

    .quick-card-img {
        width: 48px;
        height: 48px;
    }

    .quick-card-info {
        padding: 0 8px;
    }

    .quick-card-title {
        font-size: 12px;
        margin-bottom: 1px;
    }

    .quick-card-artist {
        font-size: 10.5px;
    }

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

    /* Media Cards Grid (Albums & Artists) */
    .cards-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
    }

    .media-card {
        padding: 9px;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
    }

    .media-card-img-wrapper {
        position: relative;
        width: 100%;
        aspect-ratio: 1 / 1;
        margin-bottom: 6px;
        border-radius: 8px;
        overflow: hidden;
        background-color: var(--bg-surface-subtle);
    }

    .media-card.artist-card .media-card-img-wrapper {
        width: 100%;
        max-width: 90px;
        aspect-ratio: 1 / 1;
        margin: 0 auto 6px auto;
        border-radius: 50%;
    }

    .media-card-title {
        font-size: 12.5px;
        font-weight: 700;
        margin-top: 6px;
        margin-bottom: 1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.3;
    }

    .media-card-subtitle {
        font-size: 11px;
        font-weight: 600;
        color: var(--text-muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.3;
    }

    .card-play-btn {
        width: 32px;
        height: 32px;
        bottom: 6px;
        right: 6px;
        opacity: 0.9;
        transform: none;
    }

    .card-play-btn svg {
        width: 13px;
        height: 13px;
    }

    /* Tracklist Table on Mobile */
    .tracks-list-header {
        display: grid !important;
        grid-template-columns: 28px 1fr 76px;
        padding: 6px 10px;
        gap: 8px;
        font-size: 10.5px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-muted);
        border-bottom: 1px solid var(--border-main);
        margin-bottom: 4px;
    }

    .tracks-list-header .header-col-album {
        display: none !important;
    }

    .tracks-list-container {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }

    .track-row {
        display: grid !important;
        grid-template-columns: 28px 1fr 76px;
        align-items: center;
        padding: 7px 10px;
        border-radius: 10px;
        gap: 8px;
        background: #ffffff;
        border: 1px solid var(--border-main);
    }

    .track-row:hover {
        background: #ffffff;
    }

    .track-row .track-album {
        display: none !important;
    }

    .track-index {
        width: 28px;
        font-size: 12px;
        font-weight: 700;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .track-title-info {
        display: flex;
        align-items: center;
        gap: 9px;
        min-width: 0;
        overflow: hidden;
    }

    .track-thumb {
        width: 36px;
        height: 36px;
        border-radius: 6px;
        object-fit: cover;
        aspect-ratio: 1 / 1;
        flex-shrink: 0;
    }

    .track-text-group {
        display: flex;
        flex-direction: column;
        min-width: 0;
        overflow: hidden;
        flex: 1;
        gap: 1px;
    }

    .track-title-text,
    .track-name {
        font-size: 12.5px;
        font-weight: 700;
        color: var(--text-main);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.25;
    }

    .track-singer-text {
        font-size: 11px;
        color: var(--text-muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.25;
    }

    .track-actions-cell {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        flex-shrink: 0;
    }

    .track-row .row-info-btn {
        opacity: 1 !important;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        background: transparent;
        border: none;
        padding: 0;
        margin-right: 0;
    }

    .track-duration {
        font-size: 11.5px;
        font-weight: 600;
        color: var(--text-muted);
        font-variant-numeric: tabular-nums;
        text-align: right;
        padding-right: 0;
        min-width: 30px;
    }

    /* Detail Banner (Artist & Album Pages) */
    .detail-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        padding: 6px 0 16px 0;
        margin-bottom: 12px;
    }

    .detail-banner-img {
        width: 140px;
        height: 140px;
        border-radius: 12px;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .detail-banner-img.artist-circle {
        width: 140px;
        height: 140px;
        border-radius: 50%;
    }

    .detail-banner-info {
        align-items: center;
        gap: 4px;
    }

    .detail-banner-title {
        font-size: clamp(22px, 6vw, 32px);
        line-height: 1.15;
    }

    .detail-banner-desc {
        font-size: 12.5px;
    }

    .action-bar {
        justify-content: center;
        gap: 14px;
        margin-bottom: 20px;
    }

    .btn-hero-play {
        width: 48px;
        height: 48px;
    }

    .btn-hero-play svg {
        width: 20px;
        height: 20px;
    }

    /* Search View on Mobile */
    .search-tags-container {
        gap: 6px;
        margin-bottom: 18px;
    }

    .search-tag {
        padding: 5px 11px;
        font-size: 12px;
    }

    .browse-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-tile {
        height: 95px;
        padding: 12px;
        border-radius: 12px;
    }

    .category-tile-title {
        font-size: 15px;
    }

    .category-tile-desc {
        font-size: 11px;
    }

    /* Mobile Floating Mini Player Bar (High-Fidelity Island) */
    .player-bar.floating-island {
        position: fixed;
        bottom: calc(62px + env(safe-area-inset-bottom, 0px));
        left: 10px;
        right: 10px;
        width: auto;
        height: 58px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        color: var(--text-main);
        z-index: 1999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
        border: 1px solid var(--border-main);
        padding: 0 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin: 0;
        overflow: hidden;
    }

    .mini-player-progress-bar {
        display: block;
    }

    .track-info {
        flex: 1;
        min-width: 0;
        width: auto;
        gap: 10px;
        cursor: pointer;
    }

    .player-poster {
        width: 42px;
        height: 42px;
        border-radius: 8px;
        flex-shrink: 0;
        background-color: var(--bg-surface-subtle);
    }

    .track-details {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        gap: 1px;
    }

    .track-title {
        color: var(--text-main) !important;
        font-size: 12.5px;
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .track-artist {
        color: var(--text-muted) !important;
        font-size: 11px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-icon.btn-like {
        color: var(--text-muted);
        width: 32px;
        height: 32px;
        padding: 4px;
        flex-shrink: 0;
    }

    .btn-icon.btn-like svg {
        width: 17px;
        height: 17px;
    }

    .desktop-only-btn {
        display: none !important;
    }

    .player-controls {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 auto;
        width: auto;
        max-width: none;
    }

    .control-buttons {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .desktop-ctrl,
    .timeline-container {
        display: none !important;
    }

    #btn-prev, #btn-next {
        width: 32px;
        height: 32px;
        padding: 4px;
        color: var(--text-main);
        display: flex !important;
    }

    #btn-prev svg, #btn-next svg {
        width: 18px;
        height: 18px;
    }

    .btn-play-pause {
        width: 38px;
        height: 38px;
        background: #10b981;
        color: #ffffff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
        flex-shrink: 0;
    }

    .btn-play-pause svg {
        width: 17px;
        height: 17px;
        fill: #ffffff;
    }

    .player-utilities {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: auto;
        min-width: 0;
        gap: 2px;
        flex-shrink: 0;
    }

    .btn-lyrics {
        width: 32px;
        height: 32px;
        padding: 4px;
        color: var(--brand-primary);
        display: flex !important;
    }

    .btn-lyrics svg {
        width: 16px;
        height: 16px;
    }

    /* Synced Lyrics Fullscreen Studio on Mobile */
    .lyrics-overlay {
        height: calc(100% - 68px);
        height: calc(100dvh - 68px);
    }

    .btn-lyrics-close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .lyrics-studio-container {
        display: flex;
        flex-direction: column;
        padding: 16px 18px;
        gap: 14px;
        height: 100%;
        box-sizing: border-box;
    }

    .lyrics-sidebar-showcase {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding-top: 6px;
        padding-right: 48px;
    }

    .lyrics-album-art-wrap {
        width: 48px;
        height: 48px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .lyrics-album-art {
        border-radius: 8px;
    }

    .lyrics-album-art-glow {
        display: none;
    }

    .lyrics-meta-group {
        gap: 1px;
    }

    .lyrics-badge {
        font-size: 9.5px;
        padding: 2px 7px;
        margin-bottom: 2px;
    }

    .lyrics-showcase-title {
        font-size: 14px;
        line-height: 1.2;
    }

    .lyrics-showcase-artist {
        font-size: 11.5px;
    }

    .lyrics-showcase-album {
        display: none;
    }

    .lyrics-stream-panel {
        flex: 1;
        height: calc(100% - 70px);
    }

    .lyrics-wrapper {
        height: 100%;
        padding: 120px 0;
        gap: 16px;
    }

    .lyrics-line {
        font-size: 20px;
        padding: 6px 10px;
        border-radius: 8px;
    }

    .lyrics-line.active {
        font-size: 24px;
        transform: scale(1.02) translateX(4px);
    }

    .lyrics-placeholder {
        font-size: 16px;
        margin-top: 40px;
    }

    /* Song Details Specs Modal on Mobile */
    .song-info-modal-overlay {
        padding: 12px;
    }

    .song-info-modal {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 16px;
    }

    .song-info-header {
        padding: 18px 16px 14px 16px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .info-poster {
        width: 100px;
        height: 100px;
        border-radius: 10px;
    }

    .info-meta-group {
        align-items: center;
        text-align: center;
        gap: 4px;
    }

    .info-title {
        font-size: 18px;
    }

    .info-artist-row {
        font-size: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .info-quick-actions {
        justify-content: center;
        gap: 6px;
    }

    .info-quick-actions .btn {
        padding: 7px 12px !important;
        font-size: 12px !important;
    }

    .song-info-body {
        padding: 16px;
    }

    .info-section-heading {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .info-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .spec-card {
        padding: 10px 12px;
    }

    .spec-label {
        font-size: 9.5px;
    }

    .spec-val {
        font-size: 12.5px;
    }

    .spec-sub {
        font-size: 10.5px;
    }

    /* Sound Motion Visualizer on Mobile */
    .visualizer-overlay {
        height: calc(100% - 68px);
        height: calc(100dvh - 68px);
    }

    .visualizer-container {
        width: 95%;
        height: 90%;
    }

    .main-visualizer-canvas {
        height: 240px;
    }

    .visualizer-track-card {
        padding: 8px 16px;
        gap: 12px;
    }

    .vis-poster {
        width: 40px;
        height: 40px;
    }

    .vis-details h2 {
        font-size: 14px;
    }

    .vis-details p {
        font-size: 11.5px;
    }

    .visualizer-mode-switch {
        gap: 4px;
        padding: 4px;
        overflow-x: auto;
        max-width: 100%;
    }

    .vis-mode-btn {
        padding: 6px 12px;
        font-size: 11.5px;
        white-space: nowrap;
    }

    /* Queue Drawer on Mobile */
    .queue-drawer {
        width: 100vw;
        right: -100vw;
        height: calc(100% - 68px);
        height: calc(100dvh - 68px);
        border-radius: 0;
        padding: 18px;
    }
}

/* 5. Extra Small Smartphones (<= 400px) */
@media (max-width: 400px) {
    .content-area {
        padding: 10px 10px calc(134px + env(safe-area-inset-bottom, 0px)) 10px;
        gap: 18px;
    }

    .hero-showcase {
        padding: 16px 14px;
    }

    .hero-title {
        font-size: 18px;
    }

    .quick-picks-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .media-card {
        padding: 7px;
    }

    .media-card-img-wrapper {
        margin-bottom: 5px;
    }

    .media-card.artist-card .media-card-img-wrapper {
        width: 100%;
        max-width: 75px;
        margin-bottom: 5px;
    }

    .media-card-title {
        font-size: 11.5px;
    }

    .media-card-subtitle {
        font-size: 10px;
    }

    .tracks-list-header,
    .track-row {
        grid-template-columns: 22px 1fr 68px !important;
        padding: 6px 8px;
        gap: 6px;
    }

    .track-thumb {
        width: 32px;
        height: 32px;
    }

    .track-title-text,
    .track-name {
        font-size: 12px;
    }

    .track-singer-text {
        font-size: 10.5px;
    }

    .info-specs-grid {
        grid-template-columns: 1fr;
    }

    .player-bar.floating-island {
        left: 6px;
        right: 6px;
        padding: 0 8px;
    }

    .track-info {
        gap: 6px;
    }

    .player-poster {
        width: 38px;
        height: 38px;
    }
}

/* ==========================================================================
   SONG INFO & MASTER AUDIO SPECIFICATIONS MODAL
   ========================================================================== */
.song-info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 20px;
}

.song-info-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.song-info-modal {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-main);
    position: relative;
    transform: scale(0.94);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.song-info-modal-overlay.active .song-info-modal {
    transform: scale(1);
}

.song-info-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    font-size: 20px;
    line-height: 1;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.song-info-close-btn:hover {
    background: rgba(0, 0, 0, 0.12);
    transform: scale(1.05);
}

.song-info-header {
    display: flex;
    gap: 22px;
    padding: 28px 28px 20px 28px;
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-main);
    border-radius: 20px 20px 0 0;
}

.info-poster {
    width: 130px;
    height: 130px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: var(--bg-surface-subtle);
}

.info-meta-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    color: #059669;
    background: rgba(16, 185, 129, 0.15);
    padding: 3px 8px;
    border-radius: 200px;
    letter-spacing: 0.8px;
    width: fit-content;
}

.info-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.5px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-artist-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.info-singer-link {
    color: var(--brand-primary);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.info-album-link {
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
}

.info-album-link:hover, .info-singer-link:hover {
    color: var(--brand-primary-hover);
}

.info-quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.song-info-body {
    padding: 24px 28px 28px 28px;
}

.info-section-heading {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
}

.info-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.spec-card {
    background: #f8fafc;
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-val {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
}

.spec-sub {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
}

.info-artist-bio-card {
    background: #f8fafc;
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 14px 16px;
}

.bio-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.bio-text {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.45;
}

.btn-song-info {
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-song-info:hover {
    color: var(--brand-primary);
    transform: scale(1.08);
}

.track-row .row-info-btn {
    opacity: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-right: 4px;
}

.track-row:hover .row-info-btn {
    opacity: 1;
}

.track-row .row-info-btn:hover {
    color: var(--brand-primary);
    background: rgba(16, 185, 129, 0.1);
    transform: scale(1.1);
}

/* ==========================================================================
   DESKTOP DEFAULT: HIDE MOBILE SHEET, BOTTOM NAV & MINI SCRUBBER
   ========================================================================== */
.mini-player-progress-bar {
    display: none !important;
}

.mobile-player-sheet {
    display: none !important;
}

.mobile-bottom-nav {
    display: none !important;
}

.mobile-brand-logo {
    display: none !important;
}

.mobile-time-badge {
    display: none !important;
}

.mini-player-progress-thumb {
    display: none !important;
}

.mini-player-progress-track {
    display: none !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE HI-FI ENGINE
   ========================================================================== */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 200px 1fr;
    }
    .lyrics-studio-container {
        grid-template-columns: 1fr 1.2fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .app-container {
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        padding: 0;
        gap: 0;
        overflow: hidden;
    }

    .sidebar {
        display: none !important;
    }

    .main-content {
        border-radius: 0;
        border: none;
        flex: 1;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
    }

    /* Mobile Brand Logo & Topbar */
    .mobile-brand-logo {
        display: flex !important;
        align-items: center;
        text-decoration: none;
        flex-shrink: 0;
    }

    .topbar {
        padding: 0 12px !important;
        height: 52px !important;
        gap: 8px !important;
        position: sticky;
        top: 0;
        z-index: 50;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-main);
    }

    .topbar-left {
        gap: 8px !important;
        flex: 1 !important;
    }

    .nav-arrows {
        display: none !important;
    }

    .search-bar-container {
        max-width: 100% !important;
        flex: 1 !important;
    }

    .search-bar {
        padding: 6px 12px !important;
        height: 36px !important;
        background: #f1f5f9 !important;
        border: 1px solid var(--border-main) !important;
    }

    .search-bar input {
        font-size: 13px !important;
        padding: 0 !important;
    }

    .category-pills {
        display: none !important;
    }

    .badge-flac {
        display: none !important;
    }

    .btn-admin {
        padding: 6px 10px !important;
        font-size: 12px !important;
        height: 36px !important;
    }

    .content-area {
        padding: 12px 14px 140px 14px !important;
    }

    /* Mobile Detail Banner (Album & Artist Pages) */
    .detail-banner {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 14px !important;
        padding: 8px 0 16px 0 !important;
        margin-bottom: 12px !important;
    }

    .detail-banner-img {
        width: 160px !important;
        height: 160px !important;
        border-radius: 14px !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important;
    }

    .detail-banner-img.artist-circle {
        width: 150px !important;
        height: 150px !important;
        border-radius: 50% !important;
    }

    .detail-banner-info {
        align-items: center !important;
        gap: 4px !important;
    }

    .detail-banner-title {
        font-size: 22px !important;
        font-weight: 800 !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .detail-banner-desc {
        font-size: 12px !important;
        color: #64748b !important;
        margin-top: 2px !important;
    }

    .action-bar {
        justify-content: center !important;
        gap: 12px !important;
        margin-bottom: 18px !important;
    }

    /* Mobile Floating Island Mini-Player */
    .player-bar {
        position: fixed !important;
        bottom: 64px !important;
        left: 10px !important;
        right: 10px !important;
        height: 58px !important;
        padding: 0 12px !important;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        z-index: 1000 !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .player-poster {
        width: 42px !important;
        height: 42px !important;
        border-radius: 8px !important;
    }

    .track-info {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        flex: 1 !important;
        min-width: 0 !important;
        cursor: pointer !important;
    }

    .track-details {
        flex: 1 !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .track-title {
        font-size: 13px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .track-sub-row {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .track-artist {
        font-size: 11px !important;
        color: #64748b !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .mobile-time-badge {
        display: inline-block !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        color: #10b981 !important;
        font-variant-numeric: tabular-nums !important;
    }

    .player-controls {
        flex: initial !important;
        width: auto !important;
        justify-content: flex-end !important;
    }

    .control-buttons {
        gap: 8px !important;
    }

    .btn-play-pause {
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        background-color: #10b981 !important;
        color: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
    }

    .btn-play-pause svg {
        width: 18px !important;
        height: 18px !important;
        fill: #ffffff !important;
    }

    .timeline-container, .desktop-ctrl, .desktop-only-btn, .player-utilities {
        display: none !important;
    }

    /* Flush Top Edge Progress Line for Mobile View */
    .mini-player-progress-bar {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 4px !important;
        padding: 0 !important;
        margin: 0 !important;
        cursor: pointer !important;
        touch-action: none !important;
        z-index: 999 !important;
        background: #d1d5db !important;
        border-radius: 0 !important;
    }

    .mini-player-progress-fill {
        display: block !important;
        height: 100% !important;
        background: #10b981 !important;
        width: 0%;
        border-radius: 0 !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    /* Mobile Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: flex !important;
        align-items: center;
        justify-content: space-around;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        height: 56px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-main);
        z-index: 999;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: #64748b;
        text-decoration: none;
        font-size: 10.5px;
        font-weight: 700;
        padding: 4px 12px;
        transition: all 0.2s ease;
    }

    .mobile-nav-item svg {
        fill: currentColor;
    }

    .mobile-nav-item.active {
        color: #10b981;
    }

    /* Mobile Fullscreen Expanded Player Sheet */
    .mobile-player-sheet {
        position: fixed;
        inset: 0;
        background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0f172a 100%);
        z-index: 9999;
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        padding: 12px 24px 34px 24px;
        color: #ffffff;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        touch-action: pan-y;
        overflow-y: auto;
    }

    .mobile-player-sheet.active {
        transform: translateY(0) !important;
    }

    .mobile-sheet-drag-handle-bar {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 6px 0 10px 0;
        cursor: pointer;
    }

    .mobile-sheet-drag-pill {
        width: 44px;
        height: 5px;
        border-radius: 5px;
        background: rgba(255, 255, 255, 0.3);
    }

    .mobile-sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .mobile-sheet-header-title {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 10px;
        letter-spacing: 1.2px;
        color: #94a3b8;
    }

    .mobile-sheet-header-title strong {
        font-size: 12px;
        color: #f8fafc;
        margin-top: 1px;
    }

    .mobile-sheet-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        flex: 1;
        justify-content: space-around;
    }

    .mobile-sheet-art-wrap {
        width: 250px;
        height: 250px;
        position: relative;
        border-radius: 20px;
        margin: 10px 0 16px 0;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    }

    .mobile-sheet-art {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
        position: relative;
        z-index: 2;
    }

    .mobile-sheet-art-glow {
        position: absolute;
        inset: 0;
        filter: blur(28px);
        opacity: 0.6;
        z-index: 1;
        background-size: cover;
        border-radius: 20px;
    }

    .mobile-sheet-track-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 14px;
    }

    .mobile-sheet-meta {
        text-align: left;
        min-width: 0;
        flex: 1;
    }

    .mobile-sheet-title {
        font-size: 19px;
        font-weight: 800;
        color: #ffffff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-sheet-artist {
        font-size: 14px;
        color: #94a3b8;
        margin-top: 3px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Mobile Timeline & Touch Scrubber */
    .mobile-sheet-timeline-box {
        width: 100%;
        margin-bottom: 14px;
    }

    .mobile-timeline-track {
        width: 100%;
        height: 10px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 6px;
        position: relative;
        cursor: pointer;
        touch-action: none;
    }

    .mobile-timeline-fill {
        height: 100%;
        background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
        border-radius: 6px;
        width: 0%;
        position: relative;
    }

    .mobile-timeline-thumb {
        position: absolute;
        top: 50%;
        left: 0%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.5), 0 0 0 3px rgba(16, 185, 129, 0.5);
    }

    .mobile-timeline-times {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        font-weight: 600;
        color: #94a3b8;
        margin-top: 8px;
    }

    /* Controls Bar */
    .mobile-sheet-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 20px;
    }

    .btn-play-pause-huge {
        width: 66px;
        height: 66px;
        border-radius: 50%;
        background: #10b981;
        border: none;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 24px rgba(16, 185, 129, 0.4);
        cursor: pointer;
        transition: transform 0.15s ease;
    }

    .btn-play-pause-huge:active {
        transform: scale(0.93);
    }

    .btn-jump-seek {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #cbd5e1;
        cursor: pointer;
    }

    .btn-jump-seek .jump-label {
        font-size: 9.5px;
        font-weight: 800;
        color: #10b981;
        margin-top: -3px;
    }

    .mobile-sheet-extra-row {
        display: flex;
        justify-content: space-around;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 14px;
    }

    .mobile-extra-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        background: transparent;
        border: none;
        color: #94a3b8;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
    }

    .mobile-extra-btn:active {
        color: #10b981;
    }

    /* Fullscreen Lyrics Overlay Mobile */
    .lyrics-studio-container {
        display: flex;
        flex-direction: column;
        padding: 60px 16px 20px 16px;
        gap: 20px;
    }

    .lyrics-sidebar-showcase {
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
    }

    .lyrics-album-art-wrap {
        width: 80px;
        height: 80px;
    }

    .lyrics-stream-panel {
        flex: 1;
        max-height: 60vh;
    }

    .lyrics-line {
        font-size: 20px !important;
    }
}

