@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
    --bg:       #07090f;
    --surface:  #0d1117;
    --surface2: #111722;
    --border:   rgba(255,255,255,0.06);
    --border2:  rgba(255,255,255,0.11);
    --accent:   #c8a84b;
    --accent2:  #e8c96a;
    --cyan:     #38bdf8;
    --violet:   #a78bfa;
    --green:    #67e8b4;
    --text:     #e2e6f0;
    --muted:    #a3adc4;
    --radius:   12px;
    --radius-sm: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    min-height: 100vh;
}

/* ── HEADER ── */
.topbar {
    height: 68px;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(7,9,15,0.92);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 24px;
}

.header-left { display: flex; align-items: center; }
.logo-header { display: flex; align-items: center; text-decoration: none; opacity: 1; transition: opacity .2s; }
.logo-header:hover { opacity: .7; }
.logo-header img { height: 40px; display: block; }

.topbar .navcentral {
    position: static;
    transform: none;
    justify-self: center;
    min-width: 0;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.btn-header {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border2);
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.83rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    white-space: nowrap;
    transition: all .2s;
}
.btn-header:hover { color: var(--text); border-color: rgba(200,168,75,.35); background: rgba(200,168,75,.06); }

/* ── SEARCH USUARIOS ── */
.search-usuarios-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 7px 14px;
    transition: all .2s;
    flex: 1 1 220px;
    min-width: 170px;
    max-width: 280px;
}
.search-usuarios-wrap:focus-within {
    border-color: rgba(200,168,75,.4);
    box-shadow: 0 0 0 3px rgba(200,168,75,.08);
}
.search-usuarios-wrap i { color: var(--muted); font-size: .85rem; }
.search-usuarios-wrap input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: .87rem;
    width: 100%;
    min-width: 0;
}
.search-usuarios-wrap input::placeholder { color: var(--muted); }

.search-drop {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 36px rgba(0,0,0,.7);
    z-index: 200;
    display: none;
    max-height: 320px;
    overflow-y: auto;
}
.search-drop-item {
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
    font-size: .88rem;
}
.search-drop-item:last-child { border-bottom: none; }
.search-drop-item:hover { background: rgba(255,255,255,.04); }

/* ── HELPERS COMPARTILHADOS ── */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 20px;
    color: var(--muted);
    font-size: .9rem;
}

.spinner-sm {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(200,168,75,.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-msg    { color: var(--muted); font-size: .9rem; padding: 32px; text-align: center; font-weight: 300; }
.empty-msg-sm { color: var(--muted); font-size: .82rem; padding: 12px 0; line-height: 1.5; }

/* Stars */
.stars-wrap { position: relative; display: inline-block; }
.stars-bg { color: rgba(255,255,255,.1); font-size: 1rem; letter-spacing: 2px; user-select: none; }
.stars-fg {
    position: absolute;
    top: 0; left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: var(--accent-ink-hover, var(--accent2));
    font-size: 1rem;
    letter-spacing: 2px;
    user-select: none;
}
.rating-num { color: var(--accent-ink-hover, var(--accent2)); font-weight: 700; font-size: .88rem; margin-left: 4px; }

/* User item avatar */
.user-item-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border2);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: var(--muted);
    font-size: 1.3rem;
}
.user-item-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Type badges */
.type-badge-sm {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(200,168,75,.12);
    color: var(--accent-ink-hover, var(--accent2));
    border: 1px solid rgba(200,168,75,.2);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(6px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-box {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalIn .25s cubic-bezier(.34,1.2,.64,1);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(.95) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text);
    margin: 0;
}
.modal-close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    transition: color .2s, transform .2s;
}
.modal-close:hover { color: var(--text); transform: rotate(90deg); }

.modal-users-list { padding: 8px 0; }
.modal-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 24px;
    cursor: pointer;
    transition: background .15s;
    border-bottom: 1px solid var(--border);
    font-size: .88rem;
}
.modal-user-item:last-child { border-bottom: none; }
.modal-user-item:hover { background: rgba(255,255,255,.04); }

.modal-form { max-width: 440px; }
.form-group { padding: 14px 24px 0; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .75rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.form-group input, .form-group textarea {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: .9rem;
    padding: 11px 14px;
    transition: all .2s;
    resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: rgba(200,168,75,.4);
    box-shadow: 0 0 0 3px rgba(200,168,75,.08);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(90,100,128,.7); }

.form-row { flex-direction: row; align-items: center; gap: 12px; }
.visib-label { font-size: .85rem; color: var(--text); }

/* Toggle switch */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: rgba(255,255,255,.1); border: 1px solid var(--border2);
    transition: .3s; border-radius: 24px;
}
.toggle-slider:before {
    position: absolute; content: "";
    height: 18px; width: 18px;
    left: 2px; bottom: 2px;
    background: rgba(255,255,255,.6);
    transition: .3s; border-radius: 50%;
}
input:checked + .toggle-slider { background: rgba(200,168,75,.3); border-color: rgba(200,168,75,.5); }
input:checked + .toggle-slider:before { transform: translateX(20px); background: var(--accent2); }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    margin-top: 16px;
}
.btn-cancel {
    background: transparent; color: var(--muted); border: 1px solid var(--border2);
    padding: 9px 20px; border-radius: 6px; cursor: pointer;
    font-family: 'Outfit', sans-serif; font-size: .85rem; font-weight: 500;
    transition: all .2s;
}
.btn-cancel:hover { color: var(--text); }
.btn-salvar {
    background: var(--accent); color: #0a0c12; border: none;
    padding: 9px 24px; border-radius: 50px; cursor: pointer;
    font-family: 'Outfit', sans-serif; font-size: .85rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
    transition: all .2s cubic-bezier(.34,1.56,.64,1);
}
.btn-salvar:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,168,75,.35); }
.btn-salvar:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-deletar {
    background: rgba(248,113,113,.15); color: #f87171;
    border: 1px solid rgba(248,113,113,.3); padding: 9px 24px;
    border-radius: 6px; cursor: pointer; font-family: 'Outfit', sans-serif;
    font-size: .85rem; font-weight: 600; transition: all .2s;
}
.btn-deletar:hover { background: rgba(248,113,113,.25); }

/* ── SECTION ICON HEADER (design language from detalhes) ── */
.section-icon-header {
    display: flex;
    align-items: center;
    gap: 16px;
}
.icon-circle {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(200,168,75,0.1);
    border: 1px solid rgba(200,168,75,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-ink-hover, var(--accent2));
    font-size: 1rem;
    flex-shrink: 0;
}
.icon-circle-cyan {
    background: rgba(56,189,248,0.1);
    border-color: rgba(56,189,248,0.2);
    color: var(--cyan);
}
.icon-circle-violet {
    background: rgba(167,139,250,0.1);
    border-color: rgba(167,139,250,0.2);
    color: var(--violet);
}
.icon-circle-green {
    background: rgba(103,232,180,0.1);
    border-color: rgba(103,232,180,0.2);
    color: var(--green);
}
.section-icon-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.01em;
}
.section-subtitle {
    color: var(--muted);
    font-size: 0.82rem;
    margin: 2px 0 0;
    font-weight: 300;
}

/* ── FEED SOCIAL ── */
.social-container { max-width: 1200px; margin: 0 auto; padding: 36px 32px 80px; }

.social-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar */
.social-sidebar {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 16px;
    position: relative;
}
.sidebar-card::before {
    content: '';
    position: absolute;
    top: 0; left: 20px; right: 20px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    border-radius: 1px;
}

.sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.sidebar-card-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(200,168,75,0.1);
    border: 1px solid rgba(200,168,75,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-ink-hover, var(--accent2));
    font-size: 0.75rem;
    flex-shrink: 0;
}
.sidebar-card-icon-cyan {
    background: rgba(56,189,248,0.1);
    border-color: rgba(56,189,248,0.2);
    color: var(--cyan);
}
.sidebar-card-header h3 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-ink, var(--accent));
    margin: 0;
}

.sidebar-title {
    font-size: .68rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
}

.sidebar-users { display: flex; flex-direction: column; gap: 2px; }

.sidebar-user-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 6px;
    transition: background .15s;
}
.sidebar-user-item:hover { background: rgba(255,255,255,.04); }

.sidebar-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--surface2); border: 1px solid var(--border2);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0; color: var(--muted); font-size: 1.2rem;
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-nome {
    flex: 1; font-size: .85rem; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-nome small {
    display: block; overflow: hidden; text-overflow: ellipsis;
    color: var(--muted); font-size: .71rem; font-weight: 400;
}

.btn-follow-sm {
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--muted);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: .78rem;
    transition: all .2s; flex-shrink: 0;
}
.btn-follow-sm:hover { border-color: rgba(200,168,75,.4); color: var(--accent-ink-hover, var(--accent2)); background: rgba(200,168,75,.08); }
.btn-follow-sm.seguindo { color: var(--accent-ink-hover, var(--accent2)); border-color: rgba(200,168,75,.3); }
.btn-follow-sm:disabled { opacity: .4; cursor: not-allowed; }

