.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #000;
    margin: 5% auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    overflow: hidden;
}

.close-btn {
    color: #fff;
    position: absolute;
    top: -45px;
    right: -5px;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover,
.close-btn:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Play Video Button Styles */
.open-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #B953FF;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.open-modal-btn:hover {
    color: #7F1CD0;
}

.open-modal-btn::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #B953FF;
    transition: border-color 0.3s ease;
}

.open-modal-btn:hover::before {
    border-left-color: #7F1CD0;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .close-btn {
        top: -40px;
        right: 0;
        font-size: 28px;
        width: 32px;
        height: 32px;
    }
}