
.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands,
i.fa, i.fas, i.far, i.fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased;
    speak: never;
}
.fas, .fa-solid, .fa { font-weight: 900 !important; }
.far, .fa-regular { font-weight: 400 !important; }
.fab, .fa-brands { font-family: "Font Awesome 6 Brands", "FontAwesome" !important; font-weight: 400 !important; }

html {
    background: var(--body-bg, #fafafa);
    color-scheme: light;
}

html[data-home-theme="dark"] {
    color-scheme: dark;
}

body {
    background: var(--body-bg, #fafafa);
    color: var(--text-primary, #111);
    font-family: Roboto, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: var(--text-base, 14px);
    line-height: 1.5;
    margin: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body.page-home,
body.page-video,
body.cb-shell {
    padding-top: 0;
}

body.overflow-hidden {
    overflow: hidden;
}

body.page-home > header,
body.cb-shell > header,
header.cb-header,
body.page-home header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height, 56px);
    z-index: var(--z-fixed-header, 9000);
    background: var(--header-bg, #fff) !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    display: block !important;
}

body.page-home > header::after,
body.page-home header::after,
header.cb-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 5px;
    pointer-events: none;
    box-shadow: inset 0 4px 8px -3px rgba(17, 17, 17, 0.06);
    opacity: 1;
}

html[data-home-theme="dark"] body.page-home header::after {
    box-shadow: inset 0 4px 8px -3px rgba(0, 0, 0, 0.45);
}

body.page-home header .header-inner,
header.cb-header .header-inner {
    height: var(--header-height, 56px);
    max-width: none;
    margin: 0;
    padding: 0 16px 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.page-home header .logo,
header.cb-header .logo {
    font-size: 1.25em;
    font-weight: 300;
    letter-spacing: 0;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
    background: none !important;
    -webkit-text-fill-color: var(--text-primary) !important;
}

body.page-home header .logo span,
header.cb-header .logo span {
    color: var(--accent);
    font-weight: 500;
    -webkit-text-fill-color: var(--accent) !important;
    background: none !important;
}

body.page-home .mobile-nav-btn,
body.page-home .cat-header-btn,
body.page-home .mobile-user-btn,
header.cb-header .mobile-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: var(--header-circle-button-color, #606060);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

body.page-home .cat-header-btn span {
    display: none;
}

body.page-home .mobile-nav-btn:hover,
body.page-home .cat-header-btn:hover,
body.page-home .mobile-user-btn:hover {
    background: var(--nav-hover-bg);
}

body.page-home .search-box {
    flex: 1 1 auto;
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: stretch;
    height: 40px;
}

body.page-home .search-input {
    width: 100%;
    height: 40px;
    border-radius: 2px 0 0 2px !important;
    border: 1px solid var(--search-input-border, #ccc) !important;
    border-right: 0 !important;
    background: var(--header-search-bg, #fff) !important;
    color: var(--text-primary) !important;
    padding: 0 12px !important;
    font-size: 16px;
    box-shadow: none !important;
}

body.page-home .search-input:focus {
    outline: none;
    border-color: #bbb !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06) !important;
    z-index: 1;
}

body.page-home .search-input::placeholder {
    color: var(--text-muted);
}

body.page-home .search-btn {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 64px !important;
    min-width: 64px;
    height: 40px !important;
    border: 1px solid var(--search-btn-border, #d3d3d3) !important;
    border-radius: 0 2px 2px 0 !important;
    background: var(--search-btn-bg, #f8f8f8) !important;
    color: #333 !important;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
}

body.page-home .search-btn:hover {
    background: var(--search-btn-hover-bg, #f0f0f0) !important;
}

body.page-home .header-tool-btn,
body.page-home .ai-search-btn,
body.page-home .auth-btn {
    height: 36px;
    min-width: 36px;
    padding: 0 12px;
    border-radius: 2px;
    border: 0;
    background: transparent;
    color: var(--header-control-text, #606060);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
}

body.page-home .header-tool-btn:hover,
body.page-home .ai-search-btn:hover,
body.page-home .auth-btn:hover {
    background: var(--header-control-hover);
    color: var(--text-primary);
}

body.page-home .auth-btn.btn-primary,
body.page-home .btn-primary {
    background: transparent !important;
    border: 1px solid var(--accent) !important;
    color: var(--accent) !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: 2px !important;
    padding: 0 14px !important;
}

body.page-home .auth-btn.btn-primary:hover {
    background: var(--accent-soft) !important;
}

body.page-home .controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

body.page-home .header-auth-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    border-left: 1px solid var(--border) !important;
    margin-left: 6px !important;
    padding-left: 10px !important;
}

body.page-home #mainContent,
body.page-home .page-main-wrap,
body.cb-shell .page-main-wrap {
    padding-top: calc(var(--header-height, 56px) + 8px);
    min-height: 50vh;
    transition: padding-left var(--sidebar-slide-ms, 200ms) ease;
    background: var(--body-bg);
}

@media (min-width: 768px) {
    body.page-home.visible-sidebar #mainContent,
    body.cb-shell.visible-sidebar:not(.page-video) .page-main-wrap,
    body.cb-shell.visible-sidebar:not(.page-video) #mainContent {
        padding-left: var(--sidebar-width, 240px);
    }
}

body.page-home #catSideNav,
body.cb-shell #catSideNav,
.cat-side-nav {
    position: fixed !important;
    top: var(--header-height, 56px) !important;
    left: 0 !important;
    width: var(--sidebar-width, 240px) !important;
    height: calc(100vh - var(--header-height, 56px)) !important;
    background: var(--sidebar-bg, #f5f5f5) !important;
    border-right: 0 !important;
    z-index: var(--z-sidebar, 9500) !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-100%);
    transition: transform var(--sidebar-slide-ms, 200ms) ease !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    padding: 0 0 24px !important;
}

body.page-home #catSideNav.open,
body.page-home.visible-sidebar #catSideNav,
body.cb-shell.visible-sidebar #catSideNav,
.cat-side-nav.open {
    transform: translateX(0) !important;
}

body.sliding-sidebar #catSideNav,
body.sliding-sidebar .cat-side-nav {
    will-change: transform;
}

body.page-home #catDrawerBackdrop,
.cat-drawer-backdrop,
.page-sidebar-content-overlay {
    position: fixed !important;
    inset: 0;
    top: var(--header-height, 56px) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: var(--z-sidebar-overlay, 9400) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--sidebar-slide-ms, 200ms) ease, visibility var(--sidebar-slide-ms, 200ms) ease;
    backdrop-filter: none !important;
}

body.page-home #catDrawerBackdrop.open,
body.page-home.sidebar-overlay-visible #catDrawerBackdrop,
.cat-drawer-backdrop.open,
body.sidebar-overlay-visible .page-sidebar-content-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (min-width: 768px) {
    body.page-home:not(.page-video).visible-sidebar #catDrawerBackdrop,
    body.page-home:not(.page-video).visible-sidebar #catDrawerBackdrop.open {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

body.page-home #catSideNav .ph-side-header,
body.page-home #userSideNav .ph-side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--sidebar-nav-border, #eee);
    margin-bottom: 0;
    background: transparent;
}

body.page-home #catSideNav .ph-side-logo,
body.page-home #userSideNav .ph-side-logo {
    font-weight: 400;
    font-size: 15px;
    color: var(--text-primary);
}

body.page-home #catSideNav .ph-side-logo span,
body.page-home #userSideNav .ph-side-logo span {
    color: var(--accent);
    font-weight: 500;
}

body.page-home #catSideNav .ph-close-btn,
body.page-home #userSideNav .ph-close-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--sidebar-nav-item-icon, #909090);
    cursor: pointer;
}

body.page-home #catSideNav .ph-close-btn:hover,
body.page-home #userSideNav .ph-close-btn:hover {
    background: var(--nav-hover-bg);
}

body.page-home #catSideNav .ph-nav-item,
body.page-home #userSideNav .ph-nav-item,
body.page-home #catSideNav a.ph-nav-item {
    display: flex !important;
    align-items: center;
    gap: 24px;
    padding: 0 24px !important;
    margin: 0 !important;
    min-height: 40px;
    border-radius: 0 !important;
    color: var(--sidebar-nav-item-text, rgb(13, 13, 13)) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 40px;
    border-left: 0 !important;
    border-top: 0 !important;
    transition: background 0.15s ease;
    position: relative;
    background: transparent !important;
}

body.page-home #catSideNav .ph-nav-item i,
body.page-home #userSideNav .ph-nav-item i {
    width: 24px;
    max-width: 24px;
    text-align: center;
    color: var(--sidebar-nav-item-icon, #909090) !important;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

body.page-home #catSideNav .ph-nav-item:hover,
body.page-home #userSideNav .ph-nav-item:hover {
    background: var(--nav-hover-bg) !important;
}

body.page-home #catSideNav .ph-nav-item.active,
body.page-home #catSideNav .ph-nav-item[aria-current="page"] {
    background: var(--nav-active-bg) !important;
    font-weight: 500;
}

body.page-home #catSideNav .ph-nav-item.active i {
    color: var(--accent) !important;
}

