:root {
    --bb-primary: #e55a00;
    --bb-primary-dark: #c94800;
    --bb-primary-soft: #ffefe4;
    --bb-border-dark: rgba(255, 149, 77, 0.18);
    --bb-border-light: rgba(229, 90, 0, 0.12);
    --bb-bg-dark: #1b1410;
    --bb-bg-dark-soft: #241a14;
    --bb-bg-light: #f7f2ed;
    --bb-card-light: #fffdfb;
    --bb-text-dark: #f7ede5;
    --bb-text-muted-dark: #d4c2b4;
    --bb-text-light: #2b1d12;
    --bb-text-muted-light: #6d5646;
    --bb-shell-width: 1180px;
    --bb-shell-pad: 20px;
    --bb-sidebar-expanded-width: 280px;
    --bb-sidebar-collapsed-width: 96px;
    --bb-sidebar-current-width: var(--bb-sidebar-expanded-width);
}

body[data-sidebar-state="collapsed"] {
    --bb-sidebar-current-width: var(--bb-sidebar-collapsed-width);
}

body[data-sidebar-state="expanded"] {
    --bb-sidebar-current-width: var(--bb-sidebar-expanded-width);
}

html[data-theme="dark"] {
    --bb-page-bg: linear-gradient(180deg, #16100c 0%, #201712 100%);
    --bb-surface: linear-gradient(135deg, rgba(66, 47, 31, 0.98) 0%, rgba(35, 26, 20, 0.98) 100%);
    --bb-surface-soft: rgba(255, 255, 255, 0.04);
    --bb-surface-border: var(--bb-border-dark);
    --bb-text-main: var(--bb-text-dark);
    --bb-text-muted: var(--bb-text-muted-dark);
    --bb-input-bg: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] {
    --bb-page-bg: linear-gradient(180deg, #f6efe9 0%, #fffaf6 100%);
    --bb-surface: linear-gradient(135deg, rgba(255, 236, 222, 0.98) 0%, rgba(255, 248, 242, 0.98) 100%);
    --bb-surface-soft: rgba(0, 0, 0, 0.03);
    --bb-surface-border: var(--bb-border-light);
    --bb-text-main: var(--bb-text-light);
    --bb-text-muted: var(--bb-text-muted-light);
    --bb-input-bg: rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body.bb-shell-body {
    font-family: 'Poppins', sans-serif;
    background: var(--bb-page-bg);
    color: var(--bb-text-main);
    overflow-x: hidden;
}

a {
    color: inherit;
}

.bb-shell {
    min-height: 100vh;
    width: calc(100vw - var(--bb-sidebar-current-width));
    margin-left: var(--bb-sidebar-current-width);
    transition: margin-left .2s ease;
}

.bb-mobile-header {
    position: sticky;
    top: 0;
    z-index: 70;
    display: none;
    background: var(--bb-surface);
    border-bottom: 1px solid var(--bb-surface-border);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
}

.bb-mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 56px;
    padding: 0 14px;
}

.bb-mobile-brand,
.bb-desktop-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.bb-logo {
    display: block;
    width: auto;
    height: 38px;
}

.bb-brand-fallback {
    font-weight: 700;
    color: var(--bb-primary);
}

.bb-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--bb-surface-border);
    border-radius: 10px;
    background: var(--bb-input-bg);
    color: var(--bb-text-main);
    cursor: pointer;
}

.bb-page {
    width: 100%;
    margin: 0;
    padding: 16px 16px 32px 16px;
}

.sidebar {
    width: var(--bb-sidebar-current-width);
    background: linear-gradient(180deg, rgba(27, 20, 16, 0.98) 0%, rgba(20, 15, 12, 0.98) 100%);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 90;
    border-right: 1px solid var(--bb-surface-border);
    overflow: visible;
    transition: width .2s ease;
}

html[data-theme="light"] .sidebar {
    background: linear-gradient(180deg, #fff8f3 0%, #fffdfb 100%);
}

.sidebar-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--bb-surface-border);
    background: rgba(0, 0, 0, 0.12);
    overflow: visible;
}

html[data-theme="light"] .sidebar-header {
    background: rgba(0, 0, 0, 0.03);
}

.sidebar-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-size: 18px;
    width: 100%;
    padding-right: 0;
}

.sidebar-header a {
    width: 100%;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bb-text-main);
    text-decoration: none;
}

