@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================
   VARIÁVEIS
   ========================================== */
:root {
    --bg:        #06070b;
    --surface:   #0d1117;
    --surface2:  #111722;
    --border:    rgba(255,255,255,0.06);
    --border2:   rgba(255,255,255,0.11);
    --accent:    #c8a84b;
    --accent2:   #e8c96a;
    --violet:    #a78bfa;
    --cyan:      #38bdf8;
    --text:      #e2e8f0;
    --muted:     #a3adc4;
    --radius:    12px;
    --radius-sm: 8px;
}

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

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

/* ==========================================
   HEADER / TOPBAR
   ========================================== */
.topbar {
    display: flex;
    align-items: center;
    padding: 0 32px;
    height: 56px;
    background: rgba(6,7,11,0.92);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    gap: 32px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
}

.logo-header {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-header img { height: 32px; display: block; }

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-link {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.82rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--accent-ink, var(--accent)); background: rgba(200,168,75,0.08); }
a.nav-link { text-decoration: none; }
.nav-link-social { border-left: 1px solid var(--border2); margin-left: 8px; padding-left: 16px; }

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Search */
.search-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 7px 14px;
    width: 260px;
    transition: border-color 0.2s;
    position: relative;
}
.search-wrapper:focus-within { border-color: rgba(200,168,75,0.3); }
.search-wrapper i { color: var(--muted); font-size: 0.85rem; flex-shrink: 0; }

.search-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s;
}
.search-icon-btn:hover { color: var(--accent-ink-hover, var(--accent2)) !important; }
.search-icon-btn:focus-visible,
.search-overlay-close:focus-visible,
.search-overlay-input:focus-visible,
.search-overlay-card:focus-visible,
.search-overlay-user:focus-visible,
.autocomplete-item:focus-visible {
    outline: 2px solid var(--accent2);
    outline-offset: 3px;
}

.search-input {
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.82rem;
    font-family: inherit;
    width: 100%;
}
.search-input::placeholder { color: var(--muted); }

.search-autocomplete {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
    z-index: 200;
}
.search-autocomplete.active { max-height: 420px; overflow-y: auto; }

.autocomplete-item {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: background 0.15s;
    color: inherit;
    text-decoration: none;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: rgba(255,255,255,0.04); }
.autocomplete-poster { width: 36px; height: 52px; border-radius: 4px; object-fit: cover; background: var(--surface2); flex-shrink: 0; }
.autocomplete-title { color: var(--text); font-weight: 600; font-size: 0.88rem; margin-bottom: 3px; }
.autocomplete-meta { color: var(--muted); font-size: 0.78rem; display: flex; gap: 8px; }
.autocomplete-type { background: rgba(200,168,75,0.15); color: var(--accent-ink-hover, var(--accent2)); padding: 2px 7px; border-radius: 4px; font-size: 0.72rem; font-weight: 600; }

