/* Crownate Welcome Video - Cinema Experience v1.0 */
#welcome-video {
    background: #020617;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

#welcome-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 42, 255, 0.05), transparent);
    pointer-events: none;
}

.video-player-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.video-wrapper {
    position: relative;
    aspect-ratio: 16/9;
}

#welcome-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    z-index: 2;
}

.video-overlay.playing {
    opacity: 0;
    pointer-events: auto; /* Enable interaction for pausing even when transparent */
}

.video-player-container:hover .video-overlay.playing {
    opacity: 1;
    background: rgba(0, 0, 0, 0.4);
}

.play-button {
    width: 90px;
    height: 90px;
    background: #002AFF;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 30px rgba(0, 42, 255, 0.4);
    pointer-events: auto; /* Ensure button captures clicks */
}

.play-button:hover {
    transform: scale(1.1);
    background: #001fd6;
    box-shadow: 0 0 50px rgba(0, 42, 255, 0.6);
}

.play-button i {
    margin-left: 5px;
}

.video-content-overlay {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 3;
    pointer-events: none; /* Ignore decorative text for clicks */
    transition: all 0.5s ease;
}

.video-overlay.playing + .video-content-overlay {
    opacity: 0;
    transform: translateY(20px);
}

.video-content-overlay h3 {
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.video-content-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    max-width: 500px;
}

.video-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    color: white;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 3;
    pointer-events: none; /* Ignore badge for clicks */
}

.video-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    color: white;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 3;
    pointer-events: none; /* Ignore badge for clicks */
}

/* Animations */
@keyframes videoPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 42, 255, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(0, 42, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 42, 255, 0); }
}

.play-button.pulse {
    animation: videoPulse 2s infinite;
}

.audio-prompt {
    position: absolute;
    bottom: 20px;
    background: rgba(0, 42, 255, 0.8);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.audio-prompt:hover {
    background: #002AFF;
    transform: scale(1.05);
}

.audio-prompt i {
    font-size: 14px;
}

.video-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 15;
    color: white;
}

.video-loader.active {
    display: flex;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #002AFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}