body.page-home #catSideNav .ph-side-section {
    display: block;
    padding: 16px 24px 8px;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-secondary);
    border-top: 1px solid var(--sidebar-nav-border, #eee);
    margin-top: 8px;
}

body.page-home #catSideNav .ph-side-section:first-of-type {
    border-top: 0;
    margin-top: 0;
}

body.page-home #catFab {
    background: var(--elevated) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-md) !important;
}

@media (min-width: 768px) {
    body.page-home.visible-sidebar #catFab {
        display: none !important;
    }
}

body.page-home #userSideNav,
.user-side-nav {
    position: fixed !important;
    top: var(--header-height, 56px) !important;
    right: 0 !important;
    left: auto !important;
    width: min(320px, 88vw) !important;
    height: calc(100vh - var(--header-height, 56px)) !important;
    background: var(--sidebar-bg, #f5f5f5) !important;
    border-left: 1px solid var(--border) !important;
    z-index: var(--z-sidebar, 9500) !important;
    transform: translateX(100%);
    transition: transform var(--sidebar-slide-ms, 200ms) ease !important;
    overflow-y: auto;
    padding: 0 0 24px !important;
    border-radius: 0 !important;
    box-shadow: var(--shadow-lg) !important;
    backdrop-filter: none !important;
}

body.page-home #userSideNav.open,
.user-side-nav.open {
    transform: translateX(0) !important;
}

body.page-home #userDrawerBackdrop {
    position: fixed !important;
    inset: 0;
    top: var(--header-height, 56px) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: var(--z-sidebar-overlay, 9400) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--sidebar-slide-ms, 200ms) ease;
    backdrop-filter: none !important;
}

