
body {
    font-family: Arial, sans-serif;
}

/* Button styling */
.watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    background-color: #ff0000; /* Default red for YouTube */
}

    .watch-btn:hover {
        transform: scale(1.05);
        filter: brightness(1.1);
    }

    .watch-btn svg {
        width: 20px;
        height: 20px;
    }

/* Overlay */
#videoOverlay {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

    #videoOverlay.showVideo {
        display: flex;
        opacity: 1;
    }

/* Video container */
#videoContainer {
    position: relative;
    width: 80%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

#videoOverlay.showVideo #videoContainer {
    transform: scale(1);
}

iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.closeBtn {
    position: absolute;
    top: -15px;
    right: -15px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

    .closeBtn:hover {
        background: #c40000;
    }

@media (max-width: 768px) {
    #videoContainer {
        width: 90%;
        aspect-ratio: 16 / 9;
    }
}