.sidebar-header img.logo-dark,
.sidebar-header img.logo-light {
    display: block;
    max-width: 100%;
    height: auto;
}

.sidebar-header .sidebar-favicon {
    display: none;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
}

.sidebar-header img.logo-dark {
    display: block;
}

.sidebar-header img.logo-light {
    display: none;
}

html[data-theme="light"] .sidebar-header img.logo-dark {
    display: none;
}

html[data-theme="light"] .sidebar-header img.logo-light {
    display: block;
}

.sidebar-collapse-btn {
    position: absolute;
    top: 30px;
    right: -20px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bb-surface-border);
    border-radius: 10px;
    background: var(--bb-surface);
    box-shadow: 0 8px 18px rgba(17, 11, 8, 0.12);
    color: var(--bb-text-main);
    cursor: pointer;
    transform: none;
    z-index: 120;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.sidebar-collapse-btn:hover {
    color: var(--bb-primary);
    border-color: rgba(229, 90, 0, 0.42);
    box-shadow: 0 10px 20px rgba(229, 90, 0, 0.16);
}

.sidebar-collapse-btn i {
    display: block;
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
}

.sidebar-compact {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 12px 10px 14px;
    overflow-y: auto;
}

.sidebar-compact-group {
    display: grid;
    gap: 8px;
}

.sidebar-compact-group.sidebar-compact-group-meta {
    margin-top: auto;
}

.sidebar-compact-title {
    display: none;
}

.sidebar-compact-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0;
    border: 1px solid var(--bb-surface-border);
    border-radius: 10px;
    background: var(--bb-input-bg);
    color: var(--bb-text-main);
    text-decoration: none;
    text-align: center;
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}


.sidebar-compact-link i {
    font-size: 15px;
    line-height: 1;
}

.sidebar-compact-link:hover,
.sidebar-compact-link.active {
    color: var(--bb-primary);
    border-color: rgba(229, 90, 0, 0.42);
    background: rgba(229, 90, 0, 0.10);
    transform: translateY(-1px);
}

.sidebar-compact-label {
    display: none;
}

.sidebar-compact-link .qm-new-tag,
.sidebar-compact-link .qm-soon-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 14px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .35px;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.sidebar-compact-link .qm-new-tag {
    display: none;
}

.sidebar-compact-link .qm-soon-tag {
    display: none;
}

.sidebar-compact-link.has-new-tag::after {
    content: "new";
    position: absolute;
    top: 49%;
    right: 0;
    width: 15px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 0;
    border-radius: 0 6px 6px 0;
    background: linear-gradient(180deg, rgba(255, 157, 87, 0.92) 0%, rgba(229, 90, 0, 0.92) 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .2px;
    text-transform: lowercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    box-shadow: 0 3px 8px rgba(125, 18, 18, 0.26);
    transform: translateY(-50%);
    pointer-events: none;
}

.sidebar-compact-link.has-soon-tag::after {
    content: "soon";
    position: absolute;
    top: 49%;
    right: 0;
    width: 15px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 0;
    border-radius: 0 6px 6px 0;
    background: linear-gradient(180deg, rgba(111, 143, 153, 0.92) 0%, rgba(83, 111, 118, 0.92) 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .2px;
    text-transform: lowercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    box-shadow: 0 3px 8px rgba(125, 18, 18, 0.26);
    transform: translateY(-50%);
    pointer-events: none;
}

.sidebar-compact-link.soccer-link {
    color: #6a8891;
    border-color: rgba(83, 111, 118, 0.48);
}

.sidebar-compact-link.soccer-link:hover,
.sidebar-compact-link.soccer-link.active {
    color: #6a8891;
    border-color: rgba(83, 111, 118, 0.72);
    background: rgba(83, 111, 118, 0.14);
}

.sidebar-compact-link.basketball-link {
    color: var(--bb-primary);
}

.sidebar-compact-link.basketball-link:hover,
.sidebar-compact-link.basketball-link.active {
    color: var(--bb-primary);
    border-color: rgba(229, 90, 0, 0.42);
    background: rgba(229, 90, 0, 0.10);
}

.ss-sidebar-tooltip {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    max-width: 220px;
    padding: 9px 11px;
    border: 1px solid var(--bb-surface-border);
    border-radius: 12px;
    background: rgba(24, 17, 13, 0.96);
    color: #fff3ea;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: .1px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .14s ease, transform .14s ease;
}

.ss-sidebar-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

html[data-theme="light"] .ss-sidebar-tooltip {
    background: rgba(255, 249, 244, 0.98);
    color: #322116;
    box-shadow: 0 12px 26px rgba(74, 43, 20, 0.14);
}

.ss-hoop-icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 16px;
    color: currentColor;
}

.ss-hoop-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1px;
    width: 14px;
    height: 4px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 2px 2px 0 0;
    opacity: 0.9;
}

