/**
 * Dark Premium - Mobile Experience
 * Responsive Dark Theme Overhaul
 */

@media (max-width: 1024px) {
    :root {
        --header-height-mobile: 90px;
        --safe-area-bottom: 20px;
    }

    body {
        padding-bottom: 120px !important;
    }

    .container {
        padding: 0 20px !important;
    }

    .hidden-mobile {
        display: none !important;
    }

    /* Header & Navigation */
    .navbar {
        height: var(--header-height-mobile) !important;
        padding: 0 !important;
    }

    .navbar-inner {
        padding: 0 20px !important;
    }

    .navbar-brand img {
        height: 60px !important;
    }

    .navbar-actions {
        display: none !important;
    }

    .mobile-toggle {
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-white);
        font-size: 1.2rem;
        transition: all 0.3s ease;
    }

    /* Mobile Menu */
    .mobile-menu {
        border-radius: 0 0 35px 35px;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-top: none;
        padding-top: 20px;
        background: var(--bg-primary);
    }

    .mobile-menu-nav {
        padding-top: 15px !important;
    }

    .mobile-menu-link {
        padding: 12px 25px !important;
        font-weight: 700 !important;
        font-size: 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        display: flex;
        align-items: center;
        gap: 15px;
        color: var(--text-primary) !important;
    }

    .mobile-menu-link i {
        width: 20px;
        color: var(--brand-blue);
        font-size: 1rem;
    }

    /* Cards Mobile */
    .luxury-main-panel {
        padding: 30px 20px !important;
        border-radius: 30px !important;
        margin-top: -30px !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
    }

    .luxury-card,
    .chart-item {
        border-radius: 20px !important;
        padding: 12px 15px !important;
    }

    .chart-rank {
        width: 32px !important;
        font-size: 0.9rem !important;
    }

    .chart-cover {
        width: 45px !important;
        height: 45px !important;
        border-radius: 10px !important;
    }

    .chart-info h4 {
        font-size: 0.95rem !important;
    }

    .chart-info p {
        font-size: 0.8rem !important;
    }

    /* Sticky Player (Mobile) */
    .sticky-mobile-player {
        position: fixed !important;
        bottom: 15px !important;
        left: 10px !important;
        right: 10px !important;
        height: auto !important;
        background: rgba(10, 15, 28, 0.98) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 35px !important;
        padding: 16px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6) !important;
        z-index: 999999 !important;
    }

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

    .sticky-player-main-action {
        flex-shrink: 0;
    }

    .sticky-play-btn {
        width: 58px !important;
        height: 58px !important;
        background: var(--brand-blue, #3b82f6) !important;
        border-radius: 50% !important;
        border: none !important;
        color: #fff !important;
        font-size: 1.35rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.45) !important;
    }

    .sticky-player-info-wrapper {
        display: flex !important;
        align-items: center !important;
        gap: 12px;
        flex-grow: 1;
        justify-content: flex-end !important;
        min-width: 0;
        cursor: pointer;
    }

    .sticky-player-info {
        text-align: right !important;
        min-width: 0;
        flex-grow: 1;
    }

    .sticky-track-title {
        font-size: 14px !important;
        color: #fff !important;
        font-weight: 700 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block !important;
        margin-bottom: 2px;
    }

    .sticky-track-artist {
        font-size: 12px !important;
        color: rgba(255, 255, 255, 0.5) !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block !important;
    }

    .sticky-art-box {
        width: 48px !important;
        height: 48px !important;
        border-radius: 12px !important;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.05);
        flex-shrink: 0;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sticky-art-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .sticky-live-badge {
        display: inline-flex !important;
        align-items: center;
        gap: 4px;
        color: var(--brand-blue, #3b82f6) !important;
        font-weight: 800 !important;
        text-transform: uppercase;
        font-size: 9px !important;
        background: rgba(59, 130, 246, 0.1);
        padding: 2px 8px;
        border-radius: 50px;
        margin-bottom: 2px;
    }

    .live-dot {
        width: 6px;
        height: 6px;
        background: var(--brand-blue, #3b82f6);
        border-radius: 50%;
        display: inline-block;
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
        animation: blink 1.5s infinite;
    }

    @keyframes blink {
        0% {
            opacity: 1;
        }

        50% {
            opacity: 0.3;
        }

        100% {
            opacity: 1;
        }
    }

    /* Volume Bar */
    .sticky-volume-container {
        display: flex !important;
        align-items: center;
        gap: 12px;
        padding: 0 5px;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 10px;
    }

    .sticky-volume-container i {
        color: rgba(255, 255, 255, 0.4);
        font-size: 0.8rem;
    }

    .sticky-volume-slider {
        flex-grow: 1;
        height: 4px !important;
        -webkit-appearance: none;
        appearance: none;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 2px !important;
        outline: none;
    }

    .sticky-volume-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 14px;
        height: 14px;
        background: #fff;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    /* Footer Mobile */
    .footer-grid {
        gap: 35px !important;
        text-align: center;
    }

    .social-links {
        justify-content: center !important;
    }

    /* Hide Desktop Player on Mobile */
    .luxury-player {
        display: none !important;
    }

    /* Page Headers Mobile */
    .page-header-premium {
        padding: 140px 0 50px !important;
    }

    .page-header-premium h1 {
        font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
        letter-spacing: -0.3px !important;
    }

    .page-header-premium p {
        font-size: 0.85rem !important;
        padding: 0 10px !important;
    }

    /* Grid for top10 + schedule */
    [style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Animations */
@keyframes mobile-slide-up {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

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

.sticky-mobile-player {
    display: none !important;
    animation: mobile-slide-up 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@media (max-width: 1024px) {
    .sticky-mobile-player {
        display: flex !important;
        flex-direction: column !important;
    }
}