/* Filtros da atividade no resumo do perfil. */
.profile-interactions {
    --activity-border: var(--plb-border, var(--ppw-border, #262c35));
    --activity-text: var(--plb-text, var(--ppw-text, #ecedee));
    --activity-muted: var(--plb-text-dim, var(--ppw-text-dim, #99a3b3));
    --activity-accent: var(--plb-accent, var(--ppw-accent, #c8a84b));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--plb-bg-card, var(--ppw-card, #181c22));
    border: 1px solid var(--activity-border);
    border-radius: 6px;
    padding: 4px 0;
    margin: 0 0 28px;
}
.perfil-letterboxd-page .plb-stats { margin-bottom: 8px; }
.perfil-poster-wall-page .profile-interactions {
    max-width: 1136px;
    margin: 18px auto;
    width: calc(100% - 64px);
}
.profile-interaction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 12px;
    border: 0;
    border-right: 1px solid var(--activity-border);
    border-radius: 0;
    background: transparent;
    color: var(--activity-text);
    font: inherit;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
.profile-interaction:last-child { border-right: 0; }
.profile-interaction-count {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.profile-interaction-label {
    color: var(--activity-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.profile-interaction:hover { background: rgba(200, 168, 75, .06); }
.profile-interaction.is-active {
    background: rgba(200, 168, 75, .1);
    color: var(--activity-accent);
    box-shadow: inset 0 -2px var(--activity-accent);
}
.profile-interaction.is-active .profile-interaction-label { color: var(--activity-accent); }
.profile-interaction:focus-visible, .profile-activity-reset:focus-visible {
    outline: 2px solid var(--accent, #c8a84b);
    outline-offset: 3px;
}
.profile-activity-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.profile-activity-heading h2 { font-size: 20px; margin: 0; }
.profile-activity-heading p {
    font-size: 12px;
    color: var(--plb-text-dim, var(--ppw-text-dim, var(--muted)));
    margin: 5px 0 0;
}
.profile-activity-reset {
    padding: 8px 0;
    background: transparent;
    border: 0;
    color: var(--plb-accent, var(--ppw-accent, var(--accent, #c8a84b)));
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.profile-activity-reset[hidden] { display: none; }
.profile-activity-message { padding: 32px 12px; text-align: center; color: var(--muted); }
#tab-atividade { scroll-margin-top: 135px; }
@media (max-width: 600px) {
    .perfil-poster-wall-page .profile-interactions { width: calc(100% - 32px); }
    .profile-interaction { gap: 6px; padding: 8px 4px; }
    .profile-interaction-count { font-size: 20px; }
    .profile-interaction-label { font-size: 10px; letter-spacing: .04em; }
    .profile-activity-heading { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .profile-interaction { transition: none; }
}


/* Acentos das estatísticas precisam continuar legíveis no fundo claro. */
:is(html.light-theme-early, body.light-theme) .profile-interaction { --activity-accent: var(--accent-ink, #806117); }
:is(html.light-theme-early, body.light-theme) .profile-activity-heading h2 { color: var(--text); }
