:root {
    /* Light Mode Variables */
    --bg-color: #f0f2f5;
    --bg-dark: #0b0914;
    --sidebar-bg: rgba(255, 255, 255, 0.7);
    --player-bg: rgba(255, 255, 255, 0.85);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4e69;
    --accent-purple: #6a0dad;
    --accent-blue: #007bff;
    --accent-red: #ff3b3b;
    --neon-glow-blue: 0 0 10px rgba(0, 123, 255, 0.5);
    --neon-glow-purple: 0 0 10px rgba(106, 13, 173, 0.5);
    --neon-glow-red: 0 0 10px rgba(255, 59, 59, 0.5);
    --glass-border: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.6);
    --hover-bg: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --bg-color: #0b0914;
    --sidebar-bg: rgba(18, 14, 31, 0.6);
    --player-bg: rgba(20, 15, 36, 0.85);
    --text-primary: #ffffff;
    --text-secondary: #a8a4b5;
    --accent-purple: #b721ff;
    --accent-blue: #21d4fd;
    --accent-red: #ff2a5f;
    --neon-glow-blue: 0 0 15px rgba(33, 212, 253, 0.6);
    --neon-glow-purple: 0 0 15px rgba(183, 33, 255, 0.6);
    --neon-glow-red: 0 0 15px rgba(255, 42, 95, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(30, 22, 50, 0.5);
    --hover-bg: rgba(255, 255, 255, 0.1);
}

/* ===== RESET & BASE ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(183, 33, 255, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(183, 33, 255, 0.6);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(183, 33, 255, 0.3) transparent;
}

/* ===== ANIMATED BACKGROUND ===== */
body::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(183, 33, 255, 0.05), transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(33, 212, 253, 0.05), transparent 50%);
    z-index: -1;
    animation: rotateGradient 30s linear infinite;
    pointer-events: none;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Custom Language Dropdown */
.custom-language-selector {
    position: relative;
    user-select: none;
}

.custom-lang-dropdown {
    position: absolute;
    top: 130%;
    right: 0;
    background: rgba(17, 18, 24, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.custom-language-selector.open .custom-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.lang-option.active {
    background: rgba(183, 33, 255, 0.2);
    color: var(--accent-purple);
}

/* Background Animations */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 15% 50%, rgba(183, 33, 255, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(33, 212, 253, 0.05), transparent 25%);
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #21d4fd;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: #ff0055;
    top: 40%;
    left: 40%;
    opacity: 0.2;
    animation-delay: -10s;
    animation-duration: 30s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* ===== MOBILE LAYOUT OVERHAUL ===== */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        flex-direction: row;
        padding: 0;
        border-right: none;
        border-top: 1px solid var(--glass-border);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        background: rgba(18, 14, 31, 0.95);
        transition: none;
    }

    .logo,
    .sidebar-footer,
    .theme-toggle {
        display: none !important;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        padding: 0;
        margin: 0;
    }

    .nav-links li {
        flex-direction: column;
        padding: 8px 10px;
        font-size: 11px;
        gap: 6px;
        margin: 0;
        border-radius: 8px;
        align-items: center;
        justify-content: center;
    }

    .nav-links li i {
        font-size: 20px;
    }

    .nav-links li.active::before {
        display: none;
    }

    .nav-links li.active {
        background: rgba(183, 33, 255, 0.15);
        color: var(--accent-blue);
    }

    .main-content {
        padding-bottom: 0;
        height: 100vh;
    }

    .page-content {
        height: calc(100vh - 145px);
        /* Header + bottom nav approx height */
        padding-bottom: 80px;
        /* buffer */
    }

    .player-bar {
        bottom: 65px;
        /* sit above bottom nav */
        padding: 0 10px;
        height: 70px;
        background: rgba(17, 18, 24, 0.98);
    }

    .player-controls {
        gap: 15px;
    }

    .player-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .play-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Top Bar & Language Selector */
    .top-bar {
        padding: 10px 15px;
    }

    .search-bar-container {
        flex: 1;
        min-width: 0;
    }

    .custom-lang-dropdown {
        right: 0;
        left: auto;
    }

    .custom-language-selector span {
        display: none;
        /* Hide text on small screens, keep icon */
    }

    .hero-info h2 {
        font-size: 28px;
    }
}

