/* Police globale */
body, button, input, select, textarea {
    font-family: 'Segoe UI', sans-serif;
}

/* Styles de base */
body {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

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

/* Styles de la bannière */
.banner {
    background: linear-gradient(135deg, #2A2A2A, #1A1A1A);
    padding: 20px;
    border-radius: 15px;
    position: relative;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.radio-logo {
    max-width: 150px;
    height: auto;
}

.on-air-gif {
    max-width: 200px;
    height: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.share-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.share-title {
    font-size: 14px;
    color: #989898;
    margin: 0 0 10px 0;
    text-align: right;
}

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

.share-button {
    color: white;
    text-decoration: none;
    font-size: 18px;
    background-color: #3A3A3A;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    background-color: #4A4A4A;
}

/* Styles des titres de section */
.section-title {
    text-align: left;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

/* Styles de la section du lecteur */
.player-section {
    background: linear-gradient(135deg, #2A2A2A, #222);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.player-container {
    display: flex;
    align-items: flex-start;
    flex: 1;
    margin-right: 20px;
}

#album-cover {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#album-cover:hover {
    transform: scale(1.05);
}

.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 220px;
    padding-bottom: 10px;
}

#song-title {
    font-size: 32px;
    margin-top: 10px;
    margin-bottom: 2px;
    font-weight: 800;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#artist-name {
    font-size: 25px;
    color: #BBB;
    margin-top: 0;
    margin-bottom: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.player-controls {
    display: flex;
    align-items: center;
    margin-top: auto;
}

#play-pause {
    background-color: #FF4136;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    margin-right: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#play-pause:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 65, 54, 0.4);
}

.volume-control {
    display: flex;
    align-items: center;
}

#volume-down, #volume-up {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#volume-down:hover, #volume-up:hover {
    color: #FF4136;
}

#volume-slider {
    width: 100px;
    margin: 0 10px;
    -webkit-appearance: none;
    background: transparent;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #FF4136;
    cursor: pointer;
    margin-top: -6px;
}

#volume-slider::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #FF4136;
    cursor: pointer;
}

#volume-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #555;
    border-radius: 2px;
}

#volume-slider::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #555;
    border-radius: 2px;
}

.player-links {
    text-align: right;
    align-self: flex-end;
    margin-top: 20px;
}

.player-links-text {
    color: #989898;
    margin-bottom: 10px;
    text-align: left;
}

.player-links-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: flex-end;
}

.player-links-buttons a {
    display: inline-block;
    transition: all 0.3s ease;
}

.player-links-buttons a:hover {
    transform: scale(1.1);
}

.player-links-buttons img {
    height: 30px;
    width: auto;
}

/* Styles de la section des pistes récentes */
.recent-tracks {
    background-color: #2A2A2A;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

#recent-tracks-container {
    display: flex;
    overflow-x: hidden;
    gap: 20px;
}

.recent-track {
    flex: 0 0 auto;
    width: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
}

.recent-track:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.recent-track img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.recent-track-info {
    text-align: left;
}

.recent-track-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}

.recent-track-artist {
    font-size: 14px;
    color: #BBB;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#prev-tracks {
    left: 10px;
}

#next-tracks {
    right: 10px;
}

/* Styles responsifs */
@media (max-width: 1024px) {
    .player-section {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .banner {
        flex-direction: column;
        align-items: center;
        padding: 20px 10px;
    }

    .radio-logo {
        margin-bottom: 20px;
    }

    .on-air-gif {
        position: static;
        transform: none;
        margin: 20px 0;
    }

    .share-section {
        width: 100%;
        align-items: center;
        margin-top: 20px;
    }

    .share-buttons {
        justify-content: center;
    }

    .share-title {
        text-align: center;
    }

    .recent-track {
        width: 150px;
    }

    .recent-track img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .player-section {
        padding: 15px;
    }

    .recent-track {
        width: 120px;
    }

    .recent-track img {
        height: 120px;
    }

    .nav-button {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}