/* Header icons */
.btn-header {
    color: var(--muted);
    font-size: 1.05rem;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.btn-header:hover { color: var(--accent-ink, var(--accent)); }

.nav-avatar-link {
    color: var(--muted);
    font-size: 1.4rem;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.nav-avatar-link:hover { color: var(--accent-ink, var(--accent)); }

/* ==========================================
   HERO SECTION (Netflix full-width)
   ========================================== */
.hero-section {
    position: relative;
    height: 480px;
    overflow: hidden;
    background-size: cover;
    background-position: center 20%;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, var(--bg) 0%, rgba(6,7,11,0.7) 40%, transparent 70%),
        linear-gradient(to top, var(--bg) 0%, rgba(6,7,11,0.3) 40%, transparent 80%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 60px;
    left: 48px;
    z-index: 2;
    max-width: 520px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(200,168,75,0.9);
    color: #0a0c12;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.05em;
}

.hero-content h1 {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 14px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-ink, var(--accent));
    font-weight: 700;
}

.type-badge {
    background: rgba(200,168,75,0.15);
    color: var(--accent-ink-hover, var(--accent2));
    border: 1px solid rgba(200,168,75,0.3);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.hero-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions { display: flex; gap: 10px; }

.hero-btn {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
    font-family: inherit;
}
.hero-btn:hover { transform: scale(1.03); }
.hero-btn-primary { background: var(--accent); color: #0a0c12; }
.hero-btn-secondary { background: rgba(255,255,255,0.1); color: var(--text); border: 1px solid rgba(255,255,255,0.15); }

/* Hero navigation */
.hero-nav {
    position: absolute;
    bottom: 28px;
    right: 48px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-prev, .hero-next {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.hero-prev:hover, .hero-next:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.2s;
}
.hero-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

/* ==========================================
   MAIN LAYOUT (2 colunas)
   ========================================== */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    max-width: 1280px;
    margin: 0 auto;
    gap: 0;
}

/* ==========================================
   FEED COLUMN
   ========================================== */
.feed-col {
    padding: 28px 32px 80px;
    min-width: 0;
}

/* ==========================================
   ABAS PRINCIPAIS (Para Você / Seguindo)
   ========================================== */
.feed-main-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.feed-main-tab {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 24px;
    position: relative;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 7px;
}
.feed-main-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.2s;
    border-radius: 2px 2px 0 0;
}
.feed-main-tab:hover { color: var(--text); }
.feed-main-tab.active { color: var(--text); }
.feed-main-tab.active::after { transform: scaleX(1); }

/* Filters */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.filter-tabs {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
    gap: 4px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
}

.filter-tab {
    background: transparent;
    color: var(--muted);
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s;
    white-space: nowrap;
}
.filter-tab:hover { color: var(--text); }
.filter-tab.active {
    background: var(--surface2);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.filter-actions { display: flex; flex-shrink: 0; gap: 8px; }

.btn-action {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border2);
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-action:hover {
    color: var(--text);
    border-color: rgba(200,168,75,0.4);
    background: rgba(200,168,75,0.06);
}

/* ==========================================
   SECTION HEADERS (Netflix style)
   ========================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.section-header h2 {
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}
.section-header h2 i { font-size: 0.9rem; color: var(--accent-ink, var(--accent)); }
.section-see-all {
    font-size: 0.78rem;
    color: var(--muted);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}
.section-see-all:hover { color: var(--accent-ink, var(--accent)); }

.section-refresh-icon {
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.section-refresh-icon:hover {
    color: var(--accent-ink, var(--accent));
    border-color: var(--accent);
}

/* ==========================================
   NETFLIX CAROUSEL (media cards)
   ========================================== */
.carousel { margin-bottom: 36px; }

.carousel-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 8px;
    scroll-behavior: smooth;
}
.carousel-row::-webkit-scrollbar { display: none; }

.carousel-row .media-card {
    flex-shrink: 0;
    width: 160px;
    cursor: pointer;
    position: relative;
    aspect-ratio: auto;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}
.carousel-row .media-card img {
    width: 160px;
    height: 230px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.25s, box-shadow 0.25s;
    display: block;
}
.carousel-row .media-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    filter: none;
}
.carousel-row .media-card .mc-info { margin-top: 8px; }
.carousel-row .media-card .mc-title {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}
.carousel-row .media-card .mc-meta {
    font-size: 0.7rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}
.carousel-row .media-card .mc-meta .mc-stars { color: var(--accent-ink, var(--accent)); }

.mc-type-icon {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #fff;
    z-index: 2;
}

/* ==========================================
   FEED GRID (fallback flat grid)
   ========================================== */
.feed { display: flex; flex-direction: column; }

.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   MEDIA CARD (grid mode)
   ========================================== */
.feed-grid > .media-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.34,1.2,0.64,1), box-shadow 0.28s;
    aspect-ratio: 2/3;
    background: var(--surface2);
}
.feed-grid > .media-card:hover {
    transform: scale(1.05) translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    z-index: 5;
}
.feed-grid > .media-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s;
}
.feed-grid > .media-card:hover > img { filter: brightness(0.75); }

.card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.5) 45%, transparent 100%);
    opacity: 0;
    transition: opacity 0.25s;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
}
.media-card:hover .card-overlay { opacity: 1; }
.media-card:focus-within .card-overlay { opacity: 1; }
.card-open-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}
.card-open-link:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; }

/* Carrossel: overlay cobre exatamente a capa (mesmo tamanho, raio e escala da imagem no hover) */
.feed-carousel .media-card .card-overlay,
.carousel-row .media-card .card-overlay {
    inset: auto 0 auto 0;
    top: 0;
    height: 230px;
    border-radius: 10px;
    background: rgba(0,0,0,0.45);
    justify-content: center;
    align-items: center;
    padding: 10px;
    transition: opacity 0.25s, transform 0.25s;
    transform-origin: center;
}
.feed-carousel .media-card:hover .card-overlay,
.carousel-row .media-card:hover .card-overlay {
    transform: scale(1.05);
}
.feed-carousel .media-card .card-title,
.feed-carousel .media-card .card-meta,
.feed-carousel .media-card .card-reason,
.carousel-row .media-card .card-title,
.carousel-row .media-card .card-meta,
.carousel-row .media-card .card-reason { display: none !important; }
.feed-carousel .media-card .card-actions,
.carousel-row .media-card .card-actions { gap: 10px; }
.feed-carousel .media-card .card-btn,
.carousel-row .media-card .card-btn {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 880px) {
    .feed-carousel .media-card .card-overlay,
    .carousel-row .media-card .card-overlay { height: 190px; }
}
@media (max-width: 540px) {
    .feed-carousel .media-card .card-overlay,
    .carousel-row .media-card .card-overlay { height: 160px; }
}

