/* ===== ویدیوها: کارت‌ها و پخش‌کننده (videos.php) ===== */
.videos-section {
    background: linear-gradient(180deg, #241a10 0%, #1c130a 100%);
    padding: 80px 0 100px;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.video-card {
    background: linear-gradient(160deg, rgba(100, 74, 46, 0.55), rgba(70, 50, 32, 0.5));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 194, 60, 0.24);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.video-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 18px 44px rgba(255, 194, 60, 0.18);
}
.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #241a10;
    overflow: hidden;
}
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease, filter .6s ease;
    filter: brightness(.82);
}
.video-card:hover .video-thumb img { transform: scale(1.06); filter: brightness(.65); }
.video-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--gold-light);
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    letter-spacing: .5px;
    z-index: 2;
}
.video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.video-play span {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(155deg, var(--gold-light), var(--gold), var(--amber));
    color: #1a0f06;
    box-shadow: 0 8px 24px rgba(255, 194, 60, .45);
    transition: transform .3s ease;
}
.video-card:hover .video-play span { transform: scale(1.1); }
.video-play svg { width: 22px; height: 22px; margin-right: -3px; }
.video-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.video-card h3 {
    font-family: var(--ff-display);
    font-size: 17px;
    color: var(--cream);
    margin: 0 0 8px;
    font-weight: 700;
    line-height: 1.6;
}
.video-card p {
    font-size: 13.5px;
    color: var(--muted-2);
    line-height: 1.9;
    margin: 0;
    flex: 1;
}
.video-grid.is-filtering .video-card[data-hide="1"] { display: none; }

@media (max-width: 1024px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .video-grid { grid-template-columns: 1fr; }
    .videos-section { padding: 56px 0 70px; }
}

/* ===== پنجره‌ی پخش ویدیو (لایت‌باکس) ===== */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(8, 6, 4, .95);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    backdrop-filter: blur(10px);
}
.video-lightbox.open { display: flex; }
.video-lightbox-inner {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    background: #000;
}
.video-lightbox-inner iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.video-lightbox-close {
    position: absolute;
    top: -50px;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    color: var(--cream);
    display: grid;
    place-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: all .2s ease;
}
.video-lightbox-close:hover { background: rgba(255,255,255,.16); transform: scale(1.06); }