.ss-hoop-icon::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    border-bottom: 2px dashed currentColor;
    border-radius: 0 0 4px 4px;
    opacity: 0.95;
}

.ss-hoop-image {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url("/uploads/ui/basketball-hoop.png") center / contain no-repeat;
}

.sidebar-compact-link .qm-live-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    transform-origin: center;
    animation: bbCompactLiveGlyph 1.6s ease-in-out infinite;
}

.sidebar-compact-link .qm-live-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.sidebar-compact-link .qm-live-icon-soccer::after {
    border: 1px solid rgba(83, 111, 118, 0.72);
    animation: bbCompactPulseSoccer 1.35s infinite;
}

.sidebar-compact-link .qm-live-icon-basket::after {
    border: 1px solid rgba(229, 90, 0, 0.72);
    animation: bbCompactPulseBasket 1.35s infinite;
}

@keyframes bbCompactLiveGlyph {
    0%, 100% { transform: translateY(0) scale(1); }
    35% { transform: translateY(-1px) scale(1.08); }
    60% { transform: translateY(0) scale(0.98); }
}

@keyframes bbCompactPulseSoccer {
    0% { box-shadow: 0 0 0 0 rgba(83, 111, 118, 0.65); }
    70% { box-shadow: 0 0 0 6px rgba(83, 111, 118, 0); }
    100% { box-shadow: 0 0 0 0 rgba(83, 111, 118, 0); }
}

@keyframes bbCompactPulseBasket {
    0% { box-shadow: 0 0 0 0 rgba(229, 90, 0, 0.68); }
    70% { box-shadow: 0 0 0 6px rgba(229, 90, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 90, 0, 0); }
}

@keyframes bbCompactNewPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.82; transform: scale(1.08); }
}

@keyframes bbCompactSoonBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

@keyframes bbCompactNewBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.58; }
}

.sidebar-tabbar {
    display: flex;
    border-bottom: 1px solid var(--bb-surface-border);
}

.sidebar-tab-btn {
    flex: 1 1 0;
    border: 0;
    background: transparent;
    color: var(--bb-text-muted);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 11px 8px;
    cursor: pointer;
}

.sidebar-tab-btn.active {
    color: #fff;
    background: linear-gradient(180deg, #ff8a3d 0%, #e55a00 100%);
}

.sidebar-tab-panel {
    display: none;
}

.sidebar-tab-panel.active {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    flex-direction: column;
}

.sidebar-search {
    padding: 12px 14px;
    border-bottom: 1px solid var(--bb-surface-border);
    background: inherit;
}

.sidebar-search input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--bb-surface-border);
    background: var(--bb-input-bg);
    color: var(--bb-text-main);
    font: inherit;
    font-size: 13px;
}

.sidebar-search input::placeholder {
    color: var(--bb-text-muted);
}

.sidebar-search input:focus {
    outline: none;
    border-color: rgba(229, 90, 0, 0.52);
}

.sidebar-section-title {
    padding: 10px 14px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--bb-text-muted);
    border-bottom: 1px solid var(--bb-surface-border);
}

.sidebar-menu-list,
.basket-list,
.league-list,
.country-list,
.search-result-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.sidebar-menu-section,
.sidebar-menu-group {
    padding: 8px 12px 6px;
}

.sidebar-menu-group {
    display: grid;
    gap: 6px;
}

.sidebar-menu-group-links {
    position: relative;
    display: grid;
    gap: 0;
    padding: 4px 0 2px;
    border-radius: 12px;
    overflow: hidden;
}

.sidebar-menu-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #fff;
}

.sidebar-menu-heading i {
    font-size: 12px;
    line-height: 1;
}

.sidebar-menu-heading span {
    display: block;
}

