/* Navigation bas mobile type Spotify — desktop inchangé */

.mobile-bottom-nav,
.mobile-account-sheet {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --mobile-nav-height: 58px;
        --mobile-player-stack: 72px;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10000;
        height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px));
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
        background: rgba(12, 14, 18, 0.94);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        justify-content: space-around;
        align-items: flex-start;
        gap: 2px;
    }

    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        padding: 4px 2px;
        border: none;
        background: transparent;
        color: var(--text-dim);
        font-family: inherit;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.02em;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav-item svg {
        width: 22px;
        height: 22px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
    }

    .mobile-nav-item.active {
        color: var(--text-main);
    }

    .mobile-nav-item.active svg {
        color: var(--accent-primary);
        stroke: var(--accent-primary);
    }

    .mobile-nav-item span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Feuille Compte */
    .mobile-account-sheet {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10060;
        pointer-events: none;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .mobile-account-sheet.open {
        pointer-events: auto;
        visibility: visible;
        opacity: 1;
    }

    .mobile-account-sheet-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
    }

    .mobile-account-sheet-panel {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px));
        border-radius: 18px 18px 0 0;
        background: #151820;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(100%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-account-sheet.open .mobile-account-sheet-panel {
        transform: translateY(0);
    }

    .mobile-account-handle {
        width: 40px;
        height: 4px;
        margin: 0 auto 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.2);
    }

    .mobile-account-user {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
        padding: 0 4px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-account-avatar {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 14px;
        background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
        flex-shrink: 0;
    }

    .mobile-account-user-text {
        min-width: 0;
    }

    .mobile-account-user-text .name {
        margin: 0;
        font-weight: 700;
        font-size: 16px;
    }

    .mobile-account-user-text .role {
        margin: 2px 0 0;
        font-size: 12px;
        color: var(--text-dim);
    }

    .mobile-account-actions {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .mobile-account-actions button {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 14px 12px;
        border: none;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.04);
        color: var(--text-main);
        font-family: inherit;
        font-size: 15px;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
    }

    .mobile-account-actions button svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
    }

    .mobile-account-actions button.danger {
        color: #ff6b6b;
        margin-top: 8px;
    }

    .mobile-account-actions button.ghost {
        background: transparent;
        color: var(--text-dim);
        justify-content: center;
        font-weight: 500;
        font-size: 14px;
    }
}