.player-bar {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.player-bar.hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

/* ===== LAYOUT ===== */
.app-container {
    display: flex;
    height: 100dvh;
    width: 100%;
}

.glass {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    padding: 24px 0 120px 0;
    border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
    transition: width 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 32px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 12px rgba(183, 33, 255, 0.4);
}

.neon-text {
    color: var(--accent-blue);
    text-shadow: var(--neon-glow-blue);
}

.nav-links {
    list-style: none;
    flex: 1;
    padding: 0 8px;
}

.nav-links li {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 12px;
    margin-bottom: 4px;
    position: relative;
}

.nav-links li i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.nav-links li:hover {
    color: var(--text-primary);
    background: var(--hover-bg);
}

.nav-links li:hover i {
    transform: scale(1.15);
}

.nav-links li.active {
    color: var(--accent-purple);
    background: linear-gradient(90deg, rgba(183, 33, 255, 0.15) 0%, transparent 100%);
    font-weight: 600;
}

.nav-links li.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--accent-purple);
    border-radius: 0 3px 3px 0;
    box-shadow: var(--neon-glow-purple);
    animation: slideIndicator 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideIndicator {
    0% {
        height: 0%;
        opacity: 0;
    }

    100% {
        height: 60%;
        opacity: 1;
    }
}

.theme-toggle {
    padding: 16px 24px;
    border-top: 1px solid var(--glass-border);
}

#theme-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

#theme-btn:hover {
    color: var(--accent-blue);
    transform: scale(1.1) rotate(15deg);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 0;
    min-width: 0;
}

/* ===== TOP BAR & SEARCH ===== */
.top-bar {
    padding: 20px 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 5;
}

.search-bar-container {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px 20px;
    width: 100%;
    max-width: 520px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.2s;
    position: relative;
}

.search-bar-container:focus-within {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(183, 33, 255, 0.2), 0 0 40px rgba(183, 33, 255, 0.05);
    transform: scale(1.01);
}

.search-bar-container i.fa-search {
    color: var(--text-secondary);
    margin-right: 12px;
    font-size: 14px;
}

#search-input {
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    width: 100%;
    outline: none;
}

#search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-shortcut {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
    flex-shrink: 0;
}

.search-shortcut kbd {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 11px;
    font-family: 'Outfit', sans-serif;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 40px 40px;
    transition: padding-bottom 0.3s ease;
}

body.player-active .page-content {
    padding-bottom: 120px;
}

.view {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ===== TRENDING FILTERS / GENRE CHIPS ===== */
.trending-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.trending-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.filter-btn:hover {
    background: rgba(183, 33, 255, 0.12);
    color: var(--text-primary);
    border-color: rgba(183, 33, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(183, 33, 255, 0.15);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(183, 33, 255, 0.3);
    transform: translateY(-1px);
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 28px;
}

/* ===== SKELETON LOADER ===== */
.skeleton-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    overflow: hidden;
}

.skeleton-card .skeleton-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 70%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    margin-bottom: 14px;
}

.skeleton-card .skeleton-title {
    height: 14px;
    width: 80%;
    border-radius: 6px;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 70%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    margin-bottom: 8px;
}

.skeleton-card .skeleton-artist {
    height: 12px;
    width: 55%;
    border-radius: 6px;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 70%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===== SONG CARD ===== */
.song-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 14px;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.song-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-purple);
    box-shadow: 0 10px 40px rgba(183, 33, 255, 0.25), 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.song-card:hover .card-img {
    transform: scale(1.08);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-overlay-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-purple);
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(183, 33, 255, 0.4);
    cursor: pointer;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.song-card:hover .play-overlay-btn {
    transform: translateY(0);
}

.play-overlay-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 28px rgba(183, 33, 255, 0.6);
}

.play-overlay-btn:active {
    transform: scale(0.95) !important;
}

.btn-play-card {
    background: var(--accent-purple);
    box-shadow: 0 4px 20px rgba(183, 33, 255, 0.4);
}

.btn-add-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-add-card:hover {
    background: rgba(255, 255, 255, 0.25);
}

@keyframes pulsePurple {
    from {
        box-shadow: 0 0 10px rgba(183, 33, 255, 0.4);
    }

    to {
        box-shadow: 0 0 20px rgba(183, 33, 255, 0.8), 0 0 30px rgba(183, 33, 255, 0.6);
    }
}