.sidebar-menu-group.soccer-section .sidebar-menu-heading,
.sidebar-menu-section.soccer-section .sidebar-menu-heading {
    background: linear-gradient(180deg, rgba(156, 186, 197, 0.92) 0%, rgba(111, 143, 153, 0.96) 100%);
    color: #fff;
}

.sidebar-menu-group.soccer-section .sidebar-menu-heading i,
.sidebar-menu-section.soccer-section .sidebar-menu-heading i {
    color: #fff;
    animation: bbSoccerHeadingSpin 4.8s linear infinite;
}

.sidebar-menu-group.basketball-section .sidebar-menu-heading i,
.sidebar-menu-section.basketball-section .sidebar-menu-heading i {
    color: #fff;
    animation: bbSoccerHeadingSpin 4.8s linear infinite;
}

.sidebar-menu-group.soccer-section .sidebar-menu-group-links {
    background: rgba(111, 143, 153, 0.12);
}

.sidebar-menu-group.soccer-section .sidebar-menu-group-links::after {
    content: "";
    position: absolute;
    right: -58px;
    bottom: -68px;
    width: 188px;
    height: 188px;
    background-image: url("/assets/img/soccer-ball.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: .08;
    pointer-events: none;
}

.sidebar-menu-group.soccer-section .sidebar-menu-group-links > * {
    position: relative;
    z-index: 1;
}

.sidebar-menu-group.basketball-section .sidebar-menu-group-links {
    background: rgba(229, 90, 0, 0.10);
}

.sidebar-menu-group.basketball-section .sidebar-menu-heading,
.sidebar-menu-section.basketball-section .sidebar-menu-heading {
    background: linear-gradient(180deg, #ff9d57 0%, #e55a00 100%);
}

.sidebar-menu-section.sidebar-menu-section-meta .sidebar-menu-heading {
    background: rgba(255, 255, 255, 0.08);
    color: var(--bb-text-main);
}

html[data-theme="light"] .sidebar-menu-section.sidebar-menu-section-meta .sidebar-menu-heading {
    background: rgba(0, 0, 0, 0.06);
}

.sidebar-menu-list a,
.basket-list a,
.league-list a,
.country-list a,
.search-result-list a,
.country-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 14px;
    color: var(--bb-text-main);
    text-decoration: none;
    font-size: 12px;
    border-left: 3px solid transparent;
}

.sidebar-menu-group-links a {
    border-radius: 10px;
}

.sidebar-menu-list a.soccer-link {
    background: transparent;
}


.sidebar-menu-list a.soccer-link:hover,
.sidebar-menu-list a.soccer-link.active {
    color: #536f76;
    border-left-color: #536f76;
    background: rgba(111, 143, 153, 0.18);
}

.sidebar-menu-list a:hover,
.basket-list a:hover,
.league-list a:hover,
.country-list a:hover,
.search-result-list a:hover,
.country-header:hover {
    color: var(--bb-primary);
    border-left-color: var(--bb-primary);
    background: rgba(229, 90, 0, 0.08);
}

.sidebar-menu-list a.active,
.basket-list a.active,
.league-list a.active {
    color: var(--bb-primary);
    border-left-color: var(--bb-primary);
    background: rgba(229, 90, 0, 0.10);
}

.sidebar-menu-text {
    min-width: 0;
    flex: 1 1 auto;
}

.sidebar-menu-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding: 12px 14px;
    border-top: 1px solid var(--bb-surface-border);
}

.sidebar-menu-social a {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bb-text-muted);
    text-decoration: none;
    border: 1px solid var(--bb-surface-border);
}

