/* Modal Container */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    overflow-y: auto; /* විස්තරය දිග වුණොත් scroll වෙන්න */
}

/* Modal Content Box */
.modal-content {
    position: relative;
    margin: 50px auto;
    width: 90%;
    max-width: 900px;
    background: #111; /* Dark background for the info area */
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

/* Close Button (කතුර වෙනුවට 'CLOSE' button එක) */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
    z-index: 10;
}

.close-modal:hover {
    background: #ef4444;
    color: white;
}

/* Video Wrapper */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Info Section (Title, Channel, Desc) */
.video-info-box {
    padding: 25px;
    color: white;
}

.modal-channel-name {
    color: #1d4ed8; /* Royal Blue */
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.modal-video-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.modal-video-desc {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 8px;
}