.wc-video-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex-grow: 1;
    min-width: 0;
    border-radius: 5px;
    color: inherit;
    text-decoration: none;
}

.wc-video-card__media {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    align-self: stretch;
    flex-grow: 0;
    flex-shrink: 0;
    height: 239.53px;
    gap: 10px;
    padding: 20px;
    border-radius: 10px;
    background: #d9d9d9;
    position: relative;
    overflow: hidden;
}

.wc-video-card__media img,
.wc-video-card__placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #f5f6f8;
}

.wc-video-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #616776;
}

.wc-video-card__placeholder span {
    position: relative;
    z-index: 2;
    margin-top: 58px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
}

.wc-video-card__placeholder::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(50% - 24px);
    transform: translate(-50%, -50%);
    width: 30px;
    height: 34px;
    background: #616776;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.wc-video-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
}

.wc-video-card__play::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 18px;
    border-left: 17px solid #b30000;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

/* Значок воспроизведения появляется и при фокусе с клавиатуры, не только при наведении мышью. */
.wc-video-card:hover .wc-video-card__play,
.wc-video-card:focus-visible .wc-video-card__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.02);
}

.wc-video-card:focus-visible {
    outline: 2px solid #b30000;
    outline-offset: 2px;
}

.wc-video-card__duration {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    gap: 10px;
    padding: 3px 5px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.5);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    text-align: left;
    color: #fff;
}

.wc-video-card__body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    align-self: stretch;
    flex-grow: 0;
    flex-shrink: 0;
    position: relative;
    gap: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.wc-video-card__title {
    align-self: stretch;
    flex-grow: 0;
    flex-shrink: 0;
    width: 100%;
    /* очень длинные названия и неразрывные слова: не более 3 строк,
       остальное срезается (иначе карточки растут на 10+ строк) */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 500;
    text-align: left;
    color: #000;
}

.wc-video-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    flex-grow: 0;
    flex-shrink: 0;
    gap: 15px;
}

.wc-video-card__author {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-grow: 0;
    flex-shrink: 1;
    min-width: 0;
    /* тело карточки выравнивает элементы по flex-start — без ограничения
       длинное имя автора выходит за карточку на узких экранах */
    max-width: 100%;
    position: relative;
    gap: 10px;
}

/* Логотип целиком в круге: cover обрезал логотипы-надписи («ИНБРИГ» превращался в «ИНЕ»). */
.wc-video-card__author img,
.wc-video-card__author-placeholder {
    flex-grow: 0;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 3px;
    border: 1px solid #eef0f3;
    border-radius: 147.5px;
    object-fit: contain;
    background: #ffffff;
}

.wc-video-card__author span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    text-align: left;
    color: #616776;
}

.wc-video-card__meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-grow: 0;
    flex-shrink: 0;
    position: relative;
    gap: 15px;
}

.wc-video-card__meta span {
    flex-grow: 0;
    flex-shrink: 0;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    text-align: left;
    color: #616776;
}

@media (max-width: 900px) {
    .wc-video-card__media {
        height: 220px;
    }

    .wc-video-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .wc-video-card__meta {
        justify-content: flex-start;
    }
}