.sidebar-menu-social a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.sidebar-menu-social .ss-social-x:hover { background: #0f172a; border-color: #0f172a; }
.sidebar-menu-social .ss-social-tiktok:hover { background: #111827; border-color: #111827; }
.sidebar-menu-social .ss-social-youtube:hover { background: #dc2626; border-color: #dc2626; }
.sidebar-menu-social .ss-social-facebook:hover { background: #1d4ed8; border-color: #1d4ed8; }
.sidebar-menu-social .ss-social-reddit:hover { background: #f97316; border-color: #f97316; }
.sidebar-menu-social .ss-social-telegram:hover { background: #0284c7; border-color: #0284c7; }

.sidebar.is-collapsed .sidebar-header {
    min-height: 64px;
    padding: 10px 8px;
}

.sidebar.is-collapsed .sidebar-header h2 {
    min-height: 40px;
    padding-right: 0;
}

.sidebar.is-collapsed .sidebar-header a {
    font-size: 0;
}

.sidebar.is-collapsed .sidebar-header a i {
    font-size: 24px;
}

.sidebar.is-collapsed .sidebar-header img.logo-dark,
.sidebar.is-collapsed .sidebar-header img.logo-light {
    display: none !important;
}

.sidebar.is-collapsed .sidebar-header .sidebar-favicon {
    display: block;
}

.sidebar.is-collapsed .sidebar-header img.logo-dark,
.sidebar.is-collapsed .sidebar-header img.logo-light {
    max-width: 42px;
    max-height: 42px;
    width: auto;
    object-fit: contain;
}

.sidebar.is-collapsed .sidebar-tabbar,
.sidebar.is-collapsed .sidebar-tab-panel,
.sidebar.is-collapsed .sidebar-menu-social {
    display: none !important;
}

.sidebar.is-collapsed .sidebar-compact {
    display: flex;
}

.sidebar .flag-img {
    width: 16px;
    height: 11px;
    object-fit: cover;
    border-radius: 2px;
    flex: 0 0 auto;
}

.sidebar .search-empty,
.sidebar .search-group-title {
    padding: 8px 14px;
    color: var(--bb-text-muted);
    font-size: 11px;
}

.sidebar .country-item {
    border-bottom: 1px solid var(--bb-surface-border);
}

.sidebar .country-leagues {
    display: none;
}

.sidebar .country-item.expanded .country-leagues {
    display: block;
}

.sidebar .ad-slot,
.sidebar ins.adsbygoogle,
.sidebar .adsbygoogle {
    display: none !important;
}

.bb-top-header {
    position: relative;
    padding: 18px 24px 14px;
    border: 1px solid var(--bb-surface-border);
    border-radius: 18px;
    background: var(--bb-surface);
    box-shadow: 0 12px 28px rgba(11, 8, 6, 0.10);
    overflow: hidden;
    isolation: isolate;
}

.bb-top-header::after {
    content: "\f434";
    position: absolute;
    right: -52px;
    top: -88px;
    z-index: 0;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 300px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

html[data-theme="light"] .bb-top-header::after {
    color: rgba(229, 90, 0, 0.08);
}

.bb-top-header > * {
    position: relative;
    z-index: 1;
}

.bb-top-header h1 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.05;
}

.bb-top-header p {
    margin: 8px 0 0;
    color: var(--bb-text-muted);
    font-size: 14px;
}

.bb-header-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.bb-header-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid var(--bb-surface-border);
    background: var(--bb-input-bg);
    color: var(--bb-text-main);
    font-size: 12px;
    font-weight: 600;
}

.bb-header-links a:hover {
    background: var(--bb-primary);
    border-color: var(--bb-primary);
    color: #fff;
}

.bb-top-header-tools {
    position: absolute;
    top: 18px;
    right: 18px;
}

.bb-nav {
    position: sticky;
    top: 0;
    z-index: 65;
    margin-top: 10px;
}

.bb-nav-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border: 1px solid var(--bb-surface-border);
    border-radius: 16px;
    background: var(--bb-surface);
    box-shadow: 0 10px 24px rgba(11, 8, 6, 0.08);
}

.bb-quickmenu {
    min-width: 0;
}

.bb-quickmenu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bb-text-main);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .32px;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.bb-quickmenu-caret {
    font-size: 11px;
    opacity: .74;
    transition: transform .2s ease;
}

.bb-quickmenu.is-open .bb-quickmenu-caret {
    transform: rotate(90deg);
}

.bb-nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.bb-quickmenu-panel {
    margin-top: 8px;
    padding: 12px 0 0;
    background: var(--bb-surface);
}

.bb-quickmenu-panel[hidden] {
    display: none !important;
}

.quick-nav-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
}

.quick-nav-panel .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid var(--bb-surface-border);
    background: var(--bb-input-bg);
    color: var(--bb-text-main);
    font-size: 12px;
    font-weight: 600;
}

.quick-nav-panel .nav-link:hover,
.quick-nav-panel .nav-link.active {
    border-color: var(--bb-primary);
    background: var(--bb-primary);
    color: #fff;
}

.quick-nav-panel .nav-link i {
    width: 14px;
    text-align: center;
}

.quick-nav-panel .nav-link .qm-new-tag,
.sidebar-menu-list a .qm-new-tag {
    margin-left: auto;
    padding: 1px 5px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .3px;
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 157, 87, 0.96) 0%, rgba(229, 90, 0, 0.96) 100%);
    animation: bbOpenNewPulse 1.2s ease-in-out infinite;
}