.card-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta { display: flex; gap: 7px; align-items: center; font-size: 0.75rem; }
.card-rating { display: flex; align-items: center; gap: 3px; color: var(--accent-ink-hover, var(--accent2)); font-weight: 600; }
.card-type { background: rgba(200,168,75,0.15); color: var(--accent-ink-hover, var(--accent2)); padding: 2px 7px; border-radius: 3px; font-size: 0.68rem; font-weight: 600; }
.card-actions { display: flex; gap: 6px; pointer-events: auto; }
.card-btn:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.card-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    width: 30px; height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
    font-size: 0.78rem;
}
.card-btn:hover { background: rgba(255,255,255,0.2); color: #fff; transform: scale(1.12); }

.card-reason {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 6px 10px;
    background: linear-gradient(180deg, rgba(7,9,15,.92) 0%, transparent 100%);
    font-size: .68rem;
    color: var(--accent-ink-hover, var(--accent2));
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
    opacity: 0;
    transform: translateY(-4px);
    transition: all .25s;
}
.card-reason i { font-size: .6rem; }
.media-card:hover .card-reason { opacity: 1; transform: translateY(0); }

/* Badge de tipo no canto do card */
.feed-grid > .media-card::before {
    content: attr(data-type-label);
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    color: rgba(255,255,255,0.7);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
}

/* ==========================================
   FEED PERSONALIZADO - Seções com carousels
   ========================================== */
.feed-sections {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

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

.feed-discovery,
.feed-discovery-rows {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.feed-discovery-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feed-discovery-status {
    color: var(--muted);
    text-align: center;
    padding: 18px 12px;
    line-height: 1.5;
}

.feed-discovery-status:empty { display: none; }

.feed-discovery-more {
    align-self: center;
    min-height: 44px;
    padding: 11px 24px;
    border: 1px solid var(--border2);
    border-radius: 999px;
    background: var(--card, #101218);
    color: var(--accent-ink, var(--accent));
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.feed-discovery-more:hover { border-color: var(--accent); }
.feed-discovery-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.feed-discovery-more:disabled { opacity: .6; cursor: wait; }
.feed-discovery-more[hidden] { display: none; }

.feed-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 4px;
}

.feed-section-source {
    width: 36px; height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(200,168,75,.35);
    flex-shrink: 0;
}
.feed-section-source img { width: 100%; height: 100%; object-fit: cover; }

.feed-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.feed-section-title-wrap i { color: var(--accent-ink, var(--accent)); font-size: .85rem; flex-shrink: 0; }
.feed-section-title-wrap h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-section-count {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: rgba(200,168,75,.5);
    white-space: nowrap;
    flex-shrink: 0;
}

.feed-section-reason {
    font-size: .75rem;
    color: var(--accent-ink, var(--accent));
    margin: 0;
    padding: 0 0 0 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: .85;
}
.feed-section-reason i { font-size: .7rem; color: var(--accent-ink-hover, var(--accent2)); }

.signal-badge {
    font-size: .62rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-left: 8px;
    flex-shrink: 0;
}
.signal-badge.signal-explicit { background: rgba(56,189,248,.12); color: var(--cyan); border: 1px solid rgba(56,189,248,.2); }
.signal-badge.signal-implicit { background: rgba(167,139,250,.12); color: var(--violet); border: 1px solid rgba(167,139,250,.2); }
.signal-badge.signal-filter { background: rgba(200,168,75,.12); color: var(--accent-ink-hover, var(--accent2)); border: 1px solid rgba(200,168,75,.2); }
.signal-badge.signal-trending { background: rgba(244,67,54,.1); color: #ef5350; border: 1px solid rgba(244,67,54,.15); }

/* Carousel wrap */
.feed-carousel-wrap { position: relative; }

.feed-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 4px 8px;
    scrollbar-width: none;
}
.feed-carousel::-webkit-scrollbar { display: none; }

.feed-carousel .media-card {
    flex-shrink: 0;
    width: 160px;
    scroll-snap-align: start;
    cursor: pointer;
    position: relative;
    aspect-ratio: auto;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}
.feed-carousel .media-card > img {
    width: 160px;
    height: 230px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s, box-shadow 0.25s;
}
.feed-carousel .media-card:hover > img {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    filter: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(10,12,18,.85);
    color: #fff;
    font-size: .85rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all .25s;
    backdrop-filter: blur(6px);
}
.feed-carousel-wrap:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover {
    background: rgba(200,168,75,.2);
    border-color: rgba(200,168,75,.4);
    transform: translateY(-50%) scale(1.1);
}
.carousel-left { left: -12px; }
.carousel-right { right: -12px; }

/* ==========================================
   TIMELINE SOCIAL (Twitter style)
   ========================================== */
.timeline { margin-bottom: 36px; }

.tweet {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
    cursor: pointer;
}
.tweet:first-child { padding-top: 0; }
.tweet:hover { background: rgba(255,255,255,0.01); }

.tweet-avatar-wrap {
    flex-shrink: 0;
    cursor: pointer;
}

.tweet-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-ink, var(--accent));
    font-size: 1.2rem;
    background: rgba(200,168,75,0.1);
    transition: opacity 0.2s;
}
.tweet-avatar-wrap:hover .tweet-avatar { opacity: 0.8; }

.tweet-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.tweet-body { flex: 1; min-width: 0; }

.tweet-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}
.tweet-name { font-weight: 700; font-size: 0.88rem; cursor: pointer; }
.tweet-name:hover { text-decoration: underline; }
.tweet-handle { font-size: 0.8rem; color: var(--muted); }
.tweet-time { font-size: 0.8rem; color: var(--muted); }
.tweet-dot { color: var(--muted); font-size: 0.6rem; }

.tweet-text {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 10px;
    color: #cbd5e1;
}

.tweet-repost-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #22c55e;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    flex-basis: 100%;
    padding-left: 56px;
}
.tweet-repost-label i { font-size: 0.85rem; }