body.page-home #userDrawerBackdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.page-home .ph-quick-row {
    display: flex;
    gap: 8px;
    padding: 12px 16px 16px;
    justify-content: space-around;
}

body.page-home .ph-quick-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    border: 0;
}

body.page-home .ph-quick-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 6px;
    display: block;
    text-align: center;
}

body.page-home .ph-quick-btn {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
}

body.page-home .feed-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px 8px;
    max-width: none;
    margin: 0;
    overflow-x: auto;
    border-bottom: 0;
    scrollbar-width: none;
    background: transparent;
}

body.page-home .feed-tabs::-webkit-scrollbar {
    display: none;
}

body.page-home .feed-tab {
    flex: 0 0 auto;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    border: 0;
    background: var(--chip-bg, #f0f0f0);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    line-height: 32px;
    box-shadow: none !important;
}

body.page-home .feed-tab:hover {
    background: var(--chip-hover, #e8e8e8);
}

body.page-home .feed-tab.active {
    background: #0f0f0f !important;
    color: #fff !important;
    box-shadow: none !important;
    border-bottom: 0 !important;
    border-radius: 8px;
}

html[data-home-theme="dark"] body.page-home .feed-tab.active {
    background: #f1f1f1 !important;
    color: #0f0f0f !important;
}

body.page-home .cb-section-head,
body.page-home .cw-header,
body.page-home .media-list-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    max-width: none;
    margin: 0;
    border-top: 0;
}

@media (min-width: 710px) {
    body.page-home .cb-section-head,
    body.page-home .cw-header,
    body.page-home .feed-tabs,
    body.page-home #mainContent > .trending-tags-bar .trending-tags-inner {
        padding-left: 24px;
        padding-right: 24px;
    }
}

body.page-home .cb-section-head h2,
body.page-home .cw-title {
    margin: 12px 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: 0;
}

