/* Bloque "Últimos comentarios" (plugins/web/core/comments-extra.php, js/last-comments.js).
   Misma tarjeta que los comentarios (css/comments.css): borde blanco + negro,
   fondo de perfil detrás del avatar y franja de cabecera. */

.ht-lc {
    margin: 0;
    padding: 4px 2px;
    list-style: none;
}

.ht-lc-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    margin: 0 0 10px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 10px;
    background: #f5f9fb;
    box-shadow: 0 0 0 2px #000;
    text-align: left;
}

.ht-lc-item:last-child {
    margin-bottom: 0;
}

.ht-lc-item.is-new {
    animation: ht-lc-new 2s ease-out;
}

@keyframes ht-lc-new {
    0%, 40% { box-shadow: 0 0 0 2px #000, 0 0 0 5px #f0b400; }
    100% { box-shadow: 0 0 0 2px #000; }
}

/* Los enlaces llevan .ht-lc delante para ganar a ".widget-content li a"
   (inline-block con 12px de relleno). */

/* El fondo es pixel art: no se escala ni se repite. */
.ht-lc .ht-lc-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 0;
    background-color: #0a7fb0;
    background-position: 0 0;
    background-repeat: no-repeat;
    line-height: 0;
}

.ht-lc .ht-lc-avatar img {
    max-width: none;
}

/* "+15": cuántos más escribió. */
.ht-lc-more {
    position: absolute;
    right: 2px;
    bottom: 2px;
    padding: 2px 4px;
    border: 2px solid #fff;
    border-radius: 4px;
    background: #0080a8;
    box-shadow: 0 0 0 1px #000;
    font-size: 0.66rem;
    font-weight: bold;
    line-height: 1;
    color: #fff;
}

.ht-lc-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-left: 2px solid #fff;
    background: linear-gradient(#fff 30%, #e6eef2 100%);
}

.ht-lc-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 6px;
    padding: 3px 8px;
    border-bottom: 1px solid #c5d6de;
    background: linear-gradient(#e9f2f6, #d5e3ea);
    box-shadow: inset 0 -1px 0 #fff;
}

/* El nombre nunca se corta: si no cabe con la hora, la hora baja. */
.ht-lc-name {
    flex: 0 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ht-lc .ht-lc-name a {
    display: inline;
    padding: 0;
    font-weight: bold;
    color: #002938;
}

.ht-lc-head time {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 0.68rem;
    color: #4f6670;
    white-space: nowrap;
}

/* Una sola línea: lo que no cabe se corta con "…". */
.ht-lc-quote {
    margin: 5px 8px 2px;
    overflow: hidden;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #2a3b42;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ht-lc-quote .ht-cm-mention {
    font-weight: bold;
    color: #0080a8;
}

.ht-lc .ht-lc-post {
    display: block;
    margin: auto 8px 5px;
    padding: 0;
    overflow: hidden;
    font-size: 0.72rem;
    color: #0080a8;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ht-lc-sep {
    margin: 0 5px;
    color: #9fb3bc;
}

.ht-lc-post i {
    color: #6b7b83;
}

/* Noticia con movimiento: franja naranja, cabezas y el título. */
.ht-lc-item.is-hot {
    display: block;
}

.ht-lc-item.is-hot .ht-lc-head {
    border-bottom-color: #e0b36a;
    background: linear-gradient(#ffe9c2, #ffd48a);
}

.ht-lc-hot {
    font-size: 0.82rem;
    color: #8a3d00;
}

.ht-lc-hot .fa-fire {
    color: #ff6a00;
}

.ht-lc .ht-lc-hot-post {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: linear-gradient(#fff 30%, #e6eef2 100%);
}

.ht-lc-heads {
    display: flex;
    flex: 0 0 auto;
    padding-left: 12px;
}

.ht-lc-heads img {
    width: 44px;
    height: 44px;
    margin-left: -12px;
    object-fit: none;
    object-position: 50% 45%;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #cfdde4;
    box-shadow: 0 0 0 1px #000;
}

.ht-lc-title {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: bold;
    line-height: 1.3;
    color: #0080a8;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