/* Media embed no tweet */
.tweet-media {
    display: flex;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.tweet-media:hover { border-color: rgba(200,168,75,0.2); }
.tm-poster {
    width: 72px;
    height: 108px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--surface2);
}
.tm-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tm-title { font-size: 0.92rem; font-weight: 700; margin-bottom: 3px; }
.tm-sub { font-size: 0.75rem; color: var(--muted); margin-bottom: 6px; }
.tm-stars { display: flex; align-items: center; gap: 2px; }
.tm-stars .star-svg-inline { width: 0.95rem; height: 0.95rem; display: block; filter: drop-shadow(0 0 4px rgba(200,168,75,0.3)); }
.tm-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    margin-top: 6px;
    width: fit-content;
}
.badge-movie { background: rgba(59,130,246,0.12); color: #60a5fa; }
.badge-tv { background: rgba(139,92,246,0.12); color: #a78bfa; }
.badge-game { background: rgba(34,197,94,0.12); color: #4ade80; }
.badge-book { background: rgba(245,158,11,0.12); color: #fbbf24; }
.badge-music { background: rgba(236,72,153,0.12); color: #f472b6; }

/* Tweet actions */
.tweet-actions { display: flex; gap: 0; margin-left: -8px; }
.tw-action {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 50px;
    color: var(--muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
    background: none;
    border: none;
    font-family: inherit;
}
.tw-action:hover { color: var(--accent-ink, var(--accent)); background: rgba(200,168,75,0.08); }
.tw-action.liked { color: #ef4444; }
.tw-action.liked:hover { background: rgba(239,68,68,0.08); color: #ef4444; }
.tw-action.reposted { color: #22c55e; }
.tw-action:disabled { opacity: 0.4; cursor: default; }
.tw-action:disabled:hover { background: none; color: var(--muted); }
.tw-action i { font-size: 0.9rem; }

/* ==========================================
   SIDEBAR DIREITA
   ========================================== */
.sidebar {
    padding: 28px 24px;
    border-left: 1px solid var(--border);
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #1a1c28 transparent;
}

.sidebar-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
}

.sidebar-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sidebar-card-title i { color: var(--accent-ink, var(--accent)); }

/* Trending in sidebar */
.trending-list { display: flex; flex-direction: column; gap: 4px; }

.trending-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.trending-item:hover { background: rgba(255,255,255,0.03); }
.trending-pos {
    font-size: 0.9rem;
    font-weight: 900;
    color: rgba(255,255,255,0.1);
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}
.trending-poster {
    width: 40px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--surface2);
}
.trending-info { flex: 1; min-width: 0; }
.trending-titulo {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trending-meta { font-size: 0.7rem; color: var(--muted); }

/* Quick links in sidebar */
.quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.quick-link:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text);
}
.quick-link i {
    font-size: 0.72rem;
    width: 20px;
    text-align: center;
}
.qi-orange { color: #f97316; }
.qi-green  { color: #22c55e; }
.qi-pink   { color: #ec4899; }
.qi-violet { color: #8b5cf6; }
.qi-indigo { color: #6366f1; }
.qi-blue   { color: #3b82f6; }
.qi-yellow { color: #f59e0b; }
.qi-cyan   { color: #38bdf8; }

/* Social links in sidebar */
.sidebar-social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.sidebar-social-link:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text);
}
.sidebar-social-link i { font-size: 0.75rem; width: 16px; text-align: center; }

/* Sidebar footer */
.sidebar-footer {
    font-size: 0.68rem;
    color: #2a2d3a;
    margin-top: 20px;
    line-height: 1.8;
}
.sidebar-footer a { color: #2a2d3a; text-decoration: none; }
.sidebar-footer a:hover { text-decoration: underline; }

/* ==========================================
   RECOMENDAÇÕES PERSONALIZADAS
   ========================================== */
.recomendacoes-section { margin-bottom: 28px; }

.recomendacoes-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.recomendacoes-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px;
    scroll-behavior: smooth;
}
.recomendacoes-grid::-webkit-scrollbar { display: none; }

.recomendacao-card {
    flex-shrink: 0;
    width: 140px;
    cursor: pointer;
    transition: transform 0.25s;
}
.recomendacao-card:hover { transform: scale(1.05); }
.recomendacao-card img {
    width: 140px;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}
.recomendacao-info { margin-top: 8px; }
.recomendacao-info h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recomendacao-rating {
    font-size: 0.72rem;
    color: var(--accent-ink, var(--accent));
}
.recomendacao-motivo {
    font-size: 0.68rem;
    color: var(--muted);
    margin-top: 2px;
}

.rec-arrow {
    background: rgba(10,12,18,.85);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: .8rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    z-index: 2;
}
.rec-arrow:hover { background: rgba(200,168,75,.2); border-color: rgba(200,168,75,.4); }
.rec-arrow.hidden { opacity: 0; pointer-events: none; }

/* ==========================================
   SKELETON LOADING
   ========================================== */
.skeleton-card {
    aspect-ratio: 2/3;
    background: linear-gradient(105deg, var(--surface2) 40%, rgba(255,255,255,0.04) 50%, var(--surface2) 60%);
    background-size: 300% 100%;
    animation: shimmer 1.6s infinite;
    border-radius: 10px;
}

@keyframes shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ==========================================
   TOAST
   ========================================== */
.toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--surface);
    color: var(--text);
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    z-index: 9999;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.28s cubic-bezier(0.34,1.56,0.64,1);
    font-size: 0.87rem;
    font-weight: 500;
    max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: rgba(103,232,180,0.35); color: #67e8b4; }
.toast.error   { border-color: rgba(248,113,113,0.35); color: #f87171; }

/* ==========================================
   FILTROS INTELIGENTES
   ========================================== */
.btn-smart-filter.active {
    background: rgba(200,168,75,.2);
    border-color: var(--accent);
    color: var(--accent-ink-hover, var(--accent2));
}

.smart-filter-panel {
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    animation: slideDown .25s ease;
}
.smart-filter-panel.hidden { display: none; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.filter-panel-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-panel-header h3 i { color: var(--accent-ink, var(--accent)); }

.btn-clear-filters {
    background: none;
    border: 1px solid rgba(255,255,255,.1);
    color: var(--muted);
    font-size: .78rem;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}
.btn-clear-filters:hover { border-color: rgba(244,67,54,.4); color: #f44336; }

.filter-groups { display: flex; flex-direction: column; gap: 16px; }
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-label {
    font-size: .82rem;
    color: var(--muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-label i { color: var(--violet); font-size: .75rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border2);
    color: rgba(255,255,255,.7);
    font-size: .8rem;
    padding: 7px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.filter-chip:hover { background: rgba(167,139,250,.1); border-color: rgba(167,139,250,.3); color: #fff; }
.filter-chip.active { background: rgba(167,139,250,.2); border-color: var(--violet); color: #fff; box-shadow: 0 0 12px rgba(167,139,250,.15); }

.btn-apply-filters {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    border-radius: var(--radius-sm);
    color: #0a0c14;
    font-size: .92rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-apply-filters:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(200,168,75,.3); }

/* ==========================================
   SEARCH OVERLAY (estilo HBO Max)
   ========================================== */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.search-overlay.active { opacity: 1; visibility: visible; }

.search-overlay-header {
    padding: 28px 48px 20px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(1200px 200px at 50% -40px, rgba(200,168,75,0.08), transparent 70%),
        rgba(6,7,11,.96);
    backdrop-filter: blur(20px);
}
.search-overlay-input-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.04) inset,
        0 8px 28px rgba(0,0,0,0.35);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.search-overlay-input-wrapper:focus-within {
    border-color: rgba(200,168,75,0.55);
    background: linear-gradient(180deg, rgba(200,168,75,0.07), rgba(200,168,75,0.02));
    box-shadow:
        0 1px 0 rgba(255,255,255,0.04) inset,
        0 0 0 4px rgba(200,168,75,0.10),
        0 12px 34px rgba(0,0,0,0.45);
}
.search-overlay-icon {
    color: var(--accent-ink-hover, var(--accent2));
    font-size: 1.15rem;
    flex-shrink: 0;
    opacity: .85;
    transition: opacity .2s, transform .2s;
}
.search-overlay-input-wrapper:focus-within .search-overlay-icon {
    opacity: 1;
    transform: scale(1.05);
}
.search-overlay-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 1.18rem;
    font-weight: 400;
    letter-spacing: .005em;
}
.search-overlay-input::placeholder { color: var(--muted); }
.search-overlay-close {
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--muted);
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .9rem;
    transition: all .2s;
    flex-shrink: 0;
}
.search-overlay-close:hover {
    color: var(--accent-ink-hover, var(--accent2));
    border-color: rgba(200,168,75,.45);
    background: rgba(200,168,75,.08);
    transform: rotate(90deg);
}

.search-overlay-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px 48px 60px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
.search-overlay-label {
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-ink-hover, var(--accent2));
    margin: 0 0 20px;
}
.search-overlay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px;
}

.search-overlay-card {
    display: block;
    color: inherit;
    text-decoration: none;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: var(--surface2);
    cursor: pointer;
    transition: transform .28s cubic-bezier(.34,1.2,.64,1), box-shadow .28s;
}
.search-overlay-card:hover { transform: scale(1.06) translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.7); }
.search-overlay-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .28s; }
.search-overlay-card:hover img { filter: brightness(.72); }

.search-overlay-card-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.3) 40%, transparent 65%);
    opacity: 0;
    transition: opacity .25s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    gap: 6px;
}
.search-overlay-card:hover .search-overlay-card-info { opacity: 1; }
.search-overlay-card:focus-visible .search-overlay-card-info { opacity: 1; }

.search-overlay-card-title { font-size: .85rem; font-weight: 600; color: #fff; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-overlay-card-meta { display: flex; align-items: center; gap: 8px; font-size: .72rem; }
.search-overlay-card-type { background: rgba(200,168,75,.18); color: var(--accent-ink-hover, var(--accent2)); padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.search-overlay-card-rating { color: var(--accent-ink-hover, var(--accent2)); }
.search-overlay-card-year { color: var(--muted); }

.search-overlay-card-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(6px);
    color: var(--accent-ink-hover, var(--accent2));
    font-size: .65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
    pointer-events: none;
}

.search-overlay-user {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    cursor: pointer;
    transition: all .2s;
}
.search-overlay-user:hover { border-color: rgba(56,189,248,.35); background: var(--surface2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.search-overlay-user-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(56,189,248,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-size: 1.4rem;
    flex-shrink: 0;
}
.search-overlay-user-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.search-overlay-user-name { font-weight: 600; color: var(--text); font-size: .92rem; }
.search-overlay-user-label { font-size: .75rem; color: var(--cyan); font-weight: 500; }

.search-overlay-empty { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 1rem; }
.search-overlay-empty i { display: block; font-size: 2.5rem; margin-bottom: 16px; color: rgba(200,168,75,.3); }

.search-overlay-loadmore { display: flex; justify-content: center; margin-top: 32px; }
.search-overlay-loadmore button {
    background: var(--surface2);
    color: var(--accent-ink-hover, var(--accent2));
    border: 1px solid rgba(200,168,75,.3);
    padding: 12px 36px;
    border-radius: 999px;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.search-overlay-loadmore button:hover:not(:disabled) { background: rgba(200,168,75,.15); transform: translateY(-1px); }
.search-overlay-loadmore button:disabled { opacity: .6; cursor: default; }

.search-overlay-skeleton {
    border-radius: 10px;
    aspect-ratio: 2/3;
    background: linear-gradient(110deg, var(--surface2) 30%, rgba(255,255,255,.04) 50%, var(--surface2) 70%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease infinite;
}
@keyframes skeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Search filters */
.search-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 48px 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 4;
}
.search-filter-control { position: relative; }
.search-filter-select {
    appearance: none;
    padding: 8px 34px 8px 16px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    background: rgba(255,255,255,.025);
    color: var(--text);
    font: inherit;
}
.search-filter-control.is-enhanced .search-filter-select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.search-filter-trigger {
    min-width: 158px;
    height: 40px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)), #090b10;
    color: var(--text);
    box-shadow: 0 7px 20px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.035);
    font-family: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s, transform .18s;
}
.search-filter-trigger:hover {
    border-color: rgba(200,168,75,.42);
    background: linear-gradient(180deg, rgba(200,168,75,.09), rgba(200,168,75,.025)), #090b10;
    transform: translateY(-1px);
}
.search-filter-control.is-open .search-filter-trigger,
.search-filter-trigger:focus-visible {
    outline: none;
    border-color: rgba(200,168,75,.72);
    box-shadow: 0 0 0 3px rgba(200,168,75,.12), 0 10px 26px rgba(0,0,0,.32);
}
.search-filter-trigger-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 7px;
    color: var(--accent-ink-hover, var(--accent2));
    background: rgba(200,168,75,.11);
    font-size: .7rem;
}
.search-filter-trigger-label { flex: 1; text-align: left; white-space: nowrap; }
.search-filter-trigger-chevron {
    color: rgba(200,168,75,.8);
    font-size: .68rem;
    transition: transform .18s;
}
.search-filter-control.is-open .search-filter-trigger-chevron { transform: rotate(180deg); }
.search-filter-control.has-value .search-filter-trigger {
    color: #f3d477;
    border-color: rgba(200,168,75,.38);
}
.search-filter-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    min-width: 100%;
    max-height: 270px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid rgba(200,168,75,.24);
    border-radius: 14px;
    background: rgba(11,13,18,.98);
    box-shadow: 0 20px 48px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.045);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px) scale(.98);
    transform-origin: top;
    transition: opacity .15s, visibility .15s, transform .15s;
}
.search-filter-control.is-open .search-filter-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.search-filter-option {
    width: 100%;
    min-height: 35px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: .81rem;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}
.search-filter-option::before {
    content: '';
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 0 3px transparent;
}
.search-filter-option:hover,
.search-filter-option:focus-visible { outline: none; background: rgba(255,255,255,.055); }
.search-filter-option[aria-selected="true"] {
    color: #f5d66f;
    background: linear-gradient(90deg, rgba(200,168,75,.16), rgba(200,168,75,.04));
}
.search-filter-option[aria-selected="true"]::before {
    background: #d8b94e;
    box-shadow: 0 0 0 3px rgba(200,168,75,.13);
}
.search-filter-menu::-webkit-scrollbar { width: 5px; }
.search-filter-menu::-webkit-scrollbar-thumb { background: rgba(200,168,75,.35); border-radius: 99px; }

/* Light theme: search overlay header */
body.light-theme .search-overlay-header,
html.light-theme-early .search-overlay-header {
    background:
        radial-gradient(1200px 200px at 50% -40px, rgba(200,168,75,0.18), transparent 70%),
        rgba(245,245,238,.96);
    border-bottom-color: rgba(0,0,0,0.08);
}
body.light-theme .search-overlay-input-wrapper,
html.light-theme-early .search-overlay-input-wrapper {
    background: linear-gradient(180deg, rgba(0,0,0,0.025), rgba(0,0,0,0.01));
    border-color: rgba(0,0,0,0.10);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.6) inset,
        0 6px 22px rgba(0,0,0,0.08);
}
body.light-theme .search-overlay-input-wrapper:focus-within,
html.light-theme-early .search-overlay-input-wrapper:focus-within {
    border-color: rgba(160,128,40,0.55);
    background: linear-gradient(180deg, rgba(200,168,75,0.10), rgba(200,168,75,0.03));
    box-shadow:
        0 1px 0 rgba(255,255,255,0.6) inset,
        0 0 0 4px rgba(200,168,75,0.14),
        0 10px 28px rgba(0,0,0,0.08);
}
body.light-theme .search-filter-trigger,
html.light-theme-early .search-filter-trigger {
    color: #252525;
    border-color: rgba(0,0,0,.12);
    background: linear-gradient(180deg, #fff, #f4f1e9);
    box-shadow: 0 7px 20px rgba(31,25,10,.08), inset 0 1px #fff;
}
body.light-theme .search-filter-menu,
html.light-theme-early .search-filter-menu {
    background: rgba(255,253,247,.98);
    border-color: rgba(155,122,35,.24);
    box-shadow: 0 20px 46px rgba(47,37,13,.16);
}
body.light-theme .search-filter-option,
html.light-theme-early .search-filter-option { color: #252525; }
body.light-theme .search-filter-option:hover,
body.light-theme .search-filter-option:focus-visible,
html.light-theme-early .search-filter-option:hover,
html.light-theme-early .search-filter-option:focus-visible { background: rgba(0,0,0,.045); }
/* Empty state */
.feed-empty-msg {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.4);
}
.feed-empty-msg i { font-size: 3rem; opacity: .4; }
.feed-empty-msg h3 { font-size: 1.3rem; font-weight: 700; color: #fff; margin: 0; }
.feed-empty-msg p { font-size: .88rem; color: rgba(255,255,255,.4); max-width: 360px; margin: 0; }
.feed-retry-btn {
    margin-top: 8px;
    padding: 10px 18px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: var(--accent);
    color: #151515;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.feed-retry-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.feed-load-error { color: #e05555; font-size: .9rem; text-align: center; }

/* ==========================================
   NOTIFICAÇÕES (dropdown)
   ========================================== */
.notif-wrapper { position: relative; }
.btn-notif { position: relative; }
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-height: 500px;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    z-index: 300;
    overflow: hidden;
}
.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}
.notif-dropdown-header h3 { font-size: 0.95rem; font-weight: 700; margin: 0; }
.notif-mark-all {
    background: none;
    border: none;
    color: var(--accent-ink, var(--accent));
    font-size: 0.78rem;
    cursor: pointer;
    font-family: inherit;
}
.notif-mark-all:hover { text-decoration: underline; }
.notif-dropdown-list {
    max-height: 400px;
    overflow-y: auto;
}
.notif-empty {
    padding: 32px;
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
}
.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.15s;
    align-items: center;
}
.notif-item:hover { background: rgba(255,255,255,0.03); }
.notif-item.nao-lida { background: rgba(200,168,75,0.04); }
.notif-item-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(200,168,75,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-ink, var(--accent));
    flex-shrink: 0;
    overflow: hidden;
}
.notif-item-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-text { font-size: 0.82rem; line-height: 1.4; }
.notif-item-time { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.notif-item-poster { width: 36px; height: 52px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media(max-width: 1100px) {
    .main-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .hero-section { height: 380px; }
    .hero-content { left: 24px; bottom: 40px; }
    .hero-content h1 { font-size: 2rem; }
    .feed-col { padding: 20px 16px 80px; }
}

@media(max-width: 768px) {
    .topbar { height: 52px; padding: 0 16px; gap: 12px; }
    .logo-header img { height: 28px; }
    .nav-links { gap: 2px; }
    .nav-link { font-size: 0.75rem; padding: 6px 10px; }
    .nav-link i { display: none; }
    .search-wrapper { width: 180px; padding: 6px 10px; }

    .hero-section { height: 320px; }
    .hero-content { left: 16px; bottom: 32px; max-width: 85%; }
    .hero-content h1 { font-size: 1.6rem; }
    .hero-desc { font-size: 0.8rem; }
    .hero-btn { padding: 8px 16px; font-size: 0.8rem; }

    .filters { flex-direction: column; align-items: flex-start; gap: 10px; }
    .filter-tabs { flex-wrap: wrap; }
    .filter-tab { padding: 6px 10px; font-size: 0.75rem; }

    .feed-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }

    .feed-carousel .media-card { width: 130px; }
    .feed-carousel .media-card > img { width: 130px; height: 190px; }
    .carousel-btn { display: none; }

    .smart-filter-panel { padding: 16px; }
    .filter-chip { font-size: .72rem; padding: 5px 10px; }
    .signal-badge { display: none; }

    .search-overlay-header { padding: 18px 16px 14px; }
    .search-overlay-input-wrapper { padding: 10px 16px; }
    .search-overlay-body { padding: 24px 20px 40px; }
    .search-overlay-input { font-size: 1.05rem; }
    .search-overlay-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
    .search-filters { padding: 12px 16px 16px; gap: 8px; }
    .search-filter-trigger { min-width: 0; height: 38px; padding: 0 11px; }
    .search-filter-trigger-icon { display: none; }
}

@media(max-width: 480px) {
    .hero-content h1 { font-size: 1.3rem; }
    .hero-section { height: 280px; }
    .feed-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
    .feed-carousel .media-card { width: 110px; }
    .feed-carousel .media-card > img { width: 110px; height: 160px; }
    .search-overlay-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
    .filter-panel-header { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* =========================================================
   ABA EXPLORAR (Discoverable Feed)
   ========================================================= */
.explorar-section {
    margin-bottom: 36px;
}
.explorar-section .section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 0 4px;
}
.explorar-section .section-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}
.explorar-section .section-subtitle {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 500;
}

.similar-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.similar-user-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.similar-user-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139,92,246,0.45);
    background: rgba(139,92,246,0.05);
}
body.light-theme .similar-user-card {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
}

.su-header {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.su-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.su-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 1.1rem;
}
.su-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.su-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.su-handle {
    font-size: 0.78rem;
    color: var(--muted);
}

.su-score {
    display: flex;
    align-items: baseline;
    gap: 6px;
    background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(236,72,153,0.12));
    border: 1px solid rgba(139,92,246,0.35);
    border-radius: 10px;
    padding: 8px 12px;
}
.su-score-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #c084fc;
    line-height: 1;
}
.su-score-label {
    font-size: 0.78rem;
    color: var(--muted);
}