.btn-dl-card {
    background: var(--accent-blue);
    box-shadow: var(--neon-glow-blue);
}

@keyframes pulseBlue {
    from {
        box-shadow: 0 0 10px rgba(33, 212, 253, 0.4);
    }

    to {
        box-shadow: 0 0 20px rgba(33, 212, 253, 0.8), 0 0 30px rgba(33, 212, 253, 0.6);
    }
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
    line-height: 1.4;
}

.card-artist {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    opacity: 0.8;
}

.card-duration {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-top: 4px;
}

/* ===== PLAYER BAR ===== */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 96px;
    background: var(--player-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
    z-index: 100;
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 30%;
    min-width: 200px;
}

.np-cover {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.np-cover.playing {
    animation: spinCover 12s linear infinite;
    border-radius: 50%;
}

@keyframes spinCover {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.np-info {
    overflow: hidden;
    min-width: 0;
}

.np-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.np-info p {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

.np-like-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 4px;
}

.np-like-btn:hover {
    color: var(--accent-red);
    transform: scale(1.15);
}

.np-like-btn.liked {
    color: var(--accent-red);
    text-shadow: var(--neon-glow-red);
}

/* ===== PLAYER CENTER (Controls + Progress) ===== */
.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 600px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px;
    position: relative;
}

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

.control-btn.active {
    color: var(--accent-purple);
}

.control-btn.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-purple);
}

.play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.3);
}

/* ===== PROGRESS BAR ===== */
.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    font-size: 11px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.progress-bar-bg {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height 0.15s ease;
}

.progress-bar-bg:hover {
    height: 8px;
}

.progress-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    border-radius: 4px;
    pointer-events: none;
    transition: width 0.1s linear;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShimmer 2.5s infinite;
}

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

    100% {
        transform: translateX(100%);
    }
}

/* ===== PLAYER ACTIONS (Right side) ===== */
.player-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    width: 30%;
    min-width: 200px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px;
}

.action-btn:hover {
    color: var(--accent-purple);
    transform: scale(1.1);
}

/* ===== VOLUME CONTROL ===== */
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.volume-control i {
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
    min-width: 16px;
    text-align: center;
}

.volume-control i:hover {
    color: var(--text-primary);
}

.volume-control input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 90px;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: height 0.15s;
}

.volume-control input[type="range"]:hover {
    height: 6px;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-purple);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(183, 33, 255, 0.4);
    transition: transform 0.15s;
}

.volume-control input[type="range"]:hover::-webkit-slider-thumb {
    transform: scale(1.2);
}

/* ===== LOADER ===== */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.placeholder-text {
    color: var(--text-secondary);
    font-size: 16px;
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 60px;
    opacity: 0.6;
}

/* ===== FULLSCREEN PLAYER ===== */
.fullscreen-player {
    position: fixed;
    top: 100vh;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0b0914;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: top 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0s 0.5s;
    overflow: hidden;
    visibility: hidden;
}

.fullscreen-player.open {
    top: 0;
    visibility: visible;
    transition: top 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0s 0s;
}

.fs-background-blur {
    position: absolute;
    inset: -20%;
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(0.25) saturate(1.4);
    z-index: 0;
    transition: background-image 0.8s ease;
}

.fullscreen-player>*:not(.fs-background-blur) {
    position: relative;
    z-index: 1;
}

.close-fs-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    padding: 24px 32px;
    align-self: flex-start;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.close-fs-btn:hover {
    color: white;
    transform: translateY(2px);
}

.fs-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px 60px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    z-index: 10;
}