.quick-nav-panel .nav-link .qm-soon-tag,
.sidebar-menu-list a .qm-soon-tag {
    margin-left: auto;
    padding: 1px 5px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .3px;
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 157, 87, 0.96) 0%, rgba(229, 90, 0, 0.96) 100%);
    animation: bbOpenSoonBlink 1.45s ease-in-out infinite;
}

.quick-nav-panel .quick-nav-section {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #fff;
}

.quick-nav-panel .quick-nav-section.soccer-section {
    background: linear-gradient(180deg, #6f8f99 0%, #536f76 100%);
}

.quick-nav-panel .quick-nav-section.basketball-section {
    background: linear-gradient(180deg, #ff9d57 0%, #e55a00 100%);
}

@keyframes bbOpenNewPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.84; transform: scale(1.06); }
}

@keyframes bbOpenSoonBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.58; }
}

@keyframes bbSoccerHeadingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bb-header-ad {
    margin-top: 12px;
    display: none;
}

.bb-header-ad .ad-slot,
.bb-right-rail .ad-slot,
.bb-inline-ad-slot {
    display: block;
    border-radius: 12px;
    border: 0;
    background: transparent;
}

.bb-header-ad .ad-slot,
.bb-inline-ad-slot {
    width: 100%;
}

.bb-right-rail .ad-slot {
    min-height: 600px;
}

.bb-header-ad.has-active-ad {
    display: block;
}

.bb-header-ad .ad-slot.ad-active,
.bb-right-rail .ad-slot.ad-active,
.bb-inline-ad-slot.ad-active {
    border: 1px solid var(--bb-surface-border);
    background: var(--bb-input-bg);
}

.ad-slot.ad-active {
    min-height: auto;
}

.bb-content-area {
    margin-top: 18px;
}

.bb-site-footer {
    width: min(var(--bb-shell-width), calc(100vw - 32px));
    margin: 28px auto 0;
    padding: 18px 0 0;
    color: var(--bb-text-muted);
}

.bb-site-footer-top {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--bb-surface-border);
    border-radius: 16px;
    background: var(--bb-surface);
}

.bb-site-footer h3,
.bb-site-footer h4 {
    margin: 0 0 10px;
    color: var(--bb-text-main);
}

.bb-site-footer p,
.bb-site-footer li,
.bb-site-footer a {
    font-size: 13px;
    line-height: 1.7;
    color: var(--bb-text-muted);
    text-decoration: none;
}

.bb-site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bb-site-footer-bottom {
    padding: 12px 4px 0;
    font-size: 12px;
}

.bb-mobile-bottom-nav {
    position: sticky;
    bottom: 0;
    z-index: 70;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: min(var(--bb-shell-width), calc(100vw - 32px));
    margin: 18px auto 0;
    padding: 10px 12px;
    border: 1px solid var(--bb-surface-border);
    border-radius: 16px;
    background: var(--bb-surface);
}

.bb-mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--bb-text-main);
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 991px) {
    .sidebar {
        display: none;
    }

    .sidebar-collapse-btn,
    .sidebar-compact {
        display: none !important;
    }

    .bb-mobile-header {
        display: block;
    }

    .bb-shell {
        width: 100%;
        margin-left: 0;
    }

    .bb-page {
        width: 100%;
        padding-top: 10px;
    }

    .bb-top-header {
        display: none;
    }

    .bb-nav {
        top: 56px;
    }

    .bb-nav-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .bb-nav-right {
        justify-content: flex-start;
    }

    .quick-nav-panel {
        grid-template-columns: 1fr 1fr;
    }

    .bb-site-footer,
    .bb-mobile-bottom-nav {
        width: min(100vw - 20px, var(--bb-shell-width));
    }

    .bb-site-footer-top {
        grid-template-columns: 1fr;
    }

    .bb-mobile-bottom-nav {
        display: grid;
    }
}

@media (max-width: 640px) {
    .quick-nav-panel {
        grid-template-columns: 1fr;
    }
}
