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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

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

.video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;

}

.video-controls.show {
    opacity: 1;
    visibility: visible;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    position: relative;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

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

.control-btn svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.hidden {
    display: none !important;
}

/* Play/Pause button specific styles */
.play-pause-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.play-pause-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.play-pause-btn .play-icon {
    margin-left: 2px; /* Center the play icon better */
}

/* Mute button specific styles */
.mute-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.mute-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Fullscreen button specific styles */
.fullscreen-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Fullscreen styles */
.video-container:fullscreen {
    width: 100vw;
    height: 100vh;
}

.video-container:fullscreen .video-player {
    width: 100%;
    height: 100%;
}

.video-container:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
}

.video-container:-webkit-full-screen .video-player {
    width: 100%;
    height: 100%;
}

.video-container:-moz-full-screen {
    width: 100vw;
    height: 100vh;
}

.video-container:-moz-full-screen .video-player {
    width: 100%;
    height: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
    .video-controls {
        bottom: 10px;
        padding: 10px 20px;
        gap: 10px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        padding: 8px;
    }
    
    .control-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .video-controls {
        bottom: 10px;
        padding: 8px 15px;
        gap: 8px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        padding: 6px;
    }
    
    .control-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Hover effects for the video container */
.video-container:hover .video-controls {
    opacity: 1;
    visibility: visible;
}

/* Smooth transitions */
.video-container {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
.control-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Animation for button state changes */
.control-btn svg {
    transition: transform 0.2s ease;
}

.control-btn:hover svg {
    transform: scale(1.1);
}

/* Loading state */
.video-player:not([src]) {
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player:not([src])::before {
    content: "Loading video...";
    color: #fff;
    font-size: 18px;
}