/* =========================================================
   LISTAS POPULARES — vitrine estilo Letterboxd no feed
   ========================================================= */

.listas-pop-section {
    margin: 28px 0 32px;
    padding: 0;
}

.listas-pop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 18px;
}

.listas-pop-kicker {
    font-size: .72rem;
    letter-spacing: .18em;
    font-weight: 600;
    color: #6fb3d8;
    text-transform: uppercase;
}

.listas-pop-more {
    font-size: .68rem;
    letter-spacing: .15em;
    color: #8a95a3;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: color .15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.listas-pop-more:hover { color: #fff; }
.listas-pop-more i { font-size: .6rem; }

.listas-pop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}
@media (max-width: 900px) {
    .listas-pop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .listas-pop-grid { grid-template-columns: 1fr; }
}

/* ── Cada card de lista ─────────────────────────────── */
.lp-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease;
}
.lp-card:hover { transform: translateY(-3px); }
.lp-card:hover .lp-title { color: #6fb3d8; }

.lp-cover-stack {
    display: flex;
    width: 100%;
    aspect-ratio: 2.4 / 1;
    border-radius: 4px;
    overflow: hidden;
    background: #161e25;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
}

.lp-cover-stack .lp-poster {
    flex: 1 1 0;
    min-width: 0;
    background-color: #1f2730;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.lp-cover-stack .lp-poster + .lp-poster {
    border-left: 1px solid rgba(0, 0, 0, .5);
}
.lp-cover-stack .lp-poster.lp-empty {
    background: linear-gradient(135deg, #1c252e 0%, #2a3540 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .12);
    font-size: 1.4rem;
}

/* ── Título ──────────────────────────────────────────── */
.lp-title {
    margin: 14px 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    transition: color .15s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Autor ───────────────────────────────────────────── */
.lp-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.lp-author-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6fb3d8, #4a8ab1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}
.lp-author-name {
    font-size: .82rem;
    color: #9bb6c5;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Métricas (X items · Y likes · Z comments) ──────── */
.lp-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    font-size: .78rem;
    color: #768793;
}
.lp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.lp-meta-item i { font-size: .75rem; opacity: .7; }
.lp-meta-item.is-liked { color: #ff6b8a; }
.lp-meta-item.is-liked i { opacity: 1; }

/* ── Botão curtir inline (opcional) ─────────────────── */
.lp-like-btn {
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: inherit;
    font-family: inherit;
    transition: color .15s ease;
}
.lp-like-btn:hover { color: #ff6b8a; }
.lp-like-btn:hover i { transform: scale(1.15); }
.lp-like-btn i { transition: transform .15s ease; }

/* ── Skeleton de carregamento ───────────────────────── */
.lp-skeleton {
    aspect-ratio: 2.4 / 1;
    background: linear-gradient(90deg, #1a232b 0%, #232f38 50%, #1a232b 100%);
    background-size: 200% 100%;
    animation: lp-shimmer 1.4s ease-in-out infinite;
    border-radius: 4px;
}
@keyframes lp-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Tema claro ─────────────────────────────────────── */
:root.light-theme-early .listas-pop-kicker,
body.light-theme .listas-pop-kicker { color: #2d7396; }
:root.light-theme-early .listas-pop-header,
body.light-theme .listas-pop-header { border-bottom-color: rgba(0, 0, 0, .08); }
:root.light-theme-early .listas-pop-more,
body.light-theme .listas-pop-more { color: #6b7785; }
:root.light-theme-early .listas-pop-more:hover,
body.light-theme .listas-pop-more:hover { color: #111; }
:root.light-theme-early .lp-title,
body.light-theme .lp-title { color: #111; }
:root.light-theme-early .lp-author-name,
body.light-theme .lp-author-name { color: #4a6477; }
:root.light-theme-early .lp-meta,
body.light-theme .lp-meta { color: #6b7785; }
:root.light-theme-early .lp-cover-stack,
body.light-theme .lp-cover-stack { background: #e2e8ed; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
:root.light-theme-early .lp-cover-stack .lp-poster.lp-empty,
body.light-theme .lp-cover-stack .lp-poster.lp-empty { background: linear-gradient(135deg, #d4dbe1 0%, #c0c9d2 100%); color: rgba(0,0,0,.18); }
