/* Browse page — same visual language as home / following (no glass chrome) */

#tlBrowseRoot.browse-page {
    padding-top: 12px;
    padding-bottom: 56px;
}

#tlBrowseRoot .tl-browse-page-head {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    background: none;
}

#tlBrowseRoot .tl-browse-page-head .tl-hl-title {
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
}

#tlBrowseRoot .tl-browse-page-desc {
    margin: 6px 0 0;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--text-muted, #9ca3af);
    max-width: 48ch;
}

#tlBrowseRoot .section {
    margin-bottom: 28px;
    padding: 0;
}

#tlBrowseRoot .section-header.tl-hl-head,
#tlBrowseRoot .section-header.tl-hc-head {
    margin-bottom: 14px;
    padding-bottom: 0;
    border-bottom: 0;
}

#tlBrowseRoot .browse-live-by-category {
    gap: 0;
    margin-top: 0;
}

#tlBrowseRoot .browse-all-live-section {
    scroll-margin-top: 88px;
}

#tlBrowseRoot .browse-all-live-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

#tlBrowseRoot .browse-all-live-head .tl-hl-title {
    margin: 0;
}

/* Flat sort chips — no glass / blur */
#tlBrowseRoot .browse-live-sort {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 3px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#tlBrowseRoot .browse-live-sort__btn {
    min-width: 48px;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted, #adadb8);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

#tlBrowseRoot .browse-live-sort__btn:hover {
    color: var(--brand-soft, #6b9fff);
    background: rgba(255, 255, 255, 0.04);
}

#tlBrowseRoot .browse-live-sort__btn.is-active {
    border-color: rgba(107, 159, 255, 0.35);
    background: rgba(30, 86, 245, 0.18);
    color: var(--brand-soft, #6b9fff);
    box-shadow: none;
}

#tlBrowseRoot .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin: 0;
    padding: 40px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#tlBrowseRoot .empty-state i {
    font-size: 1.6rem;
    color: #71717a;
    margin-bottom: 4px;
}

#tlBrowseRoot .empty-state h3 {
    margin: 0;
    color: #fff;
}

#tlBrowseRoot .empty-state p {
    margin: 0 0 12px;
    color: var(--text-muted, #9ca3af);
}

/* Categories tab — wrap like home cat cards, not a broken horizontal-only rail */
#tlBrowseRoot .tl-browse-cats-grid.categories-scroll-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    overflow: visible;
    flex-wrap: unset;
    padding-bottom: 0;
}

#tlBrowseRoot .tl-browse-cats-grid .category-card-scroll,
#tlBrowseRoot .tl-browse-cats-grid .tl-sk-cat-faux {
    flex: none;
    width: auto;
    min-width: 0;
}

@media (max-width: 860px) {
    #tlBrowseRoot .tl-browse-cats-grid.categories-scroll-row {
        grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
        gap: 9px;
    }
}

/* Kill legacy browse-header chrome when not category landing */
#tlBrowseRoot > .browse-header:not(:has(.tl-cat-hero)) {
    display: none;
}
