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

body {
    font-family: 'Arial', sans-serif;
    background: #0a0a0a;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

.video-container, .stream-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.video-container {
    background: rgba(0,0,0,0.9);
    cursor: pointer;
}

#intro-video {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.5),
        0 0 100px rgba(147, 51, 234, 0.3);
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

#intro-video:hover {
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.6),
        0 0 120px rgba(147, 51, 234, 0.5);
}

.stream-container {
    background: #111111;
}

.stream-container.hidden {
    display: none;
}

#twitch-iframe {
    border: none;
    border-radius: 15px;
    width: 95%;
    height: 90%;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.4),
        0 0 80px rgba(138, 43, 226, 0.2);
    transform-style: preserve-3d;
}

/* Effet de particules */
.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #9333ea, #c084fc);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.8);
}

/* Animation de chargement si nécessaire */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #9333ea;
    font-size: 1.2rem;
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    #intro-video {
        max-width: 95%;
        max-height: 80%;
        border-radius: 15px;
    }
    
    #twitch-iframe {
        width: 98%;
        height: 85%;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    #intro-video {
        max-width: 100%;
        max-height: 70%;
        border-radius: 10px;
    }
    
    #twitch-iframe {
        width: 100%;
        height: 80%;
        border-radius: 8px;
    }
}

/* Bouton play */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(147, 51, 234, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 30px rgba(147, 51, 234, 0.4),
        0 0 50px rgba(147, 51, 234, 0.2);
    z-index: 10;
    will-change: transform;
    backface-visibility: hidden;
}

.play-btn:hover {
    background: rgba(147, 51, 234, 1);
    box-shadow: 
        0 15px 40px rgba(147, 51, 234, 0.6),
        0 0 70px rgba(147, 51, 234, 0.4);
}

.play-icon {
    font-size: 24px;
    color: white;
    margin-left: 4px;
}

/* Bouton de fermeture */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(220, 38, 38, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    box-shadow: 
        0 5px 15px rgba(220, 38, 38, 0.4),
        0 0 30px rgba(220, 38, 38, 0.2);
}

.close-btn:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1);
    box-shadow: 
        0 8px 20px rgba(220, 38, 38, 0.6),
        0 0 40px rgba(220, 38, 38, 0.4);
}

/* Twitch embed container */
#twitch-embed {
    width: 90%;
    height: 80%;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.6),
        0 0 40px rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#twitch-embed iframe {
    width: 100%;
    height: 100%;
}

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

/* Effet de brillance désactivé pendant la lecture vidéo pour éviter les saccades */