.su-meta {
    font-size: 0.82rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.su-meta i {
    font-size: 0.72rem;
    color: #8b5cf6;
}

.su-bio {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
    font-style: italic;
}

.su-follow-btn {
    margin-top: 4px;
    padding: 9px 14px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .15s ease, transform .1s ease;
}
.su-follow-btn:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
}
.su-follow-btn:disabled {
    opacity: 0.7;
    cursor: default;
}
.su-follow-btn.following {
    background: rgba(34,197,94,0.18);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.4);
}

@media(max-width: 640px) {
    .similar-users-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Card de Wrapped no feed (home) ===== */
.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); }

/* ===== Atalho de Clubes no feed ===== */
.clubes-shortcut {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    color: var(--text);
    text-decoration: none;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(14, 165, 233, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.clubes-shortcut:hover {
    transform: translateY(-1px);
    border-color: rgba(34, 197, 94, 0.35);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(14, 165, 233, 0.16));
}

.clubes-shortcut .fs-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    flex-shrink: 0;
}

.clubes-shortcut .fs-text {
    flex: 1;
    min-width: 0;
}

.clubes-shortcut .fs-title {
    font-weight: 800;
    font-size: .98rem;
}

.clubes-shortcut .fs-sub {
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.35;
}

.clubes-shortcut .fs-arrow {
    color: var(--muted);
}


