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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Hero Sections */
.hero-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-today {
    background-color: #000;
}

.hero-previous {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 60px 20px;
}

.hero-popular {
    background: linear-gradient(135deg, #1a0a0a 0%, #0a0505 100%);
    padding: 60px 20px;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-color: #000;

    iframe {
        width: 300%;
        height: 100%;
        margin-left: -100%;
    }
}

/* Hero Info Container */
.hero-info-container {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: calc(100% - 60px);
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    padding: 0 8px;
    border-left: 3px solid rgba(255, 255, 255, 0.6);
}

.info-box {
    position: relative;
    max-width: 900px;
}

.song-content {
    padding: 0;
}

.info-box .song-title {
    font-size: 72px;
    margin-bottom: 16px;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    word-wrap: break-word;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9),
                 0 2px 10px rgba(0, 0, 0, 0.8),
                 0 0 40px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.info-box .artist-name {
    font-size: 32px;
    color: #ffcc00;
    font-weight: 300;
    line-height: 1.3;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.9),
                 0 1px 8px rgba(0, 0, 0, 0.8);
    font-style: italic;
    letter-spacing: 0.05em;
}

.info-box .song-anecdote {
    font-size: 16px;
    color: #ffffff;
    font-weight: 400;
    line-height: 1.6;
    margin-top: 20px;
    padding: 0;
    background: none;
    border: none;
    font-style: normal;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.9),
                 0 1px 8px rgba(0, 0, 0, 0.8);
}

/* Song Genres */
.song-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.genre-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 204, 0, 0.15);
    border: 1px solid rgba(255, 204, 0, 0.4);
    border-radius: 20px;
    font-size: 13px;
    color: #ffcc00;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 32px;
    text-decoration: none;
    border: none;
    transition: color 0.3s ease;
}

.scroll-indicator a:hover {
    color: #ff0055;
    border: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.controls button {
    background: #ff0055;
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center; /* Aligne l'icône et le texte sur la même ligne */
    gap: 8px; /* Espacement entre l'icône et le texte */
}

.controls button i {
    font-size: 18px; /* Taille de l'icône */
}

.controls button:hover {
    background: #ffcc00;
    color: #000;
}

.controls button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
}

/* Control buttons styling */
.hero-controls {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 20;
    display: flex;
    gap: 15px;
}

.sound-control,
.copy-link-control,
.skip-control {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.sound-control:hover,
.copy-link-control:hover,
.skip-control:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: #ffcc00;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.7);
}

.copy-link-control.copied {
    border-color: #00ff88;
    color: #00ff88;
}

a {
    color: #ffcc00;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 5px dotted #ffcc00;
    text-decoration: none;
}

a:hover {
    color: white;
    border-bottom: 5px dotted white;
}

.smooth-transition {
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.hidden {
    opacity: 0;
}

/* Hero Previous Section */
.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.song-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.song-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 0, 85, 0.3);
    border-color: #ff0055;
}

.song-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border: none;
}

.song-link:hover {
    border: none;
}

.song-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}

.song-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.song-card:hover .song-thumbnail img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.song-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 48px;
    color: #fff;
}

.song-info {
    padding: 20px;
}

.song-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-card-artist {
    font-size: 16px;
    color: #ffcc00;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
}

/* Back to Top Button */
.back-to-top {
    display: block;
    margin: 0 auto 80px auto;
    text-decoration: none;
    border: none;
    animation: bounceUp 2s infinite;
    color: rgba(255, 255, 255, 0.7);
    font-size: 32px;
    transition: color 0.3s ease;
    text-align: center;
    width: fit-content;
}

.back-to-top:hover {
    color: #ff0055;
    border: none;
}

@keyframes bounceUp {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

/* Popular Songs Section */
.songs-grid-popular {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.song-card-popular {
    background: rgba(255, 0, 85, 0.05);
    border-color: rgba(255, 0, 85, 0.2);
}

.song-card-popular:hover {
    background: rgba(255, 0, 85, 0.1);
    border-color: #ff0055;
}

.popular-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff0055 0%, #ff4444 100%);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(255, 0, 85, 0.5);
    animation: pulse 2s infinite;
}

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

/* Footer Section */
.site-footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #000 100%);
    padding: 60px 20px 40px 20px;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-about {
    max-width: 400px;
}

.footer-heading {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-subheading {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border: none;
    font-size: 16px;
    transition: color 0.3s ease;
    display: block;
}

.footer-link:hover {
    color: #ff0055;
    border: none;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border: none;
    transition: color 0.3s ease;
    font-size: 16px;
}

.social-link:hover {
    color: #ff0055;
    border: none;
}

.social-link i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .songs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .songs-grid-popular {
        grid-template-columns: 1fr;
    }

    .hero-info-container {
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: none;
    }

    .site-name {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .info-box {
        max-width: none;
    }

    .song-content {
        padding: 0;
    }

    .info-box .song-title {
        font-size: 36px;
    }

    .info-box .artist-name {
        font-size: 20px;
    }

    .info-box .song-anecdote {
        font-size: 14px;
        margin-top: 15px;
    }

    .genre-tag {
        font-size: 11px;
        padding: 4px 10px;
    }

    .hero-controls {
        top: 20px;
        right: 20px;
        gap: 10px;
    }

    .sound-control,
    .copy-link-control,
    .skip-control {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Keyboard Navigation Focus Styles */
.song-card.keyboard-focus {
    outline: 3px solid #ffcc00;
    outline-offset: 3px;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 40px rgba(255, 204, 0, 0.5);
    border-color: #ffcc00;
    z-index: 10;
    position: relative;
}

.song-card.keyboard-focus .play-overlay {
    opacity: 1;
}

.song-card.keyboard-focus .play-overlay i {
    color: #ffcc00;
}

/* Remove default focus outline for better keyboard navigation styling */
.song-card:focus {
    outline: none;
}

/* Smooth transitions for keyboard focus */
.song-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, outline 0.2s ease;
}
