/* ============================================
   MyPlaylist - Dark Theme (Spotify/SoundCloud Style)
   ============================================ */

:root {
    /* Colors - Dark Theme (Enhanced) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-tertiary: #1a1a1a;
    --bg-card: #181818;
    --bg-hover: #252525;
    --bg-glass: rgba(24, 24, 24, 0.7);
    
    /* Accent Colors (Enhanced gradients) */
    --accent-primary: #DC3545;
    --accent-primary-hover: #E63946;
    --accent-primary-light: rgba(220, 53, 69, 0.1);
    --accent-secondary: #ff5500;
    --accent-gradient: linear-gradient(135deg, #DC3545 0%, #E63946 50%, #ff6b6b 100%);
    
    /* Text Colors (Enhanced contrast) */
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-tertiary: #8a8a8a;
    --text-muted: #6a6a6a;
    
    /* Shadows (Enhanced depth) */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(220, 53, 69, 0.3);
    
    /* Legacy colors for compatibility */
    --color-primary: #DC3545;
    --color-primary-hover: #E63946;
    
    /* Glassmorphism */
    --glass-bg: rgba(24, 24, 24, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

*:focus {
    outline: none;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    animation: fadeIn 0.5s ease-in;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ajuster le padding du body pour éviter que le contenu soit caché par le lecteur */
/* S'applique uniquement aux pages avec le lecteur global (pas index.html) */
body:has(#global-player:not(.collapsed)) {
    padding-bottom: 0;
    overflow: hidden;
}

body:has(#global-player.collapsed) {
    padding-bottom: 70px;
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(220, 53, 69, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(220, 53, 69, 0.6);
    }
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    overflow: visible;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    padding: 24px 32px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: visible;
    z-index: 10;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.1), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

header:hover::before {
    left: 100%;
}

header:hover {
    box-shadow: var(--shadow-lg), 0 0 30px rgba(220, 53, 69, 0.15);
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-card) 100%);
    border-color: rgba(220, 53, 69, 0.2);
    transform: translateY(-2px);
}

header h1 {
    color: var(--accent-primary);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 20px rgba(220, 53, 69, 0.3);
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 10;
}

.user-info span {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Menu dropdown utilisateur */
.user-menu-container {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.btn-profile-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-profile-menu:hover {
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-card) 100%);
    border-color: rgba(220, 53, 69, 0.3);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    transform: translateY(-1px);
}

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

.btn-profile-menu .header-username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.btn-profile-menu .profile-icon {
    font-size: 18px;
    opacity: 0.9;
}

.btn-profile-menu .dropdown-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 2px;
    opacity: 0.7;
}

.btn-profile-menu.active {
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-card) 100%);
    border-color: rgba(220, 53, 69, 0.4);
}

.btn-profile-menu.active .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(220, 53, 69, 0.1);
    min-width: 240px;
    z-index: 10000;
    overflow: hidden;
    animation: dropdownFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* En-tête du menu avec avatar */
.user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(220, 53, 69, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-menu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.user-menu-profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
}

.user-menu-avatar-icon {
    font-size: 24px;
    position: relative;
    z-index: 1;
}

.user-menu-info {
    flex: 1;
    min-width: 0;
}

.user-menu-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-email {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
    min-height: 16px;
}

.user-menu-role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.user-menu-role-admin {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.user-menu-role-super-admin {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    font-weight: 800;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--text-primary);
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    position: relative;
}

.user-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-primary);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.user-menu-item:hover {
    background: rgba(220, 53, 69, 0.08);
    padding-left: 20px;
}

.user-menu-item:hover::before {
    transform: scaleY(1);
}

.user-menu-item .menu-icon-svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.user-menu-item:hover .menu-icon-svg {
    opacity: 1;
    transform: scale(1.1);
}

.user-menu-item span {
    flex: 1;
}

.user-menu-item-danger {
    color: #ff6b6b;
}

.user-menu-item-danger:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff5252;
}

.user-menu-item-danger .menu-icon-svg {
    stroke: currentColor;
}

.user-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    margin: 6px 0;
}

/* Menu de langue */
.language-menu-container {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 999;
}

.btn-language-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-language-menu:hover {
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-card) 100%);
    border-color: rgba(220, 53, 69, 0.3);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    transform: translateY(-1px);
}

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

.btn-language-menu .language-flag {
    font-size: 18px;
    line-height: 1;
}

.btn-language-menu .language-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.btn-language-menu .dropdown-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 2px;
    opacity: 0.7;
}

.btn-language-menu.active {
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-card) 100%);
    border-color: rgba(220, 53, 69, 0.4);
}

.btn-language-menu.active .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.language-menu-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(220, 53, 69, 0.1);
    min-width: 200px;
    z-index: 9999;
    overflow: hidden;
    animation: dropdownFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

/* Ajuster le positionnement du menu langue dans le header pour éviter le chevauchement */
header .user-info .language-menu-dropdown {
    right: 0;
    left: auto;
}

/* S'assurer que les menus ne se chevauchent pas */
header .user-info {
    position: relative;
    z-index: 10;
}

header .user-info > * {
    position: relative;
}

.language-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-primary);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    position: relative;
}

.language-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-primary);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.language-menu-item:hover {
    background: rgba(220, 53, 69, 0.08);
    padding-left: 20px;
}

.language-menu-item:hover::before {
    transform: scaleY(1);
}

.language-menu-item .language-flag {
    font-size: 20px;
    line-height: 1;
}

.language-menu-item .language-name {
    flex: 1;
    font-weight: 500;
}

/* Menu de langue sur la page de login */
.auth-container ~ .language-menu-container,
.container > header .language-menu-container {
    position: relative;
    top: auto;
    right: auto;
}

/* Navigation */
.main-nav {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-card) 100%);
    color: var(--text-primary);
    border-color: rgba(220, 53, 69, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.nav-link.active {
    background: var(--accent-gradient);
    color: var(--text-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.4);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.2em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 1.2em;
    height: 1.2em;
    display: block;
}

.nav-text {
    display: inline;
}

/* Auth Container */
.auth-container {
    max-width: 400px;
    margin: 100px auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-container h1 {
    text-align: center;
    color: var(--accent-primary);
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 700;
}

.auth-container h1 .login-emoji {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.auth-container h1 .login-emoji svg {
    width: 32px;
    height: 32px;
    fill: #DC3545;
    vertical-align: middle;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: var(--accent-primary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-secondary);
    color: var(--text-primary);
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    transform: translateY(-1px);
    background: var(--bg-hover);
}

.form-group input:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

.form-group input::placeholder {
    color: var(--text-tertiary);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-primary-hover) 0%, var(--accent-primary) 50%, #ff6b6b 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(220, 53, 69, 0.5), 0 0 20px rgba(220, 53, 69, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(220, 53, 69, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #DC3545 0%, #E63946 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #C82333 0%, #D32F2F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-icon {
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Réduire la taille du texte "Supprimer" sur PC */
@media (min-width: 769px) {
    .btn-danger {
        font-size: 13px;
    }
    
    .delete-playlist-btn,
    .leave-playlist-btn {
        font-size: 13px;
    }
}

/* Main Content */
main {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.5), transparent);
    opacity: 0.5;
}

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

.playlists-header h2 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
}

/* Playlists Container */
#playlists-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 20px 0;
}

.playlists-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
    animation: slideUp 0.4s ease-out;
}

.playlists-section:nth-child(1) {
    animation-delay: 0.1s;
}

.playlists-section:nth-child(2) {
    animation-delay: 0.2s;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    padding-bottom: 20px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--accent-primary) 0%, transparent 100%) 1;
    letter-spacing: -0.5px;
    position: relative;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Playlists Grid */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 10px 0;
}

.playlist-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    padding: 20px;
    border-radius: 20px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.playlist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.15), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.playlist-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(220, 53, 69, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.playlist-card:hover::before {
    left: 100%;
}

.playlist-card:hover::after {
    opacity: 1;
}

.playlist-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-card) 100%);
    border-color: rgba(220, 53, 69, 0.3);
}

.playlist-card:active {
    transform: translateY(-6px) scale(1.01);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.favorites-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.like-icon {
    transition: transform 0.2s ease;
}

.like-icon:hover {
    transform: scale(1.1);
}

.like-icon.liked {
    filter: drop-shadow(0 0 3px rgba(255, 107, 107, 0.5));
}

.playlist-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.playlist-card:hover h3 {
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}
    
    .playlist-card > div:not(.playlist-card-cover):not(.playlist-actions) {
        text-align: center;
    }

.playlist-card-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.playlist-card-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.playlist-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: brightness(0.95);
}

.playlist-card:hover .playlist-card-cover {
    border-color: rgba(220, 53, 69, 0.3);
    box-shadow: var(--shadow-md);
}

.playlist-card:hover .playlist-card-cover::before {
    opacity: 1;
}

.playlist-card:hover .playlist-card-cover img {
    transform: scale(1.15);
    filter: brightness(1.1);
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-tertiary);
    animation: pulse 2s ease-in-out infinite;
}

.playlist-card .playlist-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    position: relative;
    z-index: 2;
}

.playlist-card .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.playlist-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Create Playlist */
.create-playlist-container {
    max-width: 500px;
    margin: 0 auto;
}

.create-playlist-container h2 {
    margin-bottom: 30px;
    color: var(--text-primary);
    font-weight: 700;
}