/* Feed */
.social-feed {
    min-width: 0;
}

.feed-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.feed-header h2 {
    font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 1.5rem;
    color: var(--text); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px;
}
.feed-header h2 i { color: var(--accent-ink, var(--accent)); font-size: 1rem; }

.btn-refresh {
    background: transparent; border: 1px solid var(--border2);
    color: var(--muted); width: 36px; height: 36px;
    border-radius: 50%; cursor: pointer; display: flex;
    align-items: center; justify-content: center; font-size: .9rem;
    transition: all .2s;
}
.btn-refresh:hover { color: var(--text); border-color: var(--border2); transform: rotate(30deg); }

.feed-atividades { display: flex; flex-direction: column; gap: 14px; }

.feed-empty {
    text-align: center; padding: 72px 20px;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.feed-empty-icon { font-size: 3.5rem; }
.feed-empty h3 { font-family: 'DM Serif Display', serif; font-size: 1.5rem; font-weight: 400; color: var(--text); }
.feed-empty p { color: var(--muted); font-size: .9rem; font-weight: 300; }

/* Cards de atividade */
.atividade-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    position: relative;
}
.atividade-card::before {
    content: '';
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(56,189,248,0.3), transparent);
    border-radius: 1px;
}
.atividade-card:hover { border-color: var(--border2); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

.ativ-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px 0;
}
.ativ-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--surface2); border: 1px solid var(--border2);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0; color: var(--muted); font-size: 1.3rem;
}
.ativ-avatar img { width: 100%; height: 100%; object-fit: cover; }

.ativ-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ativ-nome { font-weight: 600; font-size: .9rem; color: var(--text); cursor: pointer; }
.ativ-nome:hover { color: var(--accent-ink-hover, var(--accent2)); }
.ativ-acao { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.ativ-time { font-size: .75rem; color: var(--muted); white-space: nowrap; }

.ativ-conteudo {
    display: flex; gap: 16px; padding: 14px 18px 16px;
    transition: background .15s;
}
.ativ-conteudo:hover { background: rgba(255,255,255,.02); }

.ativ-poster {
    width: 60px; height: 90px; border-radius: 6px;
    background: var(--surface2); flex-shrink: 0;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
}
.ativ-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ativ-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ativ-type-badge {
    font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    background: rgba(200,168,75,.1); color: var(--accent-ink-hover, var(--accent2));
    border: 1px solid rgba(200,168,75,.2); padding: 2px 8px; border-radius: 10px;
    width: fit-content;
}
.ativ-info h4 { font-size: .95rem; font-weight: 600; color: var(--text); margin: 0; line-height: 1.3; }
.ativ-stars { display: flex; align-items: center; gap: 4px; }
.ativ-comment {
    font-size: .82rem; color: var(--muted); font-style: italic;
    margin: 0; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── LISTAS TEMÁTICAS ── */
.listas-container { max-width: 1100px; margin: 0 auto; padding: 36px 32px 80px; }

.listas-page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 36px; gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.listas-page-header h1 {
    font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 1.8rem;
    color: var(--text); letter-spacing: -.02em; margin: 0;
}

.btn-nova-lista {
    background: var(--accent); color: #0a0c12;
    border: none; padding: 11px 22px; border-radius: 50px;
    cursor: pointer; font-family: 'Outfit', sans-serif; font-size: .85rem;
    font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    display: flex; align-items: center; gap: 8px;
    transition: all .22s cubic-bezier(.34,1.56,.64,1); white-space: nowrap;
}
.btn-nova-lista:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,168,75,.35); }

.listas-grid-full { display: flex; flex-direction: column; gap: 10px; }

