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

    body {
        font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow-x: hidden;
        /* Prevent horizontal scroll */
        overflow-y: auto;
        /* Allow vertical scroll if needed */
        position: relative;
        padding: 10px 0;
        /* Reduced from 20px */
    }

    /* ===== WHITE BACKGROUND ===== */
    .background-gradient {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #ffffff;
        z-index: -2;
    }


    /* ===== PLAYER CONTAINER ===== */
    .player-container {
        width: 100%;
        max-width: 900px;
        /* Increased for landscape layout */
        padding: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
        margin: 0 auto;
        box-sizing: border-box;
    }

    /* ===== LIQUID GLASS CARD ===== */
    .glass-card {
        width: 100%;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
        border-radius: 32px;
        /* Reduced from 36px */
        padding: 28px;
        /* Reduced from 40px */
        border: 1.5px solid rgba(200, 200, 220, 0.4);
        box-shadow:
            0 8px 32px 0 rgba(31, 38, 135, 0.15),
            inset 0 1px 0 0 rgba(255, 255, 255, 0.8),
            0 20px 60px rgba(0, 0, 0, 0.1);
        position: relative;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .glass-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg,
                transparent,
                rgba(255, 255, 255, 0.5),
                transparent);
    }

    .glass-card:hover {
        transform: translateY(-5px);
        box-shadow:
            0 12px 40px 0 rgba(31, 38, 135, 0.2),
            inset 0 1px 0 0 rgba(255, 255, 255, 0.9),
            0 25px 70px rgba(0, 0, 0, 0.15);
    }

    /* ===== LANDSCAPE LAYOUT ===== */
    .player-content-wrapper {
        display: flex;
        flex-direction: row;
        /* Side by side on desktop */
        gap: 32px;
        align-items: flex-start;
        position: relative;
    }

    .player-left {
        flex: 0 0 40%;
        /* 40% width for album cover */
        min-width: 0;
    }

    .player-right {
        flex: 1;
        /* Take remaining space */
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    /* ===== SEARCH BAR ===== */
    .search-wrapper {
        position: relative;
        margin-bottom: 24px;
        /* Reduced from 32px */
    }

    .search-icon {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #3b82f6;
        font-size: 16px;
        z-index: 2;
        pointer-events: none;
    }

    .glass-search {
        width: 100%;
        padding: 16px 20px 16px 50px;
        background: rgba(59, 130, 246, 0.08);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1.5px solid rgba(59, 130, 246, 0.2);
        border-radius: 20px;
        color: #1a1a2e;
        font-size: 15px;
        font-weight: 400;
        outline: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-family: 'Outfit', sans-serif;
    }

    .glass-search::placeholder {
        color: rgba(59, 130, 246, 0.5);
        font-weight: 300;
    }

    .glass-search:focus {
        background: rgba(59, 130, 246, 0.12);
        border-color: rgba(59, 130, 246, 0.4);
        box-shadow:
            0 0 0 4px rgba(59, 130, 246, 0.1),
            0 8px 24px rgba(59, 130, 246, 0.15);
        transform: translateY(-2px);
    }

    /* ===== ALBUM COVER ===== */
    .player-cover {
        position: relative;
        width: 100%;
        aspect-ratio: 1;
        /* Square */
        margin-bottom: 0;
        /* No bottom margin in landscape */
        border-radius: 24px;
        overflow: hidden;
    }

    .cover-glow {
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
        opacity: 0;
        transition: opacity 0.6s ease;
        pointer-events: none;
        z-index: 2;
    }

    .player-cover:hover .cover-glow {
        opacity: 1;
    }

    .cover-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .player-cover:hover .cover-img {
        transform: scale(1.08);
    }

    .cover-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg,
                transparent 0%,
                rgba(0, 0, 0, 0.1) 50%,
                rgba(0, 0, 0, 0.4) 100%);
        pointer-events: none;
        z-index: 1;
    }

    /* ===== TRACK INFO ===== */
    .track-info {
        text-align: left;
        /* Left-aligned in landscape */
        margin-bottom: 20px;
        padding: 0;
    }

    .track-title {
        font-size: 24px;
        font-weight: 700;
        color: #1a1a2e;
        margin-bottom: 6px;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        letter-spacing: -0.5px;
        line-height: 1.2;
    }

    .track-artist {
        font-size: 15px;
        font-weight: 400;
        color: #6b7280;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    /* ===== AUDIO CONTROLS ===== */
    .audio-controls {
        background: rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-radius: 24px;
        /* Reduced from 28px */
        padding: 22px;
        /* Reduced from 28px */
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    /* ===== PROGRESS BAR ===== */
    .progress-container {
        position: relative;
        margin-bottom: 14px;
        /* Reduced from 18px */
    }

    .glass-progress {
        -webkit-appearance: none;
        appearance: none;
        width: 100%;
        height: 12px;
        /* Increased from 10px */
        border-radius: 14px;
        /* Increased from 12px */
        background: linear-gradient(90deg,
                rgba(59, 130, 246, 0.4),
                /* Stronger from 0.3 */
                rgba(37, 99, 235, 0.35));
        /* Stronger from 0.25 */
        outline: none;
        position: relative;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 2;
        border: 1.5px solid rgba(59, 130, 246, 0.3);
        /* Stronger border */
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
        /* Added shadow */
    }

    .glass-progress:hover {
        background: linear-gradient(90deg,
                rgba(59, 130, 246, 0.5),
                /* Stronger */
                rgba(37, 99, 235, 0.45));
        /* Stronger */
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
        /* Stronger glow */
        transform: scaleY(1.1);
        /* Slight vertical scale */
    }

    .glass-progress::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 0;
        /* Hidden */
        height: 0;
        /* Hidden */
        opacity: 0;
        /* Hidden */
        pointer-events: none;
        /* Not interactive */
    }

    .glass-progress::-moz-range-thumb {
        width: 0;
        /* Hidden */
        height: 0;
        /* Hidden */
        opacity: 0;
        /* Hidden */
        pointer-events: none;
        /* Not interactive */
    }

    .progress-glow {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        height: 10px;
        border-radius: 12px;
        background: linear-gradient(90deg, #3b82f6, #2563eb);
        opacity: 0.6;
        pointer-events: none;
        transition: width 0.1s linear;
        z-index: 1;
    }

    /* ===== TIME DISPLAY ===== */
    .time-display {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 18px;
        /* Reduced from 24px */
        padding: 0 4px;
        /* Reduced from 6px */
        font-size: 13px;
        /* Reduced from 14px */
        font-weight: 500;
        color: #3b82f6;
        font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
        letter-spacing: 0.5px;
    }

    #current-time {
        color: #3b82f6;
    }

    #total-time {
        color: rgba(59, 130, 246, 0.6);
    }

    /* ===== CONTROL BUTTONS ===== */
    .control-buttons {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        /* Reduced from 18px */
        margin-bottom: 18px;
        /* Reduced from 24px */
    }

    .control-btn {
        width: 58px;
        height: 58px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #3b82f6;
        border-radius: 50%;
        border: none;
        cursor: pointer;
        color: #ffffff;
        font-size: 20px;
        transition: all 0.2s ease;
        position: relative;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }

    .control-btn:hover {
        background: #2563eb;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }

    .control-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    }

    .control-btn i {
        position: relative;
        z-index: 1;
    }

    /* ===== PLAY BUTTON (LARGER) ===== */
    .play-btn {
        width: 76px;
        height: 76px;
        font-size: 26px;
        background: #3b82f6;
        border: none;
        box-shadow: 0 3px 10px rgba(59, 130, 246, 0.35);
    }

    .play-btn:hover {
        background: #2563eb;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(59, 130, 246, 0.45);
    }

    .play-btn:active {
        transform: translateY(0);
    }

    /* ===== SECONDARY BUTTONS (SHUFFLE/REPEAT) ===== */
    .secondary-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        margin-top: 12px;
    }

    .secondary-btn {
        width: 44px;
        height: 44px;
        font-size: 15px;
        background: #93c5fd;
        transition: all 0.2s ease;
        border: none;
    }

    .secondary-btn:hover {
        background: #60a5fa;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
    }

    .secondary-btn.active {
        background: #3b82f6;
        color: #ffffff;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    }

    .secondary-btn.active:hover {
        background: #2563eb;
        transform: translateY(-2px);
    }

    .secondary-btn.active i {
        animation: activePulse 2s ease-in-out infinite;
    }

    @keyframes activePulse {

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

        50% {
            transform: scale(1.1);
            opacity: 0.85;
        }
    }

    /* ===== AUDIO VISUALIZER ===== */
    .visualizer-container {
        width: 100%;
        height: 50px;
        /* Reduced from 60px */
        margin-bottom: 16px;
        /* Reduced from 20px */
        border-radius: 16px;
        background: linear-gradient(135deg,
                rgba(59, 130, 246, 0.08),
                rgba(37, 99, 235, 0.08));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(59, 130, 246, 0.15);
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #audio-visualizer {
        width: 100%;
        height: 100%;
        display: block;
    }

    /* ===== LOADING OVERLAY ===== */
    .loading-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 32px;
        z-index: 1000;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .loading-overlay.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .loading-spinner {
        width: 50px;
        height: 50px;
        border: 4px solid rgba(59, 130, 246, 0.2);
        border-top: 4px solid #3b82f6;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

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

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

    @keyframes pulse {

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

        50% {
            opacity: 0.7;
            transform: scale(0.95);
        }
    }

    /* ===== PLAYING ANIMATION ===== */
    .play-btn.playing {
        /* No animation - just static playing state */
        background: linear-gradient(135deg,
                rgba(59, 130, 246, 0.3),
                rgba(37, 99, 235, 0.28));
    }

    /* ===== RESPONSIVE DESIGN ===== */

    /* Tablet and larger screens - Landscape Mode */
    @media (min-width: 768px) {
        .player-container {
            max-width: 950px;
            /* Wider for landscape */
            padding: 20px;
        }

        .glass-card {
            padding: 32px;
            border-radius: 36px;
        }

        .player-content-wrapper {
            gap: 36px;
            /* More space between sections */
        }

        .track-title {
            font-size: 26px;
        }

        .track-artist {
            font-size: 16px;
        }
    }

    /* Mobile landscape and small tablets */
    @media (max-width: 767px) and (min-width: 501px) {
        .player-container {
            max-width: 480px;
            padding: 20px;
        }

        .glass-card {
            padding: 32px;
        }
    }

    /* Mobile portrait - Vertical Stack */
    @media (max-width: 767px) {
        body {
            padding: 10px 0;
        }

        .player-container {
            max-width: 100%;
            padding: 12px;
        }

        .player-content-wrapper {
            flex-direction: column;
            /* Stack vertically on mobile */
            gap: 24px;
        }

        .player-left {
            flex: none;
            width: 100%;
        }

        .player-right {
            flex: none;
            width: 100%;
        }

        .player-cover {
            margin-bottom: 0;
            /* No extra margin needed */
        }

        .track-info {
            text-align: center;
            /* Center on mobile */
            margin-bottom: 24px;
        }

        .glass-card {
            padding: 24px;
            border-radius: 32px;
        }

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

        .track-artist {
            font-size: 15px;
        }

        .control-btn {
            width: 52px;
            height: 52px;
            font-size: 18px;
        }

        .play-btn {
            width: 68px;
            height: 68px;
            font-size: 24px;
        }

        .secondary-btn {
            width: 40px;
            height: 40px;
            font-size: 14px;
        }

        .control-buttons {
            gap: 12px;
        }

        .secondary-controls {
            gap: 16px;
            margin-top: 10px;
        }

        .volume-control {
            gap: 10px;
        }

        .volume-slider {
            width: 90px;
            /* Slightly smaller for mobile */
        }
    }

    /* Small mobile devices */
    @media (max-width: 380px) {
        .glass-card {
            padding: 24px;
            border-radius: 28px;
        }

        .track-title {
            font-size: 22px;
        }

        .track-artist {
            font-size: 14px;
        }

        .control-buttons {
            gap: 10px;
        }

        .control-btn {
            width: 48px;
            height: 48px;
            font-size: 16px;
        }

        .play-btn {
            width: 62px;
            height: 62px;
            font-size: 22px;
        }

        .secondary-btn {
            width: 38px;
            height: 38px;
            font-size: 13px;
        }

        .secondary-controls {
            gap: 14px;
        }

        .volume-slider {
            width: 80px;
        }

        .visualizer-container {
            height: 50px;
            /* Smaller on tiny screens */
        }
    }

    /* ===== SMOOTH ANIMATIONS ===== */
    @keyframes shimmer {
        0% {
            background-position: -1000px 0;
        }

        100% {
            background-position: 1000px 0;
        }
    }

    .glass-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
                transparent,
                rgba(255, 255, 255, 0.1),
                transparent);
        animation: shimmer 8s infinite;
        pointer-events: none;
    }

    /* ===== MOBILE PERFORMANCE OPTIMIZATIONS ===== */
    @media (max-width: 767px) {

        /* Disable expensive animations on mobile */
        * {
            -webkit-tap-highlight-color: transparent;
        }

        /* Hardware acceleration for smooth scrolling */
        body {
            -webkit-overflow-scrolling: touch;
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
        }

        /* Simplify backdrop filters on mobile - they're GPU intensive */
        .glass-card {
            backdrop-filter: blur(10px) saturate(150%);
            -webkit-backdrop-filter: blur(10px) saturate(150%);
            transition: none;
            /* Disable hover transitions */
        }

        .glass-card:hover {
            transform: none;
            /* Disable hover lift effect */
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.8),
                0 20px 60px rgba(0, 0, 0, 0.1);
        }

        /* Disable shimmer animation on mobile */
        .glass-card::after {
            animation: none;
            display: none;
        }

        /* Simplify search bar effects */
        .glass-search {
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            transition: border-color 0.2s ease;
        }

        .glass-search:focus {
            transform: none;
            /* Remove translateY on focus */
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        /* Optimize audio controls */
        .audio-controls {
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        /* Disable hover effects on touch devices */
        .control-btn:hover,
        .play-btn:hover,
        .secondary-btn:hover {
            transform: none;
            background: #3b82f6;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
        }

        .secondary-btn:hover {
            background: #93c5fd;
            box-shadow: 0 2px 8px rgba(147, 197, 253, 0.3);
        }

        .secondary-btn.active:hover {
            background: #3b82f6;
        }

        /* Simplify button animations */
        .control-btn {
            transition: background 0.2s ease, transform 0.1s ease;
        }

        /* Disable active state animations */
        .control-btn:active {
            transform: scale(0.95);
            transition: transform 0.1s ease;
        }

        .play-btn:active {
            transform: scale(0.95);
            transition: transform 0.1s ease;
        }

        /* Simplify progress bar */
        .glass-progress {
            transition: none;
            box-shadow: 0 1px 4px rgba(59, 130, 246, 0.1);
        }

        .glass-progress:hover {
            transform: none;
            box-shadow: 0 1px 4px rgba(59, 130, 246, 0.1);
        }

        /* Disable cover hover effects */
        .player-cover:hover .cover-glow {
            opacity: 0;
        }

        .player-cover:hover .cover-img {
            transform: none;
        }

        /* Optimize cover image */
        .cover-img {
            transition: none;
            will-change: auto;
        }

        /* Disable secondary button rotation */
        .secondary-btn:hover {
            transform: none;
        }

        .secondary-btn.active:hover {
            transform: none;
        }

        /* Disable pulse animation on mobile */
        .secondary-btn.active i {
            animation: none;
        }

        /* Simplify visualizer container */
        .visualizer-container {
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }

        /* Optimize canvas rendering */
        #audio-visualizer {
            will-change: auto;
        }

        /* Reduce loading spinner complexity */
        .loading-spinner {
            animation: spin 1.5s linear infinite;
            /* Slower animation */
        }
    }

    /* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
    @media (hover: none) and (pointer: coarse) {
        /* These styles apply only to touch devices */

        /* Remove all hover effects */
        .control-btn:hover,
        .play-btn:hover,
        .secondary-btn:hover,
        .glass-card:hover,
        .player-cover:hover .cover-img,
        .player-cover:hover .cover-glow {
            transform: none;
            opacity: inherit;
        }

        /* Larger touch targets */
        .control-btn {
            min-width: 58px;
            min-height: 58px;
        }

        .play-btn {
            min-width: 76px;
            min-height: 76px;
        }

        /* Better touch feedback */
        .control-btn:active {
            opacity: 0.7;
            transform: scale(0.95);
        }
    }

    /* ===== REDUCE MOTION FOR ACCESSIBILITY & PERFORMANCE ===== */
    @media (prefers-reduced-motion: reduce) {

        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    /* ===== LOW-END DEVICE OPTIMIZATIONS ===== */
    @media (max-width: 767px) and (max-height: 667px) {
        /* For smaller/older phones */

        /* Further reduce blur effects */
        .glass-card {
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }

        .glass-search,
        .audio-controls,
        .visualizer-container {
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }

        /* Simplify shadows */
        .glass-card {
            box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.1);
        }

        .control-btn {
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
        }
    }
