* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 10px 20px;
    border-bottom: 2px solid #ff6b35;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    flex: 1;
    text-align: center;
    font-size: 1.8rem;
}

header h1 a {
    color: #ff6b35;
    text-decoration: none;
}
    font-size: 1.8rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

header h1 a {
    color: #ff6b35;
    text-decoration: none;
}

.header-left {
    position: relative;
    z-index: 1000;
    flex: 1;
    min-width: 0;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-center h1 {
    margin: 0;
    font-size: 1.6rem;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-icon {
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    transition: all 0.2s;
    user-select: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: scale(1.1);
}

.search-input {
    padding: 5px 10px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
    color: white;
    font-size: 13px;
    width: 180px;
    transition: all 0.3s;
    height: 28px;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: #ff6b35;
    background: #333;
    outline: none;
    width: 220px;
}

.btn-play-solo {
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.btn-play-solo:hover {
    background: #e55a2b;
    transform: scale(1.1);
}

.btn-hamburger {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #3a3a3a;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.btn-hamburger:hover {
    background: #ff6b35;
    border-color: #ff6b35;
}

.hamburger-menu {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    min-width: 280px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 1003; /* Plus élevé que le header fixe (1002) */
    max-height: 350px;
    overflow-y: auto;
}

.hamburger-menu.show {
    display: block;
}

.menu-section {
    padding: 0.5rem 0;
}

.menu-title {
    padding: 6px 10px;
    color: #ff6b35;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 1px solid #2a2a2a;
    background: #0f0f0f;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.menu-title:hover {
    background: #1a1a1a;
}

.menu-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.menu-arrow.open {
    transform: rotate(90deg);
}

.menu-items {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.menu-items.show {
    display: block !important;
}

.menu-item {
    display: block;
    padding: 6px 12px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
}

.menu-item:hover {
    background: #2a2a2a;
    color: #ff6b35;
}

.menu-item.active {
    background: #2a2a2a;
    color: #ff6b35;
    font-weight: bold;
    border-left: 3px solid #ff6b35;
}

.menu-separator {
    height: 1px;
    background: #2a2a2a;
    margin: 0.5rem 0;
}

.menu-item-action {
    display: block;
    padding: 6px 10px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    margin: 0;
    font-size: 13px;
}

.menu-item-action:hover {
    background: #2a2a2a;
    color: #ff6b35;
}

.menu-search-container {
    padding: 8px 15px;
    background: #2a2a2a;
    border-radius: 5px;
    margin: 5px 0;
}

.menu-search-input {
    width: 100%;
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 15px;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
}

.menu-search-input:focus {
    border-color: #ff6b35;
    background: #333;
    outline: none;
}

.menu-stats {
    display: block;
    padding: 0.8rem 1.2rem;
    color: #90ee90;
    background: #0f2f0f;
    border: 1px solid #2a4a2a;
    border-radius: 6px;
    margin: 0.2rem 0;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
}

.category-filter-info {
    background: #1a1a1a;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid #ff6b35;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sort-info {
    background: #1a1a1a;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid #4f9eff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e0e0e0;
}

.btn-clear-filter {
    background: #2a2a2a;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-clear-filter:hover {
    background: #ff6b35;
}

.no-songs {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.2rem;
}

.btn-back {
    background: #2a2a2a;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    position: relative;
    z-index: 10;
}

.btn-back:hover {
    background: #3a3a3a;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    padding-top: 0; /* Pas de padding-top pour éviter le double espacement */
}

#player-container {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: all 0.3s ease;
}

#player-container.sticky {
    position: fixed;
    top: 60px; /* Hauteur du header simplifié */
    left: 0;
    right: 0;
    margin-bottom: 0;
    border-radius: 0;
    border-bottom: 2px solid #ff6b00;
    box-shadow: 0 2px 20px rgba(0,0,0,0.8);
    z-index: 999; /* Plus bas que le menu hamburger (1001) */
}

.player-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
    position: relative;
}

.close-player-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: #777;
    border: 2px solid #999;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-player-btn:hover {
    background: #888;
    border-color: #ff6b35;
    transform: scale(1.1);
}

#player-img {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #3a3a3a;
}