.lista-card-full {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex; align-items: center;
    transition: border-color .2s, box-shadow .2s;
    position: relative;
}
.lista-card-full::before {
    content: '';
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(167,139,250,0.3), transparent);
    border-radius: 1px;
}
.lista-card-full:hover { border-color: var(--border2); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

.lista-card-main {
    flex: 1; display: flex; align-items: center; gap: 20px;
    padding: 18px 20px; cursor: pointer; min-width: 0;
    color: inherit; text-decoration: none;
}
.lista-card-main:focus-visible { outline: 2px solid var(--accent2); outline-offset: -3px; border-radius: var(--radius); }
.lista-card-ico {
    width: 48px; height: 48px; border-radius: 10px;
    background: rgba(200,168,75,.08); border: 1px solid rgba(200,168,75,.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-ink-hover, var(--accent2)); font-size: 1.1rem; flex-shrink: 0;
}
.lista-card-body { flex: 1; min-width: 0; }
.lista-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.lista-card-top h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 0; }
.lista-card-desc {
    font-size: .83rem; color: var(--muted); margin: 0 0 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lista-card-count { font-size: .78rem; color: var(--muted); }

.visib-tag {
    font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    padding: 2px 8px; border-radius: 10px; display: flex; align-items: center; gap: 4px;
}
.visib-tag.pub { background: rgba(56,189,248,.1); color: #7dd3fc; border: 1px solid rgba(56,189,248,.2); }
.visib-tag.priv { background: rgba(90,100,128,.1); color: var(--muted); border: 1px solid var(--border2); }

.lista-card-btns { display: flex; gap: 6px; padding: 0 16px; }
.btn-icon-sm {
    background: transparent; border: 1px solid var(--border2);
    color: var(--muted); width: 40px; height: 40px;
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: .8rem; transition: all .2s;
}
.btn-icon-sm:hover { color: var(--text); border-color: var(--border2); background: rgba(255,255,255,.05); }
.btn-icon-sm.danger:hover { color: #f87171; border-color: rgba(248,113,113,.3); background: rgba(248,113,113,.08); }

.listas-empty {
    text-align: center; padding: 72px 20px;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.listas-empty-icon { font-size: 3.5rem; }
.listas-empty h3 { font-family: 'DM Serif Display', serif; font-size: 1.5rem; font-weight: 400; color: var(--text); }
.listas-empty p { color: var(--muted); font-size: .9rem; max-width: 360px; font-weight: 300; }

/* Detalhe da lista */
.lista-detail-header {
    display: flex; align-items: flex-start; gap: 24px;
    margin-bottom: 36px; flex-wrap: wrap;
}
.btn-back {
    background: transparent; color: var(--muted); border: 1px solid var(--border2);
    padding: 9px 16px; border-radius: 6px; cursor: pointer;
    font-family: 'Outfit', sans-serif; font-size: .83rem; font-weight: 500;
    display: flex; align-items: center; gap: 8px; white-space: nowrap;
    transition: all .2s; flex-shrink: 0;
}
.btn-back:hover { color: var(--text); border-color: rgba(200,168,75,.35); background: rgba(200,168,75,.06); }

.lista-detail-meta { flex: 1; min-width: 0; }
.lista-detail-meta h1 {
    font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 2rem;
    color: var(--text); margin: 0 0 8px; letter-spacing: -.02em;
}
.lista-desc-text { color: var(--muted); font-size: .9rem; margin: 0 0 12px; font-weight: 300; }
.lista-detail-info { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lista-detail-info span { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.lista-detail-info i { color: var(--accent-ink, var(--accent)); }

.lista-detail-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-editar-lista {
    background: transparent; color: var(--muted); border: 1px solid var(--border2);
    padding: 8px 16px; border-radius: 6px; cursor: pointer;
    font-family: 'Outfit', sans-serif; font-size: .83rem; font-weight: 500;
    display: flex; align-items: center; gap: 7px; transition: all .2s;
}
.btn-editar-lista:hover { color: var(--text); border-color: rgba(200,168,75,.35); background: rgba(200,168,75,.06); }
.btn-deletar-lista {
    background: rgba(248,113,113,.1); color: #f87171; border: 1px solid rgba(248,113,113,.25);
    padding: 8px 16px; border-radius: 6px; cursor: pointer;
    font-family: 'Outfit', sans-serif; font-size: .83rem; font-weight: 500;
    display: flex; align-items: center; gap: 7px; transition: all .2s;
}
.btn-deletar-lista:hover { background: rgba(248,113,113,.2); }

.lista-itens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

/* ── Engajamento (curtir + comentários) na página de lista ── */
.lista-engaj { margin-top: 36px; }
.lista-engaj-bar {
    display: flex; align-items: center; gap: 22px;
    padding: 14px 18px; border: 1px solid var(--border);
    border-radius: 10px; background: var(--surface);
    margin-bottom: 20px;
}
.lista-curtir-btn {
    background: transparent; border: none; color: var(--muted);
    cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
    font-family: 'Outfit', sans-serif; font-size: .9rem; font-weight: 500;
    padding: 4px 0; transition: color .15s;
}
.lista-curtir-btn:hover { color: #ff6b8a; }
.lista-curtir-btn.is-liked { color: #ff6b8a; }
.lista-curtir-btn.is-liked i { animation: heart-pop .35s ease; }
@keyframes heart-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}
.lista-engaj-count {
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--muted); font-size: .9rem;
}
.le-label { color: var(--muted); font-weight: 400; }

.lista-comments-box {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 20px;
}
.lista-comments-title {
    margin: 0 0 16px; font-size: 1rem; color: var(--text);
    display: flex; align-items: center; gap: 8px; font-weight: 600;
}
.lista-comments-title i { color: var(--accent-ink, var(--accent)); }
.lista-comment-form {
    display: flex; gap: 10px; margin-bottom: 18px;
    border-bottom: 1px solid var(--border); padding-bottom: 18px;
}
.lista-comment-form textarea {
    flex: 1; background: var(--bg); border: 1px solid var(--border);
    color: var(--text); padding: 10px 12px; border-radius: 8px;
    font-family: 'Outfit', sans-serif; font-size: .88rem;
    resize: vertical; min-height: 44px; max-height: 160px;
}
.lista-comment-form textarea:focus {
    outline: none; border-color: rgba(200,168,75,.45);
}
.btn-enviar-com {
    background: var(--accent, #c8a84b); color: #1a1410; border: none;
    padding: 0 18px; border-radius: 8px; cursor: pointer;
    font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .85rem;
    align-self: flex-start; height: 44px; transition: opacity .15s;
}
.btn-enviar-com:hover { opacity: .85; }
.btn-enviar-com:disabled { opacity: .5; cursor: wait; }

.lista-comments-list { display: flex; flex-direction: column; gap: 14px; }
.lista-comment {
    display: flex; gap: 12px;
}
.lista-comment-avatar {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #c8a84b, #8a7333);
    display: flex; align-items: center; justify-content: center;
    color: #1a1410; font-weight: 700; font-size: .85rem;
    background-size: cover; background-position: center;
}
.lista-comment-body { flex: 1; min-width: 0; }
.lista-comment-head {
    display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px;
}
.lista-comment-author { color: var(--text); font-weight: 600; font-size: .87rem; }
.lista-comment-time { color: var(--muted); font-size: .73rem; }
.lista-comment-text { color: var(--text); font-size: .87rem; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.lista-comment-del {
    background: none; border: none; color: var(--muted); cursor: pointer;
    font-size: .75rem; padding: 0; margin-left: auto; opacity: 0;
    transition: opacity .15s, color .15s;
}
.lista-comment:hover .lista-comment-del { opacity: 1; }
.lista-comment-del:hover { color: #f87171; }
.lista-comments-empty {
    text-align: center; padding: 24px 0; color: var(--muted); font-size: .85rem;
}

.item-card {
    position: relative; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--border);
    overflow: hidden;
    transition: all .25s cubic-bezier(.34,1.2,.64,1);
}
.item-card-link { display: block; color: inherit; text-decoration: none; }
.item-card-link:focus-visible { outline: 3px solid var(--accent2); outline-offset: -3px; }
.item-card:hover { transform: translateY(-5px) scale(1.02); border-color: rgba(200,168,75,.25); box-shadow: 0 16px 40px rgba(0,0,0,.5); }

.item-poster {
    width: 100%; aspect-ratio: 2/3;
    background: var(--surface2);
    display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
    overflow: hidden;
}
.item-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .25s; }
.item-card:hover .item-poster img { filter: brightness(.75); }

.item-info {
    padding: 10px 12px;
    display: flex; flex-direction: column; gap: 4px;
}
.item-type {
    font-size: .65rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    color: var(--accent-ink-hover, var(--accent2));
}
.item-info h4 {
    font-size: .83rem; font-weight: 600; color: var(--text); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    line-height: 1.3;
}

.item-remove-btn {
    position: absolute; top: 6px; right: 6px; z-index: 3;
    background: rgba(0,0,0,.75); border: 1px solid rgba(248,113,113,.35);
    color: #ffaaaa; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: .8rem;
    opacity: 0; transition: all .2s;
}
.item-card:hover .item-remove-btn { opacity: 1; }
.item-remove-btn:focus-visible { opacity: 1; outline: 2px solid #fff; outline-offset: 2px; }
.item-remove-btn:hover { background: rgba(248,113,113,.2); transform: scale(1.1); }

@media (hover: none) {
    .item-remove-btn { opacity: 1; }
}

@media (max-width: 520px) {
    .listas-page-header { flex-direction: column; align-items: stretch; }
    .btn-nova-lista { align-self: flex-start; }
    .lista-card-full { flex-wrap: wrap; }
    .lista-card-main { flex-basis: 100%; }
    .lista-card-btns { width: 100%; justify-content: flex-end; padding: 0 12px 12px; }
}

.modal-overlay :is(button, input, textarea):focus-visible,
.listas-container :is(button, a, textarea):focus-visible {
    outline: 2px solid var(--accent2);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── PERFIL PÚBLICO ── */
.perfil-container { max-width: 1100px; margin: 0 auto; padding: 0 32px 80px; }

/* Hero */
.perfil-hero {
    position: relative; height: 320px; margin-bottom: 32px; border-radius: var(--radius);
    overflow: hidden; background: var(--surface);
}
.perfil-hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(200,168,75,.18) 0%, rgba(56,189,248,.08) 50%, rgba(167,139,250,.1) 100%);
}
.perfil-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(7,9,15,.95) 0%, rgba(7,9,15,.4) 60%, transparent 100%);
}
.perfil-hero-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; align-items: flex-end; gap: 28px;
    padding: 0 40px 32px;
}

.perfil-avatar-wrap { flex-shrink: 0; }
.perfil-avatar {
    width: 96px; height: 96px; border-radius: 50%;
    border: 3px solid rgba(200,168,75,.4);
    background: var(--surface2);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.5);
    color: var(--muted); font-size: 3.5rem;
}
.perfil-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.perfil-info { flex: 1; min-width: 0; }
.perfil-info h1 {
    font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 2rem;
    color: var(--text); margin: 0 0 4px; letter-spacing: -.02em;
}
.perfil-desde { color: var(--muted); font-size: .82rem; margin: 0 0 14px; }

.perfil-counters { display: flex; gap: 24px; flex-wrap: wrap; }
.counter { display: flex; flex-direction: column; gap: 2px; }
.counter-val { font-size: 1.3rem; font-weight: 700; color: var(--text); line-height: 1; }
.counter-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.counter-clickable {
    cursor: pointer;
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: 8px;
    transition: background 0.15s, transform 0.15s;
}
.counter-clickable:hover {
    background: rgba(200, 168, 75, 0.08);
    transform: translateY(-1px);
}
.counter-clickable:hover .counter-val {
    color: #e8c96a;
}
.counter-clickable:focus-visible {
    outline: 2px solid #c8a84b;
    outline-offset: 2px;
}

.perfil-actions { flex-shrink: 0; display: flex; gap: 10px; align-items: center; }

.btn-seguir, .btn-seguindo {
    padding: 10px 22px; border-radius: 50px; cursor: pointer;
    font-family: 'Outfit', sans-serif; font-size: .85rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
    display: flex; align-items: center; gap: 8px;
    transition: all .22s cubic-bezier(.34,1.56,.64,1);
}
.btn-seguir { background: var(--accent); color: #0a0c12; border: none; }
.btn-seguir:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,168,75,.35); }
.btn-seguindo { background: transparent; color: var(--muted); border: 1px solid var(--border2); }
.btn-seguindo:hover { color: #f87171; border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.08); }
.btn-seguir:disabled, .btn-seguindo:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-mensagem {
    padding: 10px 22px; border-radius: 50px; cursor: pointer;
    font-family: 'Outfit', sans-serif; font-size: .85rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
    display: flex; align-items: center; gap: 8px;
    transition: all .22s cubic-bezier(.34,1.56,.64,1);
    background: transparent; color: var(--accent-ink, var(--accent)); border: 1px solid var(--accent);
}
.btn-mensagem:hover {
    background: rgba(200,168,75,.12); transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200,168,75,.2);
}

/* Compatibilidade */
.compat-section { margin-bottom: 28px; }
.compat-card {
    background: var(--surface);
    border: 1px solid rgba(200,168,75,.2);
    border-radius: var(--radius);
    padding: 24px 28px;
    display: flex; align-items: center; gap: 28px;
    position: relative;
}
.compat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 28px; right: 28px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    border-radius: 1px;
}

.compat-score-wrap { position: relative; width: 100px; height: 100px; flex-shrink: 0; }
.compat-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.compat-ring-bg { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 8; }
.compat-ring-fill {
    fill: none; stroke: var(--accent); stroke-width: 8;
    stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.4,0,.2,1), stroke .5s;
}
.compat-score-inner {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.compat-pct { font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1; }
.compat-label { font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.compat-info { flex: 1; }
.compat-info h3 { font-family: 'DM Serif Display', serif; font-size: 1.2rem; font-weight: 400; color: var(--text); margin: 0 0 6px; }
.compat-info p { color: var(--muted); font-size: .88rem; margin: 0 0 10px; }
.compat-stats span { font-size: .78rem; color: var(--muted); background: var(--surface2); border: 1px solid var(--border); padding: 4px 12px; border-radius: 20px; }

.tab-section-header {
    margin-bottom: 20px;
}
.seguidores-col-header {
    margin-bottom: 16px;
}
.seguidores-col-header h3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--text);
    margin: 0;
}