body.page-home .cb-section-head a,
body.page-home .cw-clear-btn {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
}

body.page-home .cb-section-head a:hover,
body.page-home .cw-clear-btn:hover {
    color: var(--text-primary);
}

body.page-home #vipContent > div:first-child {
    background: var(--accent-soft) !important;
    border: 1px solid rgba(255, 106, 0, 0.22) !important;
    border-radius: 4px !important;
}

@media (max-width: 767px) {
#mobileBottomNav,
.mobile-bottom-nav {
    display: block !important;
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--bottom-nav-height, 56px) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--header-bg, #fff) !important;
    border-top: 1px solid var(--border) !important;
    z-index: var(--z-bottom-nav, 950) !important;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: none !important;
}
}

@media (min-width: 768px) {
#mobileBottomNav,
.mobile-bottom-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
}

.mobile-bottom-nav-inner {
    height: var(--bottom-nav-height, 56px);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    max-width: 560px;
    margin: 0 auto;
}

body.page-home .mobile-bottom-nav a, .mobile-bottom-nav a,
body.page-home .mobile-bottom-nav button, .mobile-bottom-nav button {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    background: none;
    border: 0;
    cursor: pointer;
}

body.page-home .mobile-bottom-nav a span, .mobile-bottom-nav a span,
body.page-home .mobile-bottom-nav button, .mobile-bottom-nav button span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-home .mobile-bottom-nav a.active, .mobile-bottom-nav a.active,
body.page-home .mobile-bottom-nav a:hover, .mobile-bottom-nav a:hover {
    color: var(--accent);
}

@media (min-width: 900px) {
    body.page-home #mobileBottomNav,
    body.page-home .mobile-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 899px) {
    body.page-home #mainContent {
        padding-bottom: calc(var(--bottom-nav-height, 56px) + 16px + env(safe-area-inset-bottom, 0px));
    }
}

body.page-home .auth-modal .auth-box {
    background: var(--elevated, #fff) !important;
    border: 0 !important;
    border-radius: 2px !important;
    box-shadow: 0 4px 8px rgba(17, 17, 17, 0.06) !important;
}

body.page-home .btn-submit {
    background: var(--accent) !important;
    color: var(--accent-contrast, #fff) !important;
    border: 0 !important;
    border-radius: 2px !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

body.page-home .btn-submit:hover {
    background: var(--accent-hover) !important;
}

body.page-home a.logo,
body.page-home a.ph-nav-item,
body.page-home .feed-tab,
body.page-home .mobile-bottom-nav a, .mobile-bottom-nav a,
body.page-home .desc,
body.page-home .u-name,
body.page-home .cb-title,
body.page-home .cb-title a {
    color: inherit;
}

body.page-home .skip-link:focus {
    top: 0 !important;
    background: var(--accent) !important;
    color: #fff !important;
}

body.page-home .glass,
body.page-home [class*="glass-"],
body.page-home .liquid-glass {
    background: var(--elevated) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--border) !important;
}

body.page-home .hero-section--compact .hero-shell {
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

body.page-home .hot-search-panel {
    background: #f5f5f5 !important;
    border: 1px solid var(--border) !important;
    border-radius: 4px !important;
}

body.page-home .hot-search-tags button,
body.page-home #hotSearchTags button {
    background: #fff !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    border-radius: 2px !important;
}

body.page-home .hot-search-tags button:hover,
body.page-home #hotSearchTags button:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    background: var(--accent-soft) !important;
}

body.page-home .hero-lead,
body.page-home .hero-status-pill {
    color: var(--text-secondary) !important;
}

body.page-home .hero-status-pill {
    background: #f5f5f5 !important;
    border: 1px solid var(--border) !important;
}

@media (prefers-reduced-motion: reduce) {
    body.page-home #catSideNav,
    body.page-home #userSideNav,
    body.page-home #mainContent,
    body.page-home #catDrawerBackdrop {
        transition: none !important;
    }
}

@media (max-width: 1023px) {
    body.page-home .cat-header-btn {
        display: none !important;
    }
}

@media (max-width: 709px) {
    body.page-home header .header-inner {
        padding: 0 8px;
    }
}

.mobile-bottom-nav a svg,
.mobile-bottom-nav button svg {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
