        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --bg-primary: #121212;
            --bg-secondary: #1a1a1a;
            --bg-tertiary: #2a2a2a;
            --bg-hover: #2d2d2d;
            --text-primary: #ffffff;
            --text-secondary: #b3b3b3;
            --accent: #1db954;
            --accent-hover: #1ed760;
            --danger: #e22134;
            --danger-hover: #ff3333;
            --border: rgba(255, 255, 255, 0.08);
            --shadow: rgba(0, 0, 0, 0.18);
            --panel-bg: rgba(255, 255, 255, 0.03);
            --panel-border: rgba(255, 255, 255, 0.08);
            --card-bg: var(--panel-bg);
            --card-border: var(--panel-border);
            --text-muted: rgba(255, 255, 255, 0.6);
            --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.28);
        }

        /* Sécurité : masquer par défaut les éléments admin (affichés par JS si connecté) */
        .form-toggle-container,
        .view-tab[data-view="songs"] {
            display: none !important;
        }
        body.admin-logged-in .form-toggle-container,
        body.admin-logged-in .view-tab[data-view="songs"] {
            display: flex !important;
        }
        /* header-auth toujours visible (contient le bouton visiteur ET admin) */
        .header-auth {
            display: flex !important;
        }

        /* Scrollbars personnalisées - Style SongVault */
        /* Webkit (Chrome, Safari, Edge) */
        ::-webkit-scrollbar {
            width: 12px;
            height: 12px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-secondary);
            border-radius: 6px;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--bg-tertiary);
            border-radius: 6px;
            border: 2px solid var(--bg-secondary);
            transition: background 0.2s ease;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--accent);
        }

        ::-webkit-scrollbar-corner {
            background: var(--bg-secondary);
        }

        /* Firefox - Styles globaux pour toutes les scrollbars */
        * {
            scrollbar-width: thin;
            scrollbar-color: var(--bg-tertiary) var(--bg-secondary);
        }

        /* Firefox - Hover sur les éléments avec scrollbar */
        *:hover {
            scrollbar-color: var(--accent) var(--bg-secondary);
        }

        /* Bouton flottant de don PayPal */
        #donate-button-container {
            position: fixed;
            bottom: 24px;
            right: 24px;
            z-index: 1100;
            cursor: grab;
            user-select: none;
        }

        #donate-button-container.dragging {
            cursor: grabbing;
        }

        .donation-floating {
            background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(42, 42, 42, 0.98));
            border-radius: 18px;
            box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
            padding: 12px 14px 14px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            min-width: 260px;
            max-width: 320px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(18px);
        }

        .donation-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            cursor: grab;
        }

        .donation-title {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .donation-title-icon {
            font-size: 1.1rem;
        }

        .donation-badge {
            font-size: 0.78rem;
            color: var(--accent);
            background: rgba(29, 185, 84, 0.12);
            padding: 3px 8px;
            border-radius: 999px;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .donation-close {
            border: none;
            background: transparent;
            color: var(--text-secondary);
            width: 26px;
            height: 26px;
            border-radius: 999px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
        }

        .donation-close:hover {
            background: var(--bg-hover);
            color: var(--text-primary);
            transform: scale(1.05);
        }

        .donation-text {
            font-size: 0.8rem;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .donation-text strong {
            color: var(--accent);
            font-weight: 600;
        }

        #donate-button {
            margin-top: 4px;
        }

        @media (max-width: 768px) {
            #donate-button-container {
                bottom: 16px;
                right: 12px;
                left: 12px;
                max-width: none;
            }

            .donation-floating {
                width: 100%;
                padding: 10px 12px 12px;
            }

            .donation-title {
                font-size: 0.9rem;
            }

            .donation-text {
                font-size: 0.78rem;
            }
        }

        /* Screen reader only - pour l'accessibilité */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border-width: 0;
        }

        html { overflow-x: hidden; }
        body {
            overflow-x: hidden;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
            color: var(--text-primary);
            min-height: 100vh;
            padding: 20px;
        }

        /* ============================================
           AMÉLIORATIONS MOBILE
           ============================================ */
        @media (max-width: 768px) {
            /* Body - Réduire le padding sur mobile */
            body {
                padding: 10px;
            }

            /* Container */
            .container {
                max-width: 100%;
                margin: 0;
                padding: 0;
                width: 100%;
            }

            /* Header - Optimisation mobile */
            .header {
                padding: 15px;
                margin-bottom: 15px;
            }

            .contact-banner {
                padding: 12px 15px;
                margin-bottom: 20px;
            }

            .contact-banner-text {
                font-size: 0.85rem;
                line-height: 1.5;
            }

            .news-banner {
                padding: 12px 15px;
                margin-bottom: 20px;
            }

            .news-banner-text {
                font-size: 0.85rem;
                line-height: 1.5;
            }

            .lyrics-info-banner {
                padding: 12px 15px;
                margin-bottom: 15px;
            }

            .lyrics-info-content {
                gap: 10px;
            }

            .lyrics-info-icon {
                font-size: 1.3rem;
            }

            .lyrics-info-text strong {
                font-size: 0.95rem;
            }

            .lyrics-info-details {
                font-size: 0.85rem;
            }

            .header-left {
                flex-direction: column;
                align-items: flex-start;
                width: 100%;
            }

            .header h1 {
                font-size: 1.8rem;
            }

            .logo {
                height: 40px;
            }

            /* Hero slider - ajustement mobile */
            .hero-slider {
                min-height: 360px;
            }

            .hero-slide {
                min-height: 360px;
                padding: 14px 12px 20px;
            }

            .hero-slide-content {
                padding: 12px 14px;
                max-width: 100%;
                gap: 8px;
                align-items: center;
                text-align: center;
                position: relative;
                background: rgba(0, 0, 0, 0.45);
                border-radius: 12px;
                backdrop-filter: blur(6px);
            }

            .hero-slide {
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                align-items: center;
            }

            .hero-slide-bg {
                position: relative;
                inset: auto;
                width: 100%;
                max-width: 72vw;
                height: auto;
                max-height: 46vh;
                order: 1;
                margin: 16px auto 0;
                transform: scale(1.02);
                border-radius: 12px;
            }

            .hero-slide-content {
                order: 2;
                margin-top: 12px;
            }

            .hero-slide-thumb {
                position: absolute;
                right: 12px;
                bottom: 12px;
                width: 84px;
                height: 84px;
                object-fit: contain;
                border-radius: 10px;
                background: rgba(0, 0, 0, 0.35);
                padding: 6px;
                box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
            }

            .hero-slide-bg {
                width: 100%;
                max-width: 100%;
                height: auto;
                max-height: 60%;
                left: 50%;
                right: auto;
                top: 65%;
                bottom: auto;
                transform: translate(-50%, -50%) scale(1.02);
            }

            .header-stats {
                width: 100%;
                justify-content: space-between;
                flex-wrap: wrap;
                gap: 10px;
                margin-top: 15px;
            }

            .header-stat {
                flex: 1;
                min-width: 0;
                padding: 6px 8px;
                background: rgba(26, 26, 26, 0.6);
                backdrop-filter: blur(10px);
                border: 1px solid rgba(255, 255, 255, 0.1);
            }

            .header-stat-value {
                font-size: 1.1rem;
                text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            }

            .header-stat-label {
                font-size: 0.65rem;
                color: #e0e0e0;
                text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
            }

            .header-stat-top-album {
                max-width: none;
                flex: 1 1 100%;
            }

            .header-stat-top-song {
                max-width: none;
                flex: 1 1 100%;
            }

            /* Header search */
            .header-search {
                width: 100%;
                margin: 10px 0;
            }

            /* View tabs - Meilleure disposition */
            .view-tabs {
                flex-direction: column;
                gap: 10px;
            }

            .view-tab {
                width: 100%;
                padding: 12px;
                font-size: 1rem;
            }

            /* Stats - Empiler verticalement */
            .stats {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .stat-card {
                padding: 15px;
            }

            .stat-value {
                font-size: 2rem;
            }

            /* Albums Grid - 1 colonne sur mobile */
            .albums-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .album-card {
                padding: 15px;
            }

            .album-card-title {
                font-size: 1.1rem;
                min-height: 2.4em;
            }

            .album-card-info {
                font-size: 0.85rem;
                min-height: 50px;
            }

            .album-card-genres {
                min-height: 20px;
            }

            /* Albums list view - Optimisation mobile */
            .albums-grid.list-view .album-card {
                padding: 12px;
            }

            .albums-grid.list-view .album-card-image {
                width: 80px;
                min-width: 80px;
            }

            /* Songs list - Optimisation mobile */
            .songs-list {
                gap: 12px;
            }

            .song-card {
                padding: 12px;
                gap: 10px;
            }

            .song-title {
                font-size: 1rem;
            }

            .song-details {
                font-size: 0.85rem;
            }

            /* Song actions - Empiler les boutons */
            .song-actions {
                flex-wrap: wrap;
                gap: 8px;
            }

            /* Liste compacte pour mobiles (visiteurs) */
            .song-row-compact {
                display: grid;
                grid-template-columns: 1fr auto;
                align-items: center;
                gap: 10px;
                padding: 12px 14px;
                background: var(--card-bg);
                border: 1px solid var(--card-border);
                border-radius: 12px;
            }
            .song-row-main {
                min-width: 0;
            }
            .song-row-title {
                font-weight: 600;
                color: var(--text-primary);
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
            .song-row-album {
                color: var(--text-secondary);
                font-size: 0.9rem;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
            .song-row-actions {
                display: flex;
                align-items: center;
                gap: 10px;
            }

            .icon-btn {
                width: 36px;
                height: 36px;
                padding: 8px;
            }

            .icon-btn svg {
                width: 18px;
                height: 18px;
            }

            /* Album card actions */
            .album-card-actions {
                flex-wrap: wrap;
                gap: 8px;
            }

            /* Search and filter - Empiler */
            .search-filter {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            /* Sort controls - Empiler */
            .sort-controls {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }

            .sort-controls label {
                font-size: 0.9rem;
            }

            .sort-controls select {
                width: 100%;
            }

            /* Form section - Optimisation mobile */
            .form-section {
                padding: 15px;
            }

            .form-section h2 {
                font-size: 1.4rem;
                margin-bottom: 20px;
            }

            .form-group {
                margin-bottom: 15px;
            }

            .form-group input,
            .form-group select {
                padding: 10px 14px;
                font-size: 16px; /* Évite le zoom sur iOS */
            }

            /* Tabs dans les formulaires */
            .tabs {
                flex-direction: column;
            }

            .tab {
                width: 100%;
                padding: 12px;
            }

            /* Buttons - Pleine largeur sur mobile */
            .btn-group {
                flex-direction: column;
                gap: 10px;
            }

            .btn {
                width: 100%;
                padding: 14px;
                font-size: 1rem;
            }

            .btn-play,
            .btn-download {
                width: 100%;
                margin-bottom: 10px;
            }

            /* Album detail view - Optimisation mobile */
            .album-detail-header {
                grid-template-columns: 1fr;
                gap: 20px;
                padding: 15px;
            }

            .album-detail-title {
                font-size: 1.5rem;
            }

            .album-detail-actions {
                flex-wrap: wrap;
                gap: 8px;
            }

            /* Album detail header - Changer en flexbox sur mobile */
            .album-detail-header {
                display: flex !important;
                flex-direction: column !important;
                gap: 20px !important;
                padding: 15px !important;
                width: 100% !important;
                max-width: 100% !important;
                box-sizing: border-box !important;
            }

            /* Album detail header actions - Optimisation mobile */
            .album-detail-header-actions {
                position: static !important;
                top: auto !important;
                right: auto !important;
                left: auto !important;
                width: 100% !important;
                flex-direction: column !important;
                gap: 10px !important;
                margin-bottom: 0 !important;
                margin-top: 0 !important;
                order: 1 !important;
            }

            .album-detail-header-actions .btn-play,
            .album-detail-header-actions .btn-download {
                width: 100% !important;
                padding: 14px !important;
                font-size: 1rem !important;
                justify-content: center !important;
                margin: 0 !important;
            }

            /* Album detail image - Après les boutons */
            .album-detail-image {
                order: 2 !important;
                width: 100% !important;
                max-width: 100% !important;
                height: auto !important;
                margin-bottom: 0 !important;
                aspect-ratio: 1 !important;
            }

            /* Album detail info - Après l'image */
            .album-detail-info {
                order: 3 !important;
            }

            /* Footer player - Optimisation mobile */
            .footer-player {
                padding: 10px 15px;
                min-height: auto;
            }

            .footer-player.active {
                display: flex !important;
                flex-direction: column;
            }

            .footer-player-content {
                flex-direction: column;
                gap: 10px;
                width: 100%;
            }

            .footer-player-info {
                min-width: 0;
                width: 100%;
                order: 1;
            }

            .footer-player-cover {
                width: 45px;
                height: 45px;
            }

            .footer-player-title {
                font-size: 0.9rem;
            }

            .footer-player-artist {
                font-size: 0.8rem;
            }

            .footer-player-controls {
                order: 2;
                width: 100%;
                justify-content: center;
                display: flex;
                gap: 6px;
                flex-wrap: wrap;
            }

            .footer-player-btn {
                width: 36px;
                height: 36px;
                padding: 5px;
                flex-shrink: 0;
            }

            .footer-player-btn svg {
                width: 18px;
                height: 18px;
            }

            .footer-player-play {
                width: 42px;
                height: 42px;
            }

            .footer-player-play svg {
                width: 22px;
                height: 22px;
            }

            .footer-player-repeat.repeat-one::after {
                font-size: 0.5rem;
                width: 10px;
                height: 10px;
                bottom: 3px;
                right: 3px;
            }

            .footer-player-progress {
                order: 3;
                width: 100% !important;
                margin-top: 5px;
                display: flex !important;
                align-items: center;
                gap: 8px;
                flex-shrink: 0;
            }

            .footer-player-progress-bar-wrapper {
                flex: 1;
                height: 6px;
                min-height: 6px;
            }

            .footer-player-progress-bar {
                height: 100%;
            }

            .footer-player-time {
                font-size: 0.75rem;
                min-width: 40px;
                flex-shrink: 0;
            }

            .footer-player-title-row {
                gap: 10px;
            }

            .footer-player-volume {
                gap: 6px;
            }

            .footer-player-volume input[type="range"] {
                width: 70px;
            }

            /* Modals - Plein écran sur mobile */
            .login-modal-content,
            .share-modal-content,
            .lyrics-modal-content,
            .duplicates-modal-content,
            .upload-progress-content {
                max-width: 100%;
                max-height: 100vh;
                border-radius: 0;
                margin: 0;
                min-width: 0;
            }

            .login-modal-content,
            .share-modal-content,
            .upload-progress-content {
                padding: 20px;
            }

            /* Upload progress modal - Optimisation mobile */
            .upload-progress-content h3 {
                font-size: 1.1rem;
            }

            .upload-progress-info {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
            }

            /* Duplicates modal - Optimisation mobile */
            .duplicates-modal-content {
                padding: 15px;
            }

            .duplicate-item {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }

            .duplicate-item-actions {
                width: 100%;
                justify-content: stretch;
            }

            .duplicate-play-btn,
            .duplicate-ignore-btn {
                flex: 1;
                justify-content: center;
            }

            .duplicates-modal-footer {
                flex-direction: column;
                gap: 10px;
            }

            .duplicates-modal-footer button {
                width: 100%;
            }

            .share-social-buttons {
                grid-template-columns: 1fr;
            }

            .share-social-btn {
                width: 100%;
            }

            /* Genre tags - Meilleure disposition */
            .genre-tags {
                gap: 6px;
            }

            .genre-tag {
                font-size: 0.8rem;
                padding: 5px 10px;
            }

            /* Empty state */
            .empty-state {
                padding: 40px 15px;
            }

            .empty-state-icon {
                font-size: 3rem;
            }

            .empty-state p {
                font-size: 1rem;
            }

            /* Notification */
            .notification {
                left: 10px;
                right: 10px;
                max-width: calc(100% - 20px);
            }

            /* View toggle buttons */
            .view-toggle-btn {
                padding: 8px 12px;
                font-size: 0.85rem;
            }

            /* Album detail image */
            .album-detail-image {
                max-width: 100%;
            }

            /* Song number and drag handle - Masquer sur mobile */
            .song-number,
            .drag-handle {
                display: none;
            }

            /* Header buttons - Optimisation */
            .form-toggle-btn,
            #loginButton {
                width: 36px;
                height: 36px;
                padding: 6px;
            }

            #loginButton svg {
                width: 18px;
                height: 18px;
            }

            /* Action buttons - Optimisation mobile */
            .btn-remove-duplicates,
            .btn-play {
                width: 100%;
                padding: 12px;
                font-size: 0.9rem;
                margin-bottom: 10px;
            }

            /* Album order - Masquer sur mobile en vue grille */
            .albums-grid:not(.list-view) .album-order {
                display: none;
            }

            /* Songs view header - Optimisation */
            #songsView > div:first-child {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }

            #songsView > div:first-child h2 {
                font-size: 1.3rem;
                margin-bottom: 10px;
            }

            #songsView > div:first-child > div {
                width: 100%;
                flex-direction: column;
                gap: 10px;
            }

            /* Albums view header - Optimisation */
            #albumsListView > div:first-child {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }

            #albumsListView > div:first-child h2 {
                font-size: 1.3rem;
                margin-bottom: 10px;
            }

            #albumsListView > div:first-child > div {
                width: 100%;
                justify-content: center;
            }

            /* View toggle buttons - Optimisation mobile */
            .view-toggle {
                display: flex;
                gap: 8px;
            }

            .view-toggle-btn {
                padding: 8px 12px;
                font-size: 0.85rem;
            }

            /* Search filter dans songs view - Ajouter le champ de recherche */
            #songsView .search-filter {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            #songsView .search-filter input {
                width: 100%;
            }

            /* Album detail view - Optimisation mobile */
            .album-detail-view {
                padding: 15px;
                overflow-x: visible;
                width: calc(100% + 20px);
                max-width: calc(100% + 20px);
                box-sizing: border-box;
                margin-left: -10px;
                margin-right: -10px;
            }

            .album-detail-view > * {
                width: 100%;
                max-width: 100%;
                box-sizing: border-box;
            }

            .album-detail-view h3 {
                font-size: 1.2rem;
                margin-bottom: 15px;
            }
            
            /* S'assurer que les boutons sont visibles sur mobile */
            #albumSongsList .song-card > * {
                overflow: visible;
            }

            /* Songs list dans album detail - Optimisation mobile : Liste numérotée */
            #albumSongsList {
                list-style: none;
                padding: 0;
                margin: 0;
                width: 100%;
                max-width: 100%;
                overflow-x: visible;
                box-sizing: border-box;
            }

            #albumSongsList .song-card {
                display: flex;
                align-items: center;
                padding: 8px 4px;
                border-bottom: 1px solid var(--border);
                background: transparent;
                border-radius: 0;
                box-shadow: none;
                margin-bottom: 0;
                gap: 3px;
                overflow: visible;
                flex-wrap: nowrap;
                width: 100%;
                max-width: 100%;
                min-width: 0;
                box-sizing: border-box;
            }

            #albumSongsList .song-card:last-child {
                border-bottom: none;
            }

            #albumSongsList .song-order {
                display: flex;
                align-items: center;
                justify-content: center;
                min-width: 20px;
                width: 20px;
                height: 20px;
                font-size: 0.75rem;
                font-weight: 600;
                color: var(--text-secondary);
                flex-shrink: 0;
            }

            #albumSongsList .song-order.playing {
                color: var(--accent);
            }

            #albumSongsList .drag-handle {
                display: none; /* Masquer le drag handle sur mobile */
            }

            #albumSongsList .song-info {
                flex: 1;
                min-width: 0;
                max-width: calc(100% - 140px);
                overflow: hidden;
            }

            #albumSongsList .song-title {
                font-size: 0.85rem;
                font-weight: 500;
                color: var(--text-primary);
                margin-bottom: 2px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                max-width: 100%;
            }

            #albumSongsList .song-details {
                font-size: 0.7rem;
                color: var(--text-secondary);
                display: none !important; /* Masquer l'année sur mobile */
                gap: 8px;
                flex-wrap: wrap;
                margin-top: 2px;
            }

            #albumSongsList .song-detail-item {
                display: flex;
                align-items: center;
                gap: 4px;
            }

            #albumSongsList .audio-player {
                flex-shrink: 0;
                display: flex;
                align-items: center;
                min-width: 28px;
            }
            
            #albumSongsList .audio-player .icon-btn {
                width: 28px;
                height: 28px;
                padding: 4px;
            }

            #albumSongsList .song-actions {
                display: flex !important;
                gap: 3px;
                flex-shrink: 0;
                align-items: center;
                overflow: visible;
                min-width: fit-content;
            }

            #albumSongsList .song-actions .icon-btn {
                width: 28px !important;
                height: 28px !important;
                padding: 4px !important;
                flex-shrink: 0;
                display: flex !important;
                align-items: center;
                justify-content: center;
                min-width: 28px !important;
                visibility: visible !important;
                opacity: 1 !important;
            }

            #albumSongsList .song-actions .icon-btn svg {
                width: 14px !important;
                height: 14px !important;
                flex-shrink: 0;
            }
            
            /* Masquer l'année sur mobile dans la vue détaillée de l'album */
            #albumSongsList .song-details {
                display: none !important;
            }
            
            /* Masquer les boutons Modifier et Supprimer sur mobile dans la vue détaillée de l'album */
            #albumSongsList .song-actions .icon-btn-edit,
            #albumSongsList .song-actions .icon-btn-delete {
                display: none !important;
            }

            /* Structure en 2 lignes pour song-row-compact dans albumSongsList */
            #albumSongsList .song-row-compact {
                display: flex !important;
                flex-direction: column !important;
                gap: 4px !important;
                padding: 8px 4px !important;
                border-bottom: 1px solid var(--border) !important;
                background: transparent !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                margin-bottom: 0 !important;
            }

            #albumSongsList .song-row-compact:last-child {
                border-bottom: none !important;
            }

            #albumSongsList .song-row-title-line {
                display: flex !important;
                align-items: center !important;
                gap: 8px !important;
                width: 100% !important;
                min-width: 0 !important;
            }

            #albumSongsList .song-row-title-line .song-order {
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                min-width: 20px !important;
                width: 20px !important;
                height: 20px !important;
                font-size: 0.75rem !important;
                font-weight: 600 !important;
                color: var(--text-secondary) !important;
                flex-shrink: 0 !important;
            }

            #albumSongsList .song-row-title-line .song-row-title {
                flex: 1 !important;
                min-width: 0 !important;
                font-weight: 500 !important;
                color: var(--text-primary) !important;
                font-size: 0.85rem !important;
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
            }

            #albumSongsList .song-row-actions {
                display: flex !important;
                align-items: center !important;
                justify-content: flex-end !important;
                gap: 3px !important;
                width: 100% !important;
                flex-shrink: 0 !important;
            }

            #albumSongsList .song-row-actions .icon-btn {
                width: 28px !important;
                height: 28px !important;
                padding: 4px !important;
                flex-shrink: 0 !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                min-width: 28px !important;
            }

            #albumSongsList .song-row-actions .icon-btn svg {
                width: 14px !important;
                height: 14px !important;
            }

            /* Album detail actions - Optimisation */
            .album-detail-actions {
                flex-wrap: wrap;
                gap: 8px;
            }

            /* Retour aux albums button - Optimisation */
            .album-detail-view > button:first-child {
                width: 100%;
                margin-bottom: 15px;
                padding: 12px;
            }

            /* Albums similaires - Optimisation mobile */
            .similar-albums-section {
                margin-top: 30px;
                padding-top: 20px;
            }

            .similar-albums-toggle {
                padding: 12px 15px;
                font-size: 1rem;
            }

            .similar-albums-grid {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
                gap: 15px;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: thin;
            }

            .similar-album-title {
                font-size: 0.85rem;
            }

            .similar-album-year {
                font-size: 0.75rem;
            }

            /* View tabs - Optimisation mobile */
            .view-tabs {
                flex-direction: column;
                gap: 0;
                border-bottom: none;
            }

            .view-tab {
                width: 100%;
                padding: 12px;
                border-bottom: 2px solid var(--border);
                border-radius: 0;
            }

            .view-tab.active {
                border-bottom-color: var(--accent);
                background: var(--bg-hover);
            }

            .view-tab-playlists.active {
                background: rgba(29, 185, 84, 0.25);
                color: #1db954;
                border-bottom-color: #1db954;
            }

            .playlists-list {
                grid-template-columns: 1fr;
            }

            /* Sort controls - Optimisation mobile */
            .sort-controls {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }

            .sort-controls label {
                font-size: 0.9rem;
            }

            .sort-controls select {
                width: 100%;
                padding: 12px;
                font-size: 1rem;
            }

            /* Filters panel (public) */
            .filters-panel {
                margin-bottom: 16px;
                background: var(--bg-tertiary);
                border: 1px solid var(--card-border);
                border-radius: 12px;
                overflow: hidden;
            }
            .filters-toggle {
                width: 100%;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 8px;
                padding: 12px 14px;
                background: transparent;
                border: none;
                color: var(--text-primary);
                cursor: pointer;
                font-weight: 600;
            }
            .filters-toggle svg {
                transition: transform 0.2s ease;
            }
            .filters-panel.collapsed .filters-toggle svg {
                transform: rotate(-90deg);
            }
            .filters-body {
                padding: 12px 14px 16px;
                border-top: 1px solid var(--card-border);
            }
            .filters-panel.collapsed .filters-body {
                display: none;
            }

            /* Songs list - Optimisation mobile */
            .songs-list {
                gap: 10px;
            }

            /* Song card - Optimisation mobile (déjà fait mais on s'assure) */
            .song-card {
                grid-template-columns: 1fr;
                gap: 12px;
                padding: 15px;
            }

            .song-order {
                display: none; /* Cacher le numéro sur mobile */
            }

            .song-info {
                order: 1;
            }

            .song-title {
                font-size: 1rem;
                margin-bottom: 8px;
            }

            .song-details {
                flex-direction: column;
                gap: 5px;
                font-size: 0.85rem;
            }

            .song-actions {
                order: 2;
                flex-direction: row;
                justify-content: flex-start;
                gap: 8px;
            }

            .audio-player {
                order: 3;
                width: 100%;
            }

            /* Albums grid - Optimisation mobile */
            .albums-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .album-card {
                padding: 15px;
            }

            .album-card-image {
                margin-bottom: 12px;
            }

            .album-card-title {
                font-size: 1.1rem;
            }

            .album-card-info {
                font-size: 0.85rem;
            }

            /* Buttons dans les vues - Optimisation mobile */
            #songsView .btn-play,
            #songsView .btn-remove-duplicates {
                width: 100%;
                padding: 12px;
                font-size: 0.9rem;
            }

            /* Songs section padding - Optimisation mobile */
            .songs-section {
                padding: 15px;
            }

            /* View content padding - Optimisation mobile */
            .view-content {
                padding: 0;
                width: calc(100% + 20px);
                max-width: calc(100% + 20px);
                margin-left: -10px;
                margin-right: -10px;
                box-sizing: border-box;
            }

            /* Albums view content - Optimisation mobile */
            #albumsView .view-content {
                width: calc(100% + 20px);
                max-width: calc(100% + 20px);
                margin-left: -10px;
                margin-right: -10px;
            }

            /* Album detail view - Compensation du padding body */
            .album-detail-view {
                margin-left: -10px;
                margin-right: -10px;
                width: calc(100% + 20px);
                max-width: calc(100% + 20px);
            }

            /* Stats - Optimisation mobile */
            .stats {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .stat-card {
                padding: 15px;
            }

            .stat-value {
                font-size: 2rem;
            }

            .stat-label {
                font-size: 0.85rem;
            }

            /* Lyrics modal - Optimisation mobile supplémentaire */
            .lyrics-content {
                font-size: 0.95rem;
                line-height: 1.6;
                padding: 15px;
            }

            /* Back button - Optimisation mobile */
            .back-button {
                width: 100%;
                padding: 12px;
                font-size: 0.9rem;
            }

            /* Genre badges - Optimisation mobile */
            .genre-badge {
                font-size: 0.65rem;
            }

            /* Album new badge - Optimisation mobile */
            .album-new-badge {
                font-size: 0.55rem;
                padding: 3px 8px;
                top: 6px;
                left: 6px;
            }

            /* Album featured badge - Optimisation mobile */
            .album-featured-badge {
                font-size: 0.55rem;
                padding: 3px 8px;
                top: 6px;
                right: 6px;
            }

            /* Featured album section - Optimisation mobile */
            .featured-album-card {
                flex-direction: row;
                align-items: center;
            }

            .featured-album-image {
                width: 110px;
                height: 110px;
                aspect-ratio: 1 / 1;
            }

            .featured-album-actions {
                width: auto;
                justify-content: flex-start;
                flex-wrap: wrap;
            }

            /* Album detail meta - Optimisation mobile */
            .album-detail-meta {
                font-size: 0.9rem;
            }

            .album-detail-meta > div {
                margin-bottom: 8px;
            }

            /* Album details (vue liste) - Optimisation mobile */
            .album-details {
                flex-direction: column;
                gap: 8px;
            }

            .album-detail-item {
                font-size: 0.85rem;
            }

            /* Share modal elements - Optimisation mobile */
            .share-modal-header {
                padding: 20px;
            }

            .share-modal-header h2 {
                font-size: 1.3rem;
            }

            .share-preview {
                padding: 15px;
            }

            .share-link-section {
                padding: 15px 20px;
            }

            .share-link-input-wrapper {
                flex-direction: column;
                gap: 10px;
            }

            .share-link-input-wrapper input {
                width: 100%;
                font-size: 0.9rem;
            }

            .btn-copy-link {
                width: 100%;
                padding: 12px;
            }

            /* Progress bar - Optimisation mobile */
            .progress-bar-wrapper {
                height: 8px;
            }

            /* Form toggle container - Optimisation mobile */
            .form-toggle-container {
                flex-wrap: wrap;
                gap: 8px;
            }

            /* Header search input - Optimisation mobile */
            .header-search-input {
                font-size: 0.9rem;
                padding: 10px 14px 10px 40px;
            }

            /* Album card genres - Optimisation mobile */
            .album-card-genres {
                flex-wrap: wrap;
                gap: 4px;
            }
        }

        /* Très petits écrans (smartphones en portrait) */
        @media (max-width: 480px) {
            body {
                padding: 8px;
            }

            .header {
                padding: 12px;
            }

            .header h1 {
                font-size: 1.5rem;
            }

            .contact-banner {
                padding: 10px 12px;
                margin-bottom: 15px;
            }

            .contact-banner-text {
                font-size: 0.8rem;
                line-height: 1.4;
            }

            #loginButton {
                width: 32px;
                height: 32px;
                padding: 5px;
            }

            #loginButton svg {
                width: 16px;
                height: 16px;
            }

            .scroll-to-top-btn {
                bottom: 20px; /* Position par défaut sur mobile */
                z-index: 1001; /* S'assurer qu'il reste au-dessus du footer player (z-index: 1000) */
                right: 12px;
                width: 40px;
                height: 40px;
            }

            .scroll-to-top-btn svg {
                width: 18px;
                height: 18px;
            }

            .logo {
                height: 35px;
            }

            .album-card,
            .song-card {
                padding: 10px;
            }

            .footer-player-content {
                gap: 5px;
                padding: 8px 10px;
            }

            .footer-player-cover {
                width: 32px;
                height: 32px;
            }

            .footer-player-btn {
                width: 30px;
                height: 30px;
                padding: 3px;
            }

            .footer-player-btn svg {
                width: 14px;
                height: 14px;
            }

            .footer-player-play {
                width: 34px;
                height: 34px;
            }

            .footer-player-play svg {
                width: 18px;
                height: 18px;
            }

            .footer-player-controls {
                gap: 4px;
            }

            .footer-player-repeat.repeat-one::after {
                font-size: 0.4rem;
                width: 8px;
                height: 8px;
                bottom: 1px;
                right: 1px;
            }

            .stat-value {
                font-size: 1.8rem;
            }
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
        }

        /* Header */
        .header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 20px;
            padding: 20px;
            position: relative;
            border-radius: 12px;
            box-shadow: 0 4px 20px var(--shadow);
            animation: fadeInDown 0.6s ease-out;
            overflow: visible;
        }

        /* Hero Slider */
        .hero-slider {
            position: relative;
            width: 100%;
            max-width: 1400px;
            padding: 0 16px;
            margin: 0 auto 20px;
            box-sizing: border-box;
            min-height: 420px;
            overflow: hidden;
        }

        .hero-slider-track {
            display: flex;
            width: 100%;
            transition: transform 0.8s ease;
        }

        .hero-slide {
            position: relative;
            flex: 0 0 100%;
            min-height: 420px;
            color: var(--text-primary);
            background: #141414;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 8px 40px rgba(0,0,0,0.6);
        }

        .hero-slide-bg {
            position: absolute;
            inset: 0;
            width: auto;
            height: 100%;
            max-width: 50%;
            object-fit: contain;
            filter: saturate(1.1);
            left: 50%;
            right: auto;
            top: 0;
            bottom: 0;
            transform: translateX(-50%) scale(1.02);
            background: #141414;
        }

        .hero-slide-thumb {
            display: none;
        }

        .hero-slide-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.65) 40%, rgba(0,0,0,0.2) 70%, rgba(0,0,0,0) 100%);
        }

        .hero-slide-content {
            position: relative;
            z-index: 1;
            padding: 48px 40px;
            max-width: 560px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .hero-slide-title {
            font-size: 1.7rem;
            font-weight: 700;
            margin: 0;
            text-shadow: 0 2px 8px rgba(0,0,0,0.5);
        }

        .hero-slide-meta {
            color: rgba(255,255,255,0.75);
            font-size: 0.92rem;
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .hero-slide-action {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 22px;
            border-radius: 24px;
            background: var(--accent);
            color: #fff;
            border: none;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            width: fit-content;
            transition: opacity 0.2s, transform 0.2s;
            box-shadow: 0 4px 16px rgba(0,0,0,0.4);
        }
        .hero-slide-action:hover {
            opacity: 0.88;
            transform: scale(1.03);
        }

        .hero-slider-dots {
            position: absolute;
            bottom: 16px;
            right: 32px;
            display: flex;
            gap: 6px;
            z-index: 2;
        }

        .hero-slider-dot {
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: rgba(255,255,255,0.35);
            transition: background 0.2s, width 0.2s;
        }

        .hero-slider-dot.active {
            background: #fff;
            width: 20px;
        }

        .hero-slider-empty {
            color: var(--text-secondary);
            font-size: 0.95rem;
            padding: 24px;
        }

        /* Netflix-style carousel */
        /* ── Carousels ─────────────────────────────── */

        .hero-carousel {
            margin: 0 0 32px 0;
            padding: 0;
        }

        .hero-carousel + .hero-carousel {
            padding-top: 4px;
            border-top: 1px solid rgba(255,255,255,0.04);
        }

        /* Featured */
        .hero-featured {
            margin: 0 0 32px 0;
            padding: 0;
        }

        .hero-featured-header {
            display: flex;
            align-items: baseline;
            gap: 12px;
            margin-bottom: 14px;
        }

        .hero-featured-title {
            margin: 0;
            font-size: 0.7rem;
            font-weight: 700;
            color: var(--accent);
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .hero-featured-subtitle {
            color: rgba(255,255,255,0.3);
            font-size: 0.78rem;
        }

        .hero-featured-card {
            position: relative;
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 20px;
            border-radius: 16px;
            background: linear-gradient(135deg, #161616 0%, #111 100%);
            border: 1px solid rgba(255, 255, 255, 0.07);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
        }

        .hero-featured-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 28px 52px rgba(0, 0, 0, 0.55);
            border-color: rgba(29, 185, 84, 0.25);
        }

        .hero-featured-card::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse at 0% 50%, rgba(29, 185, 84, 0.1) 0%, transparent 60%);
            pointer-events: none;
        }

        .hero-featured-cover {
            width: 160px;
            height: 100px;
            border-radius: 10px;
            background-color: #1e1e1e;
            flex-shrink: 0;
            overflow: hidden;
        }

        .hero-featured-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .hero-featured-info {
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .hero-featured-name {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: -0.01em;
        }

        .hero-featured-meta {
            color: var(--text-secondary);
            font-size: 0.82rem;
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
        }

        .hero-featured-empty {
            color: rgba(255,255,255,0.25);
            font-size: 0.85rem;
            padding: 10px 0;
            font-style: italic;
        }

        /* Header */
        .hero-carousel-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 16px;
            padding: 0 2px;
        }

        .hero-carousel-title {
            margin: 0;
            font-size: 0.7rem;
            font-weight: 700;
            color: var(--accent);
            letter-spacing: 0.12em;
            text-transform: uppercase;
            flex-shrink: 0;
        }

        .hero-carousel-header::after {
            content: "";
            flex: 1;
            height: 1px;
            background: linear-gradient(to right, rgba(29,185,84,0.2), transparent);
        }

        .hero-carousel-subtitle {
            color: rgba(255,255,255,0.25);
            font-size: 0.75rem;
            letter-spacing: 0.03em;
            white-space: nowrap;
            order: 3;
        }

        .hero-carousel-controls {
            display: inline-flex;
            gap: 6px;
            order: 4;
        }

        .hero-carousel-btn {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255,255,255,0.04);
            color: var(--text-secondary);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .hero-carousel-btn svg path {
            fill: currentColor;
        }

        .hero-carousel-btn:hover {
            background: var(--accent);
            border-color: var(--accent);
            color: #000;
            transform: scale(1.08);
        }

        /* Viewport & track */
        .hero-carousel-viewport {
            overflow-x: auto;
            overflow-y: hidden;
            scroll-snap-type: x proximity;
            scrollbar-width: none;
            -ms-overflow-style: none;
            mask-image: linear-gradient(to right, black 90%, transparent 100%);
            -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
        }

        .hero-carousel-viewport::-webkit-scrollbar {
            display: none;
        }

        .hero-carousel-track {
            display: inline-flex;
            gap: 12px;
            flex-wrap: nowrap;
            align-items: stretch;
            padding: 6px 4px 12px;
            width: max-content;
            min-width: max-content;
        }

        /* Carte */
        .hero-carousel-card {
            min-width: 170px;
            width: 170px;
            flex: 0 0 auto;
            background: #161616;
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 12px;
            overflow: hidden;
            scroll-snap-align: start;
            cursor: pointer;
            position: relative;
            transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease, border-color 0.22s ease;
        }

        .hero-carousel-card:hover {
            transform: translateY(-6px) scale(1.02);
            box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(29,185,84,0.15);
            border-color: rgba(29,185,84,0.2);
        }

        .hero-carousel-cover {
            width: 100%;
            aspect-ratio: 1 / 1;
            background-color: #1b1b1b;
            position: relative;
            overflow: hidden;
        }

        .hero-carousel-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease;
        }

        .hero-carousel-card:hover .hero-carousel-cover img {
            transform: scale(1.05);
        }

        .hero-carousel-card-title {
            padding: 10px 12px 6px;
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            letter-spacing: 0.01em;
        }

        .hero-carousel-card-tags {
            padding: 0 10px 10px;
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
        }

        .hero-carousel-empty {
            color: rgba(255,255,255,0.2);
            font-size: 0.82rem;
            padding: 20px 4px;
            font-style: italic;
        }

        /* Badge de rang pour les Top */
        .carousel-rank-badge {
            position: absolute;
            top: 0;
            left: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 800;
            z-index: 2;
            border-radius: 0 0 8px 0;
        }

        .carousel-rank-badge.rank-1 {
            background: linear-gradient(135deg, #FFD700, #FFA500);
            color: #000;
        }

        .carousel-rank-badge.rank-2 {
            background: linear-gradient(135deg, #C0C0C0, #999);
            color: #000;
        }

        .carousel-rank-badge.rank-3 {
            background: linear-gradient(135deg, #CD7F32, #a05a1a);
            color: #fff;
        }

        .carousel-rank-badge.rank-other {
            background: rgba(0, 0, 0, 0.65);
            color: rgba(255, 255, 255, 0.5);
            font-size: 10px;
        }

        /* Compteur d'écoutes */
        .carousel-play-count {
            padding: 0 12px 10px;
            font-size: 0.72rem;
            color: rgba(255, 255, 255, 0.35);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .carousel-play-count::before {
            content: "";
            display: inline-block;
            width: 6px;
            height: 6px;
            background: var(--accent);
            border-radius: 50%;
            opacity: 0.6;
        }


        .contact-banner {
            background: rgba(29, 185, 84, 0.15);
            border: 1px solid rgba(29, 185, 84, 0.3);
            border-radius: 12px;
            padding: 16px 20px;
            margin-bottom: 40px;
            width: 100%;
            box-shadow: 0 2px 10px rgba(29, 185, 84, 0.1);
        }

        .contact-banner-text {
            color: var(--text-primary);
            font-size: 0.95rem;
            line-height: 1.6;
            margin: 0;
            text-align: center;
        }

        .contact-banner-text strong {
            color: var(--accent);
            font-weight: 600;
        }

        /* Lyrics Info Banner */
        .lyrics-info-banner {
            background: rgba(255, 235, 59, 0.2);
            border: 1px solid rgba(255, 235, 59, 0.4);
            border-radius: 12px;
            padding: 16px 20px;
            width: 100%;
            box-shadow: 0 2px 10px rgba(255, 235, 59, 0.15);
        }

        /* Masquer les blocs dans l'onglet "Mes albums" (sans suppression) */
        #albumsListView #lyricsInfoBanner,
        #albumsListView #featuredAlbumSection {
            display: none !important;
        }

        .lyrics-info-content {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .lyrics-info-icon {
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .lyrics-info-text {
            flex: 1;
            color: var(--text-primary);
        }

        .lyrics-info-text strong {
            display: block;
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 4px;
            color: var(--text-primary);
        }

        .lyrics-info-details {
            font-size: 0.9rem;
            line-height: 1.5;
            margin: 0;
            color: var(--text-secondary);
        }

        .contact-link {
            color: var(--accent);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            border-bottom: 1px solid transparent;
        }

        @keyframes blink {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.3;
            }
        }

        .contact-link:hover {
            color: var(--accent-hover);
            border-bottom-color: var(--accent-hover);
        }

        .contact-link:focus {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
            border-radius: 2px;
        }

        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: none;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            filter: blur(7px);
            z-index: -1;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .logo {
            height: 60px;
            width: auto;
        }

        .header h1 {
            font-size: 2.5rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--accent), #1ed760);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .header-search {
            flex: 1;
            max-width: 400px;
            position: relative;
            margin: 0 20px;
        }

        .header-search-input {
            width: 100%;
            padding: 10px 16px 10px 45px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 0.95rem;
            transition: all 0.3s ease;
        }

        .header-search-input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
        }

        .header-search-input::placeholder {
            color: var(--text-secondary);
        }

        .header-search-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            pointer-events: none;
            color: var(--text-secondary);
        }

        .header-search-icon svg {
            width: 100%;
            height: 100%;
            fill: currentColor;
        }

        /* Modal de recherche style Google */
        .search-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(4px);
            z-index: 10000;
            animation: fadeIn 0.2s ease;
        }

        .search-modal-overlay.active {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding-top: 80px;
        }

        .search-modal {
            width: 100%;
            max-width: 600px;
            background: var(--bg-secondary);
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
            overflow: hidden;
            animation: slideDown 0.3s ease;
            max-height: calc(100vh - 120px);
            display: flex;
            flex-direction: column;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .search-modal-header {
            padding: 20px;
            border-bottom: 1px solid var(--border);
            background: var(--bg-primary);
        }

        .search-modal-input-wrapper {
            position: relative;
        }

        .search-modal-input {
            width: 100%;
            padding: 14px 16px 14px 50px;
            background: var(--bg-tertiary);
            border: 2px solid var(--border);
            border-radius: 24px;
            color: var(--text-primary);
            font-size: 1rem;
            transition: all 0.2s ease;
        }

        .search-modal-input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
        }

        .search-modal-input-icon {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            color: var(--text-secondary);
            pointer-events: none;
        }

        .search-modal-close {
            position: absolute;
            right: 18px;
            top: 50%;
            transform: translateY(-50%);
            width: 24px;
            height: 24px;
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.2s ease;
        }

        .search-modal-close:hover {
            color: var(--text-primary);
        }

        .search-modal-close svg {
            width: 100%;
            height: 100%;
        }

        .search-modal-results {
            flex: 1;
            overflow-y: auto;
            padding: 8px 0;
            max-height: calc(100vh - 200px);
        }

        .search-result-section {
            margin-bottom: 16px;
        }

        .search-result-section-title {
            padding: 12px 20px 8px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-secondary);
        }

        .search-result-item {
            display: flex;
            align-items: center;
            padding: 12px 20px;
            cursor: pointer;
            transition: background 0.15s ease;
            border-left: 3px solid transparent;
        }

        .search-result-item:hover {
            background: var(--bg-hover);
            border-left-color: var(--accent);
        }

        .search-result-item-icon {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 16px;
            background: var(--bg-tertiary);
            border-radius: 8px;
            flex-shrink: 0;
        }

        .search-result-item-icon svg {
            width: 20px;
            height: 20px;
            fill: var(--accent);
        }

        .search-result-item-content {
            flex: 1;
            min-width: 0;
        }

        .search-result-item-title {
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 4px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .search-result-item-subtitle {
            font-size: 0.85rem;
            color: var(--text-secondary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .search-result-empty {
            padding: 40px 20px;
            text-align: center;
            color: var(--text-secondary);
        }

        .search-result-empty-icon {
            font-size: 3rem;
            margin-bottom: 16px;
            opacity: 0.5;
        }

        .search-result-empty-text {
            font-size: 1rem;
        }

        .search-highlight {
            background: rgba(29, 185, 84, 0.2);
            font-weight: 600;
            color: var(--accent);
        }

        @media (max-width: 768px) {
            .search-modal-overlay.active {
                padding-top: 0;
                align-items: stretch;
            }

            .search-modal {
                max-width: 100%;
                width: 100%;
                max-height: 100vh;
                height: 100vh;
                border-radius: 0;
                display: flex;
                flex-direction: column;
            }

            .search-modal-header {
                padding: 16px;
                padding-top: max(16px, env(safe-area-inset-top));
                border-bottom: 1px solid var(--border);
                flex-shrink: 0;
            }

            .search-modal-input {
                padding: 14px 16px 14px 50px;
                font-size: 1rem;
                border-radius: 24px;
                appearance: none;
                -webkit-appearance: none;
            }

            .search-modal-close {
                right: 22px;
                width: 32px;
                height: 32px;
                padding: 4px;
            }

            .search-modal-results {
                flex: 1;
                overflow-y: auto;
                padding-bottom: max(20px, env(safe-area-inset-bottom));
                max-height: none;
                -webkit-overflow-scrolling: touch;
            }

            .search-result-section-title {
                padding: 12px 16px 8px;
                font-size: 0.7rem;
            }

            .search-result-item {
                padding: 14px 16px;
                min-height: 56px;
                border-left-width: 4px;
                touch-action: manipulation;
            }

            .search-result-item:active {
                background: var(--bg-hover);
            }

            .search-result-item-icon {
                width: 44px;
                height: 44px;
                margin-right: 14px;
            }

            .search-result-item-icon svg {
                width: 22px;
                height: 22px;
            }

            .search-result-item-title {
                font-size: 1rem;
                margin-bottom: 6px;
            }

            .search-result-item-subtitle {
                font-size: 0.9rem;
            }

            .search-result-empty {
                padding: 60px 20px;
            }

            .search-result-empty-icon {
                font-size: 4rem;
            }

            .search-result-empty-text {
                font-size: 1.1rem;
            }
        }

        /* Amélioration pour les très petits écrans */
        @media (max-width: 480px) {
            .search-modal-header {
                padding: 12px;
                padding-top: max(12px, env(safe-area-inset-top));
            }

            .search-modal-input {
                padding: 12px 14px 12px 45px;
                font-size: 0.95rem;
            }

            .search-result-item {
                padding: 12px 14px;
            }
        }

        .header-stats {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .header-stat {
            background: rgba(26, 26, 26, 0.6);
            backdrop-filter: blur(10px);
            padding: 8px 12px;
            border-radius: 8px;
            text-align: center;
            min-width: 60px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .header-stat-value {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 4px;
            line-height: 1;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .header-stat-label {
            color: #e0e0e0;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        .header-stat-top-album {
            max-width: 150px;
        }

        .header-stat-top-album .header-stat-value {
            font-size: 0.9rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
            color: var(--accent);
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .header-stat-top-song {
            max-width: 150px;
        }

        .header-stat-top-song .header-stat-value {
            font-size: 0.9rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
            color: var(--accent);
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .clickable-stat {
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .clickable-stat:hover {
            color: var(--accent);
            opacity: 0.8;
            transform: scale(1.05);
        }

        .clickable-stat:active {
            transform: scale(0.95);
        }

        @media (max-width: 768px) {
            .header {
                flex-direction: column;
                align-items: flex-start;
            }

            /* Header background image - Optimisation mobile */
            .header::before {
                background-size: cover;
                background-position: center top;
                background-attachment: scroll;
                filter: blur(5px);
            }

            .header-search {
                width: 100%;
                max-width: 100%;
                margin: 15px 0;
            }

            .header-stats {
                width: 100%;
                justify-content: space-around;
            }
        }

        /* Main Content */
        .main-content {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 30px;
            margin-bottom: 30px;
        }

        @media (max-width: 968px) {
            .main-content {
                grid-template-columns: 1fr;
            }
        }

        /* Form Section */
        .form-section {
            background: var(--bg-secondary);
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 4px 20px var(--shadow);
            animation: fadeInLeft 0.6s ease-out;
            transition: all 0.4s ease;
            overflow: hidden;
        }

        .form-modal {
            position: fixed;
            inset: 0;
            z-index: 1200;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .form-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
        }

        .form-modal-content {
            position: relative;
            width: min(960px, 100%);
            max-height: 90vh;
            overflow-y: auto;
            background: var(--bg-secondary);
            border-radius: 16px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
            padding: 10px;
            z-index: 1;
        }

        .form-modal-close {
            position: absolute;
            top: 10px;
            right: 12px;
            width: 34px;
            height: 34px;
            border: none;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.08);
            color: var(--text-primary);
            cursor: pointer;
            font-size: 22px;
            line-height: 1;
            z-index: 2;
        }

        .form-section.collapsed {
            max-height: 0 !important;
            padding: 0 30px !important;
            margin-bottom: 0 !important;
            opacity: 0 !important;
            transform: translateY(-20px) !important;
            pointer-events: none !important;
            overflow: hidden !important;
            display: none !important;
        }

        /* Quand le formulaire est masqué, les listes prennent toute la largeur */
        .main-content:has(.form-section.collapsed) {
            grid-template-columns: 1fr;
        }

        .form-toggle-container {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .form-toggle-btn {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: var(--accent);
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            padding: 0;
        }

        .form-toggle-btn:hover {
            background: var(--accent-hover);
            transform: translateY(-2px);
        }

        .form-toggle-btn svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
            transition: transform 0.3s ease;
        }

        .form-toggle-btn.collapsed svg {
            transform: rotate(180deg);
        }

        .form-toggle-label {
            color: var(--text-primary);
            font-size: 0.85rem;
            font-weight: 500;
            white-space: nowrap;
            pointer-events: none;
        }

        /* Header login button (Connexion Admin) */
        .header-auth {
            display: flex;
            align-items: center;
        }
        .header-login-btn {
            padding: 8px 16px;
            border-radius: 8px;
            background: var(--bg-tertiary);
            color: var(--text-primary);
            border: 1px solid var(--border);
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        .header-login-btn:hover {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
        }

        /* Chat visiteur */
        .chat-toggle-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            color: var(--text-primary);
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
        }
        .chat-toggle-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
        .chat-toggle-wrap {
            position: relative;
            display: inline-flex;
        }
        .chat-unread-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            border-radius: 9px;
            background: var(--danger);
            color: white;
            font-size: 0.7rem;
            font-weight: 700;
            display: none;
            align-items: center;
            justify-content: center;
            box-shadow: 0 1px 3px rgba(0,0,0,0.3);
        }
        .chat-unread-badge.visible { display: flex; }
        /* ===== CHAT PANEL — style messagerie moderne ===== */
        .chat-panel-overlay {
            display: none;
            position: fixed;
            bottom: 90px;
            right: 20px;
            z-index: 9998;
            align-items: flex-end;
            justify-content: flex-end;
        }
        .chat-panel-overlay.active { display: flex; }
        .chat-panel {
            width: 360px;
            height: 520px;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            box-shadow: 0 8px 40px rgba(0,0,0,0.5);
            overflow: hidden;
            animation: chatSlideUp 0.2s ease;
        }
        @keyframes chatSlideUp {
            from { opacity: 0; transform: translateY(16px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        .chat-panel-header {
            padding: 14px 16px;
            background: var(--accent);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
        }
        .chat-panel-header-left { display: flex; align-items: center; gap: 10px; }
        .chat-panel-avatar {
            width: 36px; height: 36px; border-radius: 50%;
            background: rgba(255,255,255,0.2);
            display: flex; align-items: center; justify-content: center;
            color: white; flex-shrink: 0;
        }
        .chat-panel-title { font-size: 0.95rem; font-weight: 700; color: white; }
        .chat-panel-status { font-size: 0.72rem; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 4px; margin-top: 1px; }
        .chat-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; }
        .chat-panel-close {
            background: rgba(255,255,255,0.15); border: none; color: white;
            cursor: pointer; padding: 6px; display: flex; border-radius: 50%;
            transition: background 0.15s;
        }
        .chat-panel-close:hover { background: rgba(255,255,255,0.3); }
        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 14px 12px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            background: var(--bg-primary);
        }
        .chat-messages::-webkit-scrollbar { width: 4px; }
        .chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
        .chat-msg {
            max-width: 80%;
            padding: 9px 13px;
            border-radius: 16px;
            font-size: 0.88rem;
            line-height: 1.45;
            word-break: break-word;
        }
        .chat-msg.user {
            align-self: flex-end;
            background: var(--accent);
            color: white;
            border-bottom-right-radius: 4px;
        }
        .chat-msg.admin {
            align-self: flex-start;
            background: var(--bg-secondary);
            color: var(--text-primary);
            border: 1px solid var(--border);
            border-bottom-left-radius: 4px;
        }
        .chat-msg a { color: inherit; text-decoration: underline; }
        .chat-msg.user a { color: rgba(255,255,255,0.95); }
        .chat-msg-time { font-size: 0.68rem; opacity: 0.7; margin-top: 3px; }
        .chat-read-indicator { font-size: 0.72rem; color: var(--text-secondary); margin-top: 3px; text-align: right; }
        .chat-read-check { color: var(--accent); margin-right: 3px; }
        .chat-notification-prompt, .chat-notification-granted {
            padding: 6px 12px; border-top: 1px solid var(--border);
            font-size: 0.78rem; color: var(--text-secondary);
            display: flex; align-items: center; gap: 8px; flex-shrink: 0;
            background: var(--bg-secondary);
        }
        .chat-notification-text { flex: 1; }
        .chat-notification-btn {
            background: var(--bg-tertiary); color: var(--accent);
            border: 1px solid var(--border); border-radius: 6px;
            padding: 4px 10px; font-size: 0.78rem; cursor: pointer; white-space: nowrap;
        }
        .chat-notification-btn:hover { background: var(--bg-secondary); }
        .chat-notification-granted { color: #4ade80; }
        .chat-msg-wrap { position: relative; }
        .chat-msg-wrap.user { align-self: flex-end; }
        .chat-msg-wrap.admin { align-self: flex-start; }
        .chat-msg-wrap .chat-msg { cursor: pointer; }
        .chat-reactions { font-size: 0.8rem; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
        .chat-reactions span { display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: 12px; background: rgba(0,0,0,0.08); }
        .chat-msg.admin .chat-reactions span { background: rgba(255,255,255,0.15); }
        .chat-reaction-picker { position: absolute; z-index: 10000; display: none; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
        .chat-reaction-picker.visible { display: flex; gap: 4px; flex-wrap: wrap; }
        .chat-reaction-picker button { background: none; border: none; font-size: 1.2rem; padding: 4px; cursor: pointer; border-radius: 4px; }
        .chat-reaction-picker button:hover { background: var(--bg-tertiary); }
        .chat-emoji-picker-btn { background: none; border: none; font-size: 1.1rem; padding: 4px 6px; cursor: pointer; border-radius: 4px; opacity: 0.7; color: var(--text-secondary); }
        .chat-emoji-picker-btn:hover { opacity: 1; }
        .chat-emoji-picker-popover { position: absolute; bottom: 100%; left: 0; margin-bottom: 4px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 8px; display: none; flex-wrap: wrap; gap: 4px; max-width: 200px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 60; }
        .chat-emoji-picker-popover.visible { display: flex; }
        .chat-emoji-picker-popover button { background: none; border: none; font-size: 1.1rem; padding: 2px; cursor: pointer; border-radius: 4px; }
        .chat-emoji-picker-popover button:hover { background: var(--bg-tertiary); }
        .chat-form {
            padding: 10px 12px;
            border-top: 1px solid var(--border);
            display: flex;
            gap: 8px;
            align-items: center;
            background: var(--bg-secondary);
            flex-shrink: 0;
        }
        .chat-form input {
            flex: 1;
            padding: 10px 14px;
            border: 1px solid var(--border);
            border-radius: 24px;
            background: var(--bg-primary);
            color: var(--text-primary);
            font-size: 0.9rem;
            outline: none;
            transition: border-color 0.15s;
        }
        .chat-form input:focus { border-color: var(--accent); }
        .chat-form input::placeholder { color: var(--text-muted); }
        .chat-form button[type="submit"] {
            width: 38px; height: 38px; border-radius: 50%;
            background: var(--accent); color: white; border: none;
            cursor: pointer; display: flex; align-items: center; justify-content: center;
            flex-shrink: 0; transition: background 0.15s; padding: 0;
        }
        .chat-form button[type="submit"]:hover { background: var(--accent-hover); }
        .chat-form button[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; }
        .chat-panel-footer-actions {
            padding: 6px 12px 8px;
            background: var(--bg-secondary);
            text-align: center;
            flex-shrink: 0;
        }
        .chat-btn-reset {
            background: none; border: none;
            color: var(--text-secondary); font-size: 0.75rem;
            cursor: pointer; text-decoration: underline; padding: 0;
        }
        .chat-btn-reset:hover { color: var(--text-primary); }
        .chat-empty { color: var(--text-secondary); text-align: center; padding: 32px 16px; font-size: 0.88rem; }

        @media (max-width: 480px) {
            .chat-panel { width: calc(100vw - 24px); height: 70vh; right: 12px; }
            .chat-panel-overlay { right: 12px; bottom: 80px; }
        }

        @media (max-width: 768px) {
            .form-toggle-label {
                display: none;
            }

            .form-toggle-btn {
                width: 36px;
                height: 36px;
            }

            .form-toggle-btn svg {
                width: 18px;
                height: 18px;
            }
        }

        .form-section h2 {
            margin-bottom: 25px;
            font-size: 1.8rem;
            color: var(--text-primary);
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: var(--text-secondary);
            font-weight: 500;
            font-size: 0.9rem;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 12px 16px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
        }

        .form-group input[type="file"] {
            padding: 10px;
            cursor: pointer;
        }

        .form-group input[type="file"]::-webkit-file-upload-button {
            background: var(--accent);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            margin-right: 10px;
            transition: background 0.3s ease;
        }

        .form-group input[type="file"]::-webkit-file-upload-button:hover {
            background: var(--accent-hover);
        }

        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn-primary {
            background: var(--accent);
            color: white;
        }

        .btn-primary:hover {
            background: var(--accent-hover);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
        }

        .btn-secondary {
            background: var(--bg-tertiary);
            color: var(--text-primary);
            border: 1px solid var(--border);
        }

        .btn-secondary:hover {
            background: var(--bg-hover);
            transform: translateY(-2px);
        }

        /* Login Button Icon */
        .btn-login-icon {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-primary);
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            width: 40px;
            height: 40px;
            margin-left: 10px;
        }

        .btn-login-icon:hover {
            background: var(--bg-hover);
            border-color: var(--accent);
            color: var(--accent);
            transform: translateY(-2px);
        }

        .btn-login-icon svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .btn-danger {
            background: var(--danger);
            color: white;
        }

        .btn-danger:hover {
            background: var(--danger-hover);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(226, 33, 52, 0.4);
        }

        .btn-group {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }

        /* Tabs */
        .tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 25px;
            border-bottom: 2px solid var(--border);
        }

        .tab {
            padding: 12px 24px;
            background: transparent;
            border: none;
            border-bottom: 3px solid transparent;
            color: var(--text-secondary);
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            bottom: -2px;
        }

        .tab:hover {
            color: var(--text-primary);
        }

        .tab.active {
            color: var(--accent);
            border-bottom-color: var(--accent);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
            animation: fadeIn 0.3s ease-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        /* Album image preview */
        .album-image-preview {
            margin-top: 10px;
            max-width: 200px;
            max-height: 200px;
            border-radius: 8px;
            border: 2px solid var(--border);
            display: none;
        }

        .album-image-preview.show {
            display: block;
        }

        /* Albums View */
        .view-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 25px;
            border-bottom: 2px solid var(--border);
        }

        .view-tab {
            padding: 12px 24px;
            background: transparent;
            border: none;
            border-bottom: 3px solid transparent;
            color: var(--text-secondary);
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            bottom: -2px;
        }

        .view-tab:hover {
            color: var(--text-primary);
        }

        .view-tab.active {
            color: var(--accent);
            border-bottom-color: var(--accent);
        }

        /* Playlists tab - Fond vert */
        .view-tab-playlists {
            background: rgba(29, 185, 84, 0.1);
            border-radius: 8px 8px 0 0;
        }

        .view-tab-playlists:hover {
            background: rgba(29, 185, 84, 0.2);
        }

        .view-tab-playlists.active {
            background: rgba(29, 185, 84, 0.25);
            color: #1db954;
            border-bottom-color: #1db954;
        }

        /* Playlists */
        .playlists-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }

        .playlist-card {
            background: var(--bg-tertiary);
            border-radius: 12px;
            padding: 20px;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .playlist-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .playlist-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .playlist-card-header h3 {
            margin: 0;
            color: var(--text-primary);
            font-size: 1.2rem;
        }

        .playlist-card-actions {
            display: flex;
            gap: 8px;
        }

        .playlist-card-info {
            display: flex;
            gap: 10px;
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-bottom: 15px;
        }

        .playlist-card-songs {
            margin-top: 10px;
        }

        .playlist-songs-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .playlist-songs-list li {
            padding: 8px 0;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .playlist-songs-list li:last-child {
            border-bottom: none;
        }

        .playlist-song-title {
            font-weight: 500;
            color: var(--text-primary);
        }

        .playlist-song-album {
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

        .playlist-more {
            color: var(--text-secondary);
            font-style: italic;
            font-size: 0.9rem;
        }

        .playlist-song-extra.hidden {
            display: none;
        }

        .playlist-toggle-more {
            margin-left: 6px;
            border: none;
            background: transparent;
            color: var(--accent);
            font-size: 0.85rem;
            cursor: pointer;
            padding: 0;
        }

        .playlist-toggle-more:hover {
            text-decoration: underline;
        }

        /* Préférences */
        .pref-menu {
            position: relative;
            display: inline-block;
        }

        .pref-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            color: var(--text-primary);
            padding: 8px 12px;
            border-radius: 10px;
            cursor: pointer;
            transition: background 0.2s ease, border-color 0.2s ease;
        }

        .pref-btn:hover {
            background: var(--bg-hover);
            border-color: var(--accent);
        }

        .pref-dropdown {
            position: absolute;
            right: 0;
            top: calc(100% + 8px);
            min-width: 220px;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 10px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.4);
            padding: 8px;
            display: none;
            z-index: 3200;
        }

        .pref-dropdown.show {
            display: block;
        }

        .pref-item {
            width: 100%;
            text-align: left;
            border: none;
            background: transparent;
            color: var(--text-primary);
            padding: 10px;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.15s ease, color 0.15s ease;
            font-size: 0.95rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
        }

        .pref-item:hover:not(.disabled) {
            background: var(--bg-hover);
            color: var(--accent);
        }

        .pref-item.disabled {
            cursor: not-allowed;
            color: var(--text-secondary);
            opacity: 0.6;
        }

        .pref-item .pref-note {
            color: var(--text-secondary);
            font-size: 0.8rem;
        }

        .pref-sublabel {
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

        .pref-inline {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .pref-toggle {
            position: relative;
            width: 42px;
            height: 22px;
            border-radius: 999px;
            background: var(--bg-hover);
            border: 1px solid var(--border);
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .pref-toggle-knob {
            position: absolute;
            top: 2px;
            left: 2px;
            width: 18px;
            height: 18px;
            background: var(--text-secondary);
            border-radius: 50%;
            transition: all 0.2s ease;
        }

        .pref-toggle.on {
            background: var(--accent);
            border-color: var(--accent);
        }

        .pref-toggle.on .pref-toggle-knob {
            transform: translateX(20px);
            background: #fff;
        }

        .pref-select {
            background: var(--bg-tertiary);
            color: var(--text-primary);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 6px 8px;
        }

        @media (max-width: 768px) {
            .pref-dropdown {
                min-width: 200px;
            }
        }

        /* Modal Reprendre l'écoute */
        .resume-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 3200;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .resume-modal.show {
            display: flex;
        }

        .resume-modal-content {
            background: var(--bg-tertiary);
            border-radius: 12px;
            padding: 20px;
            max-width: 480px;
            width: 100%;
            box-shadow: 0 8px 30px rgba(0,0,0,0.5);
            border: 1px solid var(--border);
        }

        .resume-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .resume-modal-title {
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .resume-modal-body {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .resume-current {
            background: var(--bg-secondary);
            border-radius: 10px;
            padding: 12px;
            border: 1px solid var(--border);
        }

        .resume-current h4 {
            margin: 0 0 6px 0;
            font-size: 1rem;
        }

        .resume-current p {
            margin: 0;
            color: var(--text-secondary);
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .resume-recent {
            background: var(--bg-secondary);
            border-radius: 10px;
            padding: 12px;
            border: 1px solid var(--border);
        }

        .resume-recent h4 {
            margin: 0 0 6px 0;
            font-size: 1rem;
        }

        .resume-recent-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 3px;
            max-height: 180px;
            overflow-y: auto;
        }

        .resume-recent-item {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            color: var(--text-secondary);
            font-size: 0.9rem;
            padding: 6px 8px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .resume-recent-item:hover {
            background: var(--bg-tertiary);
            color: var(--text-primary);
        }

        .resume-recent-item:active {
            transform: scale(0.98);
        }

        .resume-recent-item.disabled {
            cursor: default;
            opacity: 0.6;
        }

        .resume-recent-item.disabled:hover {
            background: transparent;
            color: var(--text-secondary);
        }

        .resume-actions {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 8px;
        }

        .resume-opt-out-checkbox {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            color: var(--text-secondary);
            font-size: 0.9rem;
            user-select: none;
        }

        .resume-opt-out-checkbox input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: var(--accent);
        }

        .resume-opt-out-checkbox:hover {
            color: var(--text-primary);
        }

        .resume-actions-buttons {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
        }

        .btn-ghost {
            background: transparent;
            color: var(--text-secondary);
            border: 1px solid var(--border);
        }

        @media (max-width: 768px) {
            .resume-modal-content {
                max-width: 100%;
            }
        }

        /* Liste des titres dans la modal d'édition de playlist */
        .playlist-edit-songs {
            margin-top: 15px;
            max-height: 260px;
            overflow-y: auto;
            background: var(--bg-tertiary);
            border-radius: 10px;
            border: 1px solid var(--border);
            padding: 8px 0;
        }

        .playlist-edit-songs-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 14px 6px;
            color: var(--text-secondary);
            font-size: 0.8rem;
        }

        .playlist-edit-songs-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .playlist-edit-song-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 6px 12px;
            border-bottom: 1px solid var(--border);
        }

        .playlist-edit-song-item:last-child {
            border-bottom: none;
        }

        .playlist-edit-song-handle {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            cursor: grab;
            font-size: 1rem;
        }

        .playlist-edit-song-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .playlist-edit-song-title {
            font-size: 0.9rem;
            color: var(--text-primary);
            font-weight: 500;
        }

        .playlist-edit-song-meta {
            font-size: 0.78rem;
            color: var(--text-secondary);
        }

        .playlist-edit-song-actions {
            display: flex;
            gap: 4px;
        }

        .playlist-edit-song-btn {
            border: none;
            background: transparent;
            color: var(--text-secondary);
            width: 26px;
            height: 26px;
            border-radius: 999px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
        }

        .playlist-edit-song-btn:hover {
            background: var(--bg-hover);
            color: var(--text-primary);
            transform: scale(1.05);
        }

        .playlist-edit-empty {
            padding: 16px;
            text-align: center;
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .playlist-select-item {
            padding: 15px;
            background: var(--bg-tertiary);
            border-radius: 8px;
            margin-bottom: 10px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background 0.2s;
        }

        .playlist-select-item:hover {
            background: var(--bg-hover);
        }

        .playlist-select-item.selected {
            border: 1px solid var(--accent);
            background: rgba(29, 185, 84, 0.1);
        }

        .playlist-select-checkbox {
            width: 24px;
            height: 24px;
            border: 2px solid var(--text-secondary);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            transition: all 0.2s;
        }

        .playlist-select-checkbox.checked {
            background: var(--accent);
            border-color: var(--accent);
        }

        .view-content {
            display: none;
        }

        .view-content.active {
            display: block;
            animation: fadeIn 0.3s ease-out;
        }

        /* Album Cards */
        .albums-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            align-items: stretch;
        }

        .album-card {
            background: var(--bg-tertiary);
            border-radius: 12px;
            padding: 20px;
            transition: all 0.3s ease;
            cursor: pointer;
            border: 1px solid transparent;
            animation: fadeInUp 0.4s ease-out;
            display: flex;
            flex-direction: column;
            min-height: 100%;
        }

        .album-card:hover {
            background: var(--bg-hover);
            transform: translateY(-5px);
            border-color: var(--accent);
            box-shadow: 0 8px 20px var(--shadow);
        }

        .album-image-wrapper {
            position: relative;
            width: 100%;
            margin-bottom: 15px;
            flex-shrink: 0;
        }

        .album-card-image {
            width: 100%;
            aspect-ratio: 1;
            object-fit: cover;
            border-radius: 8px;
            background: var(--bg-secondary);
        }

        .album-card-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
            line-height: 1.3;
            min-height: 2.6em;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            flex-shrink: 0;
        }

        .album-new-badge {
            position: absolute;
            top: 8px;
            left: 8px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-size: 0.65rem;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            z-index: 10;
            pointer-events: none;
        }

        .album-featured-badge {
            position: absolute;
            top: 8px;
            right: 8px;
            background: #f4d03f;
            color: #1b1b1b;
            font-size: 0.65rem;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 12px;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
            z-index: 10;
            pointer-events: none;
        }

        .featured-album-card .album-featured-badge {
            position: static;
            align-self: flex-start;
        }

        .featured-album-section {
            margin-bottom: 20px;
        }

        .featured-album-card {
            display: flex;
            gap: 18px;
            align-items: center;
            padding: 16px;
            border-radius: 14px;
            border: 1px solid var(--border);
            background: rgba(29, 185, 84, 0.08);
            backdrop-filter: blur(6px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }

        .featured-album-image {
            width: 140px;
            height: 140px;
            border-radius: 10px;
            object-fit: cover;
            background: var(--bg-secondary);
            cursor: pointer;
        }

        .featured-album-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .featured-album-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-primary);
            cursor: pointer;
        }

        .featured-album-meta {
            color: var(--text-secondary);
            font-size: 0.9rem;
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .featured-album-actions {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .featured-album-checkbox {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            font-weight: 600;
            color: var(--text-primary);
        }

        .album-card-info {
            display: flex;
            flex-direction: column;
            gap: 5px;
            color: var(--text-secondary);
            font-size: 0.9rem;
            flex: 1;
            min-height: 60px;
        }

        .album-card-genres {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: auto;
            padding-top: 10px;
            min-height: 20px;
            align-items: center;
        }

        .album-card-genres .genre-badge:not(:last-child)::after {
            content: '•';
            margin-left: 8px;
            color: var(--text-secondary);
            opacity: 0.5;
        }

        .album-songs-count {
            color: var(--accent);
            font-weight: 600;
            margin-top: 5px;
        }

        .album-card-actions {
            display: flex;
            gap: 8px;
            margin-top: 15px;
            flex-shrink: 0;
            justify-content: center;
        }

        /* View Toggle Buttons */
        .view-toggle {
            display: flex;
            gap: 8px;
            background: var(--bg-tertiary);
            padding: 4px;
            border-radius: 8px;
        }

        .view-toggle-btn {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 6px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .view-toggle-btn:hover {
            background: var(--bg-hover);
            color: var(--text-primary);
        }

        .view-toggle-btn.active {
            background: var(--accent);
            color: white;
        }

        /* Albums List View - Same style as songs */
        .albums-grid.list-view {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
        }

        .albums-grid.list-view .album-card {
            background: var(--bg-tertiary);
            padding: 20px;
            border-radius: 10px;
            display: grid;
            grid-template-columns: auto auto 1fr auto auto;
            gap: 20px;
            align-items: center;
            transition: all 0.3s ease;
            border: 1px solid transparent;
            animation: fadeInUp 0.4s ease-out;
            cursor: pointer;
        }

        .albums-grid.list-view .album-card:hover {
            background: var(--bg-hover);
            transform: translateX(5px);
            border-color: var(--accent);
            box-shadow: 0 4px 15px var(--shadow);
        }

        .albums-grid.list-view .album-order {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: var(--bg-secondary);
            border: 2px solid var(--accent);
            border-radius: 50%;
            color: var(--accent);
            font-weight: 700;
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .albums-grid.list-view .album-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            color: var(--text-secondary);
            flex-shrink: 0;
        }

        .albums-grid.list-view .album-image-wrapper {
            margin-bottom: 0 !important;
        }

        .albums-grid.list-view .album-card-image {
            width: 60px !important;
            height: 60px !important;
            min-width: 60px !important;
            max-width: 60px !important;
            margin-bottom: 0 !important;
            border-radius: 8px;
            object-fit: cover;
            cursor: pointer;
            aspect-ratio: unset !important;
        }

        .albums-grid.list-view .album-info {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .albums-grid.list-view .album-card-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 0;
            cursor: pointer;
        }

        /* Liste compacte des albums (visiteurs, vue liste) */
        .album-row-compact {
            display: grid;
            grid-template-columns: auto 1fr auto;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 12px;
        }
        .album-image-wrapper {
            position: relative;
        }

        .album-row-cover {
            width: 64px;
            height: 64px;
            object-fit: cover;
            border-radius: 8px;
            border: 1px solid var(--card-border);
        }
        .album-row-main {
            min-width: 0;
        }
        .album-row-title {
            font-weight: 600;
            color: var(--text-primary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .album-row-meta {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-top: 4px;
        }
        .album-row-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .albums-grid.list-view .album-details {
            display: flex;
            gap: 15px;
            color: var(--text-secondary);
            font-size: 0.9rem;
            flex-wrap: wrap;
        }

        .albums-grid.list-view .album-detail-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .albums-grid.list-view .album-card-info {
            display: none !important;
        }

        .albums-grid.list-view .album-card-actions {
            display: flex;
            gap: 10px;
        }

        /* S'assurer que la vue liste écrase toutes les règles de la vue grille */
        .albums-grid.list-view .album-card-title {
            margin-bottom: 0 !important;
        }

        /* Album Detail View */
        .album-detail-view {
            display: none;
        }

        .album-detail-view.active {
            display: block;
            animation: fadeIn 0.3s ease-out;
        }

        /* Albums similaires - Section collapsible */
        .similar-albums-section {
            margin-top: 40px;
            padding-top: 30px;
            border-top: 1px solid var(--border);
        }

        .similar-albums-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            padding: 15px 20px;
            background: var(--bg-secondary);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--text-primary);
            font-size: 1.1rem;
            font-weight: 600;
        }

        .similar-albums-toggle:hover {
            background: var(--bg-hover);
            border-color: var(--accent);
        }

        .similar-albums-toggle-icon {
            transition: transform 0.3s ease;
            fill: var(--text-primary);
        }

        .similar-albums-toggle.open .similar-albums-toggle-icon {
            transform: rotate(180deg);
        }

        .similar-albums-content {
            margin-top: 20px;
            animation: fadeIn 0.3s ease-out;
        }

        .similar-albums-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 20px;
            overflow-x: auto;
            padding-bottom: 10px;
        }

        .similar-album-card {
            cursor: pointer;
            transition: transform 0.2s ease;
            border-radius: 8px;
            overflow: hidden;
        }

        .similar-album-card:hover {
            transform: translateY(-5px);
        }

        .similar-album-image-wrapper {
            position: relative;
            width: 100%;
            aspect-ratio: 1;
            margin-bottom: 10px;
        }

        .similar-album-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
            background: var(--bg-secondary);
        }

        .similar-album-title {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 5px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .similar-album-year {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .album-detail-header {
            display: grid;
            grid-template-columns: 200px 1fr;
            gap: 30px;
            margin-bottom: 30px;
            padding: 20px;
            background: var(--bg-tertiary);
            border-radius: 12px;
        }

        @media (max-width: 768px) {
            .album-detail-header {
                grid-template-columns: 1fr;
            }
        }

        .album-detail-image {
            width: 100%;
            aspect-ratio: 1;
            object-fit: cover;
            border-radius: 8px;
            background: var(--bg-secondary);
        }

        .album-detail-info {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .album-detail-title {
            font-size: 2rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .album-detail-meta {
            display: flex;
            flex-direction: column;
            gap: 8px;
            color: var(--text-secondary);
        }

        .album-detail-actions {
            display: flex;
            gap: 10px;
            margin-top: auto;
            flex-wrap: wrap;
        }

        /* Albums similaires - Section collapsible */
        .similar-albums-section {
            margin-top: 40px;
            padding-top: 30px;
            border-top: 1px solid var(--border);
        }

        .similar-albums-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            padding: 15px 20px;
            background: var(--bg-secondary);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--text-primary);
            font-size: 1.1rem;
            font-weight: 600;
        }

        .similar-albums-toggle:hover {
            background: var(--bg-hover);
            border-color: var(--accent);
        }

        .similar-albums-toggle-icon {
            transition: transform 0.3s ease;
            fill: var(--text-primary);
        }

        .similar-albums-toggle.open .similar-albums-toggle-icon {
            transform: rotate(180deg);
        }

        .similar-albums-content {
            margin-top: 20px;
            animation: fadeIn 0.3s ease-out;
        }

        .similar-albums-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 20px;
            overflow-x: auto;
            padding-bottom: 10px;
        }

        .similar-album-card {
            cursor: pointer;
            transition: transform 0.2s ease;
            border-radius: 8px;
            overflow: hidden;
        }

        .similar-album-card:hover {
            transform: translateY(-5px);
        }

        .similar-album-image-wrapper {
            position: relative;
            width: 100%;
            aspect-ratio: 1;
            margin-bottom: 10px;
        }

        .similar-album-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
            background: var(--bg-secondary);
        }

        .similar-album-title {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 5px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .similar-album-year {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .album-detail-header-actions {
            position: absolute;
            top: 20px;
            right: 20px;
            display: flex;
            gap: 10px;
        }

        .album-detail-header {
            position: relative;
        }

        .btn-play {
            background: var(--accent);
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-play:hover {
            background: var(--accent-hover);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
        }

        .btn-play svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .btn-play.disabled {
            opacity: 0.5;
            background: var(--bg-tertiary) !important;
            color: var(--text-secondary) !important;
            cursor: not-allowed;
        }
        .btn-play.disabled:hover {
            transform: none;
            background: var(--bg-tertiary) !important;
        }

        .btn-remove-duplicates {
            background: var(--danger);
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-remove-duplicates:hover {
            background: #e53e3e;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
        }

        .btn-remove-duplicates svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .btn-download {
            background: var(--bg-tertiary);
            color: var(--text-primary);
            padding: 12px 24px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-left: 10px;
        }

        .btn-download:hover {
            background: var(--bg-hover);
            border-color: var(--accent);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px var(--shadow);
        }

        .btn-download svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .btn-playlist {
            background: rgba(29, 185, 84, 0.2);
            color: var(--accent);
            padding: 12px 24px;
            border: 2px solid var(--accent);
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-left: 10px;
        }

        .btn-playlist:hover {
            background: rgba(29, 185, 84, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
        }

        .btn-playlist svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        /* Modern Audio Player */
        .album-player-container {
            background: var(--bg-tertiary);
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 20px;
            border: 1px solid var(--border);
        }

        .player-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 15px;
        }

        .player-info {
            flex: 1;
        }

        .player-title {
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 5px;
            font-size: 1rem;
        }

        .player-current-song {
            color: var(--accent);
            font-weight: 500;
            font-size: 0.9rem;
            margin-bottom: 3px;
        }

        .player-album-info {
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

        .modern-audio-player {
            position: relative;
            background: var(--bg-secondary);
            border-radius: 10px;
            padding: 15px;
        }

        .audio-controls {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 12px;
        }

        .prev-next-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            color: var(--text-primary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .prev-next-btn:hover:not(:disabled) {
            background: var(--bg-tertiary);
            transform: scale(1.05);
            border-color: var(--accent);
        }

        .prev-next-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .prev-next-btn svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .play-pause-btn {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: var(--accent);
            border: none;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .play-pause-btn:hover {
            background: var(--accent-hover);
            transform: scale(1.05);
        }

        .play-pause-btn svg {
            width: 24px;
            height: 24px;
            fill: currentColor;
        }

        .progress-container {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .time-display {
            color: var(--text-secondary);
            font-size: 0.85rem;
            font-variant-numeric: tabular-nums;
            min-width: 45px;
            text-align: right;
        }

        .progress-bar-wrapper {
            flex: 1;
            height: 6px;
            background: var(--bg-tertiary);
            border-radius: 3px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .progress-bar {
            height: 100%;
            background: var(--accent);
            border-radius: 3px;
            width: 0%;
            transition: width 0.1s linear;
            position: relative;
        }

        .progress-bar::after {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 12px;
            height: 12px;
            background: var(--accent);
            border-radius: 50%;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .progress-bar-wrapper:hover .progress-bar::after {
            opacity: 1;
        }

        .total-time {
            color: var(--text-secondary);
            font-size: 0.85rem;
            font-variant-numeric: tabular-nums;
            min-width: 45px;
        }

        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: var(--bg-tertiary);
            color: var(--text-primary);
            border: 1px solid var(--border);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 20px;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .back-button:hover {
            background: var(--bg-hover);
            transform: translateX(-3px);
        }

        .back-button svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }

        /* Songs List Section */
        .songs-section {
            background: var(--bg-secondary);
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 4px 20px var(--shadow);
            animation: fadeInRight 0.6s ease-out;
        }

        .songs-section h2 {
            margin-bottom: 25px;
            font-size: 1.8rem;
        }

        /* Search and Filter */
        .search-filter {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 15px;
            margin-bottom: 25px;
        }

        @media (max-width: 768px) {
            .search-filter {
                grid-template-columns: 1fr;
            }
        }

        .search-filter input,
        .search-filter select {
            padding: 12px 16px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .search-filter input:focus,
        .search-filter select:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
        }

        /* Sort Controls */
        .sort-controls {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 25px;
            flex-wrap: wrap;
        }

        /* Filters panel (public desktop) */
        .filters-panel {
            margin-bottom: 16px;
            background: var(--bg-tertiary);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            overflow: hidden;
        }
        .filters-toggle {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 12px 14px;
            background: transparent;
            border: none;
            color: var(--text-primary);
            cursor: pointer;
            font-weight: 600;
        }
        .filters-toggle svg {
            transition: transform 0.2s ease;
        }
        .filters-panel.collapsed .filters-toggle svg {
            transform: rotate(-90deg);
        }
        .filters-body {
            padding: 12px 14px 16px;
            border-top: 1px solid var(--card-border);
        }
        .filters-panel.collapsed .filters-body {
            display: none;
        }

        .sort-controls label {
            color: var(--text-secondary);
            font-weight: 500;
        }

        .sort-controls select {
            padding: 10px 16px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .sort-controls select:focus {
            outline: none;
            border-color: var(--accent);
        }

        /* Songs List */
        .songs-list {
            display: grid;
            gap: 15px;
        }

        .song-card {
            background: var(--bg-tertiary);
            padding: 20px;
            border-radius: 10px;
            display: grid;
            grid-template-columns: auto auto 1fr auto auto;
            gap: 20px;
            align-items: center;
            transition: all 0.3s ease;
            border: 1px solid transparent;
            animation: fadeInUp 0.4s ease-out;
            cursor: move;
        }

        .song-card:hover {
            background: var(--bg-hover);
            transform: translateX(5px);
            border-color: var(--accent);
            box-shadow: 0 4px 15px var(--shadow);
        }

        .song-card.dragging {
            opacity: 0.5;
            transform: scale(0.95);
        }

        .song-card.drag-over {
            border-top: 3px solid var(--accent);
            background: var(--bg-hover);
        }

        .song-order {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: var(--bg-secondary);
            border: 2px solid var(--accent);
            border-radius: 50%;
            color: var(--accent);
            font-weight: 700;
            font-size: 1.1rem;
            flex-shrink: 0;
            position: relative;
        }
        
        .song-order.playing {
            background: var(--accent);
            color: var(--bg-primary);
            border-color: var(--accent);
        }
        
        .song-order.playing::before {
            content: '';
            position: absolute;
            width: 12px;
            height: 12px;
            background: var(--bg-primary);
            border-radius: 2px;
            animation: pulse 1.5s ease-in-out infinite;
        }
        
        @keyframes pulse {
            0%, 100% {
                opacity: 1;
                transform: scale(1);
            }
            50% {
                opacity: 0.7;
                transform: scale(0.9);
            }
        }
        
        .song-order.playing .playing-icon {
            display: block;
            position: absolute;
            width: 16px;
            height: 16px;
        }
        
        .song-order:not(.playing) .playing-icon {
            display: none;
        }

        .drag-handle {
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            cursor: grab;
            padding: 5px;
            transition: color 0.3s ease;
        }

        .drag-handle:hover {
            color: var(--accent);
        }

        .drag-handle:active {
            cursor: grabbing;
        }

        .drag-handle svg {
            width: 24px;
            height: 24px;
        }

        .song-info {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .song-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .song-details {
            display: flex;
            gap: 15px;
            color: var(--text-secondary);
            font-size: 0.9rem;
            flex-wrap: wrap;
        }

        .song-detail-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* Custom Modern Audio Player Styling */
        .audio-player {
            width: auto;
            min-width: auto;
            background: transparent;
            border-radius: 0;
            padding: 0;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0;
            transition: all 0.3s ease;
            position: relative;
        }

        .audio-player:hover {
            background: transparent;
            border-color: transparent;
        }

        .audio-player audio {
            display: none !important;
            visibility: hidden !important;
            position: absolute;
            width: 0;
            height: 0;
            opacity: 0;
        }

        .mini-player-controls {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
        }

        .mini-play-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--accent);
            border: none;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .mini-play-btn:hover {
            background: var(--accent-hover);
            transform: scale(1.05);
        }

        .mini-play-btn svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }

        .mini-player-progress {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .mini-time-display {
            color: var(--text-secondary);
            font-size: 0.8rem;
            font-variant-numeric: tabular-nums;
            min-width: 40px;
        }

        .mini-progress-bar-wrapper {
            flex: 1;
            height: 4px;
            background: var(--bg-secondary);
            border-radius: 2px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .mini-progress-bar {
            height: 100%;
            background: var(--accent);
            border-radius: 2px;
            width: 0%;
            transition: width 0.1s linear;
        }

        .mini-progress-bar-wrapper:hover .mini-progress-bar {
            background: var(--accent-hover);
        }

        /* Ensure audio player looks good on all views */
        .song-card .audio-player {
            width: auto;
            max-width: none;
        }

        /* Better mobile responsiveness */
        @media (max-width: 768px) {
            .audio-player {
                padding: 0;
                min-width: auto;
            }

            .mini-play-btn {
                width: 32px;
                height: 32px;
            }

            .mini-time-display {
                font-size: 0.75rem;
                min-width: 35px;
            }
        }

        @media (max-width: 768px) {
            .song-card {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .audio-player {
                width: auto;
                min-width: auto;
            }

            .btn-group {
                flex-direction: column;
            }
        }

        .song-actions {
            display: flex;
            gap: 10px;
        }

        .btn-small {
            padding: 8px 16px;
            font-size: 0.85rem;
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-secondary);
        }

        .empty-state-icon {
            font-size: 4rem;
            margin-bottom: 20px;
            opacity: 0.5;
        }

        .empty-state p {
            font-size: 1.1rem;
        }

        /* Stats */
        .stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: var(--bg-secondary);
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 4px 20px var(--shadow);
            animation: fadeInUp 0.6s ease-out;
        }

        .stat-value {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 10px;
        }

        .stat-label {
            color: var(--text-secondary);
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Animations */
        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInLeft {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes fadeInRight {
            from {
                opacity: 0;
                transform: translateX(20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideOut {
            from {
                opacity: 1;
                transform: translateX(0);
            }
            to {
                opacity: 0;
                transform: translateX(-100px);
            }
        }

        .song-card.removing {
            animation: slideOut 0.3s ease-out forwards;
        }

        /* Notification */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: var(--accent);
            color: white;
            padding: 15px 25px;
            border-radius: 8px;
            box-shadow: 0 4px 20px var(--shadow);
            z-index: 1000;
            animation: slideInRight 0.3s ease-out;
            display: none;
        }

        .notification.show {
            display: block;
        }

        @keyframes slideInRight {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        /* Lyrics Modal */
        /* Upload Progress Modal */
        .upload-progress-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 2000;
            animation: fadeIn 0.3s ease-out;
            align-items: center;
            justify-content: center;
        }

        .upload-progress-modal.show {
            display: flex;
        }

        .upload-progress-content {
            background: var(--bg-secondary);
            border-radius: 12px;
            padding: 30px;
            min-width: 400px;
            max-width: 500px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .upload-progress-content h3 {
            margin: 0 0 20px 0;
            color: var(--text);
            font-size: 1.2rem;
        }

        .upload-progress-bar-wrapper {
            width: 100%;
            height: 8px;
            background: var(--bg-tertiary);
            border-radius: 4px;
            overflow: hidden;
            margin-bottom: 15px;
        }

        .upload-progress-bar {
            height: 100%;
            background: var(--accent);
            border-radius: 4px;
            width: 0%;
            transition: width 0.3s ease-out;
        }

        .upload-progress-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .upload-progress-current {
            font-size: 0.85rem;
            color: var(--text-secondary);
            font-style: italic;
            min-height: 20px;
        }

        /* Login Modal */
        .login-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 3000;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease-out;
        }

        /* Modal "Créer une playlist" au-dessus du modal "Ajouter à la playlist" */
        #playlistModal.show {
            z-index: 3001 !important;
        }

        /* Modal "Ajouter à la playlist" avec z-index inférieur */
        #addToPlaylistModal.show {
            z-index: 3000 !important;
        }

        /* Bulk Lyrics Modal */
        #bulkLyricsModal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            animation: fadeIn 0.3s ease-out;
        }

        #bulkLyricsModal .modal-content {
            background: var(--bg-secondary);
            border-radius: 16px;
            padding: 0;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            animation: slideUp 0.3s ease-out;
            border: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            max-width: 900px;
            width: 90%;
            max-height: 90vh;
        }

        #bulkLyricsModal .modal-header {
            padding: 20px 30px;
            border-bottom: 1px solid var(--border);
            background: var(--bg-secondary);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        #bulkLyricsModal .modal-header h2 {
            margin: 0;
            color: var(--text-primary);
            font-size: 1.5rem;
        }

        #bulkLyricsModal .modal-close {
            background: none;
            border: none;
            font-size: 2rem;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            transition: all 0.2s ease;
        }

        #bulkLyricsModal .modal-close:hover {
            background: var(--bg-tertiary);
            color: var(--text-primary);
        }

        #bulkLyricsModal .modal-body {
            padding: 30px;
            overflow-y: auto;
            flex: 1;
            background: var(--bg-secondary);
        }

        #bulkLyricsModal .modal-footer {
            padding: 20px 30px;
            border-top: 1px solid var(--border);
            background: var(--bg-secondary);
            display: flex;
            gap: 10px;
            justify-content: flex-end;
        }

        #bulkLyricsModal table {
            font-size: 0.9rem;
            background: var(--bg-secondary);
        }

        #bulkLyricsModal select {
            font-size: 0.9rem;
        }

        #bulkLyricsModal th {
            background: var(--bg-tertiary);
            color: var(--text-primary);
            font-weight: 600;
        }

        #bulkLyricsModal td {
            background: var(--bg-secondary);
            color: var(--text-primary);
        }

        #bulkLyricsModal tr:hover td {
            background: var(--bg-tertiary);
        }

        @media (max-width: 768px) {
            #bulkLyricsModal .modal-content {
                max-width: 95%;
                max-height: 95vh;
            }
            
            #bulkLyricsModal table {
                font-size: 0.8rem;
            }
            
            #bulkLyricsModal th,
            #bulkLyricsModal td {
                padding: 8px 5px;
            }
        }

        .login-modal.show {
            display: flex;
        }

        .login-modal-content {
            background: var(--bg-secondary);
            border-radius: 12px;
            padding: 30px;
            min-width: 400px;
            max-width: 500px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .login-modal-content h2 {
            margin: 0 0 10px 0;
            color: var(--text);
        }

        .login-error {
            background: var(--danger);
            color: white;
            padding: 10px;
            border-radius: 4px;
            margin-bottom: 15px;
            font-size: 0.9rem;
        }

        /* Share Modal */
        .share-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 2000;
            animation: fadeIn 0.3s ease-out;
            overflow: hidden;
        }

        .share-modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .share-modal-content {
            background: var(--bg-secondary);
            border-radius: 16px;
            width: 100%;
            max-width: 600px;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            overflow: hidden;
        }

        .share-modal-header {
            padding: 25px 30px;
            border-bottom: 1px solid var(--bg-tertiary);
            position: relative;
        }

        .share-modal-header h2 {
            margin: 0;
            color: var(--text-primary);
            font-size: 24px;
        }

        .share-preview {
            padding: 25px 30px;
            border-bottom: 1px solid var(--bg-tertiary);
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .share-preview-image {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            object-fit: cover;
            background: var(--bg-tertiary);
        }

        .share-preview-info {
            flex: 1;
        }

        .share-preview-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 5px;
        }

        .share-preview-subtitle {
            font-size: 14px;
            color: var(--text-secondary);
        }

        .share-link-section {
            padding: 25px 30px;
            border-bottom: 1px solid var(--bg-tertiary);
        }

        .share-link-section label {
            display: block;
            margin-bottom: 10px;
            color: var(--text-secondary);
            font-size: 14px;
        }

        .share-link-input-wrapper {
            display: flex;
            gap: 10px;
        }

        #shareLinkInput {
            flex: 1;
            padding: 12px 15px;
            background: var(--bg-tertiary);
            border: 1px solid var(--bg-quaternary);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 14px;
            font-family: 'Courier New', monospace;
        }

        .btn-copy-link {
            padding: 12px 20px;
            background: var(--accent);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            transition: all 0.2s;
        }

        .btn-copy-link:hover {
            background: #1ed760;
            transform: scale(1.05);
        }

        .btn-copy-link:active {
            transform: scale(0.95);
        }

        .share-social-buttons {
            padding: 25px 30px;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .share-social-btn {
            padding: 14px 20px;
            background: var(--bg-tertiary);
            border: 1px solid var(--bg-quaternary);
            border-radius: 8px;
            color: var(--text-primary);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.2s;
        }

        .share-social-btn:hover {
            background: var(--bg-quaternary);
            transform: translateY(-2px);
        }

        .share-social-btn svg {
            fill: currentColor;
        }

        .share-facebook {
            color: #1877F2;
        }

        .share-facebook:hover {
            background: rgba(24, 119, 242, 0.1);
        }

        .share-twitter {
            color: #000000;
        }

        .share-twitter:hover {
            background: rgba(0, 0, 0, 0.1);
        }

        .share-whatsapp {
            color: #25D366;
        }

        .share-whatsapp:hover {
            background: rgba(37, 211, 102, 0.1);
        }

        .share-email {
            color: var(--text-primary);
        }

        .share-email:hover {
            background: var(--bg-quaternary);
        }

        .lyrics-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.82);
            z-index: 2000;
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
        }

        .lyrics-modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: lyricsModalIn 0.3s ease-out;
        }

        @keyframes lyricsModalIn {
            from { opacity: 0; }
            to   { opacity: 1; }
        }

        .lyrics-modal-content {
            background: #111118;
            border-radius: 20px;
            width: 100%;
            max-width: 680px;
            max-height: 88vh;
            display: flex;
            flex-direction: column;
            border: 1px solid rgba(255,255,255,0.08);
            box-shadow: 0 24px 80px rgba(0,0,0,0.7);
            animation: lyricsContentIn 0.3s ease-out;
        }

        @keyframes lyricsContentIn {
            from { transform: translateY(24px); opacity: 0; }
            to   { transform: translateY(0);    opacity: 1; }
        }

        .lyrics-modal-header {
            padding: 22px 28px;
            border-bottom: 1px solid rgba(255,255,255,0.07);
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .lyrics-modal-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-primary);
            margin: 0;
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            letter-spacing: -0.01em;
        }

        .lyrics-modal-close {
            background: rgba(255,255,255,0.06);
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 0;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            width: 32px;
            height: 32px;
            flex-shrink: 0;
        }

        .lyrics-modal-close:hover {
            background: rgba(255,255,255,0.12);
            color: var(--text-primary);
            transform: rotate(90deg);
        }

        .lyrics-modal-close svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }

        .lyrics-modal-body {
            padding: 28px;
            overflow-y: auto;
            flex: 1;
        }

        /* Duplicates Modal */
        .duplicates-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 2000;
            animation: fadeIn 0.3s ease-out;
            overflow: hidden;
        }

        .duplicates-modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .duplicates-modal-content {
            background: var(--bg-secondary);
            border-radius: 16px;
            width: 100%;
            max-width: 900px;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            animation: slideUp 0.3s ease-out;
            border: 1px solid var(--border);
            overflow: hidden;
        }

        .duplicates-modal-header {
            padding: 25px 30px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
            flex-shrink: 0;
        }

        .duplicates-modal-header h2 {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--danger);
            margin: 0;
        }

        .duplicates-modal-close {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            width: 36px;
            height: 36px;
        }

        .duplicates-modal-close:hover {
            background: var(--bg-tertiary);
            color: var(--text-primary);
            transform: rotate(90deg);
        }

        .duplicates-modal-close svg {
            width: 24px;
            height: 24px;
            fill: currentColor;
        }

        .duplicates-modal-body {
            padding: 30px;
            overflow-y: auto;
            flex: 1;
            min-height: 0;
        }

        /* Custom scrollbar for duplicates modal */
        /* Les scrollbars sont maintenant globales, plus besoin de styles spécifiques */

        #duplicatesList {
            max-height: none;
            overflow-y: visible;
        }

        .duplicate-group {
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 16px;
            transition: all 0.2s ease;
        }

        .duplicate-group:hover {
            border-color: var(--accent);
            box-shadow: 0 2px 8px rgba(29, 185, 84, 0.1);
        }

        .duplicate-group-title {
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 16px;
            font-size: 1.1rem;
            padding-bottom: 12px;
            border-bottom: 2px solid var(--border);
        }

        .duplicate-item {
            display: flex;
            align-items: center;
            padding: 14px;
            background: var(--bg-secondary);
            border-radius: 8px;
            margin-bottom: 10px;
            gap: 14px;
            transition: all 0.2s ease;
            border: 1px solid transparent;
        }

        .duplicate-item:hover {
            background: var(--bg-hover);
            border-color: var(--border);
        }

        .duplicate-item:last-child {
            margin-bottom: 0;
        }

        .duplicate-item input[type="checkbox"] {
            width: 22px;
            height: 22px;
            cursor: pointer;
            accent-color: var(--danger);
            flex-shrink: 0;
        }

        .duplicate-item-info {
            flex: 1;
            min-width: 0;
        }

        .duplicate-item-title {
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 6px;
            font-size: 1rem;
        }

        .duplicate-item-details {
            font-size: 0.875rem;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .duplicate-item-actions {
            display: flex;
            gap: 8px;
            align-items: center;
            flex-shrink: 0;
        }

        .duplicate-play-btn,
        .duplicate-ignore-btn {
            padding: 8px 12px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.85rem;
            font-weight: 500;
            white-space: nowrap;
        }

        .duplicate-play-btn {
            background: var(--accent);
            color: white;
        }

        .duplicate-play-btn:hover {
            background: var(--accent-hover);
            transform: translateY(-1px);
        }

        .duplicate-ignore-btn {
            background: var(--bg-tertiary);
            color: var(--text-primary);
            border: 1px solid var(--border);
        }

        .duplicate-ignore-btn:hover {
            background: var(--bg-hover);
            border-color: var(--accent);
        }

        .duplicate-play-btn svg,
        .duplicate-ignore-btn svg {
            fill: currentColor;
        }

        .duplicates-modal-footer {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
            margin-top: 24px;
            padding-top: 20px;
            border-top: 1px solid var(--border);
            flex-shrink: 0;
        }

        .btn-secondary {
            background: var(--bg-tertiary);
            color: var(--text-primary);
            padding: 12px 24px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-secondary:hover {
            background: var(--bg-hover);
            border-color: var(--accent);
        }

        .btn-danger {
            background: var(--danger);
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-danger:hover {
            background: #e53e3e;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
        }

        .lyrics-content {
            color: var(--text-primary);
            font-size: 1rem;
            line-height: 2;
            white-space: pre-wrap;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            letter-spacing: 0.01em;
        }

        .lyrics-content.empty {
            text-align: center;
            color: var(--text-secondary);
            font-style: italic;
            padding: 48px 20px;
            font-size: 0.9rem;
        }

        .lyrics-loading {
            text-align: center;
            color: var(--text-secondary);
            padding: 48px 20px;
            font-size: 0.9rem;
        }

        @media (max-width: 768px) {
            .lyrics-modal-content {
                max-width: 100%;
                max-height: 100vh;
                border-radius: 0;
            }

            .lyrics-modal-header {
                padding: 20px;
            }

            .lyrics-modal-title {
                font-size: 1.4rem;
            }

            .lyrics-modal-body {
                padding: 20px;
            }

            .lyrics-content {
                font-size: 1rem;
            }
        }

        /* Genre Badge */
        .genre-badge {
            display: inline-block;
            padding: 0;
            background: transparent;
            color: var(--accent);
            border-radius: 0;
            font-size: 0.7rem;
            font-weight: 500;
            text-transform: none;
        }

        /* Multi-Select Genre */
        .genre-select-container {
            position: relative;
        }

        .genre-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
            min-height: 40px;
            padding: 8px;
            background: transparent;
            border: none;
            border-radius: 8px;
        }

        .genre-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: var(--accent);
            color: white;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            animation: fadeInUp 0.3s ease-out;
        }

        .genre-tag-remove {
            cursor: pointer;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease;
        }

        .genre-tag-remove:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .genre-tag-remove svg {
            width: 12px;
            height: 12px;
            fill: white;
        }

        .genre-select {
            width: 100%;
        }

        /* Icon Buttons */
        .icon-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            padding: 0;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            background: transparent;
        }

        .icon-btn svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .icon-btn-lyrics {
            color: var(--text-secondary);
        }

        .icon-btn-lyrics:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--accent);
            transform: scale(1.1);
        }

        /* Masquer l'icône "Paroles" partout */
        .icon-btn-lyrics {
            display: none !important;
        }

        .icon-btn-add {
            color: var(--accent);
        }

        .icon-btn-add:hover {
            background: rgba(29, 185, 84, 0.1);
            transform: scale(1.1);
        }

        .icon-btn-edit {
            color: var(--accent);
        }

        .icon-btn-edit:hover {
            background: rgba(29, 185, 84, 0.1);
            transform: scale(1.1);
        }

        .icon-btn-delete {
            color: var(--danger);
        }

        .icon-btn-delete:hover {
            background: rgba(226, 33, 52, 0.1);
            transform: scale(1.1);
        }

        .icon-btn-pin {
            color: var(--text-secondary);
        }

        .icon-btn-pin:hover {
            background: rgba(255, 215, 0, 0.1);
            transform: scale(1.1);
        }

        .icon-btn-pin.pinned {
            color: #ffd700;
        }

        .icon-btn-share {
            color: var(--accent);
        }

        .icon-btn-share:hover {
            background: rgba(29, 185, 84, 0.1);
            transform: scale(1.1);
        }

        .icon-btn-playlist {
            color: var(--accent);
        }

        .icon-btn-playlist:hover {
            background: rgba(29, 185, 84, 0.1);
            transform: scale(1.1);
        }

        .icon-btn-download {
            color: var(--text-primary);
        }

        .icon-btn-download:hover {
            color: var(--accent);
            background: rgba(29, 185, 84, 0.1);
            transform: scale(1.1);
        }

        .icon-btn-queue {
            color: var(--accent);
        }

        .icon-btn-queue:hover {
            background: rgba(29, 185, 84, 0.1);
            transform: scale(1.1);
        }

        .icon-btn-pin.pinned:hover {
            background: rgba(255, 215, 0, 0.2);
        }

        .icon-btn-play {
            background: var(--accent) !important;
            color: white !important;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3);
        }

        .icon-btn-play:hover {
            background: var(--accent-hover) !important;
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
        }

        .icon-btn-play svg {
            width: 22px;
            height: 22px;
            fill: white;
            margin-left: 2px; /* Ajustement visuel pour centrer l'icône play */
        }

        .icon-btn-play.playing {
            background: var(--danger) !important;
            box-shadow: 0 2px 8px rgba(226, 33, 52, 0.3);
        }

        .icon-btn-play.playing:hover {
            background: #d62839 !important;
            box-shadow: 0 4px 12px rgba(226, 33, 52, 0.4);
        }

        /* Bouton lecture désactivé pour visiteurs (grisé) */
        .icon-btn-play.disabled {
            opacity: 0.5;
            background: var(--bg-tertiary) !important;
            color: var(--text-secondary) !important;
            cursor: not-allowed;
        }
        .icon-btn-play.disabled:hover {
            transform: none;
            background: var(--bg-tertiary) !important;
        }

        /* Boutons playlist/file d'attente désactivés pour visiteurs (grisés) */
        .icon-btn-playlist.disabled,
        .icon-btn-queue.disabled {
            opacity: 0.5;
            background: var(--bg-tertiary) !important;
            color: var(--text-secondary) !important;
            cursor: not-allowed;
        }
        .icon-btn-playlist.disabled:hover,
        .icon-btn-queue.disabled:hover {
            transform: none;
            background: var(--bg-tertiary) !important;
        }
        .btn-playlist.disabled {
            opacity: 0.5;
            background: var(--bg-tertiary) !important;
            color: var(--text-secondary) !important;
            cursor: not-allowed;
        }
        .btn-playlist.disabled:hover {
            transform: none;
            box-shadow: none;
        }

        /* Améliorer le conteneur audio-player */
        .audio-player {
            width: auto;
            min-width: auto;
            background: transparent;
            border-radius: 0;
            padding: 0;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0;
            transition: all 0.3s ease;
            position: relative;
        }

        .audio-player:hover {
            background: transparent;
            border-color: transparent;
            box-shadow: none;
        }

        /* Scroll to Top Button */
        .scroll-to-top-btn {
            position: fixed;
            bottom: 80px;
            right: 20px;
            width: 48px;
            height: 48px;
            background: var(--accent);
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1001; /* Au-dessus du footer player (z-index: 1000) */
            box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
            transition: all 0.3s ease;
            opacity: 0;
            transform: translateY(20px);
        }

        /* Position par défaut (quand footer player inactif) */
        .scroll-to-top-btn {
            bottom: 20px;
        }

        .scroll-to-top-btn.show {
            display: flex;
            opacity: 1;
            transform: translateY(0);
        }

        .scroll-to-top-btn:hover {
            background: var(--accent-hover);
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(29, 185, 84, 0.5);
        }

        .scroll-to-top-btn:active {
            transform: translateY(-1px);
        }

        .scroll-to-top-btn svg {
            width: 24px;
            height: 24px;
            fill: currentColor;
        }

        /* Bouton flottant "Faire un don" */
        .donate-floating-btn {
            position: fixed;
            top: 20px;
            right: 20px;
            width: 48px;
            height: 48px;
            background: var(--accent);
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1001;
            box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
            transition: all 0.3s ease;
        }

        .donate-floating-btn:hover {
            background: var(--accent-hover);
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(29, 185, 84, 0.5);
        }

        .donate-floating-btn:active {
            transform: translateY(-1px);
        }

        .donate-floating-icon {
            width: 24px;
            height: 24px;
            fill: currentColor;
        }

        @media (max-width: 768px) {
            .donate-floating-btn {
                top: 12px;
                right: 12px;
                width: 44px;
                height: 44px;
            }

            .donate-floating-icon {
                width: 22px;
                height: 22px;
            }
        }

        /* Dot Navigation */
        .dot-nav {
            position: fixed;
            top: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 1200;
        }

        .dot-nav-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            position: relative;
        }

        .dot-nav-btn svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .dot-nav-btn:hover {
            background: var(--bg-hover);
            color: var(--accent);
            border-color: var(--accent);
            transform: translateY(-1px);
        }

        .dot-nav-btn.active {
            transform: scale(1.15);
            background: var(--accent);
            color: white;
            border-color: var(--accent);
            box-shadow: 0 6px 16px rgba(29, 185, 84, 0.4);
        }

        .dot-nav-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            background: var(--danger);
            color: white;
            border-radius: 10px;
            min-width: 18px;
            height: 18px;
            font-size: 0.7rem;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
            font-weight: 600;
            border: 2px solid var(--bg-secondary);
        }

        .dot-nav-label {
            position: absolute;
            right: 56px;
            top: 50%;
            transform: translateY(-50%) translateX(6px);
            background: var(--bg-tertiary);
            color: var(--text-primary);
            border: 1px solid var(--border);
            padding: 4px 8px;
            border-radius: 8px;
            font-size: 0.75rem;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: all 0.2s ease;
        }

        .dot-nav-btn:hover .dot-nav-label,
        .dot-nav-btn.show-label .dot-nav-label {
            opacity: 1;
            transform: translateY(-50%) translateX(0);
        }

        .dot-nav .pref-menu {
            position: relative;
        }

        .dot-nav .pref-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            padding: 0;
            gap: 0;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            color: var(--text-secondary);
        }

        .dot-nav .pref-btn:hover {
            background: var(--bg-hover);
            border-color: var(--accent);
            color: var(--accent);
        }

        .dot-nav .pref-dropdown {
            right: 56px;
            top: 50%;
            transform: translateY(-50%);
        }

        @media (max-width: 768px) {
            .dot-nav {
                top: 12px;
                right: 12px;
                gap: 8px;
            }

            .dot-nav-btn,
            .dot-nav .pref-btn {
                width: 40px;
                height: 40px;
            }

            .dot-nav-btn svg {
                width: 18px;
                height: 18px;
            }
        }

        /* Bouton flottant "File d'attente" */
        .queue-floating-btn {
            position: fixed;
            top: 80px;
            right: 20px;
            width: 48px;
            height: 48px;
            background: var(--accent);
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1100;
            box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
            transition: all 0.3s ease;
        }

        .queue-floating-btn:hover {
            background: var(--accent-hover);
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(29, 185, 84, 0.5);
        }

        .queue-floating-btn:active {
            transform: translateY(-1px);
        }

        .queue-floating-btn svg {
            width: 24px;
            height: 24px;
            fill: currentColor;
        }

        .queue-floating-btn .queue-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            background: var(--danger);
            color: white;
            border-radius: 10px;
            min-width: 18px;
            height: 18px;
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
            font-weight: 600;
            border: 2px solid var(--bg-secondary);
        }

        @media (max-width: 768px) {
            .queue-floating-btn {
                top: 68px;
                right: 12px;
                width: 44px;
                height: 44px;
            }

            .queue-floating-btn svg {
                width: 22px;
                height: 22px;
            }
        }

        /* Footer Player */
        .footer-player {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--bg-secondary);
            border-top: 1px solid var(--border);
            padding: 15px 20px;
            z-index: 1000;
            box-shadow: 0 -4px 20px var(--shadow);
            display: none;
            transition: background 0.5s ease;
        }

        .footer-player.active {
            display: block;
        }

        .footer-player-content {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .footer-player-info {
            display: flex;
            align-items: center;
            gap: 15px;
            min-width: 200px;
        }

        .footer-player-cover {
            width: 50px;
            height: 50px;
            background: var(--bg-tertiary);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
        }

        .footer-player-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .footer-player-details {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .footer-player-title-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
            width: 100%;
        }

        .footer-player-title {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
            min-width: 0;
        }

        .footer-player-artist {
            font-size: 0.85rem;
            color: var(--text-secondary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .footer-player-controls {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .footer-player-btn {
            background: transparent;
            border: none;
            color: var(--text-primary);
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

        .footer-player-btn:hover:not(:disabled) {
            background: var(--bg-hover);
        }

        .footer-player-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .footer-player-btn svg {
            width: 24px;
            height: 24px;
            fill: currentColor;
        }

        .footer-player-play {
            background: var(--accent);
            width: 40px;
            height: 40px;
        }

        .footer-player-play:hover {
            background: var(--accent-hover);
        }

        .footer-player-shuffle.active,
        .footer-player-repeat.active {
            color: var(--accent);
        }

        .footer-player-repeat {
            position: relative;
        }

        .footer-player-surprise {
            color: var(--text-secondary);
            transition: color 0.2s, transform 0.2s;
        }
        .footer-player-surprise:hover {
            color: var(--accent);
            transform: rotate(20deg) scale(1.15);
        }

        .footer-player-repeat.repeat-one {
            color: var(--accent);
        }

        .footer-player-repeat.repeat-one::after {
            content: '1';
            position: absolute;
            font-size: 0.55rem;
            font-weight: bold;
            bottom: 4px;
            right: 4px;
            background: var(--accent);
            color: white;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .footer-player-progress {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 10px;
            max-width: 500px;
        }

        .footer-player-time {
            font-size: 0.85rem;
            color: var(--text-secondary);
            min-width: 40px;
            text-align: center;
        }

        .footer-player-progress-bar-wrapper {
            flex: 1;
            height: 4px;
            background: var(--bg-tertiary);
            border-radius: 2px;
            cursor: pointer;
            position: relative;
        }

        .footer-player-progress-bar {
            height: 100%;
            background: var(--accent);
            border-radius: 2px;
            width: 0%;
            transition: width 0.1s;
        }

        .footer-player-volume {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

        .footer-player-volume svg {
            flex-shrink: 0;
        }

        .footer-player-volume input[type="range"] {
            -webkit-appearance: none;
            appearance: none;
            height: 4px;
            background: var(--bg-tertiary);
            border-radius: 2px;
            outline: none;
            width: 100px;
            flex-shrink: 0;
        }

        .footer-player-volume input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 12px;
            height: 12px;
            background: var(--accent);
            border-radius: 50%;
            cursor: pointer;
        }

        .footer-player-volume input[type="range"]::-moz-range-thumb {
            width: 12px;
            height: 12px;
            background: var(--accent);
            border-radius: 50%;
            cursor: pointer;
            border: none;
        }

        body {
            padding-bottom: 90px;
        }

        @media (max-width: 768px) {
            body {
                padding-bottom: 200px; /* Plus d'espace pour le footer player sur mobile (avec les nouveaux boutons) */
            }

            /* S'assurer que le footer player a assez de hauteur */
            .footer-player {
                min-height: auto;
                padding: 12px 10px;
            }

            .footer-player.active {
                display: flex;
                flex-direction: column;
            }

            .footer-player-info {
                min-width: 0;
                flex: 1;
            }

            .footer-player-details {
                min-width: 0;
            }

            .footer-player-title-row {
                gap: 10px;
            }

            .footer-player-title {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .footer-player-artist {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .footer-player-volume {
                gap: 6px;
            }

            .footer-player-volume input[type="range"] {
                width: 70px;
            }
        }

        /* File d'attente */
        .queue-panel {
            position: fixed;
            top: 140px;
            right: 20px;
            width: 350px;
            max-height: calc(100vh - 200px);
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
            z-index: 1101;
            display: none;
            flex-direction: column;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .queue-panel.show {
            display: flex;
        }

        .queue-panel-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--bg-tertiary);
        }

        .queue-panel-title {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .queue-panel-close {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            width: 28px;
            height: 28px;
            margin-left: 12px;
        }

        .queue-panel-close:hover {
            background: var(--bg-hover);
            color: var(--text-primary);
        }

        .queue-panel-close svg {
            width: 20px;
            height: 20px;
        }

        .queue-panel-actions {
            display: flex;
            gap: 8px;
        }

        .queue-panel-btn {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-secondary);
            padding: 6px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.85rem;
            transition: all 0.2s ease;
        }

        .queue-panel-btn:hover {
            background: var(--bg-hover);
            color: var(--text-primary);
            border-color: var(--accent);
        }

        .queue-panel-play {
            background: var(--accent) !important;
            color: white !important;
            border-color: var(--accent) !important;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .queue-panel-play:hover {
            background: var(--accent-hover) !important;
            border-color: var(--accent-hover) !important;
        }

        .queue-panel-body {
            flex: 1;
            overflow-y: auto;
            padding: 8px;
        }

        .queue-panel-empty {
            padding: 40px 20px;
            text-align: center;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .queue-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px;
            border-radius: 8px;
            margin-bottom: 4px;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        .queue-item:hover {
            background: var(--bg-hover);
        }

        .queue-item.playing {
            background: rgba(29, 185, 84, 0.1);
            border-left: 3px solid var(--accent);
        }

        .queue-item-info {
            flex: 1;
            min-width: 0;
        }

        .queue-item-title {
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .queue-item-album {
            font-size: 0.8rem;
            color: var(--text-secondary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .queue-item-remove {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            opacity: 0;
        }

        .queue-item:hover .queue-item-remove {
            opacity: 1;
        }

        .queue-item-remove:hover {
            background: var(--danger);
            color: white;
        }

        @media (max-width: 768px) {
            .queue-panel {
                top: 130px;
                right: 10px;
                left: 10px;
                width: auto;
                max-height: 400px;
            }
        }

        /* Footer Principal */
        .site-footer {
            background: var(--bg-secondary);
            border-top: 1px solid var(--border);
            padding: 30px 20px;
            margin-top: 60px;
            text-align: center;
            color: var(--text-secondary);
            position: relative;
            z-index: 1;
        }

        .site-footer-content {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 20px;
            align-items: center;
        }

        .site-footer-copyright {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin: 0;
        }

        .site-footer-link {
            color: var(--accent);
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.2s ease;
            cursor: pointer;
        }

        .site-footer-link:hover {
            color: var(--accent-hover);
            text-decoration: underline;
        }

        @media (max-width: 768px) {
            .site-footer {
                padding: 12px 10px;
                margin-top: 30px;
            }

            .site-footer-content {
                gap: 10px;
            }

            .site-footer-copyright {
                font-size: 0.8rem;
            }

            .site-footer-link {
                font-size: 0.8rem;
            }
        }

        /* Modal Mentions Légales */
        .legal-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            overflow-y: auto;
        }

        .legal-modal.show {
            display: flex;
        }

        .legal-modal-content {
            background: var(--bg-secondary);
            border-radius: 16px;
            padding: 0;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            animation: slideUp 0.3s ease-out;
            border: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            max-width: 800px;
            width: 90%;
            max-height: 90vh;
        }

        .legal-modal-header {
            padding: 20px 30px;
            border-bottom: 1px solid var(--border);
            background: var(--bg-secondary);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .legal-modal-header h2 {
            margin: 0;
            color: var(--text-primary);
            font-size: 1.5rem;
        }

        .legal-modal-close {
            background: none;
            border: none;
            font-size: 2rem;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            transition: all 0.2s ease;
        }

        .legal-modal-close:hover {
            background: var(--bg-tertiary);
            color: var(--text-primary);
        }

        .legal-modal-body {
            padding: 30px;
            overflow-y: auto;
            flex: 1;
            background: var(--bg-secondary);
        }

        .legal-modal-body h3 {
            color: var(--text-primary);
            font-size: 1.2rem;
            margin-top: 25px;
            margin-bottom: 10px;
        }

        .legal-modal-body h3:first-child {
            margin-top: 0;
        }

        .legal-modal-body p {
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 15px;
        }

        .legal-modal-body strong {
            color: var(--text-primary);
        }

        .legal-modal-body a {
            color: var(--accent);
            text-decoration: none;
        }

        .legal-modal-body a:hover {
            text-decoration: underline;
        }

        @media (max-width: 768px) {
            .legal-modal-content {
                max-width: 95%;
                max-height: 95vh;
            }

            .legal-modal-header {
                padding: 15px 20px;
            }

            .legal-modal-header h2 {
                font-size: 1.3rem;
            }

            .legal-modal-body {
                padding: 20px;
            }

            .legal-modal-body h3 {
                font-size: 1.1rem;
            }
        }

        /* Bouton démarche artistique */
        .artistic-approach-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 8px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            transition: all 0.2s ease;
            margin-left: 10px;
        }

        .artistic-approach-btn:hover {
            background: var(--bg-tertiary);
            color: var(--accent);
        }

        .artistic-approach-btn svg {
            width: 24px;
            height: 24px;
            fill: currentColor;
        }

        /* Modal démarche artistique */
        .artistic-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            overflow-y: auto;
        }

        .artistic-modal.show {
            display: flex;
        }

        .artistic-modal-content {
            background: var(--bg-secondary);
            border-radius: 16px;
            padding: 0;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            animation: slideUp 0.3s ease-out;
            border: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            max-width: 800px;
            width: 90%;
            max-height: 90vh;
        }

        .artistic-modal-header {
            padding: 20px 30px;
            border-bottom: 1px solid var(--border);
            background: var(--bg-secondary);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .artistic-modal-header h2 {
            margin: 0;
            color: var(--text-primary);
            font-size: 1.5rem;
        }

        .artistic-modal-close {
            background: none;
            border: none;
            font-size: 2rem;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            transition: all 0.2s ease;
        }

        .artistic-modal-close:hover {
            background: var(--bg-tertiary);
            color: var(--text-primary);
        }

        .artistic-modal-body {
            padding: 30px;
            overflow-y: auto;
            flex: 1;
            background: var(--bg-secondary);
        }

        .artistic-modal-body p {
            color: var(--text-secondary);
            line-height: 1.8;
            margin-bottom: 15px;
        }

        .artistic-modal-body strong {
            color: var(--text-primary);
        }

        .artistic-modal-body ul {
            color: var(--text-secondary);
            line-height: 1.8;
            margin-bottom: 15px;
            padding-left: 20px;
        }

        .artistic-modal-body li {
            margin-bottom: 8px;
        }

        @media (max-width: 768px) {
            .artistic-modal-content {
                max-width: 95%;
                max-height: 95vh;
            }

            .artistic-modal-header {
                padding: 15px 20px;
            }

            .artistic-modal-header h2 {
                font-size: 1.3rem;
            }

            .artistic-modal-body {
                padding: 20px;
            }

            .artistic-approach-btn {
                margin-left: 5px;
            }
        }

        /* Soft panels + hiérarchie allégée */
        .album-card,
        .song-card,
        .stat-card,
        .playlist-card,
        .filters-panel,
        .queue-panel,
        .login-modal-content,
        .share-modal-content,
        .lyrics-modal-content,
        .modal-content,
        .artistic-modal-content,
        .pref-dropdown,
        .similar-album-card {
            background: var(--panel-bg);
            border: 1px solid var(--panel-border);
            box-shadow: var(--shadow-soft);
        }

        .pref-dropdown {
            background: var(--bg-secondary);
        }

        .queue-panel {
            background: var(--bg-secondary);
        }

        .album-card:hover,
        .song-card:hover,
        .playlist-card:hover,
        .similar-album-card:hover {
            box-shadow: var(--shadow-soft);
        }

        .album-card-title,
        .song-title,
        .queue-panel-title,
        .player-title,
        .stat-value,
        .header-stat-value {
            font-weight: 700;
            letter-spacing: 0.2px;
        }

        .album-card-info,
        .song-details,
        .song-detail-item,
        .player-album-info,
        .footer-player-artist,
        .header-stat-label,
        .stat-label,
        .queue-item-album {
            color: var(--text-muted);
        }

        .genre-badge {
            padding: 2px 6px;
            border-radius: 999px;
            border: 1px solid var(--panel-border);
            background: rgba(255, 255, 255, 0.02);
            color: var(--text-secondary);
            opacity: 0.75;
        }

        /* Bandeau hors ligne */
        .offline-banner {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 2499;
            background: #374151;
            color: #f3f4f6;
            padding: 8px 16px;
            font-size: 0.875rem;
            text-align: center;
            display: none;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }
        .offline-banner.show {
            display: flex;
        }
        .offline-banner-icon {
            font-size: 1rem;
        }

        /* Bandeau cookies */
        #cookieBanner {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 2500;
            background: var(--bg-secondary);
            border-top: 1px solid var(--border);
            padding: 16px 24px;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
            display: none;
        }
        #cookieBanner.show {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            animation: slideUp 0.3s ease-out;
        }
        .cookie-banner-text {
            flex: 1;
            min-width: 200px;
            color: var(--text-primary);
            font-size: 0.95rem;
            line-height: 1.4;
        }
        .cookie-banner-text a {
            color: var(--accent);
            text-decoration: underline;
            cursor: pointer;
        }
        .cookie-banner-text a:hover {
            color: var(--accent-hover);
        }
        .cookie-banner-buttons {
            display: flex;
            gap: 12px;
            flex-shrink: 0;
        }
        .cookie-banner-btn {
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
        }
        .cookie-banner-btn-accept {
            background: var(--accent);
            color: white;
        }
        .cookie-banner-btn-accept:hover {
            background: var(--accent-hover);
            transform: translateY(-1px);
        }
        .cookie-banner-btn-more {
            background: transparent;
            color: var(--text-secondary);
            border: 1px solid var(--border);
        }
        .cookie-banner-btn-more:hover {
            background: var(--bg-tertiary);
            color: var(--text-primary);
        }

        /* ============================================
           AUTH VISITEUR — Modal + Avatar + Menu
           ============================================ */

        /* Modal visiteur : contenu plus large que l'admin */
        .user-auth-modal-content {
            position: relative;
            min-width: 340px;
            max-width: 420px;
            width: 90vw;
        }

        /* Onglets Connexion / Inscription */
        .user-auth-tabs {
            display: flex;
            gap: 0;
            margin-bottom: 24px;
            border-bottom: 1px solid var(--border);
        }
        .user-auth-tab {
            flex: 1;
            background: none;
            border: none;
            border-bottom: 2px solid transparent;
            color: var(--text-secondary);
            font-size: 0.95rem;
            font-weight: 500;
            padding: 10px 0 12px;
            cursor: pointer;
            transition: color 0.2s, border-color 0.2s;
            margin-bottom: -1px;
        }
        .user-auth-tab.active {
            color: var(--accent);
            border-bottom-color: var(--accent);
        }
        .user-auth-tab:hover:not(.active) { color: var(--text-primary); }

        /* Bouton Google */
        .btn-google {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            padding: 11px 16px;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: var(--bg-tertiary);
            color: var(--text-primary);
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s, border-color 0.2s;
        }
        .btn-google:hover {
            background: var(--bg-hover);
            border-color: rgba(255,255,255,0.2);
        }

        /* Séparateur "ou" */
        .user-auth-divider {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 18px 0;
            color: var(--text-secondary);
            font-size: 0.8rem;
        }
        .user-auth-divider::before,
        .user-auth-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border);
        }

        /* Bouton pleine largeur */
        .btn-full { width: 100%; margin-top: 8px; }

        /* Message succès */
        .user-auth-success {
            background: rgba(29,185,84,0.15);
            border: 1px solid rgba(29,185,84,0.3);
            color: var(--accent);
            padding: 12px;
            border-radius: 8px;
            font-size: 0.9rem;
            line-height: 1.5;
            margin-bottom: 16px;
        }

        /* Lien mot de passe oublié */
        .user-auth-forgot {
            display: block;
            width: 100%;
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 0.82rem;
            cursor: pointer;
            margin-top: 10px;
            text-align: center;
            text-decoration: underline;
            transition: color 0.2s;
        }
        .user-auth-forgot:hover { color: var(--text-primary); }

        /* Bouton fermer le modal */
        .user-auth-close {
            position: absolute;
            top: 14px;
            right: 16px;
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 1.4rem;
            cursor: pointer;
            line-height: 1;
            padding: 2px 6px;
            border-radius: 4px;
            transition: color 0.2s, background 0.2s;
        }
        .user-auth-close:hover { color: var(--text-primary); background: var(--bg-tertiary); }

        /* ---- Avatar connecté ---- */
        .user-avatar-wrap {
            position: relative;
        }
        .user-avatar-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--accent);
            color: #fff;
            font-weight: 700;
            font-size: 0.95rem;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: opacity 0.2s, transform 0.2s;
        }
        .user-avatar-btn:hover { opacity: 0.85; transform: scale(1.05); }

        /* Menu déroulant */
        .user-avatar-menu {
            display: none;
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 200px;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 12px 0 8px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.4);
            z-index: 4000;
            animation: fadeIn 0.15s ease-out;
        }
        .user-avatar-menu.open { display: block; }
        .user-avatar-menu-name {
            padding: 0 16px 2px;
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .user-avatar-menu-email {
            padding: 0 16px 10px;
            font-size: 0.78rem;
            color: var(--text-secondary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .user-avatar-menu-sep {
            border: none;
            border-top: 1px solid var(--border);
            margin: 0 0 6px;
        }
        .user-avatar-menu-item {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            padding: 9px 16px;
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 0.88rem;
            cursor: pointer;
            transition: background 0.15s;
            text-align: left;
        }
        .user-avatar-menu-item:hover { background: var(--bg-tertiary); }

        /* Mobile */
        @media (max-width: 600px) {
            .user-auth-modal-content { min-width: unset; }
            .user-avatar-menu { right: -8px; }
        }

        /* Bouton danger dans le menu avatar */
        .user-avatar-menu-item--danger {
            color: var(--danger) !important;
        }
        .user-avatar-menu-item--danger:hover {
            background: rgba(226, 33, 52, 0.12) !important;
        }

        /* ============================================
           BOUTON LIKE ❤️
           ============================================ */
        .like-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-secondary);
            transition: color 0.2s, transform 0.15s;
            padding: 0;
            flex-shrink: 0;
        }
        .like-btn svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }
        .like-btn:hover {
            color: #e22134;
            transform: scale(1.2);
        }
        .like-btn.liked {
            color: #e22134;
        }
        .like-btn.liked:hover {
            transform: scale(1.1);
        }

        /* ============================================
           RESPONSIVE MOBILE — Refonte complète
           ============================================ */

        @media (max-width: 768px) {

            /* ── Carousels ── */
            .hero-carousel {
                margin: 0 0 24px 0;
            }

            .hero-carousel-header {
                margin-bottom: 12px;
                gap: 6px;
                padding-right: 60px; /* éviter les boutons flottants */
            }

            .hero-carousel-title {
                font-size: 0.65rem;
                letter-spacing: 0.1em;
            }

            .hero-carousel-subtitle {
                font-size: 0.7rem;
            }

            .hero-carousel-controls {
                display: none; /* masquer les boutons nav sur mobile — scroll tactile suffit */
            }

            .hero-carousel-card {
                min-width: 140px;
                width: 140px;
                border-radius: 10px;
            }

            .hero-carousel-card-title {
                font-size: 0.76rem;
                padding: 8px 10px 4px;
            }

            .hero-carousel-track {
                gap: 10px;
                padding: 4px 2px 10px;
            }

            .hero-carousel-viewport {
                mask-image: linear-gradient(to right, black 85%, transparent 100%);
                -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
            }

            /* Featured section */
            .hero-featured-header {
                padding-right: 56px;
            }

            .hero-featured-title {
                font-size: 0.65rem;
            }

            /* ── Like button — plus visible sur mobile ── */
            .like-btn {
                width: 36px;
                height: 36px;
                background: rgba(0,0,0,0.4);
                border-radius: 50%;
            }

            .like-btn svg {
                width: 18px;
                height: 18px;
            }

            .like-btn.liked {
                background: rgba(226, 33, 52, 0.15);
            }

            /* ── Album cards — vue grille ── */
            .album-card-actions {
                display: flex;
                align-items: center;
                gap: 4px;
                flex-wrap: nowrap;
                overflow: visible;
            }

            .album-card-actions .like-btn {
                display: inline-flex !important;
                visibility: visible !important;
                opacity: 1 !important;
            }

            /* ── Song list — like toujours visible ── */
            .song-actions .like-btn,
            .song-item .like-btn,
            .song-row .like-btn {
                display: inline-flex !important;
                visibility: visible !important;
                opacity: 1 !important;
            }

            /* ── Boutons flottants — décalage pour ne pas gêner ── */
            .floating-buttons,
            .fab-container,
            [class*="floating"] {
                right: 8px;
            }

            /* ── Badge rang ── */
            .carousel-rank-badge {
                width: 26px;
                height: 26px;
                font-size: 10px;
            }

            .carousel-play-count {
                font-size: 0.68rem;
                padding: 0 10px 8px;
            }
        }

        @media (max-width: 480px) {

            .hero-carousel-card {
                min-width: 130px;
                width: 130px;
            }

            .hero-carousel-title {
                font-size: 0.62rem;
            }

            /* Empêcher le titre de passer sur 2 lignes */
            .hero-carousel-header {
                flex-wrap: nowrap;
                overflow: hidden;
            }

            .hero-carousel-subtitle {
                display: none; /* trop serré sur petit écran */
            }
        }

        /* ===================== RADIO SONGVAULT ===================== */
        .radio-banner {
            margin: 0 0 24px 0;
            padding: 0 16px;
        }
        .radio-banner-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(135deg, #2d0a4e 0%, #6b0f6e 50%, #c0157a 100%);
            border: 1px solid #a020a0;
            border-radius: 14px;
            padding: 16px 20px;
            gap: 16px;
        }
        .radio-banner-info {
            display: flex;
            align-items: center;
            gap: 14px;
        }
        .radio-banner-icon {
            font-size: 2rem;
            line-height: 1;
        }
        .radio-banner-title {
            color: var(--text-primary);
            font-size: 1rem;
            font-weight: 700;
        }
        .radio-banner-subtitle {
            color: var(--text-secondary);
            font-size: 0.8rem;
            margin-top: 2px;
        }
        .radio-banner-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, #e0196e, #ff6b35);
            color: #fff;
            border: none;
            border-radius: 24px;
            padding: 10px 20px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            transition: opacity 0.2s, transform 0.2s;
            flex-shrink: 0;
        }
        .radio-banner-btn:hover {
            opacity: 0.85;
            transform: scale(1.03);
        }
        .radio-banner-btn.active {
            background: linear-gradient(135deg, #7b0d7b, #c0157a);
        }
        .radio-banner-btn.active svg path {
            d: path("M6 19h4V5H6v14zm8-14v14h4V5h-4z");
        }
        @media (max-width: 480px) {
            .radio-banner-content {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }
            .radio-banner-btn {
                width: 100%;
                justify-content: center;
            }
        }

        /* ===================== TITRE DU JOUR ===================== */
        .song-of-day-bar {
            display: flex;
            align-items: center;
            gap: 14px;
            border-top: 1px solid rgba(255,255,255,0.15);
            margin-top: 12px;
            padding-top: 12px;
            flex-wrap: wrap;
        }
        .song-of-day-label {
            color: #ffd700;
            font-size: 0.8rem;
            font-weight: 700;
            white-space: nowrap;
        }
        .song-of-day-info {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            min-width: 0;
        }
        .song-of-day-details {
            overflow: hidden;
        }
        .song-of-day-title {
            color: #fff;
            font-size: 0.9rem;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .song-of-day-album {
            color: rgba(255,255,255,0.6);
            font-size: 0.75rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .song-of-day-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            background: rgba(255,255,255,0.15);
            color: #fff;
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: 20px;
            padding: 7px 16px;
            font-size: 0.82rem;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            transition: background 0.2s;
            flex-shrink: 0;
        }
        .song-of-day-btn:hover {
            background: rgba(255,255,255,0.25);
        }
        .song-of-day-btn.locked {
            opacity: 0.7;
            cursor: default;
        }
        @media (max-width: 480px) {
            .song-of-day-bar {
                flex-wrap: wrap;
            }
            .song-of-day-btn {
                width: 100%;
                justify-content: center;
            }
        }

        /* ===================== SV SONG ROWS ===================== */
        .sv-song-row {
            display: grid;
            grid-template-columns: 40px 1fr auto auto;
            align-items: center;
            gap: 12px;
            padding: 8px 12px;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.15s;
            min-height: 52px;
        }
        .sv-song-row:hover {
            background: rgba(255,255,255,0.07);
        }

        /* Numéro / bouton play */
        .sv-song-num {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            position: relative;
        }
        .sv-song-index {
            color: var(--text-secondary);
            font-size: 0.95rem;
            transition: opacity 0.15s;
        }
        .sv-song-play-btn {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            color: var(--text-primary);
            width: 32px;
            height: 32px;
            align-items: center;
            justify-content: center;
        }
        .sv-song-play-btn svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }
        .sv-song-row:hover .sv-song-index { opacity: 0; display: none; }
        .sv-song-row:hover .sv-song-play-btn { display: flex; }

        /* Titre + année */
        .sv-song-main {
            overflow: hidden;
        }
        .sv-song-title {
            color: var(--text-primary);
            font-size: 0.95rem;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .sv-song-year {
            color: var(--text-secondary);
            font-size: 0.78rem;
            margin-top: 2px;
        }
        .sv-song-duration {
            color: var(--text-secondary);
            font-size: 0.85rem;
            min-width: 36px;
            text-align: right;
            padding-right: 8px;
        }

        /* Actions (hover uniquement) */
        .sv-song-actions {
            display: flex;
            align-items: center;
            gap: 4px;
            opacity: 0;
            transition: opacity 0.15s;
        }
        .sv-song-row:hover .sv-song-actions { opacity: 1; }

        .sv-song-action-btn {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-secondary);
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: color 0.15s, background 0.15s;
            padding: 0;
        }
        .sv-song-action-btn svg {
            width: 17px;
            height: 17px;
            fill: currentColor;
        }
        .sv-song-action-btn:hover {
            color: var(--text-primary);
            background: rgba(255,255,255,0.1);
        }
        .sv-song-action-btn.disabled {
            opacity: 0.4;
            cursor: default;
        }

        /* Like */
        .sv-song-like {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-secondary);
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: color 0.15s;
            padding: 0;
        }
        .sv-song-like svg {
            width: 17px;
            height: 17px;
            fill: currentColor;
        }
        .sv-song-like:hover { color: var(--accent); }
        .sv-song-like.liked { color: var(--accent); opacity: 1 !important; }

        /* Mobile */
        @media (max-width: 768px) {
            .sv-song-actions { opacity: 1; }
            .sv-song-row { padding: 8px 6px; gap: 8px; }
            .sv-song-action-btn { width: 28px; height: 28px; }
        }

        /* ===================== ALBUM HEADER BUTTONS ===================== */
        .album-detail-header-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 16px;
        }
        .ah-btn {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            background: rgba(255,255,255,0.1);
            color: var(--text-primary);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 24px;
            padding: 9px 20px;
            font-size: 0.88rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s, border-color 0.2s;
            white-space: nowrap;
        }
        .ah-btn svg { fill: currentColor; flex-shrink: 0; }
        .ah-btn:hover {
            background: rgba(255,255,255,0.2);
            border-color: rgba(255,255,255,0.4);
        }
        .ah-btn.disabled {
            opacity: 0.5;
            cursor: default;
        }
        .ah-btn-primary {
            background: var(--accent);
            border-color: var(--accent);
            color: #fff;
        }
        .ah-btn-primary:hover {
            background: var(--accent);
            opacity: 0.85;
            border-color: var(--accent);
        }
        @media (max-width: 480px) {
            .ah-btn { padding: 8px 14px; font-size: 0.82rem; }
        }

        /* ===================== ALBUM CARD OVERLAY ===================== */
        .album-card {
            cursor: pointer;
            transition: transform 0.2s;
        }
        .album-card:hover {
            transform: translateY(-3px);
        }
        .album-image-wrapper {
            position: relative;
            border-radius: 10px;
            overflow: hidden;
        }
        .album-card-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.45);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.2s;
            border-radius: 10px;
        }
        .album-image-wrapper:hover .album-card-overlay {
            opacity: 1;
        }
        .album-card-play-btn {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: var(--accent);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 20px rgba(0,0,0,0.5);
            transform: scale(0.85);
            transition: transform 0.2s;
        }
        .album-card-play-btn:hover {
            transform: scale(1) !important;
        }
        .album-image-wrapper:hover .album-card-play-btn {
            transform: scale(1);
        }
        .album-card-play-btn svg {
            width: 24px;
            height: 24px;
            fill: #fff;
            margin-left: 3px;
        }
        .album-card-play-btn.disabled {
            background: rgba(255,255,255,0.3);
        }
        .album-card-bottom {
            padding: 8px 2px 4px;
        }
        .album-card-footer {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-top: 8px;
            opacity: 0;
            transition: opacity 0.2s;
        }
        .album-card:hover .album-card-footer {
            opacity: 1;
        }
        @media (max-width: 768px) {
            .album-card-footer { opacity: 1; }
            .album-card-overlay { opacity: 1; background: rgba(0,0,0,0.25); }
        }

        /* ===================== PAGE PROFIL ===================== */
        .profile-container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 24px 16px 60px;
            display: flex;
            flex-direction: column;
            gap: 40px;
        }

        /* En-tête */
        .profile-header {
            display: flex;
            align-items: flex-start;
            gap: 32px;
            background: rgba(255,255,255,0.04);
            border-radius: 20px;
            padding: 32px;
            border: 1px solid rgba(255,255,255,0.07);
        }
        .profile-avatar {
            width: 96px;
            height: 96px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent), #1db954);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.4rem;
            font-weight: 700;
            color: #fff;
            flex-shrink: 0;
            box-shadow: 0 4px 24px rgba(0,0,0,0.4);
        }
        .profile-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .profile-name {
            font-size: 1.8rem;
            font-weight: 700;
            margin: 0;
        }
        .profile-email {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }
        .profile-since {
            color: var(--text-secondary);
            font-size: 0.85rem;
            margin-bottom: 8px;
        }
        .profile-stats {
            display: flex;
            gap: 32px;
            flex-wrap: wrap;
            margin-top: 8px;
        }
        .profile-stat {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .profile-stat-value {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--accent);
        }
        .profile-stat-label {
            font-size: 0.78rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* Sections */
        .profile-section {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .profile-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .profile-section-title {
            font-size: 1.15rem;
            font-weight: 700;
            margin: 0;
        }
        .profile-empty {
            color: var(--text-secondary);
            font-size: 0.9rem;
            padding: 16px 0;
        }

        /* Playlists grille */
        .profile-playlists-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 16px;
        }
        .profile-playlist-card {
            background: rgba(255,255,255,0.05);
            border-radius: 14px;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.2s, background 0.2s;
            border: 1px solid rgba(255,255,255,0.07);
        }
        .profile-playlist-card:hover {
            transform: translateY(-3px);
            background: rgba(255,255,255,0.09);
        }
        .profile-playlist-mosaic {
            width: 100%;
            aspect-ratio: 1;
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: 1fr 1fr;
            background: #1a1a1a;
            overflow: hidden;
        }
        .profile-playlist-mosaic img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .profile-playlist-mosaic-single {
            width: 100%;
            aspect-ratio: 1;
            background: linear-gradient(135deg, #1a1a2e, #2d1b4e);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
        }
        .profile-playlist-info {
            padding: 12px;
        }
        .profile-playlist-name {
            font-weight: 600;
            font-size: 0.95rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .profile-playlist-meta {
            color: var(--text-secondary);
            font-size: 0.8rem;
            margin-top: 3px;
        }
        .profile-playlist-actions {
            display: flex;
            gap: 6px;
            margin-top: 10px;
        }

        /* Albums likés scroll horizontal */
        .profile-albums-scroll {
            display: flex;
            gap: 14px;
            overflow-x: auto;
            padding-bottom: 8px;
            scrollbar-width: thin;
        }
        .profile-album-mini {
            flex-shrink: 0;
            width: 130px;
            cursor: pointer;
            transition: transform 0.2s;
        }
        .profile-album-mini:hover { transform: translateY(-3px); }
        .profile-album-mini img {
            width: 130px;
            height: 130px;
            object-fit: cover;
            border-radius: 10px;
            display: block;
        }
        .profile-album-mini-title {
            font-size: 0.82rem;
            font-weight: 600;
            margin-top: 6px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Titres likés & historique */
        .profile-songs-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .profile-song-row {
            display: grid;
            grid-template-columns: 40px 1fr auto auto;
            align-items: center;
            gap: 12px;
            padding: 8px 12px;
            border-radius: 8px;
            transition: background 0.15s;
            cursor: pointer;
        }
        .profile-song-row:hover { background: rgba(255,255,255,0.07); }
        .profile-song-num {
            color: var(--text-secondary);
            font-size: 0.9rem;
            text-align: center;
        }
        .profile-song-main { overflow: hidden; }
        .profile-song-title {
            font-weight: 600;
            font-size: 0.92rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .profile-song-album {
            color: var(--text-secondary);
            font-size: 0.8rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .profile-song-duration {
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

        @media (max-width: 768px) {
            .profile-header { flex-direction: column; align-items: center; text-align: center; padding: 24px 16px; }
            .profile-stats { justify-content: center; gap: 20px; }
            .profile-playlists-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
        }

        /* ===================== MODAL PROFIL PLEIN ÉCRAN ===================== */
        .profile-modal {
            position: fixed;
            inset: 0;
            z-index: 1500;
            background: var(--bg-primary);
            display: flex;
            flex-direction: column;
            opacity: 0;
            transform: translateY(40px) scale(0.98);
            pointer-events: none;
            transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
            /* Laisser le player visible en bas */
            bottom: 0;
            overflow: hidden;
        }
        .profile-modal.open {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: all;
        }

        .profile-modal-inner {
            display: flex;
            flex-direction: column;
            height: 100%;
            /* Respecter la hauteur du player footer (~90px) */
            padding-bottom: var(--player-height, 90px);
        }

        /* Header avec dégradé couleur avatar */
        .profile-modal-header {
            position: relative;
            flex-shrink: 0;
            overflow: hidden;
        }
        .profile-modal-header-bg {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, #1db954 0%, #191414 100%);
            opacity: 0.85;
            transition: background 0.5s;
        }
        .profile-modal-header-content {
            position: relative;
            z-index: 1;
            display: flex;
            align-items: flex-start;
            gap: 28px;
            padding: 40px 40px 32px;
            max-width: 1100px;
            margin: 0 auto;
            width: 100%;
            box-sizing: border-box;
        }
        .profile-modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255,255,255,0.15);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
            backdrop-filter: blur(4px);
        }
        .profile-modal-close:hover { background: rgba(255,255,255,0.28); }
        .profile-modal-close svg {
            width: 20px;
            height: 20px;
            fill: #fff;
        }

        /* Body scrollable */
        .profile-modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 32px 40px;
            max-width: 1100px;
            margin: 0 auto;
            width: 100%;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            gap: 40px;
        }

        /* Avatar plus grand dans le modal */
        .profile-modal .profile-avatar {
            width: 110px;
            height: 110px;
            font-size: 2.8rem;
            box-shadow: 0 8px 32px rgba(0,0,0,0.5);
            border: 3px solid rgba(255,255,255,0.2);
        }
        .profile-modal .profile-name {
            font-size: 2rem;
            text-shadow: 0 2px 8px rgba(0,0,0,0.4);
        }
        .profile-modal .profile-email,
        .profile-modal .profile-since {
            color: rgba(255,255,255,0.75);
        }
        .profile-modal .profile-stat-value { color: #fff; }
        .profile-modal .profile-stat-label { color: rgba(255,255,255,0.6); }

        @media (max-width: 768px) {
            .profile-modal-header-content {
                flex-direction: column;
                align-items: center;
                text-align: center;
                padding: 32px 20px 24px;
            }
            .profile-modal-body { padding: 20px 16px; }
            .profile-modal .profile-stats { justify-content: center; }
        }