.fs-cover {
    width: 42vh;
    height: 42vh;
    max-width: 400px;
    max-height: 400px;
    min-width: 220px;
    min-height: 220px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.fs-cover.playing {
    /* Kept class for JS hooks but removed the spinning vinyl effect */
    box-shadow: 0 0 40px rgba(183, 33, 255, 0.2), 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes fsSpinCover {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.fs-info {
    text-align: center;
    margin-bottom: 32px;
    width: 100%;
}

.fs-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.fs-info p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* Fullscreen action buttons row */
.fs-action-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.fs-action-btns .action-btn {
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
}

/* ===== HERO BANNER & QUICK OPTIONS ===== */
.home-top-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.hero-banner {
    flex: 1;
    height: 350px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #111218;
}

.hero-bg-blur {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.6);
    z-index: 0;
    transition: background-image 0.5s ease;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.hero-cover-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-music-note {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff7b00, #ff0055);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.4);
}

.hero-info {
    flex: 1;
}

.hero-tag {
    background: rgba(255, 0, 85, 0.2);
    color: #ff3271;
    border: 1px solid rgba(255, 0, 85, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
}

.hero-info h2 {
    font-size: 52px;
    font-weight: 800;
    margin: 0 0 5px;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    line-height: 1.1;
}

.hero-info p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 20px;
    font-weight: 500;
}

.hero-info .action-btn.primary {
    background: linear-gradient(135deg, #b721ff, #ff217a);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(183, 33, 255, 0.4);
}

.hero-info .action-btn.primary:hover {
    box-shadow: 0 6px 20px rgba(183, 33, 255, 0.6);
    transform: translateY(-2px);
}

.quick-options-menu {
    width: 250px;
    background: rgba(17, 18, 24, 0.6);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.quick-option-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.quick-option-btn i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.quick-option-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.quick-option-btn.active {
    background: rgba(183, 33, 255, 0.15);
    color: white;
    border: 1px solid rgba(183, 33, 255, 0.3);
}

.quick-option-btn.active i,
.quick-option-btn:hover i {
    color: var(--accent-purple);
}

@media (max-width: 900px) {
    .home-top-section {
        flex-direction: column;
    }

    .quick-options-menu {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .hero-info h2 {
        font-size: 36px;
    }

    .hero-info .hero-tag {
        margin: 0 auto 15px;
    }

    .hero-info p {
        justify-content: center;
    }
}

/* Responsive Quick Options Menu */
@media (max-width: 900px) {
    .home-top-section {
        flex-direction: column;
    }

    .quick-options-menu {
        width: 100%;
        display: none;
    }

    .quick-options-menu.show {
        display: flex;
    }

    #mobile-options-toggle {
        display: block !important;
    }
}

@media (max-width: 500px) {
    .language-selector {
        padding: 5px 10px !important;
    }

    #language-select {
        width: 60px;
    }
}

/* Pulsing Glow for Play Button */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px rgba(183, 33, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 25px rgba(183, 33, 255, 0.9), 0 0 10px rgba(33, 212, 253, 0.4);
    }

    100% {
        box-shadow: 0 0 10px rgba(183, 33, 255, 0.4);
    }
}

#hero-play-btn.glow-btn {
    animation: pulse-glow 2s infinite;
    transition: transform 0.3s ease, background 0.3s ease;
}

#hero-play-btn.glow-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #b721ff, #21d4fd);
}

.fs-action-btns .action-btn:hover {
    color: white;
}

.fs-action-btns .action-btn.liked {
    color: var(--accent-red);
}

.fs-progress-container {
    width: 100%;
    max-width: 560px;
    margin-bottom: 32px;
}

.fs-progress-container .progress-bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
}

.fs-progress-container .progress-bar-fill {
    background: white;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.fs-controls {
    display: flex;
    align-items: center;
    gap: 36px;
}

.fs-controls .control-btn {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
}

.fs-controls .control-btn:hover {
    color: white;
    transform: scale(1.1);
}

.fs-controls .play-btn {
    width: 72px;
    height: 72px;
    font-size: 28px;
    background: white;
    color: #0b0914;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.fs-controls .play-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    animation: none;
}

/* ===== PROFILE FAB ===== */
.profile-fab-container {
    position: fixed;
    bottom: 116px;
    right: 28px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.profile-fab {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    padding: 3px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-fab img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-color);
}

.profile-fab-container:hover .profile-fab {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(183, 33, 255, 0.4), 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ===== PROFILE MODAL ===== */
.profile-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.profile-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.profile-card {
    background: #111218;
    width: 340px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-drag-handle {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.modal-drag-handle .dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.modal-drag-handle .dash {
    width: 12px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

.profile-modal.open .profile-card {
    transform: translateY(0) scale(1);
}

.close-profile-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.3s;
}

.close-profile-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.profile-banner {
    height: 190px;
    background: #111218;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.banner-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
}

.sound-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #4ade80;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.sound-badge:hover {
    background: rgba(0, 0, 0, 0.8);
}

.profile-info {
    padding: 0 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-top: 140px;
}

.profile-avatar-container {
    margin-bottom: 12px;
    position: relative;
}

@keyframes float-glow {

    0%,
    100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.1));
    }

    50% {
        transform: translateY(-6px);
        filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.6));
    }
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 6px solid #111218;
    background: #1e1f2b;
    object-fit: cover;
    animation: float-glow 4s ease-in-out infinite;
}