/* Playlist Detail */
.playlist-header {
    margin-bottom: 30px;
}

.playlist-header h2 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
}

.playlist-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.playlist-cover {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    animation: scaleIn 0.4s ease-out;
}

.playlist-cover:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.settings-panel {
    margin-top: 15px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: slideUp 0.3s ease-out;
    transition: all 0.3s ease;
}

.settings-panel.hidden {
    display: none;
}

.playlist-actions-inline {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

/* Player */
.player-container {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(25, 25, 25, 0.98) 100%);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
                0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.player-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 
                0 4px 12px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

#audio-player {
    width: 100%;
    margin-bottom: 15px;
}

.player-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.now-playing::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.1), transparent);
    transition: left 0.5s ease;
}

.now-playing:hover::before {
    left: 100%;
}

.now-playing-icon {
    font-size: 28px;
    line-height: 1;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(220, 53, 69, 0.3));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.now-playing-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.now-playing-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
}

.now-playing-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.player-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.player-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.player-btn:hover::before {
    width: 100%;
    height: 100%;
}

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

.player-btn-primary {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-hover) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.player-btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-primary-hover) 0%, var(--accent-primary) 100%);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.player-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.player-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.player-icon {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease;
}

.player-btn-primary .player-icon {
    width: 32px;
    height: 32px;
}

.player-btn:hover .player-icon {
    transform: scale(1.1);
}

.player-options {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 8px;
}

.shuffle-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 8px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.shuffle-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.shuffle-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.shuffle-toggle-slider {
    position: relative;
    width: 48px;
    height: 26px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 26px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shuffle-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.shuffle-checkbox:checked + .shuffle-toggle-slider {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-hover) 100%);
    border-color: var(--accent-primary);
}

.shuffle-checkbox:checked + .shuffle-toggle-slider::before {
    transform: translateX(22px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.shuffle-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.shuffle-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.shuffle-checkbox:checked ~ .shuffle-toggle-label .shuffle-icon {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.shuffle-checkbox:checked ~ .shuffle-toggle-label {
    color: var(--accent-primary);
}

/* Songs Section */
.songs-section {
    margin-top: 30px;
}

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

.songs-header h3 {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
}

.community-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

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

.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    color: var(--text-primary);
    font-weight: 600;
}

.upload-section {
    display: flex;
    gap: 10px;
}

/* Songs List */
.songs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.playlist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.playlist-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    background: var(--bg-hover);
    border-color: rgba(220, 53, 69, 0.2);
}

.playlist-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.playlist-cover {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
    aspect-ratio: 1;
}

.playlist-item:hover .playlist-cover {
    transform: scale(1.05);
}

.playlist-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.playlist-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.playlist-author {
    font-size: 14px;
    color: var(--text-secondary);
}

.song-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-fill-mode: both;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(220, 53, 69, 0.1);
    min-height: 76px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.song-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-gradient);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 0 4px 4px 0;
}

.song-item:hover {
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-card) 100%);
    border-color: rgba(220, 53, 69, 0.25);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.song-item:hover::before {
    transform: scaleY(1);
}

.song-item.active {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.08) 100%);
    border-color: rgba(220, 53, 69, 0.4);
    box-shadow: var(--shadow-md), 0 0 20px rgba(220, 53, 69, 0.2);
}

.song-item.active::before {
    transform: scaleY(1);
}

.song-item:nth-child(1) { animation-delay: 0.05s; }
.song-item:nth-child(2) { animation-delay: 0.1s; }
.song-item:nth-child(3) { animation-delay: 0.15s; }
.song-item:nth-child(4) { animation-delay: 0.2s; }
.song-item:nth-child(5) { animation-delay: 0.25s; }

.song-item.active {
    background: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    transform: translateX(5px);
    border-color: var(--accent-primary);
}

.song-item .song-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.song-cover {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
    aspect-ratio: 1;
}

.song-item:hover .song-cover {
    transform: scale(1.1);
}

/* Garantir que toutes les covers sont carrées */
img[class*="cover"], .cover-placeholder {
    aspect-ratio: 1;
    object-fit: cover;
}

.song-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.song-artist {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.song-item .song-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.4;
}

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

/* Error Messages */
.error-message {
    color: #ff6b6b;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 18px;
}

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

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

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

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

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

.modal-content form {
    padding: 25px;
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-tertiary);
    font-style: italic;
}

.modal-body {
    padding: 25px;
    background: var(--bg-card);
    color: var(--text-primary);
}

.song-filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

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

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

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

.playlists-select-list,
.available-songs-list {
    max-height: 400px;
    overflow-y: auto;
}

.playlist-select-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.playlist-select-item:hover {
    background: var(--bg-hover);
    border-color: rgba(220, 53, 69, 0.2);
    transform: translateX(5px);
}

.playlist-select-info {
    flex: 1;
}

.playlist-select-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    background: var(--accent-primary);
    color: var(--text-primary);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

.playlist-select-actions {
    margin-left: 15px;
}

