/**
 * Premium Mobile Experience CSS
 * Dedicated for mobile devices (max-width: 1100px)
 */

@media (max-width: 1100px) {
    :root {
        --header-height: 80px;
        --mobile-primary: #E11D48;
        --mobile-bg: #FFFFFF;
        --mobile-text: #0F172A;
        --mobile-text-muted: #64748B;
        --mobile-radius: 16px;
        --glass-bg: rgba(255, 255, 255, 0.85);
        --glass-border: rgba(255, 255, 255, 0.5);
    }

    /* Global Mobile Tweaks */
    body {
        background-color: #FAFAFA;
        -webkit-tap-highlight-color: transparent;
    }

    .container {
        padding: 0 20px;
    }

    /* Sticky Modern Header */
    .header {
        height: var(--header-height) !important;
        background: var(--glass-bg) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border-bottom: 1px solid var(--glass-border) !important;
        position: sticky !important;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.02);
    }

    .header-inner {
        height: 100%;
        padding: 0 20px !important;
    }

    .logo-img {
        max-height: 48px !important;
        transition: transform 0.3s ease;
    }

    .mobile-menu-btn {
        background: #F8FAFC !important;
        border-radius: 12px !important;
        border: 1px solid #F1F5F9 !important;
        color: var(--mobile-text) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
        z-index: 10001 !important;
    }

    /* Full-screen Mobile Menu Overhaul */
    .mobile-menu {
        position: fixed !important;
        top: var(--header-height) !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - var(--header-height)) !important;
        background: #FFFFFF !important;
        z-index: 2000 !important;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex !important;
        flex-direction: column;
        overflow-y: auto;
    }

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

    .mobile-menu-inner {
        padding: 20px !important;
        display: flex;
        flex-direction: column;
        gap: 15px;
        min-height: 100%;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-nav-link.highlight {
        background: var(--mobile-primary) !important;
        color: #FFFFFF !important;
        border: none !important;
    }

    .mobile-nav-link.highlight::after {
        color: #FFFFFF !important;
        opacity: 0.6;
    }

    .mobile-menu-footer {
        margin-top: auto;
        padding: 30px 0;
        border-top: 1px solid #F1F5F9;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .mobile-social {
        display: flex;
        gap: 20px;
        font-size: 1.5rem;
    }

    .mobile-social a {
        color: var(--mobile-text-muted);
        transition: color 0.3s ease;
    }

    .mobile-social a:hover {
        color: var(--mobile-primary);
    }

    .mobile-nav-link {
        background: #F8FAFC !important;
        border: 1px solid #F1F5F9 !important;
        padding: 18px 20px !important;
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        color: #1E293B !important;
        border-radius: 15px !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-nav-link::after {
        content: '\f054';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.8rem;
        opacity: 0.3;
        transition: transform 0.3s ease;
    }

    .mobile-nav-link:active {
        background: #F1F5F9 !important;
        transform: scale(0.98);
    }

    .mobile-nav-link.active {
        background: rgba(225, 29, 72, 0.05) !important;
        color: var(--mobile-primary) !important;
        border-color: rgba(225, 29, 72, 0.1) !important;
    }

    /* Hero Player Redesign for Mobile */
    .hero-player-section {
        padding: 30px 20px 40px !important;
        background: #FFFFFF !important;
        text-align: center;
    }

    .hero-player-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
    }

    .hero-visual-side {
        order: 1 !important;
        padding: 0 !important;
        display: flex;
        justify-content: center;
    }

    .vinyl-outer-wrapper {
        width: 200px !important;
        height: 200px !important;
    }

    .vinyl-rainbow-container {
        width: 190px !important;
        height: 190px !important;
        box-shadow: 0 15px 35px rgba(225, 29, 72, 0.15) !important;
    }

    .hero-info-side {
        order: 2 !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .program-status-badge {
        font-size: 9px !important;
        padding: 5px 12px !important;
    }

    .hero-program-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }

    .hero-song-box {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px !important;
        border-radius: 20px !important;
        background: #F8FAFC !important;
        border: 1px solid #F1F5F9 !important;
        justify-content: center !important;
        margin-top: 5px !important;
    }

    .song-box-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 14px !important;
    }

    .song-box-name {
        font-size: 14px !important;
    }

    .song-box-artist {
        font-size: 12px !important;
    }

    .hero-controls-bar {
        order: 3 !important;
        margin-top: 15px !important;
        gap: 25px !important;
    }

    .vinyl-center-btn {
        width: 55px !important;
        height: 55px !important;
        font-size: 18px !important;
        border-width: 2px !important;
    }

    /* Section Aesthetics */
    .section-header {
        margin-bottom: 25px !important;
        text-align: center !important;
    }

    .section-title {
        font-size: 1.75rem !important;
        font-weight: 700 !important;
    }

    .app-tag {
        font-size: 10px !important;
        padding: 4px 12px !important;
        border-radius: 30px !important;
    }

    /* Cards Grid Overhaul */
    .cards-grid {
        gap: 15px !important;
    }

    .glass-card {
        padding: 15px !important;
        border-radius: var(--mobile-radius) !important;
        border-color: #F1F5F9 !important;
        background: #FFFFFF !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    }

    /* Footer Cleanup */
    .footer {
        padding: 40px 0 30px !important;
        background: #FFFFFF !important;
        border-top: 1px solid #F1F5F9;
    }

    .footer-grid {
        text-align: center;
        gap: 25px !important;
    }

    .footer-col h3 {
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px !important;
    }

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

    .footer-bottom {
        padding-top: 20px !important;
        margin-top: 30px !important;
    }

    /* Custom Mobile Animations */
    @keyframes slideInUp {
        from {
            transform: translateY(20px);
            opacity: 0;
        }

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

    .mobile-menu.open .mobile-nav-link {
        animation: slideInUp 0.4s ease forwards;
    }

    .mobile-menu.open .mobile-nav-link:nth-child(1) {
        animation-delay: 0.1s;
    }

    .mobile-menu.open .mobile-nav-link:nth-child(2) {
        animation-delay: 0.15s;
    }

    .mobile-menu.open .mobile-nav-link:nth-child(3) {
        animation-delay: 0.2s;
    }

    .mobile-menu.open .mobile-nav-link:nth-child(4) {
        animation-delay: 0.25s;
    }

    .mobile-menu.open .mobile-nav-link:nth-child(5) {
        animation-delay: 0.3s;
    }

    /* Persistent Sticky Player - Premium Dark Redesign */
    .sticky-mobile-player {
        position: fixed;
        bottom: 15px;
        left: 15px;
        right: 15px;
        height: 75px;
        background: #000000;
        border-radius: 20px;
        z-index: 9999;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
        padding: 0 16px;
        overflow: hidden;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        display: block;
        /* Force visible on mobile */
        border: 1px solid rgba(255, 255, 255, 0.05);
        transform: translateY(0);
    }

    .sticky-player-inner {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .sticky-player-content {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 15px;
    }

    .sticky-player-art {
        flex-shrink: 0;
    }

    .sticky-art-box {
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #E11D48;
        font-size: 1.2rem;
    }

    .sticky-player-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .sticky-live-badge {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 10px;
        font-weight: 800;
        color: #E11D48;
        letter-spacing: 0.05em;
        margin-bottom: 2px;
    }

    .live-dot {
        width: 6px;
        height: 6px;
        background: #E11D48;
        border-radius: 50%;
        animation: live-blink 1.5s infinite;
    }

    .sticky-track-title {
        font-size: 15px;
        font-weight: 700;
        color: #FFFFFF;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

    .sticky-track-artist {
        font-size: 13px;
        font-weight: 500;
        color: #94A3B8;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-top: 1px;
    }

    .sticky-player-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .sticky-share-btn {
        background: none;
        border: none;
        color: #94A3B8;
        font-size: 1.2rem;
        padding: 8px;
        cursor: pointer;
        opacity: 0.7;
    }

    .sticky-play-btn {
        width: 54px;
        height: 54px;
        background: #E11D48;
        border: none;
        border-radius: 50%;
        color: #FFFFFF;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        box-shadow: 0 0 20px rgba(225, 29, 72, 0.3);
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .sticky-play-btn i {
        margin-left: 3px;
    }

    .sticky-play-btn:active {
        transform: scale(0.92);
    }
}