.player-text h3 {
    color: #ff6b35;
    margin-bottom: 0.3rem;
}

/* Nouveau design player compact */
.player-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-info h3 {
    margin: 0;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #e0e0e0;
}

.player-main-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-play-compact {
    background: #ff6b35;
    border: none;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 45px;
    transition: background-color 0.2s;
}

.btn-play-compact:hover {
    background: #e55a2b;
}

.player-progress-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    color: #a0a0a0;
}

.time-separator {
    color: #666;
}

.player-progress-bar {
    margin-bottom: 0.5rem;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: #3a3a3a;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    border: 1px solid #4a4a4a;
}

.progress-container:hover {
    height: 8px;
    border-radius: 4px;
}

.progress-bar {
    height: 100%;
    background: #ff6b35;
    width: 0%;
    transition: width 0.1s;
    border-radius: 3px;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #ff6b35;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-container:hover .progress-bar::after {
    opacity: 1;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.time-separator {
    color: #666;
}

.btn-lyrics {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #fff;
    padding: 0.4rem 0.6rem;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-lyrics:hover {
    background: #3a3a3a;
    border-color: #ff6b35;
}

#currentTime, #duration {
    min-width: 35px;
    text-align: center;
}

.lyrics-container {
    margin-top: 1rem;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.lyrics-container pre {
    color: #e0e0e0;
    font-family: inherit;
    white-space: pre-wrap;
    margin: 0;
    line-height: 1.6;
}

/* Styles pour les boutons d'action du player */
.player-action-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-player-action {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #3a3a3a;
    padding: 0.8rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    flex: 0 1 auto;
    min-width: fit-content;
}

.btn-player-action:hover {
    background: #ff6b35;
    border-color: #ff6b35;
}

.player-context-container {
    margin-top: 1rem;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 8px;
    border-left: 3px solid #ff6b35;
}

.player-context-container pre {
    color: #e0e0e0;
    font-family: inherit;
    white-space: pre-wrap;
    margin: 0;
    line-height: 1.6;
}

.player-share-message {
    margin-top: 1rem;
    padding: 1rem;
    background: #1a4d1a;
    border: 1px solid #2d7d2d;
    border-radius: 8px;
    color: #90ee90;
    animation: fadeIn 0.3s ease-in;
}

.player-share-message p {
    margin: 0.5rem 0;
}

.player-share-message #playerShareLink {
    background: #0a0a0a;
    padding: 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    border: 1px solid #333;
}

.context-section {
    margin: 1.5rem 0;
}

.btn-context {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #3a3a3a;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-context:hover {
    background: #ff6b35;
    border-color: #ff6b35;
}

.context-container {
    margin-top: 1rem;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.context-container pre {
    color: #e0e0e0;
    font-family: inherit;
    white-space: pre-wrap;
    margin: 0;
    line-height: 1.6;
}

.action-buttons {
    margin: 1.5rem 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-action {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #3a3a3a;
    padding: 0.8rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    flex: 0 1 auto;
    min-width: fit-content;
}

.btn-action:hover {
    background: #ff6b35;
    border-color: #ff6b35;
}

.share-message {
    margin-top: 1rem;
    padding: 1rem;
    background: #1a4d1a;
    border: 1px solid #2d7d2d;
    border-radius: 8px;
    color: #90ee90;
    animation: fadeIn 0.3s ease-in;
}

.share-message p {
    margin: 0.5rem 0;
}

.share-message #shareLink {
    background: #0a0a0a;
    padding: 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    border: 1px solid #333;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.context-container {
    margin-top: 1rem;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #3a3a3a;
}

.modal-header {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3a3a3a;
}

.modal-header h3 {
    margin: 0;
    color: #e0e0e0;
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #3a3a3a;
    color: #ff6b35;
}

#reactionForm {
    padding: 1.5rem;
}

#reactionForm .form-group {
    margin-bottom: 1.5rem;
}

#reactionForm label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-weight: 500;
}

#reactionForm input,
#reactionForm textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #3a3a3a;
    background: #0a0a0a;
    color: #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
}

#reactionForm input:focus,
#reactionForm textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

#reactionForm textarea {
    resize: vertical;
    min-height: 100px;
}

