/* ==========================================================================
   Videos page — video grid, video cards, lightbox, shared load-more wrap.
   Used on: /videos, /radio, /learn (cards + lightbox imported globally).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Video grid
   -------------------------------------------------------------------------- */

.reo-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .reo-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .reo-video-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Video card
   -------------------------------------------------------------------------- */

.reo-video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.reo-video-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

/* Thumbnail */
.reo-video-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-card-2);
}

.reo-video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.reo-video-card:hover .reo-video-card__thumb img {
    transform: scale(1.05);
}

.reo-video-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-card-2);
}

/* Play overlay */
.reo-video-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.reo-video-card:hover .reo-video-card__overlay {
    opacity: 1;
}

.reo-video-card__play {
    font-size: 48px;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    line-height: 1;
}

/* Duration badge */
.reo-video-card__duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
}

/* Pinned badge */
.reo-video-card__pin {
    position: absolute;
    top: 8px;
    left: 8px;
}

/* Popular badge (tutorials) */
.reo-video-card__popular {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent);
    color: #fff;
}

/* Card info */
.reo-video-card__info {
    padding: 16px;
}

.reo-video-card__title {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.reo-video-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-dim);
}

.reo-video-card__views {
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.reo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reo-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.reo-lightbox__content {
    position: relative;
    width: 90%;
    max-width: 960px;
    z-index: 1;
}

.reo-lightbox__close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.reo-lightbox__close:hover {
    color: var(--accent-light);
}

.reo-lightbox__embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.reo-lightbox__embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

/* --------------------------------------------------------------------------
   Load More (shared across videos / radio / learn)
   -------------------------------------------------------------------------- */

.reo-load-more-wrap {
    text-align: center;
    margin-top: 48px;
}
