﻿.videos-list {
    padding: 60px 20px;
    background: #f4f4f4;
}

.videos-list h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.4em;
    font-weight: 700;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    padding-bottom: 20px;
    transition: transform .25s ease;
}

.video-card:hover {
    transform: translateY(-6px);
}

.video-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.video-card h3 {
    margin: 15px;
    font-size: 1.3em;
}

.video-card p {
    margin: 0 15px 15px;
    color: #555;
}

.video-btn {
    display: block;
    width: fit-content;
    margin: auto;
    padding: 10px 18px;
    background: #e91e63;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background .2s;
}

.video-btn:hover {
    background: #c2185b;
}

.no-videos {
    text-align: center;
    color: #777;
    font-style: italic;
}


/* MODAL BACKDROP */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* MODAL CONTENT */
.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* CLOSE BUTTON */
.video-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
}

/* VIDEO FRAME */
#video-frame {
    width: 100%;
    height: 500px;
}