/* Tema claro: descoberta, busca, filtros e cartões fora dos pôsteres. */
:is(html.light-theme-early, body.light-theme) :is(.section-header h2, .feed-section-title-wrap h2, .filter-panel-header h3, .search-overlay-card-title, .feed-empty-msg h3) { color: var(--text); }
:is(html.light-theme-early, body.light-theme) :is(.feed-empty-msg, .feed-empty-msg p, .sidebar-footer, .sidebar-footer a) { color: var(--muted); }
:is(html.light-theme-early, body.light-theme) :is(.sidebar-card, .similar-user-card, .tweet-media, .filter-tabs, .filter-chip, .search-wrapper) { background: var(--surface); border-color: var(--border); }
:is(html.light-theme-early, body.light-theme) :is(.search-autocomplete, .smart-filter-panel, .notif-dropdown) { background: var(--surface); box-shadow: 0 12px 32px rgba(30,41,59,.16); }
:is(html.light-theme-early, body.light-theme) :is(.autocomplete-item:hover, .trending-item:hover, .quick-link:hover, .sidebar-social-link:hover, .notif-item:hover, .tweet:hover) { background: var(--surface2); }
:is(html.light-theme-early, body.light-theme) .filter-chip { color: var(--muted); }
:is(html.light-theme-early, body.light-theme) :is(.filter-chip:hover, .filter-chip.active) { color: #806117; background: rgba(200,168,75,.15); border-color: #806117; }
:is(html.light-theme-early, body.light-theme) .btn-clear-filters { border-color: var(--border2); }
:is(html.light-theme-early, body.light-theme) .btn-apply-filters { background: #c8a84b; color: #17130a; }
:is(html.light-theme-early, body.light-theme) .feed-discovery-more { background: var(--surface); border-color: var(--border); }
:is(html.light-theme-early, body.light-theme) .search-filter-option[aria-selected="true"] { color: #806117; }
:is(html.light-theme-early, body.light-theme) :is(.carousel-btn, .rec-arrow) { color: var(--text); background: var(--surface); border-color: var(--border2); }
:is(html.light-theme-early, body.light-theme) .trending-pos { color: #697586; }
:is(html.light-theme-early, body.light-theme) .toast.error { color: #b42318; }
:is(html.light-theme-early, body.light-theme) .hero-section { --accent-ink: #e8c96a; --accent-ink-hover: #fff3b2; }
:is(html.light-theme-early, body.light-theme) :is(.card-overlay, .card-reason, .search-overlay-card-badge) { --accent-ink: #e8c96a; --accent-ink-hover: #fff3b2; }
:is(html.light-theme-early, body.light-theme) .badge-movie { color: #1d4ed8; }
:is(html.light-theme-early, body.light-theme) .badge-tv { color: #6d28d9; }
:is(html.light-theme-early, body.light-theme) :is(.badge-game, .tweet-repost-label, .tw-action.reposted) { color: #047857; }
:is(html.light-theme-early, body.light-theme) .badge-book { color: #806117; }
:is(html.light-theme-early, body.light-theme) .badge-music { color: #be185d; }
:is(html.light-theme-early, body.light-theme) .su-score-value { color: #6d28d9; }
:is(html.light-theme-early, body.light-theme) .su-follow-btn { background: linear-gradient(135deg, #6d28d9, #be185d); }
:is(html.light-theme-early, body.light-theme) .su-follow-btn.following {
    color: #047857;
    background: #e1f3e9;
    border-color: #7bac95;
}
