/* ==========================================================================
   ALL VIDEOS PAGE (allvideo.html)
   Зависит от: video-shared.css
   ========================================================================== */

.videos-page {
    padding: 3rem 0;
    background-color: var(--bg-main);
    min-height: 100vh;
    transition: background-color 0.4s ease;
}



/* Сетка видео */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

/* Карточка видео (другой стиль, чем в video.html) */
.videos-page .video-card {
    background: var(--bg-block);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.videos-page .video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.videos-page .video-card:hover .video-thumbnail {
    transform: scale(1.03);
}

/* Кнопка Play */
.videos-page .play-button {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.videos-page .video-card:hover .play-button {
    background: var(--btn-cta-bg);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Заголовок видео */
.videos-page .video-title {
    padding: 1.2rem;
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-heading);
    font-weight: 600;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* Ссылка «Назад» */
.back-link {
    display: inline-block;
    margin: 2rem 0 1rem;
    padding: 10px 25px;
    background: transparent;
    color: var(--btn-outline-text);
    text-decoration: none;
    border: 1px solid var(--btn-outline-border);
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.back-link:hover {
    background: var(--btn-cta-bg);
    color: #fff;
    transform: translateY(-2px);
}

/* Заглушка при отсутствии видео */
.no-videos {
    text-align: center;
    grid-column: 1 / -1;
    padding: 3rem 0;
    color: var(--color-text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .videos-page .page-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .videos-page .video-title {
        font-size: 1rem;
        padding: 1rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .videos-page .page-title { font-size: 1.8rem; }
}
