.video-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
}

.video-card__thumbnail {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    border: 0;
    cursor: pointer;
}

.video-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.video-card__thumbnail:hover img,
.video-card__thumbnail:focus-visible img {
    opacity: 0.82;
    transform: scale(1.035);
}

.video-card__thumbnail:focus-visible {
    outline: 4px solid var(--accent-color, #0d6efd);
    outline-offset: -4px;
}

.video-card__overlay {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    width: 64px;
    height: 64px;
    color: #fff;
    background: rgba(0, 0, 0, 0.68);
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    font-size: 2rem;
    place-items: center;
    transform: translate(-50%, -50%);
}

.video-card__provider {
    position: absolute;
    top: 12px;
    left: 12px;
}

.video-card__body {
    padding: 20px;
}

.video-card__body p {
    margin-bottom: 0;
    color: #64748b;
}

.video-player-frame {
    position: relative;
    width: 100%;
    min-height: 280px;
    aspect-ratio: 16 / 9;
    background: #050505;
}

.video-player-frame.is-portrait {
    width: min(100%, 460px);
    margin-inline: auto;
    aspect-ratio: 9 / 16;
}

.video-player-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-player-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
}

@media (max-width: 575.98px) {
    .video-player-frame {
        min-height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-card,
    .video-card__thumbnail img {
        transition: none;
    }
}