/* Tabs */
.perfil-tabs {
    display: flex; gap: 4px; background: rgba(255,255,255,.03);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 4px; margin-bottom: 24px; width: fit-content;
}
.perfil-tab {
    background: transparent; color: var(--muted); border: none;
    padding: 8px 18px; border-radius: 6px; cursor: pointer;
    font-family: 'Outfit', sans-serif; font-size: .85rem; font-weight: 500;
    display: flex; align-items: center; gap: 7px; transition: all .18s;
    white-space: nowrap;
}
.perfil-tab:hover { color: var(--text); }
.perfil-tab.active { background: var(--surface2); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.4); }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Avaliações no perfil */
.avaliacoes-recentes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }

.av-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px; display: flex; gap: 14px;
    cursor: pointer; transition: all .2s;
}
.av-card:hover { border-color: rgba(200,168,75,.25); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }

.av-poster {
    width: 60px; height: 90px; border-radius: 6px; flex-shrink: 0;
    background: var(--surface2); overflow: hidden;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.av-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-poster-placeholder { font-size: 1.8rem; }

.av-info { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.av-type-badge {
    font-size: .65rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    background: rgba(200,168,75,.1); color: var(--accent-ink-hover, var(--accent2));
    border: 1px solid rgba(200,168,75,.2); padding: 2px 8px; border-radius: 10px; width: fit-content;
}
.av-titulo { font-size: .92rem; font-weight: 600; color: var(--text); margin: 0; line-height: 1.3; }
.av-stars { display: flex; align-items: center; gap: 4px; }
.av-comment { font-size: .78rem; color: var(--muted); font-style: italic; margin: 0; }
.av-date { font-size: .72rem; color: rgba(90,100,128,.7); margin-top: auto; }

/* Listas no perfil */
.listas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.lista-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 18px; cursor: pointer; display: flex; align-items: center; gap: 14px;
    transition: all .2s;
}
.lista-card:hover { border-color: rgba(200,168,75,.25); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.lista-card-icon {
    width: 40px; height: 40px; border-radius: 8px;
    background: rgba(200,168,75,.08); border: 1px solid rgba(200,168,75,.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-ink-hover, var(--accent2)); font-size: .9rem; flex-shrink: 0;
}
.lista-card-info h4 { font-size: .9rem; font-weight: 600; color: var(--text); margin: 0 0 3px; }
.lista-card-info p { font-size: .78rem; color: var(--muted); margin: 0 0 4px; line-height: 1.4; }
.lista-card-info span { font-size: .72rem; color: var(--muted); }

/* Biblioteca no perfil */
.bib-filters {
    display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}
.bib-filter {
    background: var(--surface); border: 1px solid var(--border); color: var(--muted);
    padding: 7px 16px; border-radius: 20px; font-size: .8rem;
    font-family: inherit; font-weight: 500; cursor: pointer;
    transition: all .2s; display: flex; align-items: center; gap: 6px;
}
.bib-filter:hover { border-color: rgba(200,168,75,.35); color: var(--text); }
.bib-filter.active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #111; border-color: var(--accent);
}
.bib-explica {
    font-size: .82rem; color: var(--muted);
    background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.25);
    border-radius: 10px; padding: 10px 14px; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}