/* Slider Captcha iOS */
.captcha-slider {
    margin-top: 0.5rem;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 50px;
    background: #ff4444;
    border-radius: 25px;
    overflow: visible;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    user-select: none;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
}

.slider-track.validated {
    background: #44ff44 !important;
}

.slider-text-left,
.slider-text-right {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 2;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.slider-thumb {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #ffffff, #e0e0e0);
    border-radius: 50%;
    cursor: grab;
    transition: transform 0.1s, box-shadow 0.2s;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255,255,255,0.8);
    border: 1px solid #ccc;
}

.slider-thumb::after {
    content: '👆';
    font-size: 1.2rem;
    opacity: 0.7;
}

.slider-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-submit {
    flex: 1;
    background: #ff6b35;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-submit:hover:not(:disabled) {
    background: #e55a2b;
    transform: translateY(-2px);
}

.btn-submit:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-cancel {
    background: transparent;
    color: #e0e0e0;
    border: 1px solid #3a3a3a;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: #3a3a3a;
    color: #ff6b35;
}

@media (max-width: 768px) {
    /* Header général - pour les pages avec menu hamburger (index.php) */
    header {
        padding: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1002;
        width: 100%;
        box-sizing: border-box;
        background: #1a1a1a;
        border-bottom: 2px solid #2a2a2a;
    }
    
    .header-left {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1000;
    }
    
    header h1 {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.5rem;
        margin: 0;
        width: auto;
    }
    
    /* Header pour les pages simples (info.html, view.php) - sans menu hamburger */
    header:not(:has(.header-left)) {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        position: relative;
    }
    
    header:not(:has(.header-left)) .btn-back {
        align-self: flex-start;
        position: relative;
        left: auto;
        top: auto;
        transform: none;
    }
    
    header:not(:has(.header-left)) h1 {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        font-size: 1.5rem;
        margin: 0;
        width: auto;
    }
    
    .btn-hamburger {
        padding: 0.6rem 0.8rem;
        font-size: 1rem;
    }
    
    .hamburger-menu {
        left: 1rem;
        right: auto;
        min-width: 250px;
        max-width: 90vw;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    #reactionForm {
        padding: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

.songs-list {
    display: grid;
    gap: 1rem;
    transition: padding-top 0.3s ease;
    padding-top: 70px; /* Hauteur header mobile + petite marge */
}

.songs-list.with-sticky-player {
    padding-top: 190px; /* Header (70px) + Player sticky (120px) */
}

.song-item {
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.3s;
}

.song-item:hover {
    background: #2a2a2a;
}

.song-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer;
}

.song-info {
    flex: 1;
}

.song-info h3 {
    color: #ff6b35;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.song-info p {
    color: #888;
    font-size: 0.9rem;
}

.btn-play, .btn-plus {
    background: #ff6b35;
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
}

.btn-plus {
    background: #2a2a2a;
}

.btn-plus:hover {
    background: #3a3a3a;
}

.view-page {
    max-width: 800px;
    margin: 0 auto;
}

.song-cover-large {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    margin: 2rem auto;
    display: block;
}

.view-page h2 {
    text-align: center;
    color: #ff6b35;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.lyrics-section, .stats-section {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.lyrics-section h3, .stats-section h3 {
    color: #ff6b35;
    margin-bottom: 1rem;
}

.lyrics-section pre {
    white-space: pre-wrap;
    color: #e0e0e0;
    line-height: 1.8;
    font-family: inherit;
}

.stat-bar {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-bar span {
    min-width: 80px;
}

.stat-bar .bar {
    background: #ff6b35;
    padding: 0.5rem;
    border-radius: 5px;
    min-width: 30px;
    text-align: center;
}

.country-stats ul {
    list-style: none;
    padding: 0;
}

.country-stats li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #2a2a2a;
}

.upload-page {
    background: #0f0f0f;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.login-container h1 {
    color: #ff6b35;
    margin-bottom: 2rem;
}

.login-container input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #2a2a2a;
    background: #0a0a0a;
    color: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.login-container button {
    width: 100%;
    padding: 0.8rem;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert.error {
    background: #ff4444;
    color: #fff;
}

.alert.success {
    background: #44ff44;
    color: #000;
}

.upload-container {
    max-width: 1400px;
}

.upload-form-section, .songs-list-section {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ff6b35;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #2a2a2a;
    background: #0a0a0a;
    color: #e0e0e0;
    border-radius: 5px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
}

.checkbox-group label {
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
}

/* ============================================
   AMPLITUDE JS STYLES
   ============================================ */

/* Bouton Play/Pause AmplitudeJS */
.amplitude-play-pause {
    background: #ff6b35;
    border: none;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 45px;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.amplitude-play-pause:hover {
    background: #e55a2b;
}

.amplitude-play-pause::before {
    content: '▶️';
}

.amplitude-playing .amplitude-play-pause::before {
    content: '⏸️';
}

/* Bouton solo sur view.php */
.btn-play-solo.amplitude-play-pause::before {
    font-size: 1.2rem;
}

/* Bouton Shuffle */
.amplitude-shuffle {
    background: #2a2a2a;
    border: 1px solid #4a4a4a;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 45px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.amplitude-shuffle:hover {
    background: #3a3a3a;
    border-color: #ff6b35;
}

/* État actif pour shuffle (orange quand activé) */
.amplitude-shuffle.amplitude-shuffle-on {
    background: #ff6b35 !important;
    border-color: #ff6b35 !important;
    transform: scale(1.05);
}

.amplitude-shuffle.amplitude-shuffle-on:hover {
    background: #e55a2b !important;
}

/* Barre de progression AmplitudeJS */
/* Barre de progression AmplitudeJS (input range) */
.amplitude-song-slider {
    width: 100%;
    height: 6px;
    background: #3a3a3a;
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid #4a4a4a;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.amplitude-song-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #ff6b35;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.amplitude-song-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #ff6b35;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.amplitude-song-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, 
        #ff6b35 var(--amplitude-song-slider-progress, 0%), 
        #3a3a3a var(--amplitude-song-slider-progress, 0%));
    border-radius: 3px;
}

.amplitude-song-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    background: #3a3a3a;
    border-radius: 3px;
}

.amplitude-song-slider:hover {
    height: 8px;
}

/* Temps actuel et durée */
.amplitude-current-time,
.amplitude-duration-time {
    min-width: 35px;
    text-align: center;
    font-size: 0.8rem;
    color: #a0a0a0;
}

/* Boutons prev/next */
.amplitude-prev,
.amplitude-next {
    background: #ff6b35;
    border: none;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 45px;
    transition: background-color 0.2s;
}

.amplitude-prev:hover,
.amplitude-next:hover {
    background: #e55a2b;
}

/* État playing global */
.amplitude-playing .player-header {
    border-left: 3px solid #ff6b35;
}

.checkbox-group input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

.btn-submit, .btn-crop {
    background: #ff6b35;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 1rem;
}

.btn-cancel {
    background: #666;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #2a2a2a;
}

table th {
    color: #ff6b35;
}

.table-thumb {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
}

.btn-edit, .btn-delete {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.btn-edit {
    background: #2a2a2a;
}

.btn-delete {
    background: #ff4444;
}

.btn-logout {
    background: #ff4444;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
}

.info-page {
    max-width: 800px;
}

.about-section, .contact-section, .tech-section, .usage-section {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.info-page h2, .info-page h3 {
    color: #ff6b35;
    margin-bottom: 1rem;
}

.info-page a {
    color: #ff6b35;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .category-dropdown {
        width: 100%;
    }
    
    .btn-category,
    .btn-shuffle {
        width: 100%;
    }
    
    .category-menu {
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .category-filter-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .player-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Ligne compacte : temps + volume sur mobile */
    .time-display {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        font-size: 0.85rem;
        order: 3;
    }
    
    .time-separator {
        display: inline;
    }
    
    #playPauseBtn {
        order: 1;
    }
    
    .progress-container {
        order: 2;
    }
    
    .btn-lyrics {
        order: 4;
    }
    
    /* Container pour temps + volume sur la même ligne */
    .player-controls {
        display: flex;
        flex-wrap: wrap;
    }
    
    .player-controls > .time-display {
        flex: 0 1 auto;
    }
    
    .song-item {
        flex-wrap: wrap;
    }
}