.status-dot {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: #23a559;
    border: 3px solid #111218;
    border-radius: 50%;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.verified-badge {
    color: #f87171;
    font-size: 16px;
}

.profile-role {
    background: rgba(0, 255, 255, 0.1);
    color: #67e8f9;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.role-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
}

.profile-username {
    color: #949ba4;
    font-size: 14px;
    margin-bottom: 6px;
}

.profile-quote {
    color: #dbdee1;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 20px;
    text-align: center;
}

.profile-social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

.profile-social-icons a {
    color: var(--text-secondary);
    font-size: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.profile-social-icons a:hover {
    color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(187, 134, 252, 0.2);
}

.profile-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: filter 0.2s;
}

.profile-btn:hover {
    filter: brightness(1.2);
}

.btn-primary {
    background: #00a8fc;
    color: white;
}

.btn-secondary {
    background: #2b2d31;
    color: #dbdee1;
    flex: 1;
}

.profile-btn-row {
    display: flex;
    gap: 10px;
}

.profile-footer {
    text-align: center;
    color: #949ba4;
    font-size: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ===== REPORT FORM ===== */
.report-form-container {
    max-width: 600px;
    padding: 32px;
    border-radius: 16px;
    margin-top: 24px;
}

.report-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 12px rgba(183, 33, 255, 0.15);
}

.submit-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    border: none;
    border-radius: 24px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(183, 33, 255, 0.3);
}

