/*
 * ioann-karpovka VideoCard (task 17). Markup: components/video-card.blade.php.
 * Design: docs/design/Site.dc.html?page=home, videos section (lines 289-300); list page (lines 556-565).
 * The card has no width of its own (the slider / grid sets it); the play disc size is --ik-video-play (set by the parent; 72px when unset,
 * the home slider sets a larger one). It does not change between breakpoints.
 * If a breakpoint rule is ever needed: desktop = (min-width: 768px), mobile = `not all and (min-width: 768px)`; never max-width (task 36).
 */
.ik-video-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; color: var(--iskm-navy); }
.ik-video-card__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-card); overflow: hidden; background: var(--iskm-navy); }
.ik-video-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .5s var(--ease); }
.ik-video-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: var(--ik-video-play, 72px);
    height: var(--ik-video-play, 72px);
    border-radius: 50%;
    background: var(--iskm-cream-50);
    color: var(--iskm-navy);
    display: grid;
    place-items: center;
    box-shadow: 0 8px 32px rgb(0 0 0 / .25);
}
.ik-video-card__play .ik-icon { display: block; width: 36%; height: 36%; margin-left: 8%; }
.ik-video-card__duration {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: var(--iskm-cream-50);
    color: var(--iskm-navy);
    font: 500 13px/1 var(--font-body);
}
.ik-video-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ik-video-card__title { margin: 0; font: 600 24px/1.15 var(--font-title); color: var(--iskm-navy); text-wrap: balance; overflow-wrap: break-word; }
.ik-video-card__link { color: inherit; text-decoration: none; outline: none; }
/* Hover only scales the cover: the title keeps its colour (overrides the global a:hover). */
.ik-video-card__link:hover { color: inherit; }
/* Stretched link: the whole card is one tab stop. */
.ik-video-card__link::after { content: ""; position: absolute; inset: 0; }
.ik-video-card__link:focus-visible::after {
    outline: 2px solid var(--iskm-teal);
    outline-offset: 3px;
    border-radius: var(--radius-card);
}
.ik-video-card__date { font: 400 14px/1.4 var(--font-body); color: var(--iskm-mauve-700); }
@media (hover: hover) {
    .ik-video-card:hover .ik-video-card__img { transform: scale(1.03); }
}
