/**
 * Estilos do bloco de vídeos do YouTube ([arth_youtube_videos]).
 *
 * Card: thumbnail 16:9 com play overlay + duração; corpo com título, descrição
 * e metadados (data, views, curtidas). Grid responsivo; no carrossel o card é
 * reusado dentro do slider compartilhado (.arth-social-slider*).
 */

.arth-yt {
    --arth-yt-radius: 14px;
    --arth-yt-gap: 24px;
    --arth-yt-accent: #111530;
}

/* ---------- Grid ---------- */

.arth-yt__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--arth-yt-gap);
}

/* ---------- Card ---------- */

.arth-yt-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: var(--arth-yt-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 23, 81, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.arth-yt-card:hover,
.arth-yt-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(15, 23, 81, 0.16);
    outline: none;
}

.arth-yt-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #e9ecf5;
    background-size: cover;
    background-position: center;
}

.arth-yt-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.92;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.arth-yt-card__play svg {
    width: 58px;
    height: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.arth-yt-card:hover .arth-yt-card__play {
    opacity: 1;
    transform: scale(1.06);
}

.arth-yt-card__duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
}

.arth-yt-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px 18px;
}

.arth-yt-card__title {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--arth-yt-accent);
    /* Limita o título a 2 linhas. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.arth-yt-card__desc {
    font-size: 13.5px;
    line-height: 1.45;
    color: #2a2f4a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.arth-yt-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 2px;
    font-size: 13px;
    color: #6a6f86;
}

.arth-yt-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--arth-yt-accent);
}

.arth-yt-card__stat svg {
    width: 15px;
    height: 15px;
}

/* No carrossel, os cards de vídeo pedem um slide um pouco mais largo (16:9). */
.arth-yt.arth-social-slider {
    --arth-social-slide-width: 340px;
}

@media (max-width: 480px) {
    .arth-yt.arth-social-slider {
        --arth-social-slide-width: 80vw;
    }
}