/* ===== PLAYLIST VIEW ===== */
.playlist-header {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.playlist-cover {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 64px;
    color: var(--accent-red);
    background: linear-gradient(135deg, rgba(255, 42, 95, 0.15), rgba(183, 33, 255, 0.1));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.playlist-info h1 {
    font-size: 56px;
    font-weight: 800;
    margin: 8px 0;
}

.playlist-type {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.playlist-meta {
    color: var(--text-secondary);
}

.tracklist-row {
    display: grid;
    grid-template-columns: 50px 1fr 100px 50px;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.2s;
    cursor: pointer;
}

.tracklist-row:hover {
    background: var(--hover-bg);
}

.track-num {
    color: var(--text-secondary);
    text-align: center;
}

.track-info h4 {
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 500;
}

.track-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.track-action {
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}

.track-action:hover,
.track-action.liked {
    color: var(--accent-red);
}

.btn-like-card {
    background: transparent;
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-like-card:hover {
    transform: scale(1.2);
}

.btn-like-card.liked {
    color: var(--accent-red);
    text-shadow: var(--neon-glow-red);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 72px;
    }

    .logo span {
        display: none;
    }

    .logo {
        justify-content: center;
        padding: 0 0 24px;
    }

    .nav-links li {
        justify-content: center;
        padding: 14px 0;
        gap: 0;
        font-size: 0;
        /* hide text */
    }

    .nav-links li i {
        font-size: 20px;
    }

    .nav-links li.active::before {
        left: 0;
    }

    .theme-toggle {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(65px + env(safe-area-inset-bottom, 0px));
        flex-direction: row;
        padding: 0 0 env(safe-area-inset-bottom, 0px) 0;
        border-right: none;
        border-top: 1px solid var(--glass-border);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        background: rgba(18, 14, 31, 0.98);
        transition: none;
    }

    .logo,
    .sidebar-footer,
    .theme-toggle {
        display: none !important;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        padding: 0;
        margin: 0;
    }

    .nav-links li {
        flex-direction: column;
        padding: 8px 10px;
        font-size: 10px;
        gap: 6px;
        margin: 0;
        border-radius: 8px;
        align-items: center;
        justify-content: center;
    }

    .nav-links li span {
        display: none;
        /* Hide text on mobile for Spotify style */
    }

    .nav-links li i {
        font-size: 22px;
        margin: 0;
    }

    .nav-links li.active::before {
        display: none;
    }

    .nav-links li.active {
        background: transparent;
        color: var(--accent-purple);
    }

    .main-content {
        padding-bottom: 0;
        height: 100dvh;
    }

    .page-content {
        height: calc(100dvh - 135px - env(safe-area-inset-bottom, 0px));
        /* Header + bottom nav approx height */
        padding: 0 15px calc(80px + env(safe-area-inset-bottom, 0px));
        /* buffer and smaller side padding */
        overflow-y: auto;
        transition: padding-bottom 0.3s ease;
    }

    body.player-active .page-content {
        padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
    }

    .playlist-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .playlist-cover {
        width: 120px;
        height: 120px;
        font-size: 48px;
    }

    .playlist-info h1 {
        font-size: 32px;
    }

    .player-bar {
        bottom: calc(65px + env(safe-area-inset-bottom, 0px));
        /* sit above bottom nav */
        padding: 0 10px;
        height: 70px;
        background: rgba(17, 18, 24, 0.98);
    }

    .now-playing {
        flex: 1;
        min-width: 0;
    }

    .player-center {
        flex: unset;
    }

    .player-controls {
        gap: 15px;
    }

    .player-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .play-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Top Bar & Language Selector */
    .top-bar {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

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

    .search-shortcut {
        display: none;
    }

    .custom-lang-dropdown {
        right: 0;
        left: auto;
    }

    #custom-lang-text {
        display: none;
        /* Hide text on small screens, keep icon */
    }

    .hero-info h2 {
        font-size: 28px;
    }

    .np-cover {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }

    .np-cover.playing {
        border-radius: 50%;
    }

    .np-info h4 {
        font-size: 13px;
    }

    .np-info p {
        font-size: 11px;
    }

    .np-like-btn {
        display: none;
    }

    .player-actions {
        display: none;
    }

    .player-bar #shuffle-btn,
    .player-bar #repeat-btn,
    .player-bar #seek-bw-btn,
    .player-bar #seek-fw-btn,
    .player-bar #auto-dj-btn,
    .player-bar .progress-container {
        display: none !important;
    }

    .page-title {
        font-size: 24px;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }

    .profile-fab-container {
        bottom: 145px;
        right: 16px;
    }

    .profile-fab {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .song-card {
        padding: 10px;
    }

    .card-title {
        font-size: 13px;
    }

    .card-artist {
        font-size: 11px;
    }
}

/* ===== FOCUS STATES (Accessibility) ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

/* ===== SOUND TOGGLE ENSURE CLICKABLE ===== */
#sound-toggle-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 100 !important;
}

/* ===== PLAYLISTS & MODAL ===== */
.playlist-cover i {
    font-size: 64px;
    color: white;
    filter: drop-shadow(0 0 20px rgba(183, 33, 255, 0.5));
}

#playlist-options-list .filter-btn:hover {
    background: rgba(183, 33, 255, 0.15);
    border-color: rgba(183, 33, 255, 0.5);
}

/* ===== AUTH UI & ADMIN ===== */
.sidebar-footer {
    margin-top: auto;
    padding: 15px;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: rgba(183, 33, 255, 0.1);
    border: 1px solid rgba(183, 33, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background: rgba(183, 33, 255, 0.2);
    border-color: rgba(183, 33, 255, 0.4);
    box-shadow: 0 0 15px rgba(183, 33, 255, 0.2);
}

.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.auth-tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: var(--accent-purple);
    border-bottom-color: var(--accent-purple);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 15px;
}

.auth-form.active {
    display: flex;
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    gap: 15px;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(183, 33, 255, 0.2);
}

.input-group i {
    color: var(--text-secondary);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.input-group:focus-within i {
    color: var(--accent-purple);
}

.input-group input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
    outline: none;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-submit {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    background: var(--accent-purple);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-submit:hover {
    background: var(--accent-purple-hover, #9b19df);
    transform: translateY(-2px);
}

.btn-maybe-later:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.admin-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.admin-card h3 {
    color: var(--accent-purple);
    margin-bottom: 10px;
}

.admin-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 5px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(183, 33, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ===== GLOBAL MODALS ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ===== QUEUE ITEMS ===== */
.queue-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.queue-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.queue-item.active {
    background: rgba(183, 33, 255, 0.2);
    border: 1px solid rgba(183, 33, 255, 0.4);
}

.queue-item img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    margin-right: 15px;
    object-fit: cover;
}

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

.queue-item-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

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



/* Background Animations */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 15% 50%, rgba(183, 33, 255, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(33, 212, 253, 0.05), transparent 25%);
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #21d4fd;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: #ff0055;
    top: 40%;
    left: 40%;
    opacity: 0.2;
    animation-delay: -10s;
    animation-duration: 30s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Fix mobile toggle */
@media (max-width: 900px) {
    #mobile-options-toggle {
        display: flex !important;
    }
}

/* ===== PREMIUM ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Equalizer Animation */
.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
    margin-left: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.np-cover.playing~.equalizer,
.np-cover.playing~* .equalizer {
    opacity: 1;
}

.equalizer .bar {
    width: 4px;
    background: var(--accent-purple);
    border-radius: 2px;
    animation: eq-bounce 1s ease-in-out infinite alternate;
    transform-origin: bottom;
}

.equalizer .bar:nth-child(1) {
    animation-delay: 0.1s;
    height: 60%;
}

.equalizer .bar:nth-child(2) {
    animation-delay: 0.3s;
    height: 100%;
}

.equalizer .bar:nth-child(3) {
    animation-delay: 0.5s;
    height: 40%;
}

.equalizer .bar:nth-child(4) {
    animation-delay: 0.2s;
    height: 80%;
}

@keyframes eq-bounce {
    0% {
        transform: scaleY(0.3);
    }

    100% {
        transform: scaleY(1);
    }
}

/* Page Title Entrance */
.title-enter {
    animation: textReveal 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   PRELOADER ANIMATION
   ========================================= */
#site-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: #000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

#site-preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('you.jpg') no-repeat center center;
    background-size: cover;
    z-index: 1;
    animation: preloaderZoom 5s ease-out forwards;
}

@keyframes preloaderZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Add a dark gradient overlay at the bottom so text is readable */
.preloader-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9));
}

.preloader-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-bottom: 50px;
    color: white;
}

