/* --- Final Mobile Overrides --- */
@media (max-width: 640px) {

    /* Player Header */
    .player-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: var(--text-base) !important;
    }

    .track-info,
    .header-right-group {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .header-right-group {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        display: flex !important;
    }

    .ab-toggle-pill {
        width: 100% !important;
        display: flex !important;
    }

    .ab-btn {
        flex: 1 !important;
        padding: 10px 5px !important;
        font-size: 0.8rem !important;
    }

    .download-btn {
        flex: 1 !important;
        justify-content: center !important;
    }

    /* Stats & Pills */
    .controls-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
    }

    .stats-pill-container {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: var(--radius-md) !important;
        width: 100% !important;
    }

    .stat-pill {
        flex: 1 1 calc(50% - var(--radius-md)) !important;
        min-width: 120px !important;
        box-sizing: border-box !important;
    }

    /* Tabs & Navigation */
    .tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    .tab span {
        display: none;
    }

    .metrics-grid {
        grid-template-columns: 1fr !important;
    }

    /* Result Chips */
    .result-top-bar {
        justify-content: flex-start !important;
        padding: 10px 0 !important;
    }
}