.song-playlists {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 5px;
    font-style: italic;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    background: var(--bg-hover);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

.search-container {
    margin-bottom: 20px;
    background: var(--bg-card);
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    background: var(--bg-hover);
}

.search-input:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

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

/* Responsive - Tablettes */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    .playlists-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .playlists-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .playlist-card {
        align-items: center;
    }
    
    .playlist-card-cover {
        width: 100%;
        max-width: 200px;
        margin: 0 auto 15px;
    }
    
    .playlist-card > div:not(.playlist-card-cover):not(.playlist-actions) {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .playlist-card h3 {
        text-align: center;
        width: 100%;
    }
    
    .playlist-card > div:not(.playlist-card-cover):not(.playlist-actions) p {
        text-align: center;
        width: 100%;
    }
    
    .songs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    main {
        padding: 20px;
    }
    
    .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .global-player-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .global-player-progress {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }
    
    /* Boutons de navigation ronds pour toutes les dimensions mobiles */
    .main-nav {
        margin-bottom: 15px;
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        max-width: 60px;
        max-height: 60px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        margin-bottom: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 0;
        color: var(--text-primary);
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .nav-link:active {
        transform: scale(0.95);
    }
    
    .nav-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }
    
    .nav-icon svg {
        width: 28px;
        height: 28px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        fill: currentColor;
        color: inherit;
    }
    
    .nav-link .nav-icon svg {
        color: var(--text-primary);
    }
    
    .nav-link.active .nav-icon svg {
        color: var(--text-primary);
    }
    
    .nav-text {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        max-width: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        text-indent: -9999px !important;
        font-size: 0 !important;
        line-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        text-overflow: clip !important;
    }
    
    .nav-link.active {
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
        transform: scale(1.05);
        background: var(--accent-gradient);
        color: var(--text-primary);
    }
    
    .nav-link.active .nav-icon svg {
        color: var(--text-primary);
    }
    
    .nav-link.active .nav-text,
    .nav-link .nav-text {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        max-width: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        text-indent: -9999px !important;
        font-size: 0 !important;
        line-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        text-overflow: clip !important;
    }
}

/* Responsive - Téléphones */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 10px 8px;
    }
    
    header {
        padding: 12px 15px;
        border-radius: 8px;
        margin-bottom: 12px;
        flex-wrap: wrap;
    }
    
    header h1 {
        font-size: 20px;
        flex: 1;
        min-width: 0;
    }
    
    .user-info {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
    }
    
    .user-info span {
        font-size: 14px;
    }
    
    /* Auth Container */
    .auth-container {
        max-width: 100%;
        margin: 20px auto;
        padding: 25px 20px;
        border-radius: 10px;
    }
    
    .auth-container h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .auth-tabs {
        gap: 5px;
        margin-bottom: 20px;
    }
    
    .tab-btn {
        padding: 10px;
        font-size: 14px;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input {
        padding: 10px 12px;
        font-size: 16px; /* Évite le zoom sur iOS */
    }
    
    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 15px;
        min-height: 48px; /* Taille minimale pour le tactile - augmentée */
        font-weight: 600;
        letter-spacing: 0.3px;
    }
    
    .btn-small {
        padding: 10px 18px;
        font-size: 14px;
        min-height: 44px;
        font-weight: 600;
    }
    
    .btn-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        padding: 0;
    }
    
    /* Navigation mobile - très petits écrans */
    .main-nav {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .nav-link {
        width: 56px;
        height: 56px;
        min-width: 56px;
        min-height: 56px;
        max-width: 56px;
        max-height: 56px;
    }
    
    .nav-icon svg {
        width: 26px;
        height: 26px;
    }
    
    /* Main Content */
    main {
        padding: 15px 12px;
        border-radius: 10px;
        margin-bottom: 10px;
    }
    
    .playlists-header h2 {
        font-size: 20px;
    }
    
    .playlist-card {
        padding: 18px;
        min-height: 130px;
        align-items: center;
    }
    
    .playlist-card-cover {
        width: 100%;
        max-width: 180px;
        margin: 0 auto 12px;
    }
    
    .playlist-card > div:not(.playlist-card-cover):not(.playlist-actions) {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .playlist-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
        text-align: center;
        width: 100%;
    }
    
    .playlist-card > div:not(.playlist-card-cover):not(.playlist-actions) p {
        text-align: center;
        width: 100%;
    }
    
    .playlist-card .playlist-actions {
        flex-direction: row;
        gap: 8px;
        margin-top: 12px;
    }
    
    .playlist-card .btn {
        flex: 1;
        min-height: 44px;
        font-size: 14px;
        font-weight: 600;
    }
    
    /* Playlist Detail */
    .playlist-header h2 {
        font-size: 22px;
    }
    
    .playlist-header-left {
        flex-direction: column;
        align-items: center;
    }
    
    .playlist-header-left > div {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .playlist-header h2 {
        text-align: center;
        width: 100%;
    }
    
    .playlist-actions-inline {
        justify-content: center;
        width: 100%;
        flex-direction: row;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .playlist-cover {
        width: 100px;
        height: 100px;
        margin: 0 auto 15px;
    }
    
    .playlist-actions-inline .btn {
        flex: 1;
        min-width: 0;
        min-height: 44px;
        font-size: 13px;
        padding: 10px 8px;
    }
    
    /* Player */
    .player-container {
        padding: 20px 15px;
        border-radius: 16px;
    }
    
    .player-wrapper {
        gap: 16px;
    }
    
    .now-playing {
        padding: 14px 18px;
        border-radius: 12px;
    }
    
    .now-playing-icon {
        font-size: 24px;
    }
    
    .now-playing-title {
        font-size: 14px;
    }
    
    .now-playing-label {
        font-size: 11px;
    }
    
    .player-controls {
        gap: 10px;
    }
    
    .player-btn {
        width: 48px;
        height: 48px;
    }
    
    .player-btn-primary {
        width: 64px;
        height: 64px;
    }
    
    .player-icon {
        width: 20px;
        height: 20px;
    }
    
    .player-btn-primary .player-icon {
        width: 28px;
        height: 28px;
    }
    
    .shuffle-toggle {
        padding: 6px 12px;
        gap: 10px;
    }
    
    .shuffle-toggle-label {
        font-size: 13px;
    }
    
    .shuffle-icon {
        width: 16px;
        height: 16px;
    }
    
    /* Songs Section */
    .songs-header h3 {
        font-size: 18px;
    }
    
    .upload-section {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .upload-section .btn {
        width: 100%;
        min-height: 48px;
    }
    
    /* Songs List */
    .song-item {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        min-height: auto;
    }
    
    .song-item .song-info {
        width: 100%;
        flex: 1;
        min-width: 0;
        gap: 10px;
        flex-direction: row;
    }
    
    .song-cover {
        width: 65px;
        height: 65px;
        min-width: 65px;
        min-height: 65px;
        border-radius: 8px;
    }
    
    .song-text {
        flex: 1;
        min-width: 0;
        gap: 6px;
    }
    
    .song-item .song-name {
        font-size: 16px;
        font-weight: 700;
        color: var(--text-primary);
        line-height: 1.4;
        margin-bottom: 4px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .song-item.active .song-name {
        color: var(--text-primary);
        font-weight: 700;
    }
    
    .song-artist {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-secondary);
        line-height: 1.4;
    }
    
    .song-item.active .song-artist {
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
    }
    
    .song-playlists {
        font-size: 13px;
        font-weight: 500;
        color: var(--text-tertiary);
        margin-top: 6px;
        line-height: 1.4;
    }
    
    .song-item .song-actions {
        flex-shrink: 0;
        gap: 8px;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .song-item .song-actions {
        flex-direction: column;
        gap: 6px;
        width: 100%;
        margin-top: 8px;
    }
    
    .song-item .song-actions .btn {
        width: 100%;
        min-height: 42px;
        padding: 10px 14px;
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
    }
    
    /* Améliorer la lisibilité du numéro de chanson si présent */
    .song-number {
        font-size: 16px;
        font-weight: 700;
        color: var(--accent-primary);
        margin-right: 8px;
        min-width: 30px;
    }
    
    .song-item.active .song-number {
        color: var(--text-primary);
    }
    
    /* Modal */
    .modal.show {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .modal-content {
        margin: 0;
        max-width: 100%;
        max-height: calc(100vh - 40px);
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 28px;
    }
    
    .modal-content form,
    .modal-body {
        padding: 20px;
    }
    
    .playlists-select-list,
    .available-songs-list {
        max-height: 300px;
    }
    
    .playlist-select-item {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .playlist-select-actions {
        margin-left: 0;
        width: 100%;
    }
    
    .playlist-select-actions .btn {
        width: 100%;
    }
    
    /* Search */
    .search-container {
        padding: 12px;
    }
    
    .search-input {
        padding: 10px 12px;
        font-size: 16px; /* Évite le zoom sur iOS */
    }
    
    /* Global Player - Mobile */
    .global-player {
        padding: 12px 15px;
        border-top-width: 2px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        max-height: 180px;
    }
    
    .global-player.collapsed {
        padding: 6px 12px;
        max-height: 58px;
        min-height: 58px;
    }
    
    .global-player.collapsed .global-player-content {
        gap: 8px;
        opacity: 1;
        pointer-events: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    
    .global-player.collapsed .global-player-info {
        left: 0;
        flex: 1;
        min-width: 0;
        padding-right: 0;
        gap: 8px;
        position: relative;
        top: 0;
        transform: none;
    }
    
    .global-player.collapsed .global-player-cover {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        aspect-ratio: 1;
        font-size: 16px;
        border-radius: 5px;
    }
    
    .global-player.collapsed .global-player-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .global-player.collapsed .global-player-title {
        font-size: 12px;
        margin-bottom: 1px;
    }
    
    .global-player.collapsed .global-player-artist {
        font-size: 10px;
    }
    
    .global-player.collapsed .global-player-toggle {
        width: 32px;
        height: 32px;
        font-size: 14px;
        top: -28px;
        right: 20px;
        transform: rotate(180deg);
        z-index: 1004;
    }
    
    .global-player.collapsed .global-player-controls {
        display: flex;
        gap: 3px;
        justify-content: flex-end;
        flex-shrink: 0;
        flex-wrap: nowrap;
        min-width: 0;
    }
    
    .global-player.collapsed .global-player-controls .btn {
        min-width: 28px;
        min-height: 28px;
        width: 28px;
        height: 28px;
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .global-player.collapsed #global-play-pause-btn {
        min-width: 34px;
        min-height: 34px;
        width: 34px;
        height: 34px;
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .global-player.collapsed .global-player-controls .btn-icon {
        min-width: 28px;
        min-height: 28px;
        width: 28px;
        height: 28px;
    }
    
    .global-player.collapsed .control-icon {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
    }
    
    .global-player.collapsed .global-player-controls .btn-icon .control-icon,
    .global-player.collapsed .global-player-controls .btn .control-icon {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
    }
    
    .global-player.collapsed .global-player-progress {
        display: none;
    }
    
    /* Cacher le bouton shuffle quand rétracté sur mobile */
    .global-player.collapsed #global-shuffle-btn {
        display: none;
    }
    
    /* Fixer le positionnement du volume et toggle */
    .global-player.collapsed .volume-control-container {
        position: relative;
        z-index: 1002;
    }
    
    .global-player.collapsed .global-player-toggle {
        position: absolute;
        z-index: 1004;
    }
    
    .global-player-toggle {
        width: 32px;
        height: 32px;
        font-size: 14px;
        top: 4px;
        right: 20px;
        z-index: 1004;
    }
    
    .global-player-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .global-player-info {
        width: 100%;
        gap: 10px;
        align-items: center;
        padding-right: 40px; /* Espace pour le bouton toggle */
    }
    
    .global-player-cover {
        width: 55px;
        height: 55px;
        min-width: 55px;
        min-height: 55px;
        font-size: 26px;
        border-radius: 8px;
        flex-shrink: 0;
    }
    
    .global-player-details {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .global-player-title {
        font-size: 15px;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 3px;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .global-player-artist {
        font-size: 13px;
        color: var(--text-secondary);
        font-weight: 500;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .global-player-controls {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .global-player-controls .btn {
        min-width: 48px;
        min-height: 48px;
        width: 48px;
        height: 48px;
        font-size: 20px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    /* Bouton play/pause plus grand */
    #global-play-pause-btn {
        min-width: 56px;
        min-height: 56px;
        width: 56px;
        height: 56px;
        font-size: 26px;
    }
    
    .global-player-progress {
        width: 100%;
        max-width: 100%;
        order: 3;
        margin-top: 8px;
        gap: 8px;
    }
    
    .global-player-time {
        font-size: 12px;
        min-width: 45px;
        font-weight: 600;
        color: var(--text-secondary);
    }
    
    .global-player-progress-bar {
        height: 8px; /* Plus épais pour le tactile */
        border-radius: 4px;
    }
    
    .global-player-progress-bar::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
        margin-top: -6px;
    }
    
    .global-player-progress-bar::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border: 2px solid white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    /* Ajuster le padding du body pour mobile */
    body:has(#global-player) {
        padding-bottom: 120px; /* Plus d'espace pour le lecteur mobile amélioré */
    }
    
    body:has(#global-player.collapsed) {
        padding-bottom: 68px; /* Espace pour le lecteur rétracté */
    }
    
    /* Create Playlist */
    .create-playlist-container {
        max-width: 100%;
    }
    
    .create-playlist-container h2 {
        font-size: 20px;
    }
    
    /* Settings Panel */
    .settings-panel {
        padding: 15px;
    }
    
    /* Empty State */
    .empty-state {
        padding: 40px 15px;
    }
    
    .empty-state h3 {
        font-size: 18px;
    }
    
    /* Auth Credit */
    .auth-credit {
        margin-top: 20px;
        padding-top: 15px;
        font-size: 12px;
    }
    
    .deer-horns {
        height: 14px;
    }
}

/* Crédit de création */
.auth-credit {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 500;
}

.credit-text {
    color: var(--accent-primary);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.deer-horns {
    height: 16px;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    filter: hue-rotate(0deg) saturate(1.2);
    opacity: 0.9;
}

/* Lecteur audio global fixe */
.global-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(18, 18, 18, 0.98) 100%);
    backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    z-index: 1000;
    transition: all 0.3s ease-out;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
}

/* État fermé (barre horizontale) */
.global-player.collapsed {
    height: 70px;
    padding: 0;
}

.global-player.collapsed .global-player-expanded {
    display: none;
}

.global-player.collapsed .global-player-collapsed {
    display: flex;
}

/* État ouvert (plein écran) */
.global-player:not(.collapsed) {
    top: 0;
    height: 100vh;
    max-height: 100vh;
    background: linear-gradient(180deg, #000 0%, #0a0a0a 50%, #121212 100%);
    z-index: 10000;
    backdrop-filter: blur(40px);
    overflow: hidden;
}

.global-player:not(.collapsed) .global-player-collapsed {
    display: none;
}

.global-player:not(.collapsed) .global-player-expanded {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
}

/* Sur PC, s'assurer que la section bottom est toujours visible */
@media (min-width: 769px) {
    .global-player:not(.collapsed) .global-player-expanded {
        overflow-y: hidden;
        padding-bottom: 0;
    }
    
    .global-player-expanded-bottom {
        position: relative;
        z-index: 10;
    }
}

/* ===== ÉTAT FERMÉ (BARRE HORIZONTALE) ===== */
.global-player-collapsed {
    display: none;
    align-items: center;
    padding: 10px 15px;
    gap: 12px;
    height: 100%;
    background: #2a2a2a;
    border-radius: 8px 8px 0 0;
}

.global-player-collapsed-cover {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.global-player-collapsed-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.global-player-collapsed-cover-placeholder {
    font-size: 24px;
    color: #666;
}

.global-player-collapsed-play-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-hover) 100%);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
}

.global-player-collapsed-play-btn:hover {
    background: linear-gradient(135deg, var(--accent-primary-hover) 0%, var(--accent-primary) 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.6);
}

.global-player-collapsed-play-btn svg {
    width: 24px;
    height: 24px;
}

.global-player-collapsed-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.global-player-collapsed-explicit {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 4px;
    background: #4a4a4a;
    color: white;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-player-collapsed-details {
    flex: 1;
    min-width: 0;
}

.global-player-collapsed-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.global-player-collapsed-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.microphone-icon {
    width: 14px;
    height: 14px;
    color: #999;
    flex-shrink: 0;
}

.global-player-collapsed-artist {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-player-collapsed-like,
.global-player-collapsed-next {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 4px;
}

.global-player-collapsed-like:hover,
.global-player-collapsed-next:hover {
    background: #3a3a3a;
}

.global-player-collapsed-like svg,
.global-player-collapsed-next svg {
    width: 20px;
    height: 20px;
}

/* ===== ÉTAT OUVERT (PLEIN ÉCRAN) ===== */
.global-player-expanded {
    display: none;
    padding: 0;
    box-sizing: border-box;
}

/* Header */
.global-player-expanded-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    position: relative;
}

.global-player-expanded-close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.global-player-expanded-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.global-player-expanded-close svg {
    width: 24px;
    height: 24px;
}

.global-player-expanded-header-center {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.global-player-expanded-playlist-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.playlist-icon {
    width: 18px;
    height: 18px;
    color: #999;
}

.global-player-expanded-menu {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.global-player-expanded-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.global-player-expanded-menu svg {
    width: 24px;
    height: 24px;
}

/* Album Art */
.global-player-expanded-album-art-container {
    padding: 20px;
    display: flex;
    justify-content: center;
    flex-shrink: 1;
    min-height: 0;
    overflow: hidden;
}

.global-player-expanded-album-art {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(220, 53, 69, 0.2);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    position: relative;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sur PC, réduire la taille de l'album art pour laisser de la place aux boutons */
@media (min-width: 769px) {
    .global-player-expanded-album-art-container {
        padding: 15px 20px;
        flex-shrink: 1;
    }
    
    .global-player-expanded-album-art {
        max-width: 350px;
    }
}

.global-player-expanded-album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.global-player-expanded-cover-placeholder {
    font-size: 80px;
    color: #333;
}

.global-player-expanded-album-art-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.global-player-expanded-album-art-text {
    text-align: center;
    color: white;
}

.global-player-expanded-artist-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.global-player-expanded-album-name {
    font-size: 18px;
    opacity: 0.9;
}

.global-player-expanded-hifi-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

.global-player-expanded-lyrics-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.global-player-expanded-lyrics-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.global-player-expanded-lyrics-btn svg {
    width: 14px;
    height: 14px;
}

/* Title Section */
.global-player-expanded-title-section {
    padding: 0 20px 15px;
    text-align: center;
    flex-shrink: 0;
}

.global-player-expanded-title {
    font-size: 32px;
    font-weight: bold;
    color: white;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.global-player-expanded-title-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.global-player-expanded-action-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.global-player-expanded-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.global-player-expanded-action-btn svg {
    width: 22px;
    height: 22px;
}

/* Progress Bar */
.global-player-expanded-progress {
    padding: 0 20px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.global-player-expanded-time {
    font-size: 12px;
    color: #999;
    min-width: 45px;
    font-variant-numeric: tabular-nums;
}

.global-player-expanded-progress-bar-container {
    flex: 1;
    position: relative;
    height: 4px;
    background: #333;
    border-radius: 2px;
    display: flex;
    align-items: center;
}

.global-player-expanded-progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #DC3545;
    border-radius: 2px;
    pointer-events: none;
    z-index: 1;
    transition: width 0.1s linear;
}

.global-player-expanded-progress-bar {
    position: relative;
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    z-index: 2;
    margin: 0;
    padding: 0;
}

.global-player-expanded-progress-bar::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: transparent;
    border-radius: 2px;
}

.global-player-expanded-progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -4px;
    position: relative;
}

.global-player-expanded-progress-bar::-moz-range-track {
    width: 100%;
    height: 4px;
    background: transparent;
    border-radius: 2px;
    border: none;
}

.global-player-expanded-progress-bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    margin-top: -4px;
}

/* Song Details */
.global-player-expanded-song-details {
    padding: 0 20px 10px;
    text-align: center;
    flex-shrink: 0;
}

.global-player-expanded-song-title {
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin-bottom: 6px;
}

.global-player-expanded-song-artist {
    font-size: 14px;
    color: #999;
}

/* Playback Controls */
.global-player-expanded-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 20px 10px;
    flex-shrink: 0;
}

.global-player-expanded-control-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.global-player-expanded-control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.global-player-expanded-control-btn svg {
    width: 22px;
    height: 22px;
}

.global-player-expanded-play-pause-btn {
    width: 64px;
    height: 64px;
    border: none;
    background: var(--accent-primary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.global-player-expanded-play-pause-btn:hover {
    background: var(--accent-primary-hover);
}

.global-player-expanded-play-pause-btn:hover {
    transform: scale(1.05);
}

.global-player-expanded-play-pause-btn svg {
    width: 28px;
    height: 28px;
}

/* Bottom Actions */
.global-player-expanded-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 5px;
    gap: 20px;
    margin-top: auto;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
    min-height: 54px;
    flex-shrink: 0;
}

.global-player-expanded-output-btn,
.global-player-expanded-queue-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.global-player-expanded-output-btn:hover,
.global-player-expanded-queue-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.global-player-expanded-output-btn svg,
.global-player-expanded-queue-btn svg {
    width: 22px;
    height: 22px;
}

.global-player-expanded-mix-btn {
    padding: 12px 24px;
    border: none;
    background: #2a2a2a;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.global-player-expanded-mix-btn:hover {
    background: #3a3a3a;
}

/* Volume control expanded */
.volume-control-container-expanded {
    position: relative;
    flex-shrink: 0;
    z-index: 2;
}

.volume-slider-container-expanded {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #2a2a2a;
    padding: 20px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
    width: 40px;
    height: 140px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.volume-slider-container-expanded.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.volume-slider-expanded {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #444;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transform: rotate(-90deg);
    transform-origin: center;
    position: relative;
    margin: 0;
    flex-shrink: 0;
}

.volume-slider-expanded::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #2a2a2a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.volume-slider-expanded::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.volume-slider-expanded::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #444;
    border-radius: 2px;
}

.volume-slider-expanded::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #2a2a2a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.volume-slider-expanded::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.volume-slider-expanded::-moz-range-track {
    width: 100%;
    height: 4px;
    background: #444;
    border-radius: 2px;
}

/* Menu dropdown */
.global-player-expanded-menu-container {
    position: relative;
}

.global-player-expanded-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    min-width: 200px;
    z-index: 2000;
    overflow: hidden;
}

.global-player-expanded-menu-item {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    text-align: left;
}

.global-player-expanded-menu-item:hover {
    background: #3a3a3a;
}

.global-player-expanded-menu-item svg {
    width: 20px;
    height: 20px;
}

/* Like button active state */
.global-player-collapsed-like.liked svg,
.global-player-expanded-action-btn.liked svg {
    fill: #ff4444 !important;
    stroke: #ff4444;
}

.global-player-expanded-control-btn.active {
    color: var(--accent-primary);
}

/* Queue modal styles */
/* ===== MODAL AJOUTER À UNE PLAYLIST ===== */
.add-to-playlist-modal {
    display: none;
    position: fixed;
    z-index: 30000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.add-to-playlist-modal.show {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.add-to-playlist-content {
    background: #1a1a1a;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    position: relative;
    margin-top: auto;
}

.add-to-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.add-to-playlist-title {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

.add-to-playlist-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.add-to-playlist-close svg {
    width: 24px;
    height: 24px;
}

.add-to-playlist-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.add-to-playlist-body {
    padding: 20px;
}

.add-to-playlist-search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #999;
    pointer-events: none;
}

.add-to-playlist-search {
    width: 100%;
    padding: 12px 12px 12px 40px;
    background: #2a2a2a;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    outline: none;
}

.add-to-playlist-search::placeholder {
    color: #999;
}

.add-to-playlist-section-header {
    color: #999;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.create-new-playlist-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.create-new-playlist-btn svg {
    width: 24px;
    height: 24px;
}

.create-new-playlist-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.playlists-list-for-add {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.playlist-item-for-add {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.playlist-item-for-add:last-child {
    border-bottom: none;
}

.playlist-item-for-add:hover {
    background: rgba(255, 255, 255, 0.03);
}

.playlist-item-for-add-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.playlist-item-for-add-cover {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 6px;
    object-fit: cover;
    background: linear-gradient(135deg, #DC3545 0%, #E63946 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.playlist-item-for-add-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.playlist-item-for-add-details {
    flex: 1;
    min-width: 0;
}

.playlist-item-for-add-name {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item-for-add-meta {
    color: #999;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item-for-add-action {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.playlist-item-for-add-action.added {
    background: #DC3545;
    color: white;
}

.playlist-item-for-add-action.not-added {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.playlist-item-for-add-action:hover {
    transform: scale(1.1);
}

.playlist-item-for-add-action svg {
    width: 20px;
    height: 20px;
}

/* ===== MODAL QUEUE ===== */
.queue-modal {
    display: none;
    position: fixed;
    z-index: 30000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.queue-modal.show {
    display: block;
}

.queue-content {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
}

.queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background: #000;
    z-index: 10;
}

.queue-back-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.queue-back-btn svg {
    width: 28px;
    height: 28px;
}

.queue-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.queue-header-center {
    flex: 1;
    text-align: center;
}

.queue-title {
    margin: 0 0 4px 0;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.queue-info {
    color: #999;
    font-size: 14px;
}

.queue-edit-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.queue-edit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.queue-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.queue-song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
}

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

.queue-song-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.queue-song-item.active {
    background: rgba(220, 53, 69, 0.15);
}

.queue-song-item.active .queue-song-title {
    color: #DC3545;
}

.queue-song-cover {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 6px;
    object-fit: cover;
    background: linear-gradient(135deg, #DC3545 0%, #E63946 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.queue-song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.queue-song-details {
    flex: 1;
    min-width: 0;
}

.queue-song-title {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-song-artist {
    color: #999;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-song-badge {
    background: #DC3545;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
    flex-shrink: 0;
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .add-to-playlist-content {
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
    }
    
    .queue-header {
        padding: 15px;
    }
    
    .queue-song-item {
        padding: 12px 15px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .global-player:not(.collapsed) {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }
    
    .global-player:not(.collapsed) .global-player-expanded {
        overflow-y: hidden;
        overflow-x: hidden;
        height: 100%;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .global-player-expanded-header {
        padding: 12px 15px;
        flex-shrink: 0;
    }
    
    .global-player-expanded-album-art-container {
        padding: 10px 15px;
        flex-shrink: 1;
        min-height: 0;
        display: flex;
        align-items: center;
    }
    
    .global-player-expanded-album-art {
        max-width: 85vw;
        max-height: 85vw;
        width: 85vw;
        aspect-ratio: 1;
        margin: 0 auto;
    }
    
    .global-player-expanded-cover-placeholder {
        font-size: 60px;
    }
    
    .global-player-expanded-title-section {
        padding: 10px 15px 10px;
        flex-shrink: 0;
    }
    
    .global-player-expanded-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .global-player-expanded-title-actions {
        gap: 15px;
    }
    
    .global-player-expanded-action-btn {
        width: 40px;
        height: 40px;
    }
    
    .global-player-expanded-progress {
        padding: 0 15px 12px;
        flex-shrink: 0;
    }
    
    .global-player-expanded-song-details {
        padding: 0 15px 12px;
        flex-shrink: 0;
    }
    
    .global-player-expanded-song-title {
        font-size: 18px;
    }
    
    .global-player-expanded-song-artist {
        font-size: 13px;
    }
    
    .global-player-expanded-controls {
        gap: 16px;
        padding: 0 15px 10px;
        flex-shrink: 0;
    }
    
    .global-player-expanded-play-pause-btn {
        width: 56px;
        height: 56px;
    }
    
    .global-player-expanded-bottom {
        padding: 0 15px 5px;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .global-player-expanded-mix-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}


/* Bouton pour rétracter/étendre - Caché sur PC, visible uniquement sur mobile */
.global-player-toggle {
    display: none;
    position: relative;
    z-index: 1005;
}

/* Empêcher le collapse sur PC */
@media (min-width: 769px) {
    .global-player.collapsed {
        max-height: 200px !important;
        min-height: auto !important;
        padding: 15px 20px !important;
    }
    
    .global-player.collapsed .global-player-content {
        flex-direction: row !important;
    }
    
    .global-player.collapsed .global-player-progress {
        display: flex !important;
    }
    
    .global-player.collapsed .global-player-mini-progress {
        display: none !important;
    }
}

/* Styles pour mobile uniquement */
@media (max-width: 768px) {
    .global-player-toggle {
        display: flex;
        position: absolute;
        top: 4px;
        right: 20px;
        left: auto;
        background: #DC3545;
        border: none;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1005;
        transition: all 0.3s ease;
        color: white;
        font-size: 14px;
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
        pointer-events: auto;
    }
    
    .global-player.collapsed .global-player-toggle {
        top: auto;
        bottom: 70px;
        transform: rotate(180deg);
        position: fixed;
        left: 20px;
        right: auto;
        z-index: 1005;
        display: flex !important;
    }
    
    .global-player-toggle:hover {
        background: #E63946;
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
        transform: scale(1.1);
    }
    
    .global-player-toggle:active {
        transform: scale(0.95) !important;
    }
    
    .global-player.collapsed .global-player-toggle:hover {
        transform: rotate(180deg) scale(1.1);
    }
}


.toggle-icon {
    transition: transform 0.3s ease;
    display: block;
    line-height: 1;
}

.global-player-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: opacity 0.3s ease-out;
    position: relative;
    z-index: 1;
}

.global-player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.global-player-cover {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    aspect-ratio: 1;
    border-radius: 8px;
    background: linear-gradient(135deg, #DC3545 0%, #E63946 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    overflow: hidden;
}

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

.global-player-details {
    flex: 1;
    min-width: 0;
}

.global-player-title {
    font-weight: 700;
    color: #333;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    margin-bottom: 2px;
}

.global-player-artist {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    line-height: 1.3;
}

.global-player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.global-player-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    max-width: 600px;
}

.global-player-time {
    font-size: 12px;
    color: #666;
    min-width: 40px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.global-player-progress-bar-container {
    flex: 1;
    min-width: 0;
}

.global-player-progress-bar {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    touch-action: manipulation;
}

.global-player-progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #DC3545;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.global-player-progress-bar::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #E63946;
}

.global-player-progress-bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #DC3545;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.global-player-progress-bar::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #E63946;
}

/* Ajuster le padding du body pour éviter que le contenu soit caché par le lecteur */
/* S'applique uniquement aux pages avec le lecteur global (pas index.html) */
body:has(#global-player:not(.collapsed)) {
    padding-bottom: 0;
    overflow: hidden;
}

body:has(#global-player.collapsed) {
    padding-bottom: 70px;
}

/* Fallback pour les navigateurs qui ne supportent pas :has() */
.global-player ~ * {
    margin-bottom: 80px;
}

.global-player.collapsed ~ * {
    margin-bottom: 65px;
}

/* Contrôle du volume */
.volume-control-container {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1002;
}

.volume-control-container button {
    pointer-events: auto;
    z-index: 1003;
    position: relative;
}

.volume-slider-container {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    transform: translateY(0);
    background: white;
    padding: 18px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 0;
    z-index: 2000;
    min-height: 120px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-slider-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Ajuster la position du volume slider quand le lecteur est rétracté - uniquement pour mobile */
@media (max-width: 768px) {
    .global-player.collapsed ~ * .volume-slider-container,
    .global-player.collapsed .volume-slider-container {
        bottom: 75px;
    }
}

.volume-slider-container::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    transform: translateX(0);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.volume-slider {
    width: 4px;
    height: 100px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    touch-action: manipulation;
    pointer-events: auto;
    position: relative;
    z-index: 2001;
    transform: rotate(-90deg);
    transform-origin: center;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #DC3545;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #E63946;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #DC3545;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #E63946;
}

/* Icônes des contrôles */
.control-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(228deg) brightness(95%) contrast(92%);
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
}

.btn-icon:hover .control-icon {
    filter: brightness(0) saturate(100%) invert(45%) sepia(43%) saturate(1352%) hue-rotate(240deg) brightness(95%) contrast(90%);
}

/* Bouton mode aléatoire actif */
#global-shuffle-btn.active {
    background: linear-gradient(135deg, #DC3545 0%, #E63946 100%);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

#global-shuffle-btn.active .control-icon {
    filter: brightness(0) saturate(100%) invert(100%);
}

/* Animation pour l'activation du mode aléatoire */
@keyframes shuffleActivate {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

#global-shuffle-btn {
    transition: all 0.3s ease;
}

#global-shuffle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Responsive pour les contrôles du volume et shuffle */
@media (max-width: 768px) {
    /* Masquer le bouton volume sur mobile */
    .volume-control-container-expanded {
        display: none !important;
    }
    
    .volume-slider-container {
        position: fixed;
        left: auto;
        right: 15px;
        bottom: 90px;
        transform: translateX(0) translateY(-10px);
    }
    
    .volume-slider-container.show {
        transform: translateX(0) translateY(0);
    }
    
    .global-player.collapsed ~ * .volume-slider-container,
    .global-player.collapsed .volume-slider-container {
        bottom: 75px;
    }
    
    .volume-slider-container::after {
        left: auto;
        right: 20px;
        transform: translateX(0);
    }
    
    .volume-slider {
        width: 80px;
    }
    
    /* Uniformiser toutes les icônes sur mobile */
    .control-icon {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
    }
    
    /* S'assurer que les icônes dans les boutons du lecteur global sont uniformes */
    .global-player-controls .btn-icon .control-icon,
    .global-player-controls .btn .control-icon,
    .player-controls .btn-icon .control-icon,
    .player-controls .btn .control-icon {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
    }
}

/* Styles PC pour le volume slider - position relative au bouton */
@media (min-width: 769px) {
    .volume-control-container {
        position: relative;
        z-index: 1002;
    }
    
    .volume-slider-container {
        position: absolute;
        bottom: calc(100% + 10px);
        right: 0;
        left: auto;
        transform: translateY(0);
        margin-bottom: 0;
        min-width: 120px;
        z-index: 2000;
        pointer-events: auto;
    }
    
    .volume-slider-container.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .volume-slider {
        width: 120px;
        height: 6px;
        pointer-events: auto;
        cursor: pointer;
        position: relative;
        z-index: 2001;
    }
    
    .volume-slider::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
        cursor: pointer;
        pointer-events: auto;
    }
    
    .volume-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
        cursor: pointer;
        pointer-events: auto;
    }
}

@media (max-width: 480px) {
    .volume-slider {
        width: 80px;
        height: 6px;
    }
    
    .volume-slider::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }
    
    .volume-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }
    
    /* Uniformiser toutes les icônes sur petits écrans */
    .control-icon {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
    }
    
    /* S'assurer que les icônes dans les boutons sont uniformes */
    .global-player-controls .btn-icon .control-icon,
    .global-player-controls .btn .control-icon,
    .player-controls .btn-icon .control-icon,
    .player-controls .btn .control-icon {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
    }
    
    .volume-slider-container {
        position: fixed;
        padding: 12px 15px;
        bottom: 90px;
        right: 15px;
        left: auto;
        transform: translateX(0) translateY(-10px);
        z-index: 2000;
    }
    
    .volume-slider-container.show {
        transform: translateX(0) translateY(0);
    }
    
    .global-player.collapsed ~ * .volume-slider-container,
    .global-player.collapsed .volume-slider-container {
        bottom: 75px;
    }
    
    /* Améliorer l'espacement du volume control */
    .volume-control-container {
        position: relative;
        z-index: 1002;
    }
}

/* Styles pour le panel admin */
.admin-header {
    margin-bottom: 30px;
}

.admin-header h2 {
    color: var(--text-primary);
    font-size: 28px;
    margin: 0;
}

.admin-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.admin-section h3 {
    color: var(--text-primary);
    font-size: 20px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

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

.stat-card {
    background: linear-gradient(135deg, #DC3545 0%, #E63946 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card.clickable {
    cursor: pointer;
}

.stat-card.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stat-card.clickable:active {
    transform: translateY(-2px);
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Recherche admin */
.admin-search-container {
    margin-bottom: 20px;
}

/* Liste des utilisateurs */
.admin-users-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-user-item {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.admin-user-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.admin-user-item:hover .admin-user-main h4 {
    color: var(--text-primary);
}

.admin-user-item:hover .admin-user-details {
    color: var(--text-secondary);
}

.admin-user-info {
    flex: 1;
}

.admin-user-main {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.admin-user-main h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
}

.admin-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.super-admin-badge {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.admin-user-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #666;
    font-size: 14px;
}

.admin-user-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.admin-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #DC3545;
}

.admin-toggle span {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
    background: #ccc !important;
    color: #666 !important;
}

.btn-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.admin-current-user {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 15px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 6px;
}

/* Navigation des sections admin */
.admin-section-nav {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-section-nav h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 20px;
}

/* Playlists admin */
.admin-playlists-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-playlist-item {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.admin-playlist-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.admin-playlist-info {
    flex: 1;
}

.admin-playlist-main {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.admin-playlist-main h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
}

.admin-playlist-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 14px;
}

.admin-playlist-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Sons admin */
.admin-songs-list,
.admin-public-songs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-song-item {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.admin-song-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.admin-song-info {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.admin-song-cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.admin-song-text {
    flex: 1;
}

.admin-song-text h4 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 16px;
}

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

.admin-song-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.public-badge {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge public dans Mes Sons - petit et en haut à gauche du titre */
.song-name-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.public-badge-small {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
    line-height: 1.2;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Actions admin */
.admin-item-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.admin-item-actions .btn-small {
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
}

.admin-item-actions .btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
}

.admin-item-actions .btn-danger:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

/* Responsive pour le panel admin */
@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .admin-user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .admin-user-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .admin-user-details {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-section {
        padding: 15px;
    }
    
    .admin-user-main {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-section-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .admin-song-info {
        flex-direction: column;
    }
    
    .admin-song-cover {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    
    .admin-playlist-item,
    .admin-song-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-item-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 15px;
    }
}

/* Styles pour les logs admin */
.admin-logs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-log-item {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.admin-log-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.admin-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-log-action {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.log-action-type {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.log-target-type {
    background: #DC3545;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.admin-log-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: #666;
}

.log-username {
    font-weight: 500;
}

.log-date {
    color: var(--text-tertiary);
}

.admin-log-content {
    margin-top: 10px;
}

.log-target-info {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.log-details {
    background: var(--bg-tertiary);
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    border-left: 3px solid var(--accent-primary);
    color: var(--text-primary);
}

.log-details-old {
    color: #ff6b6b;
    margin-bottom: 6px;
}

.log-details-new {
    color: #4ade80;
}

.log-details strong {
    font-weight: 600;
    margin-right: 5px;
    color: var(--text-primary);
}

/* Responsive pour les logs */
@media (max-width: 768px) {
    .admin-log-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-log-meta {
        width: 100%;
        justify-content: space-between;
    }
}

/* Badge public */
.public-badge {
    display: inline-block;
    background: linear-gradient(135deg, #DC3545 0%, #E63946 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.song-text .public-badge {
    margin-top: 4px;
    display: inline-block;
}

.admin-song-details .public-badge {
    margin-left: 8px;
}

/* Styles pour l'upload multiple de fichiers */
.selected-files-list {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selected-files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-primary);
}

.selected-files-header strong {
    font-weight: 600;
}

.selected-files-items {
    max-height: 200px;
    overflow-y: auto;
}

.selected-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selected-file-item .file-name {
    flex: 1;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}

.selected-file-item .file-size {
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
}

.selected-file-item .btn-remove-file {
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    margin-left: auto;
    transition: all 0.2s ease;
}

.selected-file-item .btn-remove-file:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

/* Style pour song-details */
.song-details {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.song-details .public-badge {
    margin-left: 0;
}

/* Styles pour la barre de progression d'upload */
.upload-progress-container {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.upload-progress-bar {
    width: 100%;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #DC3545, #E63946);
    border-radius: 12px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.upload-status-list {
    max-height: 300px;
    overflow-y: auto;
}

.upload-status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
    border-left: 3px solid rgba(255, 255, 255, 0.2);
}

.upload-status-item.success {
    border-left-color: #DC3545;
    background: rgba(220, 53, 69, 0.1);
}

.upload-status-item.error {
    border-left-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.upload-status-item .status-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.upload-status-item .status-text {
    flex: 1;
    color: var(--text-primary);
}

/* Tags d'artistes */
.artists-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: var(--bg-secondary);
    min-height: 45px;
    align-items: flex-start;
}

.artists-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.artist-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #DC3545 0%, #E63946 100%);
    color: white;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.artist-tag span {
    flex: 1;
}

.artist-tag-remove {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    transition: background 0.2s;
}

.artist-tag-remove:hover {
    background: rgba(255, 255, 255, 0.5);
}

.artists-input {
    flex: 1;
    min-width: 150px;
    border: none;
    outline: none;
    padding: 4px 8px;
    font-size: 14px;
    background: transparent;
}

.artists-input:focus {
    outline: none;
}

.artists-input-container:focus-within {
    border-color: #DC3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Responsive pour l'upload multiple */
@media (max-width: 768px) {
    .selected-files-items {
        max-height: 150px;
    }
    
    .upload-status-list {
        max-height: 200px;
    }
    
    .selected-file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .selected-file-item .file-size {
        font-size: 11px;
    }
    
    .artists-input-container {
        min-height: auto;
    }
    
    .artists-input {
        min-width: 100%;
        margin-top: 8px;
    }
}

/* ============================================
   Styles modernes pour la collaboration
   ============================================ */

.collaboration-settings-modern {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--shadow-md);
    animation: slideUp 0.4s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.collaboration-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.collaboration-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.collaboration-icon {
    font-size: 28px;
}

.collaboration-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-left: 40px;
}

.add-collaborator-card {
    background: linear-gradient(135deg, #DC3545 0%, #E63946 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.add-collaborator-form {
    display: grid;
    grid-template-columns: 1fr 200px auto;
    gap: 15px;
    align-items: end;
}

.add-collaborator-form .input-group {
    min-width: 0;
}

.add-collaborator-form .input-group input {
    min-width: 0;
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.input-group input {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    opacity: 0.95;
}

.input-icon {
    font-size: 16px;
}

.form-input-modern {
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: var(--bg-secondary);
    font-size: 14px;
    transition: all 0.3s ease;
    color: var(--text-primary);
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.form-input-modern:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 3px var(--accent-primary-light);
}

.form-select-modern {
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: var(--bg-secondary);
    font-size: 14px;
    transition: all 0.3s ease;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 500;
}

.form-select-modern:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 3px var(--accent-primary-light);
}

.btn-add-collaborator {
    padding: 12px 24px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.btn-add-collaborator:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--accent-primary-hover);
}

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

.btn-icon {
    font-size: 16px;
}

.collaborators-section {
    margin-top: 30px;
}

.collaborators-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.collaborators-list-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.collaborator-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    animation: scaleIn 0.3s ease-out;
}

.collaborator-card:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.collaborator-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DC3545 0%, #E63946 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.avatar-text {
    text-transform: uppercase;
}

.collaborator-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.collaborator-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.collaborator-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.collaborator-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.permission-select-modern {
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: var(--bg-secondary);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.permission-select-modern:hover {
    border-color: var(--accent-primary);
}

.permission-select-modern:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-light);
}

.btn-remove-collaborator {
    padding: 8px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.btn-remove-collaborator:hover {
    background: #c82333;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-remove-collaborator:active {
    transform: scale(0.95);
}

.remove-icon {
    font-size: 16px;
}

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

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-collaborators p {
    font-size: 14px;
    margin: 8px 0;
}

.empty-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.error-message-modern {
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(220, 53, 69, 0.15);
    border: 2px solid rgba(220, 53, 69, 0.4);
    border-radius: 8px;
    color: #ff6b6b;
    font-size: 14px;
    display: none;
    animation: slideUp 0.3s ease-out;
}

.error-message-modern.show {
    display: block;
}

/* Responsive pour la collaboration */
@media (max-width: 768px) {
    .add-collaborator-form {
        grid-template-columns: 1fr;
    }
    
    .collaborator-card {
        flex-wrap: wrap;
    }
    
    .collaborator-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .permission-select-modern {
        flex: 1;
    }
}

/* ============================================
   Styles pour les modals de réglages
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-content-large {
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Styles spécifiques pour les modals de réglages */
#playlist-settings-modal .modal-header,
#collaboration-modal .modal-header {
    background: linear-gradient(135deg, #DC3545 0%, #E63946 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

#playlist-settings-modal .modal-header h2,
#collaboration-modal .modal-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: white;
}

#playlist-settings-modal .modal-close,
#collaboration-modal .modal-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

#playlist-settings-modal .modal-close:hover,
#collaboration-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-icon {
    font-size: 28px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    background: var(--bg-card);
    color: var(--text-primary);
}

.settings-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Assurer que le bouton de visibilité est visible par défaut */
#toggle-playlist-visibility-btn {
    display: block;
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.settings-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.section-icon {
    font-size: 24px;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.label-icon {
    font-size: 16px;
}

.cover-preview-container {
    margin-top: 15px;
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #DC3545 0%, #E63946 100%);
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #DC3545 0%, #E63946 100%);
}

.placeholder-icon {
    font-size: 64px;
}

.cover-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-save {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    font-size: 16px;
}

/* Bouton de collaboration dans les réglages */
.settings-section-collaboration {
    padding-top: 20px;
}

.collaboration-button-container {
    margin-top: 10px;
}

.btn-collaboration {
    width: 100%;
    padding: 20px 24px;
    background: linear-gradient(135deg, #DC3545 0%, #E63946 100%);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    text-align: left;
}

.btn-collaboration:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

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

.btn-icon-large {
    font-size: 32px;
    flex-shrink: 0;
}

.btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.btn-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.btn-arrow {
    font-size: 24px;
    font-weight: 300;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.btn-collaboration:hover .btn-arrow {
    transform: translateX(4px);
}

/* Contenu de collaboration dans le modal */
.collaboration-content {
    min-height: 200px;
}

/* Responsive pour les modals */
@media (max-width: 768px) {
    .modal-content-large {
        max-width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .btn-collaboration {
        padding: 16px 20px;
    }
    
    .btn-icon-large {
        font-size: 28px;
    }
    
    .btn-title {
        font-size: 16px;
    }
    
    .btn-subtitle {
        font-size: 12px;
    }
}

/* Message de bienvenue */
.welcome-message {
    background: linear-gradient(135deg, #DC3545 0%, #E63946 100%);
    border-radius: 15px;
    padding: 20px 25px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    animation: welcomeSlideIn 0.5s ease-out forwards;
}

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

.welcome-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: welcomeShine 3s ease-in-out infinite;
}

@keyframes welcomeShine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.welcome-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
}

.welcome-icon {
    font-size: 48px;
    margin-bottom: 10px;
    animation: welcomePulse 2s ease-in-out infinite;
}

@keyframes welcomePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.welcome-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.welcome-username {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-weight: 800;
}

.welcome-text {
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 600px;
}

.welcome-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    line-height: 1;
    padding: 0;
}

.welcome-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.welcome-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Responsive pour le message de bienvenue */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 20px;
    }
    
    .welcome-text {
        font-size: 14px;
    }
    
    .welcome-icon {
        font-size: 36px;
    }
}

/* ==================== BOUTON PROFIL ==================== */
.btn-profile {
    background: linear-gradient(135deg, #DC3545 0%, #E63946 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    font-size: 20px;
    overflow: hidden;
    position: relative;
}

.btn-profile:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.5);
}

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

.header-profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Quand la photo est affichée, masquer le fond du bouton */
.btn-profile.has-profile-picture {
    background: transparent;
}

.btn-profile.has-profile-picture:hover {
    background: transparent;
}

.profile-icon {
    display: block;
    line-height: 1;
}

/* ==================== PAGE DE PROFIL ==================== */
.profile-container {
    background: var(--bg secondary);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.4s ease-out;
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.profile-header h2 {
    color: var(--accent-primary);
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.profile-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: 10px;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.profile-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.profile-section:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-primary);
}

.profile-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-primary);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.section-icon {
    font-size: 24px;
}

/* Photo de profil */
.profile-picture-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.profile-picture-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #DC3545 0%, #E63946 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.profile-picture-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.profile-picture-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-picture-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #DC3545 0%, #E63946 100%);
}

.placeholder-icon {
    font-size: 80px;
    color: white;
    opacity: 0.8;
}

.profile-picture-upload-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    transform: translateY(100%);
}

.profile-picture-wrapper:hover .profile-picture-upload-btn {
    transform: translateY(0);
}

.profile-picture-upload-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.upload-icon {
    font-size: 18px;
}

/* Formulaire de profil */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.label-icon {
    font-size: 20px;
}

.form-input-modern {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
}

.form-input-modern:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
    outline: none;
    background: var(--bg-tertiary);
}

.form-input-modern:hover {
    border-color: var(--accent-primary);
}

.form-hint {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-save {
    background: linear-gradient(135deg, #DC3545 0%, #E63946 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.5);
}

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

.btn-icon {
    font-size: 18px;
}

.error-message-modern {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 10px;
    padding: 12px;
    background: rgba(220, 53, 69, 0.15);
    border-radius: 8px;
    border-left: 4px solid #DC3545;
    display: none;
}

.success-message-modern {
    color: #27ae60;
    font-size: 14px;
    margin-top: 10px;
    padding: 12px;
    background: #efe;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    display: none;
}

/* Responsive pour la page de profil */
@media (max-width: 768px) {
    .profile-container {
        padding: 25px;
    }
    
    .profile-header h2 {
        font-size: 24px;
    }
    
    .profile-section {
        padding: 20px;
    }
    
    .profile-picture-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .placeholder-icon {
        font-size: 60px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-save {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Notifications
   ============================================ */

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 400px;
    width: 100%;
}

.notification {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    overflow: hidden;
    border-left: 4px solid transparent;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.hide {
    opacity: 0;
    transform: translateX(400px);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon svg {
    width: 100%;
    height: 100%;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    word-wrap: break-word;
}

.notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    width: 24px;
    height: 24px;
}

.notification-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.notification-close svg {
    width: 18px;
    height: 18px;
}

.notification-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.notification-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: currentColor;
    transform: translateX(-100%);
}

@keyframes notification-progress {
    to {
        transform: translateX(0);
    }
}

/* Types de notifications */
.notification-error {
    border-left-color: #DC3545;
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.1) 0%, var(--bg-card) 10%);
}

.notification-error .notification-icon {
    color: #DC3545;
}

.notification-error .notification-progress::after {
    background: #DC3545;
}

.notification-success {
    border-left-color: #28a745;
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.1) 0%, var(--bg-card) 10%);
}

.notification-success .notification-icon {
    color: #28a745;
}

.notification-success .notification-progress::after {
    background: #28a745;
}

.notification-warning {
    border-left-color: #ffc107;
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.1) 0%, var(--bg-card) 10%);
}

.notification-warning .notification-icon {
    color: #ffc107;
}

.notification-warning .notification-progress::after {
    background: #ffc107;
}

.notification-info {
    border-left-color: #17a2b8;
    background: linear-gradient(90deg, rgba(23, 162, 184, 0.1) 0%, var(--bg-card) 10%);
}

.notification-info .notification-icon {
    color: #17a2b8;
}

.notification-info .notification-progress::after {
    background: #17a2b8;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification {
        transform: translateY(-100px);
    }

    .notification.show {
        transform: translateY(0);
    }

    .notification.hide {
        transform: translateY(-100px);
    }

    .notification-content {
        padding: 12px;
    }

    .notification-message {
        font-size: 13px;
    }
}

/* ============================================
   Modals de confirmation et prompt
   ============================================ */

.notification-confirm-modal,
.notification-prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.notification-confirm-modal.show,
.notification-prompt-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.notification-confirm-overlay,
.notification-prompt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.notification-confirm-content,
.notification-prompt-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    width: 90%;
    max-width: 500px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.notification-confirm-modal.show .notification-confirm-content,
.notification-prompt-modal.show .notification-prompt-content {
    transform: scale(1);
}

.notification-confirm-header,
.notification-prompt-header {
    padding: 20px 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.notification-confirm-header h3,
.notification-prompt-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
}

.notification-confirm-body,
.notification-prompt-body {
    padding: 25px;
}

.notification-confirm-body p,
.notification-prompt-body p {
    margin: 0 0 15px 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.notification-prompt-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
}

.notification-prompt-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

.notification-confirm-footer,
.notification-prompt-footer {
    padding: 20px 25px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.notification-confirm-btn,
.notification-prompt-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.notification-confirm-cancel,
.notification-prompt-cancel {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.notification-confirm-cancel:hover,
.notification-prompt-cancel:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.notification-confirm-ok,
.notification-prompt-ok {
    background: var(--accent-primary);
    color: var(--text-primary);
}

.notification-confirm-ok:hover,
.notification-prompt-ok:hover {
    background: var(--accent-primary-hover);
}

@media (max-width: 768px) {
    .notification-confirm-content,
    .notification-prompt-content {
        width: 95%;
        margin: 20px;
    }

    .notification-confirm-footer,
    .notification-prompt-footer {
        flex-direction: column-reverse;
    }

    .notification-confirm-btn,
    .notification-prompt-btn {
        width: 100%;
    }
}

/* ============================================
   Styles personnalisés pour les barres de défilement
   Barres modernes et élégantes avec animations
   ============================================ */

/* Smooth scrolling global */
html {
    scroll-behavior: smooth;
}

/* Masquer les barres de défilement par défaut pour tous les éléments */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE et Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Barre de défilement principale du body (plus visible) */
body {
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 53, 69, 0.5) transparent;
}

body::-webkit-scrollbar {
    display: block;
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.6) 0%, rgba(220, 53, 69, 0.4) 100%);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.8) 0%, rgba(220, 53, 69, 0.6) 100%);
    background-clip: padding-box;
}

body::-webkit-scrollbar-thumb:active {
    background: var(--accent-primary);
}

/* Afficher des barres modernes pour les éléments avec overflow */
.modal,
.modal-content,
.modal-content-large,
.add-to-playlist-modal,
.add-to-playlist-content,
.queue-modal,
.queue-body,
.playlists-select-list,
.available-songs-list,
.global-player-expanded,
.selected-files-items,
.upload-status-list,
.songs-list,
.playlists-grid,
[style*="overflow-y: auto"],
[style*="overflow: auto"] {
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 53, 69, 0.4) transparent;
    -ms-overflow-style: auto;
}

.modal::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.modal-content-large::-webkit-scrollbar,
.add-to-playlist-modal::-webkit-scrollbar,
.add-to-playlist-content::-webkit-scrollbar,
.queue-modal::-webkit-scrollbar,
.queue-body::-webkit-scrollbar,
.playlists-select-list::-webkit-scrollbar,
.available-songs-list::-webkit-scrollbar,
.global-player-expanded::-webkit-scrollbar,
.selected-files-items::-webkit-scrollbar,
.upload-status-list::-webkit-scrollbar,
.songs-list::-webkit-scrollbar,
.playlists-grid::-webkit-scrollbar {
    display: block;
    width: 8px;
    height: 8px;
}

.modal::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track,
.modal-content-large::-webkit-scrollbar-track,
.add-to-playlist-modal::-webkit-scrollbar-track,
.add-to-playlist-content::-webkit-scrollbar-track,
.queue-modal::-webkit-scrollbar-track,
.queue-body::-webkit-scrollbar-track,
.playlists-select-list::-webkit-scrollbar-track,
.available-songs-list::-webkit-scrollbar-track,
.global-player-expanded::-webkit-scrollbar-track,
.selected-files-items::-webkit-scrollbar-track,
.upload-status-list::-webkit-scrollbar-track,
.songs-list::-webkit-scrollbar-track,
.playlists-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb,
.modal-content-large::-webkit-scrollbar-thumb,
.add-to-playlist-modal::-webkit-scrollbar-thumb,
.add-to-playlist-content::-webkit-scrollbar-thumb,
.queue-modal::-webkit-scrollbar-thumb,
.queue-body::-webkit-scrollbar-thumb,
.playlists-select-list::-webkit-scrollbar-thumb,
.available-songs-list::-webkit-scrollbar-thumb,
.global-player-expanded::-webkit-scrollbar-thumb,
.selected-files-items::-webkit-scrollbar-thumb,
.upload-status-list::-webkit-scrollbar-thumb,
.songs-list::-webkit-scrollbar-thumb,
.playlists-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.5) 0%, rgba(220, 53, 69, 0.3) 100%);
    border-radius: 10px;
    border: 1px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
}

.modal::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover,
.modal-content-large::-webkit-scrollbar-thumb:hover,
.add-to-playlist-modal::-webkit-scrollbar-thumb:hover,
.add-to-playlist-content::-webkit-scrollbar-thumb:hover,
.queue-modal::-webkit-scrollbar-thumb:hover,
.queue-body::-webkit-scrollbar-thumb:hover,
.playlists-select-list::-webkit-scrollbar-thumb:hover,
.available-songs-list::-webkit-scrollbar-thumb:hover,
.global-player-expanded::-webkit-scrollbar-thumb:hover,
.selected-files-items::-webkit-scrollbar-thumb:hover,
.upload-status-list::-webkit-scrollbar-thumb:hover,
.songs-list::-webkit-scrollbar-thumb:hover,
.playlists-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.7) 0%, rgba(220, 53, 69, 0.5) 100%);
    background-clip: padding-box;
}

.modal::-webkit-scrollbar-thumb:active,
.modal-content::-webkit-scrollbar-thumb:active,
.modal-content-large::-webkit-scrollbar-thumb:active,
.add-to-playlist-modal::-webkit-scrollbar-thumb:active,
.add-to-playlist-content::-webkit-scrollbar-thumb:active,
.queue-modal::-webkit-scrollbar-thumb:active,
.queue-body::-webkit-scrollbar-thumb:active,
.playlists-select-list::-webkit-scrollbar-thumb:active,
.available-songs-list::-webkit-scrollbar-thumb:active,
.global-player-expanded::-webkit-scrollbar-thumb:active,
.selected-files-items::-webkit-scrollbar-thumb:active,
.upload-status-list::-webkit-scrollbar-thumb:active,
.songs-list::-webkit-scrollbar-thumb:active,
.playlists-grid::-webkit-scrollbar-thumb:active {
    background: var(--accent-primary);
}

/* Bouton "Scroll to Top" */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-hover) 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
}

.scroll-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 25px rgba(220, 53, 69, 0.6);
    background: linear-gradient(135deg, var(--accent-primary-hover) 0%, var(--accent-primary) 100%);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Animation de scroll progressif */
@keyframes scrollIndicator {
    0% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(5px);
    }
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }
}

/* Indicateur de scroll (optionnel) */
.scroll-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    z-index: 998;
    animation: scrollIndicator 2s infinite;
}

.scroll-indicator::before {
    content: '';
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: scrollIndicator 2s infinite;
}

/* Responsive pour le bouton scroll to top */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    body::-webkit-scrollbar {
        width: 8px;
    }
}

