/* ============================================================
   TLOP MEDIA — Cards
   ============================================================ */

/* ── Base compartida ── */
.card {
    display: flex;
    flex-direction: column;
}

.card__link {
    display: block;
    text-decoration: none;
    line-height: 0; /* evita espacio extra bajo la imagen */
}

/* ── Thumbnail ── */
.card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8e8e4;
    display: block;
}

.card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.card__link:hover .card__thumb img {
    opacity: 0.9;
}

.card__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #e0e0dc;
    display: block;
}

/* ── Ícono play ── */
.card__play {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding-left: 3px;
    pointer-events: none;
    line-height: 1;
}

.card__play--lg {
    width: 48px;
    height: 48px;
    font-size: 16px;
    bottom: 14px;
    right: 14px;
    padding-left: 4px;
}

.card__play--sm {
    width: 24px;
    height: 24px;
    font-size: 9px;
    bottom: 6px;
    right: 6px;
    padding-left: 2px;
}

/* ── Thumbnail pequeño — card-small ── */
.card__thumb--sm {
    width: 120px;
    min-width: 120px;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
}

/* ── Thumbnail cluster central ── */
.card__thumb--cluster {
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* ── Body ── */
.card__body {
    padding-top: 10px;
    flex: 1;
}

/* ── Categoría ── */
.card__category {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--acento);
    margin-bottom: 6px;
}

/* ── Títulos ── */
.card__title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
    color: var(--negro);
    margin-bottom: 8px;
}

.card__title a {
    color: inherit;
    text-decoration: none;
}

.card__title a:hover { color: var(--acento); }

.card__title--sm       { font-size: 14px; margin-bottom: 5px; }
.card__title--scroll   { font-size: 14px; margin-bottom: 5px;
                          display: -webkit-box; -webkit-line-clamp: 3;
                          -webkit-box-orient: vertical; overflow: hidden; }
.card__title--cluster-sec { font-size: 13px; margin-bottom: 4px; }

/* ── Extracto ── */
.card__extracto {
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.6;
    color: var(--gris);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__extracto--sm { font-size: 12px; -webkit-line-clamp: 4; }

/* ── Meta ── */
.card__meta {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--gris-cl);
    line-height: 1.4;
}

/* ── card--medium (Zona B superior) ── */
.card--medium {}

/* ── card--texto (Zona B inferior) ── */
.card--texto .card__body { padding-top: 0; }

/* ── card--small (Más Relevantes) ── */
.card--small {
    flex-direction: row;
    gap: 14px;
    align-items: flex-start;
}

.card--small .card__body { padding-top: 0; flex: 1; min-width: 0; }

/* ── card--scroll (Para Ti) ── */
.card--scroll {
    width: 220px;
    flex-shrink: 0;
    background: var(--fondo);
}

.card__body--scroll { padding: 8px 10px 10px; }

/* ── card--cluster-sec ── */
.card--cluster-sec {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--linea);
}
.card--cluster-sec:last-child { border-bottom: none; padding-bottom: 0; }

/* ── Cluster centro ── */
.cluster-caption {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--gris-cl);
    font-style: italic;
    margin-top: 8px;
}

.cluster-fuentes {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--gris);
    margin-top: 6px;
}

.cluster-fuentes strong { color: var(--acento); }
