.sb {
    --sb-card: var(--secondary-bg);
    --sb-line: rgba(255, 255, 255, 0.09);
    --sb-soft: rgba(255, 255, 255, 0.05);
    --sb-accent: #00d4aa;
    --sb-win: #10b981;
    --sb-loss: #ef4444;
    --sb-wait: #f59e0b;
    --sb-gold: #f5b301;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

[data-theme="light"] .sb {
    --sb-card: #ffffff;
    --sb-line: #e2e8f0;
    --sb-soft: #f1f5f9;
    --sb-accent: #008641;
}

.sb *,
.sb *::before,
.sb *::after {
    box-sizing: border-box;
}

.sb a {
    text-decoration: none;
}

.sb-social {
    display: grid;
    gap: 14px;
}

.sb-chan {
    --sb-btn: #111827;
    position: relative;
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 18px;
    color: #ffffff;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sb-chan:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px -14px rgba(0, 0, 0, 0.6);
}

.sb-chan::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.28), transparent 55%);
}

.sb-chan-bg {
    position: absolute;
    right: -12px;
    bottom: -24px;
    z-index: -1;
    font-size: 120px;
    line-height: 1;
    opacity: 0.14;
    transform: rotate(-12deg);
}

.sb-tg { background: linear-gradient(135deg, #2aabee, #1a76ad); --sb-btn: #1a76ad; }
.sb-wa { background: linear-gradient(135deg, #25d366, #0c8443); --sb-btn: #0c8443; }
.sb-yt { background: linear-gradient(135deg, #ff3b3b, #a30000); --sb-btn: #b30000; }
.sb-x { background: linear-gradient(135deg, #2b3546, #05070a); --sb-btn: #0b0f16; }

.sb-chan-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sb-chan-ico {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    font-size: 26px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
}

.sb-chan-head h3 {
    margin: 0 0 3px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
}

.sb-chan-head p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.82);
}

.sb-chan-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.sb-chan-actions {
    display: grid;
    gap: 10px;
}

.sb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--sb-btn, #111827) !important;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.sb-btn-ghost {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: none;
}

.sb-btn-gold {
    color: #2b1d00 !important;
    background: var(--sb-gold);
}

.sb-card {
    background: var(--sb-card);
    border: 1px solid var(--sb-line);
    border-radius: 16px;
    overflow: hidden;
}

.sb-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px 0;
}

.sb-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.sb-head-ico {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-size: 14px;
    color: var(--sb-accent);
    background: color-mix(in srgb, var(--sb-accent) 14%, transparent);
}

.sb-body {
    padding: 14px 16px 16px;
}

.sb .sb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.sb .sb-tabs .date-tab {
    flex: 0 0 auto;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid var(--sb-line);
    background: var(--sb-soft);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.sb .sb-tabs .date-tab:hover {
    border-color: var(--sb-accent);
    color: var(--text-primary);
    background: var(--sb-soft);
}

.sb .sb-tabs .date-tab.active {
    background: var(--sb-accent);
    border-color: var(--sb-accent);
    color: #04231c;
}

[data-theme="light"] .sb .sb-tabs .date-tab.active {
    color: #ffffff;
}

.sb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--sb-line);
}

.sb-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.sb-row-info {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.sb-row-info strong {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.sb-row-info span {
    font-size: 12px;
    color: var(--text-secondary);
}

.sb-row-info small {
    font-size: 11px;
    color: var(--text-muted);
}

.sb-row-info .sb-locked {
    color: var(--sb-wait);
}

.sb-row-out {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sb-odds {
    padding: 3px 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--sb-wait);
    background: rgba(245, 158, 11, 0.14);
}

.sb-res {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 11px;
    color: #ffffff;
}

.sb-res.ok { background: var(--sb-win); }
.sb-res.no { background: var(--sb-loss); }
.sb-res.wait { background: var(--sb-wait); }
.sb-res.lock { color: var(--sb-wait); background: rgba(245, 158, 11, 0.16); }

.sb-empty {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 22px 0 8px;
    color: var(--text-muted);
}

.sb-empty i {
    font-size: 24px;
    opacity: 0.5;
}

.sb-empty p {
    margin: 0;
    font-size: 13px;
}

.sb-ad {
    min-width: 0;
}

.sb-vip {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 22px 20px;
    border-radius: 18px;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    background: linear-gradient(140deg, #1e293b 0%, #3b2f0b 100%);
    border: 1px solid rgba(245, 179, 1, 0.4);
}

.sb-vip::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% -10%, rgba(245, 179, 1, 0.35), transparent 60%);
}

.sb-vip > * {
    position: relative;
}

.sb-vip-ico {
    justify-self: center;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 24px;
    color: #2b1d00;
    background: var(--sb-gold);
    box-shadow: 0 10px 24px rgba(245, 179, 1, 0.4);
}

.sb-vip h3 {
    margin: 4px 0 0;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.sb-vip p {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 1024px) {
    .sb-social {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .sb-social {
        grid-template-columns: minmax(0, 1fr);
    }
}