.bib-explica i { color: #a78bfa; font-size: 1rem; }

/* Grid de poster (compartilhado com telausuario) */
.fila-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}
.biblioteca-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 14px;
}
.fila-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 2/3;
    background: var(--surface2);
    cursor: pointer;
    transition: transform .25s cubic-bezier(0.34,1.2,0.64,1), box-shadow .25s;
}
.fila-card:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}
.fila-card img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: filter .25s;
}
.fila-card:hover img { filter: brightness(0.55); }
.fila-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem;
    background: rgba(200,168,75,0.06);
}
.fila-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 55%);
    opacity: 0; transition: opacity .25s;
    display: flex; flex-direction: column;
    justify-content: flex-end; padding: 10px; gap: 6px;
}
.fila-card:hover .fila-card-overlay { opacity: 1; }
.fila-card-title {
    font-size: .78rem; font-weight: 600; color: #fff; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.fila-badge {
    position: absolute; top: 8px; right: 8px;
    background: rgba(0,0,0,0.7); color: var(--accent-ink-hover, var(--accent2));
    font-size: .65rem; font-weight: 600;
    padding: 3px 8px; border-radius: 10px;
    border: 1px solid rgba(200,168,75,0.3);
    z-index: 2; backdrop-filter: blur(4px);
}
.fila-rating-badge {
    position: absolute; top: 8px; left: 8px;
    background: rgba(0,0,0,0.78); color: var(--accent-ink, var(--accent, #c8a84b));
    font-size: .72rem; font-weight: 700;
    padding: 3px 8px; border-radius: 10px;
    border: 1px solid rgba(200,168,75,0.45);
    z-index: 2; backdrop-filter: blur(4px); letter-spacing: .3px;
}
.fila-stars { margin-bottom: 4px; }
.btn-fila-remover {
    background: rgba(248,113,113,0.15);
    border: 1px solid rgba(248,113,113,0.5);
    color: #fca5a5;
    padding: 5px 8px; border-radius: 6px;
    font-size: .68rem; font-family: inherit; font-weight: 500;
    cursor: pointer; width: 100%;
    transition: all .2s; margin-top: 4px;
}
.btn-fila-remover:hover:not(:disabled) {
    background: rgba(248,113,113,0.3); color: #fff;
}
.btn-fila-remover:disabled { opacity: .4; cursor: not-allowed; }

.mini-stars {
    position: relative; display: inline-block;
    font-size: .9rem; line-height: 1; letter-spacing: 1px;
    font-family: Arial, sans-serif;
}
.mini-stars-bg { color: rgba(255,255,255,.25); }
.mini-stars-fg {
    position: absolute; top: 0; left: 0;
    color: var(--accent-ink, var(--accent, #c8a84b)); overflow: hidden; white-space: nowrap;
}
.mini-rating-num { font-size: .72rem; color: var(--accent-ink-hover, var(--accent2, #f0c469)); font-weight: 600; margin-left: 4px; }

/* Seguidores tab */
.seguidores-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.seguidores-col h3 {
    font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 1.1rem;
    color: var(--text); margin: 0 0 16px;
}
.users-list { display: flex; flex-direction: column; gap: 4px; }
.user-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 6px; cursor: pointer;
    transition: background .15s; font-size: .88rem;
}
.user-item:hover { background: rgba(255,255,255,.04); }

/* ── MODAL ADICIONAR MÍDIA ── */
.modal-add-midia { max-width: 560px; max-height: 85vh; display: flex; flex-direction: column; }

.add-midia-search { padding: 16px 24px 12px; border-bottom: 1px solid var(--border); }
.search-input-wrap {
    position: relative; display: flex; align-items: center;
    background: rgba(255,255,255,.04); border: 1px solid var(--border2);
    border-radius: var(--radius-sm); padding: 0 14px;
    transition: all .2s;
}
.search-input-wrap:focus-within {
    border-color: rgba(200,168,75,.4);
    box-shadow: 0 0 0 3px rgba(200,168,75,.08);
}
.search-input-wrap i { color: var(--muted); font-size: .85rem; flex-shrink: 0; }
.search-input-wrap input {
    flex: 1; background: transparent; border: none; color: var(--text);
    font-family: 'Outfit', sans-serif; font-size: .9rem;
    padding: 11px 12px; outline: none;
}
.search-input-wrap input::placeholder { color: rgba(90,100,128,.7); }

.search-filters { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.filter-chip {
    background: rgba(255,255,255,.05); border: 1px solid var(--border2);
    color: var(--muted); padding: 5px 12px; border-radius: 20px;
    font-family: 'Outfit', sans-serif; font-size: .75rem; font-weight: 500;
    cursor: pointer; transition: all .2s; white-space: nowrap;
}
.filter-chip:hover { color: var(--text); border-color: var(--border2); background: rgba(255,255,255,.08); }
.filter-chip.active {
    background: rgba(200,168,75,.15); color: var(--accent-ink-hover, var(--accent2));
    border-color: rgba(200,168,75,.35);
}

.add-midia-results {
    flex: 1; overflow-y: auto; padding: 8px 0;
    min-height: 200px; max-height: 50vh;
}

.add-midia-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 48px 20px; gap: 12px; color: var(--muted);
}
.add-midia-placeholder i { font-size: 2rem; opacity: .4; }
.add-midia-placeholder p { font-size: .88rem; margin: 0; font-weight: 300; }

.add-midia-item {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 24px; cursor: pointer; transition: background .15s;
    border-bottom: 1px solid var(--border);
}
.add-midia-item:last-child { border-bottom: none; }
.add-midia-item:hover { background: rgba(255,255,255,.04); }

.add-midia-poster {
    width: 44px; height: 66px; border-radius: 4px; overflow: hidden;
    background: var(--surface2); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.add-midia-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }

.add-midia-info { flex: 1; min-width: 0; }
.add-midia-info h4 {
    font-size: .88rem; font-weight: 600; color: var(--text); margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.add-midia-info .add-midia-sub {
    font-size: .75rem; color: var(--muted); margin: 3px 0 0;
    display: flex; align-items: center; gap: 8px;
}

.add-midia-action { flex-shrink: 0; }
.btn-add-item {
    background: rgba(200,168,75,.12); color: var(--accent-ink-hover, var(--accent2));
    border: 1px solid rgba(200,168,75,.25); padding: 6px 14px;
    border-radius: 20px; font-family: 'Outfit', sans-serif;
    font-size: .75rem; font-weight: 600; cursor: pointer;
    transition: all .2s; display: flex; align-items: center; gap: 5px;
}
.btn-add-item:hover { background: rgba(200,168,75,.25); transform: translateY(-1px); }
.btn-add-item.added {
    background: rgba(74,222,128,.1); color: #4ade80;
    border-color: rgba(74,222,128,.25); cursor: default;
    pointer-events: none;
}
.btn-add-item.already {
    background: rgba(90,100,128,.1); color: var(--muted);
    border-color: var(--border2); cursor: default;
    pointer-events: none;
}

.add-midia-spinner {
    display: flex; align-items: center; justify-content: center; padding: 32px;
}

.add-midia-btn-wrap { margin-bottom: 20px; }
.btn-add-midia {
    background: rgba(200,168,75,.1); color: var(--accent-ink-hover, var(--accent2));
    border: 1px dashed rgba(200,168,75,.35); padding: 10px 20px;
    border-radius: 8px; cursor: pointer; font-family: 'Outfit', sans-serif;
    font-size: .85rem; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
    transition: all .2s;
}
.btn-add-midia:hover { background: rgba(200,168,75,.2); border-style: solid; transform: translateY(-1px); }

/* ── Post Type Badges ─────────────────────────────── */
.post-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 6px 56px;
}
.post-type-review      { background: rgba(200,168,75,.15); color: #c8a84b; }
.post-type-terminei    { background: rgba(34,197,94,.15);  color: #22c55e; }
.post-type-abandonei   { background: rgba(239,68,68,.15);  color: #ef4444; }
.post-type-vale_a_pena { background: rgba(167,139,250,.15); color: #a78bfa; }
.post-type-melhor_cena { background: rgba(245,158,11,.15); color: #f59e0b; }

/* ── Spoiler Overlay ─────────────────────────────── */
.ativ-comment-wrap { position: relative; }
.ativ-comment-wrap.spoiler-hidden .ativ-comment {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
}
.spoiler-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(15,15,30,.7);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.82rem;
    cursor: pointer;
    z-index: 2;
    transition: background .2s;
}
.spoiler-overlay:hover { background: rgba(15,15,30,.5); color: #e2e8f0; }

/* ── Botao Util (like) ───────────────────────────── */
.ativ-actions {
    display: flex;
    padding: 6px 16px 10px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.btn-util {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 5px 14px;
    color: #94a3b8;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all .2s;
}
.btn-util:hover { border-color: #c8a84b; color: #c8a84b; background: rgba(200,168,75,.08); }
.btn-util.liked { border-color: #c8a84b; color: #c8a84b; background: rgba(200,168,75,.15); }
.btn-util.liked .fa-thumbs-up { color: #c8a84b; }
.util-count { font-weight: 600; }

/* ── Botao Repost ───────────────────────────────── */
.btn-repost-feed {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 5px 14px;
    margin-left: 8px;
    color: #94a3b8;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all .2s;
}
.btn-repost-feed:hover { border-color: #22c55e; color: #22c55e; background: rgba(34,197,94,.08); }
.btn-repost-feed.reposted { border-color: #22c55e; color: #22c55e; background: rgba(34,197,94,.15); }
.btn-repost-feed.reposted .fa-retweet { color: #22c55e; }
.btn-repost-feed .repost-count { font-weight: 600; }

/* ── Repost Banner ──────────────────────────────── */
.repost-banner {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px 4px;
    color: #22c55e;
    font-size: 0.75rem;
    font-weight: 500;
}
.repost-banner .fa-retweet { font-size: 0.7rem; }
.repost-banner span:hover { text-decoration: underline; }

/* ── Repost Cards (Perfil) ──────────────────────── */
.reposts-lista {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.repost-card {
    background: var(--surface, #0e1420);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .2s;
}
.repost-card:hover { border-color: rgba(34,197,94,.25); }

.repost-card-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(34,197,94,.06);
    color: #22c55e;
    font-size: 0.78rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.repost-card-banner .fa-retweet { font-size: 0.75rem; }

.repost-card-original { padding: 0; }

.repost-original-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 0;
}

.repost-original-user {
    display: flex;
    align-items: center;
    gap: 8px;
}
.repost-original-user:hover .repost-original-nome { color: var(--accent-ink, var(--accent, #c8a84b)); }

.repost-original-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.repost-original-avatar-icon { font-size: 1.6rem; color: #475569; }
.repost-original-nome { font-weight: 500; font-size: 0.85rem; color: var(--text); }

.repost-post-type {
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.repost-card-body {
    display: flex;
    gap: 14px;
    padding: 12px 16px;
    transition: background .2s;
}
.repost-card-body:hover { background: rgba(255,255,255,.02); }

.repost-card-poster {
    width: 70px;
    min-width: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.repost-card-poster img { width: 100%; display: block; border-radius: 8px; }

.repost-card-info {
    flex: 1;
    min-width: 0;
}
.repost-card-info h4 {
    margin: 4px 0 6px;
    font-size: 0.95rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.repost-comment-wrap { margin-top: 6px; position: relative; }
.repost-comment-wrap.spoiler-hidden .av-comment { filter: blur(6px); user-select: none; }
.repost-comment-wrap.spoiler-hidden .spoiler-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    gap: 6px; cursor: pointer;
    background: rgba(15,15,30,.6);
    border-radius: 6px;
    font-size: 0.78rem;
    color: #94a3b8;
}

.repost-card-stats {
    display: flex;
    gap: 16px;
    padding: 8px 16px 12px;
    border-top: 1px solid rgba(255,255,255,.04);
    font-size: 0.75rem;
    color: #64748b;
}
.repost-card-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.repost-card-stats .fa-thumbs-up { color: var(--accent-ink, var(--accent, #c8a84b)); }
.repost-card-stats .fa-retweet { color: #22c55e; }

/* Responsive */
@media (max-width: 1180px) {
    .topbar { padding: 0 24px; gap: 14px; }
    .topbar .navcentral { gap: 2px; }
    .topbar .nc-link { padding: 8px 10px; }
    .search-usuarios-wrap { flex-basis: 190px; max-width: 220px; }
    .header-right a.btn-header { font-size: 0; padding: 9px 11px; gap: 0; }
    .header-right a.btn-header i { font-size: 1rem; }
}

@media (max-width: 900px) {
    .social-layout { grid-template-columns: 1fr; }
    .social-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .seguidores-cols { grid-template-columns: 1fr; gap: 24px; }
    .perfil-hero-content { padding: 0 24px 24px; flex-wrap: wrap; }
    .section-icon-header h2 { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    .topbar { padding: 0 20px; }
    .social-container, .listas-container, .perfil-container { padding: 24px 16px 60px; }
    .perfil-tabs { width: 100%; overflow-x: auto; }
    .avaliacoes-recentes { grid-template-columns: 1fr; }
    .lista-itens-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    #bibliotecaContent.ratings-container { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
}

/* Topbar mobile: barra inferior ja cobre navegacao, entao enxuga o header-right */
@media (max-width: 740px) {
    .topbar { padding: 0 14px; gap: 10px; }
    .header-right { gap: 8px; min-width: 0; }
    /* search encolhe e nao empurra os botoes pra fora */
    .search-usuarios-wrap { flex: 1 1 auto; min-width: 0; padding: 7px 12px; }
    .search-usuarios-wrap input { width: 100%; min-width: 0; }
    /* botoes redundantes (ja estao na barra inferior) somem */
    .header-right a.btn-header[href="listas.html"],
    .header-right a.btn-header[href="telausuario.html"] { display: none; }
    /* botoes restantes (Chat) viram so icone */
    .header-right a.btn-header { font-size: 0; padding: 9px 11px; gap: 0; }
    .header-right a.btn-header i { font-size: 1rem; }
}

/* Notificacoes */
.notif-wrapper { position: relative; }
.btn-notif { position: relative; }
.notif-badge {
    position: absolute; top: -4px; right: -4px;
    background: #ef4444; color: #fff; font-size: .65rem; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px; line-height: 1;
}
.notif-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 380px; max-height: 480px;
    background: var(--surface, #161922); border: 1px solid var(--border2, rgba(255,255,255,.08));
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,.5);
    z-index: 1000;
}
.notif-dropdown-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px; border-bottom: 1px solid var(--border2, rgba(255,255,255,.08));
}
.notif-dropdown-header h3 { font-size: .95rem; color: var(--text-main, #e5e5e5); margin: 0; }
.notif-mark-all {
    background: none; border: none; color: var(--accent-ink, var(--accent, #c8a84b)); font-size: .75rem;
    cursor: pointer; font-weight: 600;
}
.notif-dropdown-list { max-height: 400px; overflow-y: auto; }
.notif-item {
    display: flex; gap: 12px; padding: 12px 18px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    cursor: pointer; transition: background .15s;
}
.notif-item:hover { background: rgba(255,255,255,.04); }
.notif-item.nao-lida { background: rgba(200,168,75,.06); }
.notif-item-avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; }
.notif-item-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.notif-item-avatar i { font-size: 38px; color: var(--muted); }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-text { font-size: .82rem; color: var(--text-main, #e5e5e5); line-height: 1.4; }
.notif-item-text strong { color: var(--accent-ink, var(--accent, #c8a84b)); }
.notif-item-time { font-size: .7rem; color: var(--muted); margin-top: 3px; }
.notif-item-poster { width: 40px; height: 56px; border-radius: 6px; flex-shrink: 0; object-fit: cover; }
.notif-empty { padding: 40px 18px; text-align: center; color: var(--muted); font-size: .85rem; }

/* ── STATS ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat-card {
    background: var(--surface); border: 1px solid var(--border2);
    border-radius: 16px; padding: 20px; text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.stat-card-icon { font-size: 1.8rem; margin-bottom: 8px; }
.stat-card-icon.gold { color: #c8a84b; }
.stat-card-icon.blue { color: #60a5fa; }
.stat-card-icon.green { color: #34d399; }
.stat-card-icon.red { color: #f87171; }
.stat-card-icon.purple { color: #a78bfa; }
.stat-card-value { font-size: 1.8rem; font-weight: 800; color: var(--text); }
.stat-card-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.stat-bar-container { margin-top: 12px; }
.stat-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.05); }
.stat-bar-segment { height: 100%; transition: width .5s ease; }

/* ── CONQUISTAS ── */
.icon-circle-yellow {
    background: rgba(245,158,11,0.1);
    border-color: rgba(245,158,11,0.2);
    color: #f59e0b;
}
.conquistas-progress { margin-bottom: 24px; }
.conquistas-progress-info { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.conquistas-progress-bar { height: 8px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
.conquistas-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #f59e0b); border-radius: 4px; transition: width .6s ease; }
.conquistas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.conquista-card {
    background: var(--surface); border: 1px solid var(--border2);
    border-radius: 14px; padding: 20px 14px; text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.conquista-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.conquista-icon { font-size: 2rem; margin-bottom: 8px; }
.conquista-nome { font-size: .85rem; font-weight: 700; color: var(--text); margin: 0 0 4px; }
.conquista-desc { font-size: .72rem; color: var(--muted); margin: 0; line-height: 1.3; }
.conquista-locked { opacity: .35; }
.conquista-locked .conquista-icon { color: var(--muted) !important; }
.conquistas-locked-title { font-size: .9rem; color: var(--muted); margin: 28px 0 14px; font-weight: 600; }
.conquistas-empty { text-align: center; color: var(--muted); padding: 30px; font-size: .85rem; }

/* ── RECOMENDACOES ── */
.recomendacoes-section { margin: 30px 0; padding: 0 20px; }
.recomendacoes-carousel-wrapper { position: relative; }
.recomendacoes-grid { display: flex; gap: 16px; overflow-x: auto; padding: 10px 0; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.recomendacoes-grid::-webkit-scrollbar { display: none; }
.rec-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 10;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(10,12,20,0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s;
    opacity: 0.7;
}
.rec-arrow:hover { background: rgba(10,12,20,0.97); border-color: rgba(255,255,255,0.35); opacity: 1; }
.rec-arrow-left { left: -20px; }
.rec-arrow-right { right: -20px; }
.rec-arrow.hidden { opacity: 0; pointer-events: none; }
.recomendacao-card {
    flex-shrink: 0; width: 150px; cursor: pointer;
    border-radius: 12px; overflow: hidden;
    background: var(--surface); transition: transform .2s;
    scroll-snap-align: start;
}
.recomendacao-card:hover { transform: scale(1.05); }
.recomendacao-card img { width: 100%; height: 220px; object-fit: cover; }
.recomendacao-info { padding: 10px; }
.recomendacao-info h4 { font-size: .8rem; color: var(--text); margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recomendacao-rating { font-size: .72rem; color: var(--accent-ink, var(--accent)); }
.recomendacao-motivo { font-size: .65rem; color: var(--muted); margin: 3px 0 0; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── COMENTARIOS ── */
.btn-comentar { background: none; border: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 5px; font-size: .85rem; transition: color .2s; }
.btn-comentar:hover { color: var(--accent-ink, var(--accent)); }
.comentarios-section { display: none; border-top: 1px solid var(--border2, rgba(255,255,255,.06)); padding: 14px 0 0; margin-top: 12px; }
.comentarios-section.open { display: block; }
.comentario-item { display: flex; gap: 10px; padding: 8px 0; }
.comentario-avatar { width: 30px; height: 30px; flex-shrink: 0; }
.comentario-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.comentario-avatar i { font-size: 30px; color: var(--muted); }
.comentario-body { flex: 1; }
.comentario-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.comentario-nome { font-size: .8rem; color: var(--accent-ink, var(--accent)); cursor: pointer; }
.comentario-nome:hover { text-decoration: underline; }
.comentario-tempo { font-size: .7rem; color: var(--muted); }
.comentario-texto { font-size: .82rem; color: var(--text); line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.comentario-edit-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .7rem; padding: 2px 4px; }
.comentario-edit-btn:hover { color: var(--accent-ink, var(--accent)); }
.comentario-edit-input {
    width: 100%;
    min-height: 64px;
    resize: vertical;
    background: var(--surface2, rgba(255,255,255,.05));
    border: 1px solid var(--border2, rgba(255,255,255,.08));
    border-radius: 10px;
    color: var(--text);
    padding: 8px 10px;
    font: inherit;
    outline: none;
}
.comentario-edit-input:focus { border-color: var(--accent); }
.comentario-edit-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.comentario-edit-action { border: none; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.comentario-edit-action.cancel { background: var(--surface2, rgba(255,255,255,.06)); color: var(--text); }
.comentario-edit-action.save { background: var(--accent); color: #0a0c12; }
.comentarios-vazio { font-size: .8rem; color: var(--muted); text-align: center; padding: 12px 0; }
.comentario-input-wrap { display: flex; gap: 8px; margin-top: 10px; }
.comentario-input { flex: 1; background: var(--surface2, rgba(255,255,255,.05)); border: 1px solid var(--border2, rgba(255,255,255,.08)); border-radius: 20px; padding: 8px 14px; color: var(--text); font-size: .82rem; outline: none; }
.comentario-input:focus { border-color: var(--accent); }
.comentario-input::placeholder { color: var(--muted); }
.comentario-send { background: var(--accent); border: none; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; color: #0a0c12; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.comentario-send:hover { background: var(--accent2); }

/* ── REACOES ── */
.reacoes-bar { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.reacao-btn {
    background: var(--surface2, rgba(255,255,255,.05)); border: 1px solid transparent;
    border-radius: 20px; padding: 4px 10px; cursor: pointer;
    display: flex; align-items: center; gap: 5px;
    font-size: .78rem; color: var(--muted); transition: all .2s;
}
.reacao-btn:hover { background: rgba(255,255,255,.08); }
.reacao-btn.active { border-color: var(--accent); color: var(--accent-ink, var(--accent)); background: rgba(200,168,75,.1); }
.reacao-btn .reacao-emoji { font-size: 1rem; }
.reacao-btn .reacao-count { font-weight: 600; }

/* ── HEATMAP ── */
:root {
    --heatmap-0: rgba(255,255,255,.04);
    --heatmap-1: rgba(167,139,250,.25);
    --heatmap-2: rgba(167,139,250,.5);
    --heatmap-3: rgba(200,168,75,.7);
    --heatmap-4: #c8a84b;
}
.heatmap-container { padding: 10px 0; overflow-x: auto; }
.heatmap-months { display: flex; justify-content: space-between; padding: 0 40px 6px 0; }
.heatmap-months span { font-size: .68rem; color: var(--muted); flex: 1; text-align: center; letter-spacing: .04em; }
.heatmap-grid-wrap { display: flex; gap: 6px; }
.heatmap-days-labels { display: flex; flex-direction: column; gap: 3px; padding-right: 8px; }
.heatmap-days-labels span { font-size: .6rem; color: var(--muted); height: 16px; line-height: 16px; }
.heatmap-grid { display: grid; grid-template-rows: repeat(7, 16px); grid-auto-flow: column; gap: 3px; flex: 1; }
.heatmap-cell {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--heatmap-0);
    border: 1px solid rgba(255,255,255,.04);
    transition: transform .15s, box-shadow .15s;
    cursor: default;
}
.heatmap-cell:hover { transform: scale(1.3); z-index: 2; position: relative; }
.heatmap-level-0 { background: var(--heatmap-0); border-color: rgba(255,255,255,.05); }
.heatmap-level-1 { background: var(--heatmap-1); border-color: rgba(167,139,250,.3); }
.heatmap-level-2 { background: var(--heatmap-2); border-color: rgba(167,139,250,.5); }
.heatmap-level-3 { background: var(--heatmap-3); border-color: rgba(200,168,75,.5); box-shadow: 0 0 6px rgba(200,168,75,.3); }
.heatmap-level-4 { background: var(--heatmap-4); border-color: rgba(200,168,75,.7); box-shadow: 0 0 10px rgba(200,168,75,.5); }
.heatmap-legend { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 10px; }
.heatmap-legend .heatmap-cell { width: 12px; height: 12px; }
.heatmap-legend-label { font-size: .65rem; color: var(--muted); margin: 0 4px; }
.heatmap-stats { display: flex; gap: 24px; margin-top: 20px; flex-wrap: wrap; padding: 14px 0 0; border-top: 1px solid var(--border); }
.heatmap-stat { font-size: .82rem; color: var(--muted); }
.heatmap-stat strong { color: var(--text); font-weight: 700; }

/* ── FAVORITOS PIN ── */
.favoritos-pin-section { margin-bottom: 24px; }
.favoritos-pin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.favoritos-pin-header h3 { font-size: .95rem; color: var(--text); display: flex; align-items: center; gap: 8px; margin: 0; }
.favoritos-pin-header h3 i { color: #f43f5e; }
.btn-edit-favoritos {
    background: none; border: 1px solid var(--border2); border-radius: 50%;
    width: 32px; height: 32px; cursor: pointer; color: var(--muted);
    display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.btn-edit-favoritos:hover { color: var(--accent-ink, var(--accent)); border-color: var(--accent); }
.favoritos-pin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.favorito-pin-card {
    position: relative; border-radius: 12px; overflow: hidden;
    aspect-ratio: 2/3; cursor: pointer; transition: transform .2s;
}
.favorito-pin-card:hover { transform: scale(1.05); }
.favorito-pin-card img { width: 100%; height: 100%; object-fit: cover; }
.favorito-pin-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    padding: 30px 8px 8px;
}
.favorito-pin-titulo { font-size: .72rem; color: #fff; font-weight: 600; }
.favoritos-pin-empty { font-size: .82rem; color: var(--muted); text-align: center; padding: 20px; }

@media (max-width: 480px) {
    .favoritos-pin-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}

/* ── BIO ── */
.perfil-bio { color: var(--text); font-size: .88rem; line-height: 1.5; max-width: 500px; margin-top: 8px; opacity: .85; display: none; }

/* ── ENQUETES ── */
.btn-criar-enquete {
    background: var(--surface); border: 1px solid var(--border2); border-radius: 12px;
    color: var(--accent-ink, var(--accent)); padding: 10px 18px; cursor: pointer; font-size: .85rem;
    font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
    transition: all .2s; font-family: 'Outfit', sans-serif;
}
.btn-criar-enquete:hover { background: rgba(200,168,75,.1); border-color: var(--accent); }
.enquete-card {
    background: var(--surface); border: 1px solid var(--border2); border-radius: 16px;
    padding: 20px; margin-bottom: 16px;
}
.enquete-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.enquete-autor-avatar { width: 36px; height: 36px; flex-shrink: 0; }
.enquete-autor-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.enquete-autor-avatar i { font-size: 36px; color: var(--muted); }
.enquete-autor-nome { font-size: .85rem; color: var(--text); }
.enquete-tempo { font-size: .72rem; color: var(--muted); margin-left: 6px; }
.enquete-badge { margin-left: auto; color: var(--accent-ink, var(--accent)); font-size: 1.1rem; }
.enquete-pergunta { font-size: 1rem; color: var(--text); margin: 0 0 14px; font-weight: 600; }
.enquete-opcoes-list { display: flex; flex-direction: column; gap: 8px; }
.enquete-opcao-btn {
    background: rgba(255,255,255,.04); border: 1px solid var(--border2); border-radius: 10px;
    padding: 12px 16px; color: var(--text); cursor: pointer; font-size: .88rem;
    text-align: left; transition: all .2s; font-family: 'Outfit', sans-serif;
}
.enquete-opcao-btn:hover { border-color: var(--accent); background: rgba(200,168,75,.08); }
.enquete-opcao-result {
    position: relative; border-radius: 10px; padding: 12px 16px; overflow: hidden;
    background: rgba(255,255,255,.04); display: flex; justify-content: space-between;
}
.enquete-opcao-result.voted { border: 1px solid var(--accent); }
.enquete-opcao-bar {
    position: absolute; left: 0; top: 0; height: 100%;
    background: rgba(200,168,75,.15); border-radius: 10px; transition: width .5s;
}
.enquete-opcao-text { position: relative; z-index: 1; font-size: .85rem; color: var(--text); }
.enquete-opcao-pct { position: relative; z-index: 1; font-size: .85rem; font-weight: 700; color: var(--accent-ink, var(--accent)); }
.enquete-footer { font-size: .75rem; color: var(--muted); margin-top: 10px; }
.enquete-modal { max-width: 500px; }
.enquete-form { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.enquete-input {
    background: var(--surface2, rgba(255,255,255,.05)); border: 1px solid var(--border2);
    border-radius: 10px; padding: 12px 14px; color: var(--text); font-size: .88rem; outline: none;
    font-family: 'Outfit', sans-serif;
}
.enquete-input:focus { border-color: var(--accent); }
.enquete-input::placeholder { color: var(--muted); }
.enquete-opcoes { display: flex; flex-direction: column; gap: 8px; }
.btn-add-opcao {
    background: none; border: 1px dashed var(--border2); border-radius: 10px; padding: 8px;
    color: var(--muted); cursor: pointer; font-size: .82rem; font-family: 'Outfit', sans-serif;
}
.btn-add-opcao:hover { border-color: var(--accent); color: var(--accent-ink, var(--accent)); }
.btn-publicar-enquete {
    background: var(--accent); border: none; border-radius: 10px; padding: 12px;
    color: #0a0c12; font-weight: 700; cursor: pointer; font-size: .88rem;
    font-family: 'Outfit', sans-serif;
}

/* ── REVIEW DESTAQUE ── */
.review-destaque {
    background: linear-gradient(135deg, rgba(200,168,75,.12), rgba(200,168,75,.03));
    border: 1px solid rgba(200,168,75,.25); border-radius: 18px;
    padding: 20px; margin-bottom: 24px; position: relative; overflow: hidden;
}
.destaque-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--accent); color: #0a0c12; padding: 4px 12px;
    border-radius: 20px; font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px;
}
.destaque-content { display: flex; gap: 18px; }
.destaque-poster { width: 90px; height: 130px; border-radius: 10px; object-fit: cover; }
.destaque-right { flex: 1; }
.destaque-titulo { font-size: 1.1rem; color: var(--text); margin: 0 0 6px; }
.destaque-rating { color: var(--accent-ink, var(--accent)); font-size: 1rem; margin-bottom: 8px; letter-spacing: 2px; }
.destaque-texto { font-size: .85rem; color: var(--text); opacity: .8; line-height: 1.5; margin: 0 0 10px; }
.destaque-autor { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.destaque-autor img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.destaque-autor i { font-size: 24px; }

/* =========================================================
   TASTE DNA
   ========================================================= */
.taste-dna-container { display: flex; flex-direction: column; gap: 20px; }
.taste-dna-loading { text-align: center; color: var(--muted); padding: 40px; }

.taste-dna-header {
    background: linear-gradient(135deg, rgba(138,43,226,.15), rgba(0,188,212,.1));
    border: 1px solid rgba(138,43,226,.25);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}
.taste-dna-titulo-wrap { margin-bottom: 12px; }
.taste-dna-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; }
.taste-dna-titulo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8a2be2, #00bcd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 4px 0 0;
}
.taste-dna-meta {
    display: flex; justify-content: center; gap: 20px;
    color: var(--muted); font-size: .85rem;
}
.taste-dna-meta i { margin-right: 4px; color: var(--accent-ink, var(--accent)); }

.taste-dna-radar-wrap {
    display: flex; justify-content: center; align-items: center;
    background: var(--surface); border-radius: 16px;
    border: 1px solid var(--border); padding: 20px;
}
#tasteDnaRadar { max-width: 100%; height: auto; }

.taste-dna-genres {
    background: var(--surface); border-radius: 16px;
    border: 1px solid var(--border); padding: 20px;
}
.taste-dna-genres h4 {
    color: var(--text); font-size: 1rem; margin: 0 0 16px;
    display: flex; align-items: center; gap: 8px;
}
.taste-dna-genres h4 i { color: var(--accent-ink, var(--accent)); }
.taste-dna-bars { display: flex; flex-direction: column; gap: 10px; }
.taste-dna-bar-item { }
.taste-dna-bar-label {
    display: flex; justify-content: space-between;
    font-size: .8rem; color: var(--text); margin-bottom: 4px;
}
.taste-dna-bar-track {
    height: 8px; background: rgba(255,255,255,.06);
    border-radius: 4px; overflow: hidden;
}
.taste-dna-bar-fill {
    height: 100%; border-radius: 4px;
    transition: width .6s ease;
}

.taste-dna-breakdown {
    background: var(--surface); border-radius: 16px;
    border: 1px solid var(--border); padding: 20px;
}
.taste-dna-breakdown h4 {
    color: var(--text); font-size: 1rem; margin: 0 0 16px;
    display: flex; align-items: center; gap: 8px;
}
.taste-dna-breakdown h4 i { color: var(--accent-ink, var(--accent)); }
.taste-dna-type-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}
.taste-dna-type-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; padding: 16px 8px;
    background: rgba(255,255,255,.03); border-radius: 12px;
    border: 1px solid var(--border);
}
.taste-dna-type-card i { font-size: 1.4rem; color: var(--accent-ink, var(--accent)); }
.taste-dna-type-count { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.taste-dna-type-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 600px) {
    .taste-dna-radar-wrap { padding: 10px; }
    #tasteDnaRadar { width: 300px; height: 300px; }
    .taste-dna-titulo { font-size: 1.4rem; }
    .taste-dna-type-grid { grid-template-columns: repeat(3, 1fr); }
}
.destaque-curtidas { margin-left: auto; color: #f87171; display: flex; align-items: center; gap: 4px; }

/* ===== Card de Wrapped no feed social ===== */
.wrapped-feed-card {
    display: block;
    margin-top: 10px;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.12);
    transition: transform .2s, box-shadow .2s;
}
.wrapped-feed-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(108,92,231,0.3); }
.wrapped-feed-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    padding: 4px 10px; border-radius: 20px;
    background: rgba(162,155,254,0.25); color: #d6d2ff;
}
.wrapped-feed-period { font-size: 1.3rem; font-weight: 800; margin: 10px 0 14px; }
.wrapped-feed-stats { display: flex; gap: 18px; flex-wrap: wrap; }
.wrapped-feed-stats > div { display: flex; flex-direction: column; }
.wrapped-feed-stats span { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.wrapped-feed-stats small { font-size: .72rem; color: #b7b7d0; margin-top: 4px; }
.wrapped-feed-generos { margin-top: 12px; font-size: .85rem; color: #c9c6e6; }
.wrapped-feed-generos i { margin-right: 4px; opacity: .8; }
.wrapped-feed-cta {
    margin-top: 14px; display: inline-flex; align-items: center; gap: 6px;
    font-size: .88rem; font-weight: 600; color: #a29bfe;
}
.wrapped-feed-cta i { transition: transform .2s; }
.wrapped-feed-card:hover .wrapped-feed-cta i { transform: translateX(3px); }


/* Tema claro: social e listas também funcionam sem carregar base.css. */
:is(html.light-theme-early body, body.light-theme) {
    color-scheme: light;
    --bg: #f4f1ea;
    --surface: #fff;
    --surface2: #ece9e2;
    --text: #1e293b;
    --text-main: #1e293b;
    --muted: #526070;
    --border: rgba(30,41,59,.14);
    --border2: rgba(30,41,59,.22);
    --accent: #806117;
    --accent2: #806117;
    --cyan: #0369a1;
    --violet: #6d28d9;
    --green: #047857;
    --heatmap-0: #e3e0d8;
    --heatmap-1: #dbd0a2;
    --heatmap-2: #b69c4f;
    --heatmap-3: #8c7024;
    --heatmap-4: #5e460b;
}
:is(html.light-theme-early, body.light-theme) :is(.av-date, .form-group input::placeholder, .form-group textarea::placeholder, .search-input-wrap input::placeholder, .btn-util, .btn-repost-feed) { color: var(--muted); }
:is(html.light-theme-early, body.light-theme) :is(.search-usuarios-wrap, .search-input-wrap, .form-group input, .form-group textarea, .perfil-tabs, .filter-chip, .enquete-opcao-btn, .enquete-opcao-result, .taste-dna-type-card) { background: var(--surface2); border-color: var(--border); }
:is(html.light-theme-early, body.light-theme) :is(.search-drop-item:hover, .modal-user-item:hover, .sidebar-user-item:hover, .ativ-conteudo:hover, .btn-icon-sm:hover, .user-item:hover, .add-midia-item:hover, .repost-card-body:hover, .notif-item:hover, .reacao-btn:hover) { background: var(--surface2); }
:is(html.light-theme-early, body.light-theme) :is(.btn-salvar, .btn-nova-lista, .btn-seguir, .btn-enviar-com, .bib-filter.active, .comentario-edit-action.save, .comentario-send, .btn-publicar-enquete, .destaque-badge) { background: #c8a84b; color: #17130a; }
:is(html.light-theme-early, body.light-theme) :is(.btn-salvar:hover, .btn-nova-lista:hover, .btn-seguir:hover) { background: #efd36f; }
:is(html.light-theme-early, body.light-theme) .visib-tag.pub { color: #0369a1; }
:is(html.light-theme-early, body.light-theme) :is(.btn-deletar, .btn-deletar-lista, .btn-icon-sm.danger:hover, .lista-comment-del:hover, .btn-seguindo:hover) { color: #b42318; }
:is(html.light-theme-early, body.light-theme) :is(.btn-add-item.added, .btn-repost-feed.reposted, .btn-repost-feed.reposted .fa-retweet, .btn-repost-feed:hover, .repost-banner, .repost-card-banner, .repost-card-stats .fa-retweet) { color: #047857; }
:is(html.light-theme-early, body.light-theme) :is(.btn-util:hover, .btn-util.liked, .btn-util.liked .fa-thumbs-up) { color: #806117; }
:is(html.light-theme-early, body.light-theme) :is(.lista-curtir-btn:hover, .lista-curtir-btn.is-liked, .destaque-curtidas) { color: #be185d; }
:is(html.light-theme-early, body.light-theme) .profile-counters .counter-clickable:hover .counter-val { color: var(--accent-ink-hover, #6c4e10); }
:is(html.light-theme-early, body.light-theme) :is(.btn-util, .btn-repost-feed, .repost-card, .notif-item) { border-color: var(--border); }
:is(html.light-theme-early, body.light-theme) :is(.stat-bar, .conquistas-progress-bar, .taste-dna-bar-track) { background: #e3e0d8; }
:is(html.light-theme-early, body.light-theme) .compat-ring-bg { stroke: var(--border2); }
:is(html.light-theme-early, body.light-theme) .stars-bg { color: rgba(30,41,59,.2); }
:is(html.light-theme-early, body.light-theme) :is(.rec-arrow, .rec-arrow:hover) { color: var(--text); background: var(--surface); border-color: var(--border2); }
:is(html.light-theme-early, body.light-theme) :is(.lista-card-full:hover, .atividade-card:hover, .stat-card:hover, .conquista-card:hover, .av-card:hover, .lista-card:hover) { box-shadow: 0 8px 24px rgba(30,41,59,.12); }
:is(html.light-theme-early, body.light-theme) .toggle-slider { background: #b5bdc8; border-color: #8993a2; }
:is(html.light-theme-early, body.light-theme) .toggle-slider::before { background: #fff; }
:is(html.light-theme-early, body.light-theme) input:checked + .toggle-slider { background: #806117; border-color: #806117; }
:is(html.light-theme-early, body.light-theme) .bib-explica i { color: #6d28d9; }
:is(html.light-theme-early, body.light-theme) .conquista-locked { opacity: .65; }
:is(html.light-theme-early, body.light-theme) :is(.post-type-review, .post-type-melhor_cena) { color: #806117; }
:is(html.light-theme-early, body.light-theme) .post-type-terminei { color: #047857; }
:is(html.light-theme-early, body.light-theme) .post-type-abandonei { color: #b42318; }
:is(html.light-theme-early, body.light-theme) .post-type-vale_a_pena { color: #6d28d9; }
:is(html.light-theme-early, body.light-theme) :is(.fila-badge, .fila-rating-badge, .fila-card-overlay) { --accent: #c8a84b; --accent2: #e8c96a; }
:is(html.light-theme-early, body.light-theme) :is(.fila-badge, .fila-rating-badge, .fila-card-overlay) { --accent-ink: #e8c96a; --accent-ink-hover: #fff3b2; }