.preloader-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #fff, #a29bfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: floatLogo 3s ease-in-out infinite;
}

.preloader-tagline {
    font-size: 14px;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
    margin-bottom: 20px;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background-color: var(--accent-purple);
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dotPulse {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.3;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===== ARTIST CARD ===== */
.artist-card {
    background: transparent;
    border: none;
    border-radius: 50%;
    padding: 10px;
    transition: all 0.35s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.artist-card:hover {
    transform: translateY(-8px) scale(1.05);
}

.artist-img-wrapper {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.artist-card:hover .artist-img-wrapper {
    border-color: var(--accent-purple);
    box-shadow: 0 10px 40px rgba(183, 33, 255, 0.4);
}

.artist-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artist-card:hover .artist-img {
    transform: scale(1.1);
}

.artist-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-align: center;
    margin: 0;
}

/* ===== PAGINATION ===== */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn:hover:not(:disabled) {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-numbers span {
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.page-numbers span.current-page {
    background: var(--accent-purple);
    font-weight: bold;
}

/* ===== ADMIN DEVS FAVS LIST ===== */
.admin-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
}

.admin-list-item img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.admin-list-info {
    flex: 1;
}

.admin-list-title {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin: 0 0 4px 0;
}

.admin-list-artist {
    font-size: 12px;
    color: var(--light-text);
    margin: 0;
}
/* Artist Track List Styling */
.track-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    gap: 15px;
}
.track-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}
.track-number {
    color: var(--text-secondary);
    font-size: 14px;
    width: 25px;
    text-align: right;
}
.track-img {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
}
.track-info {
    flex: 1;
    overflow: hidden;
}
.track-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.track-artist {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.track-play-btn, .track-like-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.track-play-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}
.track-like-btn.liked {
    color: var(--accent-red);
}
.track-like-btn:hover {
    color: var(--accent-red);
    background: rgba(255, 255, 255, 0.1);
}


@keyframes badge-bounce { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
.badge-anim { animation: badge-bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
