/* ============================================================
   SF Related Videos  --  "More Videos" grid on single video pages
   ============================================================ */

.sf-related-videos {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.sf-related-videos__heading {
    font-family: "Roboto", "DM Sans", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0 0 16px 0;
    padding: 0;
}

.sf-related-videos__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* ---- Individual card ---- */
.sf-related-video-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f8f8;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sf-related-video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
}

/* Thumbnail */
.sf-related-video-card__thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: #1a1a1a;
}

.sf-related-video-card__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-related-video-card__no-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

/* Play overlay */
.sf-related-video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.sf-related-video-card:hover .sf-related-video-card__play {
    opacity: 1;
}

/* Info section */
.sf-related-video-card__info {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sf-related-video-card__title {
    font-family: "Roboto", "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sf-related-video-card:hover .sf-related-video-card__title {
    color: #3b9ae8;
}

.sf-related-video-card__meta {
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.sf-related-video-card__sep {
    color: #d1d5db;
}

/* ---- Tablet (3 columns) ---- */
@media (max-width: 900px) {
    .sf-related-videos__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- Mobile (2 columns) ---- */
@media (max-width: 600px) {
    .sf-related-videos__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .sf-related-videos__heading {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .sf-related-video-card__info {
        padding: 6px 8px 8px;
    }

    .sf-related-video-card__title {
        font-size: 12px;
    }

    .sf-related-video-card__meta {
        font-size: 10px;
    }

    .sf-related-video-card__play {
        width: 36px;
        height: 36px;
    }

    .sf-related-video-card__play svg {
        width: 22px;
        height: 22px;
    }
}
