:root {
    --sbd-bg: #ffffff;
    --sbd-primary: #ff0000;
    --sbd-primary-light: #c40000;
    --sbd-accent: #39b54a;
    --sbd-teal: #1ea34f;
    --sbd-text: #150c2e;
    --sbd-muted: rgba(21, 12, 46, 0.65);
    --sbd-muted-2: rgba(21, 12, 46, 0.45);
    --sbd-border: rgba(21, 12, 46, 0.12);
    --sbd-card: rgba(21, 12, 46, 0.04);
    --sbd-max: 1200px;
    --sbd-btn-green: #25a51b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--sbd-text);
    background: var(--sbd-bg);
    line-height: 1.5;
}
h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; }
p { margin: 0 0 16px; color: var(--sbd-muted); }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.sbd-container {
    max-width: var(--sbd-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.sbd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
}
.sbd-btn--primary { background: var(--sbd-btn-green); color: #fff; }
.sbd-btn--dark { background: var(--sbd-btn-green); color: #fff; }
.sbd-btn--outline-light { border-color: var(--sbd-btn-green); background: var(--sbd-btn-green); color: #fff; }

/* Header */
.sbd-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--sbd-border);
}
.sbd-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 72px;
}
.sbd-logo { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.sbd-logo-mark {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--sbd-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
}
.sbd-logo-text strong { color: var(--sbd-primary); }

.sbd-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex: 1;
}
.sbd-nav a { font-weight: 600; font-size: 14.5px; color: var(--sbd-text); padding: 8px 12px; margin: -8px -12px; border-radius: 8px; transition: background .15s ease, color .15s ease; }
.sbd-nav a:hover { color: var(--sbd-primary); background: var(--sbd-card); }

.sbd-header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sbd-icon-btn {
    width: 38px; height: 38px; border-radius: 10px;
    border: 1px solid var(--sbd-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--sbd-text);
}
.sbd-icon-btn svg { width: 18px; height: 18px; }
.sbd-icon-btn--profile { background: var(--sbd-card); }

.sbd-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px; height: 38px;
    border: 1px solid var(--sbd-border);
    border-radius: 10px;
    background: none;
    cursor: pointer;
}
.sbd-nav-toggle span { display: block; height: 2px; width: 18px; margin: 0 auto; background: var(--sbd-text); }

/* Hero */
.sbd-hero {
    background: linear-gradient(120deg, var(--sbd-primary) 0%, var(--sbd-primary-light) 60%, #4a0000 100%);
    color: #fff;
    padding: 64px 0;
    overflow: hidden;
}
.sbd-hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.sbd-hero h1 { font-size: 40px; max-width: 560px; }
.sbd-hero-lead { color: rgba(255,255,255,0.85); font-size: 17px; }
.sbd-store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.sbd-store-badge {
    display: flex; align-items: center; gap: 10px;
    background: #000; color: #fff;
    padding: 10px 18px; border-radius: 10px;
    font-weight: 600; font-size: 15px;
}
.sbd-store-badge svg { width: 22px; height: 22px; }
.sbd-store-badge small { display: block; font-weight: 400; font-size: 10px; opacity: .8; }

.sbd-hero-visual { display: flex; justify-content: center; }
.sbd-phone {
    width: 220px; height: 440px;
    background: #1c1230;
    border-radius: 32px;
    padding: 14px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
    position: relative;
}
.sbd-phone--small { width: 170px; height: 340px; }
.sbd-phone-notch {
    width: 60px; height: 8px; background: #000; border-radius: 6px;
    margin: 0 auto 8px;
}
.sbd-phone-screen {
    background: #fff; border-radius: 20px; height: calc(100% - 20px);
    padding: 12px; color: var(--sbd-text); overflow: hidden;
}
.sbd-phone-topbar { height: 10px; width: 60%; background: var(--sbd-card); border-radius: 6px; margin-bottom: 14px; }
.sbd-phone-card { background: var(--sbd-card); border-radius: 10px; padding: 10px; margin-bottom: 12px; }
.sbd-phone-row { display: flex; justify-content: space-between; font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--sbd-border); }
.sbd-phone-row:last-child { border-bottom: none; }
.sbd-phone-bars { display: flex; gap: 8px; align-items: flex-end; height: 80px; }
.sbd-phone-bars div { flex: 1; background: var(--sbd-primary); border-radius: 4px 4px 0 0; }

/* Section title */
.sbd-section-title { text-align: center; font-size: 30px; color: var(--sbd-primary); }
.sbd-section-title--light { color: #fff; }

/* Why grid */
.sbd-why { padding: 72px 0; }
.sbd-why-grid { display: grid; grid-template-columns: 1fr 240px 1fr; gap: 20px; margin-top: 40px; align-items: center; }
.sbd-why-col { display: flex; flex-direction: column; gap: 28px; }
.sbd-why-item { display: flex; gap: 16px; align-items: flex-start; }
.sbd-why-col:first-child .sbd-why-item { flex-direction: row-reverse; text-align: right; }
.sbd-why-num { font-size: 26px; font-weight: 800; color: var(--sbd-border); flex-shrink: 0; }
.sbd-why-item h3 { font-size: 16px; margin-bottom: 4px; }
.sbd-why-item p { font-size: 13.5px; margin-bottom: 0; }
.sbd-why-center { display: flex; justify-content: center; }

/* Store promo */
.sbd-store-promo { background: var(--sbd-card); padding: 64px 0; }
.sbd-store-promo-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.sbd-store-promo-inner h2 { font-size: 28px; max-width: 420px; }

/* Stats */
.sbd-stats { background: var(--sbd-teal); color: #fff; padding: 64px 0; text-align: center; }
.sbd-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 40px 0; }
.sbd-stat-num { display: block; font-size: 34px; font-weight: 800; }
.sbd-stat-label { display: block; font-size: 14px; opacity: .85; }
.sbd-stats-tag { color: rgba(255,255,255,0.85); }

/* Quote / video */
.sbd-quote { background: #0d0716; color: #fff; padding: 80px 0; text-align: center; }
.sbd-quote-text { font-size: 20px; color: rgba(255,255,255,0.85); margin-bottom: 32px; }
.sbd-video-card {
    max-width: 480px; margin: 0 auto;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 40px;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.sbd-video-play {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--sbd-primary);
    display: flex; align-items: center; justify-content: center;
}
.sbd-video-play svg { width: 22px; height: 22px; color: #fff; }

/* Join team */
.sbd-join { padding: 72px 0; }
.sbd-join-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.sbd-join h3 { font-size: 26px; }

/* Footer */
.sbd-footer { background: #0d0716; color: rgba(255,255,255,0.7); padding: 48px 0 0; }
.sbd-footer-social { text-align: center; padding-bottom: 32px; }
.sbd-footer-social p { color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.sbd-footer-follow { font-weight: 700; color: #fff; font-size: 18px; }
.sbd-social-row { display: flex; justify-content: center; gap: 14px; margin-top: 16px; }
.sbd-social-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
}
.sbd-social-icon svg { width: 18px; height: 18px; color: #fff; }
.sbd-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; }
.sbd-footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13.5px; }
.sbd-copyright { font-size: 12.5px; color: rgba(255,255,255,0.45); margin: 0; }

/* Mobile nav drawer (hidden on desktop by default) */
.sbd-nav-backdrop { display: none; }
.sbd-nav-drawer-head { display: none; }
.sbd-nav-close {
    display: none; width: 36px; height: 36px; border-radius: 8px;
    border: 1px solid var(--sbd-border); background: none; align-items: center; justify-content: center;
    cursor: pointer; color: var(--sbd-text);
}
.sbd-nav-close svg { width: 18px; height: 18px; }
body.sbd-no-scroll { overflow: hidden; }

/* Responsive */
@media (max-width: 1024px) {
    .sbd-nav-toggle { display: flex; }

    .sbd-nav-backdrop {
        display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.45);
        opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 190;
    }
    .sbd-nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

    .sbd-nav {
        display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
        position: fixed; top: 0; left: 0; height: 100vh; width: 280px; max-width: 85vw;
        background: #fff; box-shadow: 4px 0 24px rgba(0,0,0,0.15);
        transform: translateX(-100%); transition: transform .3s ease;
        z-index: 200; overflow-y: auto; padding: 0 0 24px;
    }
    .sbd-nav.is-open { transform: translateX(0); }

    .sbd-nav-drawer-head {
        display: flex; align-items: center; justify-content: space-between;
        padding: 18px 20px; border-bottom: 1px solid var(--sbd-border); margin-bottom: 8px;
    }
    .sbd-nav-drawer-logo { height: 30px; width: auto; max-width: none; }
    .sbd-nav-close { display: flex; }

    .sbd-nav > a { padding: 0 20px; margin: 0; }
    .sbd-nav .sbd-nav-item { padding: 0; margin: 0; }
    .sbd-nav > a { padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--sbd-border); }
    .sbd-nav .sbd-nav-label { width: 100%; padding: 14px 20px; margin: 0; justify-content: space-between; border-radius: 0; }
    .sbd-has-dropdown { padding-bottom: 0; margin-bottom: 0; border-bottom: 1px solid var(--sbd-border); }
    .sbd-why-grid { grid-template-columns: 1fr; }
    .sbd-why-col:first-child .sbd-why-item { flex-direction: row; text-align: left; }
    .sbd-why-center { order: -1; margin-bottom: 20px; }
    .sbd-store-promo-inner, .sbd-join-inner { grid-template-columns: 1fr; text-align: center; }
    .sbd-store-illustration, .sbd-join-illustration { order: -1; max-width: 320px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .sbd-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .sbd-hero h1 { font-size: 30px; max-width: none; }
    .sbd-store-badges { justify-content: center; }
    .sbd-hero-visual { margin-top: 20px; }
    .sbd-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.sbd-legal { padding: 56px 0 80px; }
.sbd-legal .sbd-container { max-width: 820px; }
.sbd-legal h1 { color: var(--sbd-primary); font-size: 32px; margin-bottom: 8px; }
.sbd-legal .sbd-legal-updated { font-size: 13px; color: var(--sbd-muted-2); margin-bottom: 32px; }
.sbd-legal h2 { font-size: 20px; margin-top: 36px; }
.sbd-legal h3 { font-size: 16px; margin-top: 24px; }
.sbd-legal p, .sbd-legal li { color: var(--sbd-muted); font-size: 15px; }
.sbd-legal ul, .sbd-legal ol { padding-left: 22px; margin: 0 0 16px; }
.sbd-legal li { margin-bottom: 6px; }
.sbd-legal a { color: var(--sbd-primary); font-weight: 600; }
.sbd-legal .sbd-legal-box {
    background: var(--sbd-card);
    border: 1px solid var(--sbd-border);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
}
.sbd-signin-btn { padding: 9px 22px; font-size: 14px; }

.sbd-logo-img { height: 34px; width: auto; max-width: none; flex-shrink: 0; }

@media (max-width: 1024px) {
    .sbd-logo { order: 1; }
    .sbd-header-actions { order: 2; }
    .sbd-nav-toggle { order: 3; margin-left: 4px; }
}

.sbd-store-badge--soon { opacity: 0.55; cursor: default; pointer-events: none; }

.sbd-search-wrap { display: flex; align-items: center; }
.sbd-search-collapse {
    width: 0;
    overflow: hidden;
    transition: width .3s ease;
}
.sbd-search-wrap.is-open .sbd-search-collapse { width: 200px; margin-left: 10px; }
.sbd-search-input {
    width: 200px;
    max-width: calc(100vw - 48px);
    height: 38px;
    border: 1px solid var(--sbd-border);
    border-radius: 999px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    padding: 0 16px;
    background: #fff;
}
/* Nav dropdown */
.sbd-nav-item { position: relative; display: flex; align-items: center; }
.sbd-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    background: #fff;
    border: 1px solid var(--sbd-border);
    border-radius: 12px;
    padding: 10px 8px 8px;
    min-width: 170px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    z-index: 60;
}
.sbd-has-dropdown:hover .sbd-dropdown, .sbd-has-dropdown.is-open .sbd-dropdown { display: flex; }
.sbd-dropdown a { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--sbd-text); display: block; transition: background .15s ease, color .15s ease; }
.sbd-dropdown a:hover { background: var(--sbd-card); color: var(--sbd-primary); }

@media (max-width: 1024px) {
    .sbd-dropdown {
        position: static;
        display: block;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        margin: 0 20px 0 36px;
        box-shadow: none;
        border: none;
        padding: 0 0 0 14px;
        border-left: 2px solid var(--sbd-border);
        transition: max-height .3s ease, opacity .25s ease, margin-bottom .3s ease;
    }
    .sbd-has-dropdown.is-open .sbd-dropdown {
        max-height: 200px;
        opacity: 1;
        margin-bottom: 14px;
    }
    .sbd-dropdown a { padding: 10px 14px; font-size: 14.5px; }
    .sbd-nav-item { flex-direction: column; align-items: flex-start; }
}

/* Live matches / tournaments pages */
.sbd-live-page { padding: 48px 0 80px; }
.sbd-live-sub { margin-bottom: 24px; }
.sbd-live-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--sbd-card);
    border-radius: 16px;
}

.sbd-match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.sbd-match-card {
    display: block;
    background: #fff;
    border: 1px solid var(--sbd-border);
    border-radius: 14px;
    padding: 18px;
    transition: box-shadow .2s ease, transform .2s ease;
}
.sbd-match-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.sbd-match-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sbd-match-sport { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--sbd-primary); }
.sbd-match-live {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; color: var(--sbd-btn-green);
}
.sbd-match-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sbd-btn-green); animation: sbd-pulse 1.4s infinite; }
.sbd-match-live--scheduled { color: var(--sbd-accent); }
.sbd-match-live--completed { color: var(--sbd-muted-2); }
@keyframes sbd-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.sbd-match-tournament { font-size: 13px; color: var(--sbd-muted-2); margin-bottom: 12px; }
.sbd-match-teams { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.sbd-match-team { display: flex; justify-content: space-between; font-size: 14.5px; }
.sbd-match-team span { color: var(--sbd-text); font-weight: 600; }
.sbd-match-note { font-size: 12.5px; color: var(--sbd-muted-2); margin: 0; }

.sbd-t-headrow {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 16px;
    border-bottom: 1px solid var(--sbd-border);
}
.sbd-t-headrow > div:first-child { flex: 0 0 auto; }
.sbd-t-headrow .sbd-live-sub { margin-bottom: 0; }
.sbd-t-filterbar {
    display: flex; align-items: center; justify-content: flex-start;
    gap: 16px; flex-wrap: nowrap; min-width: 0;
}
.sbd-t-filterbar .sbd-t-filter-tabs { flex-shrink: 0; }
.sbd-t-filterbar .sbd-t-search-wrap { flex: 0 1 220px; min-width: 140px; }
@media (max-width: 780px) {
    .sbd-t-headrow { align-items: flex-start; }
    .sbd-t-filterbar { flex-wrap: wrap; width: 100%; }
    .sbd-t-filterbar .sbd-t-search-wrap { flex-basis: 100%; }
}
.sbd-t-filter-tabs { display: flex; gap: 22px; }
.sbd-t-filter-tab {
    font: inherit; font-size: 14.5px; font-weight: 700; color: var(--sbd-text);
    background: none; border: none;
    padding: 6px 0; cursor: pointer; position: relative; transition: color .15s ease;
}
.sbd-t-filter-tab::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: var(--sbd-primary); border-radius: 2px;
    transform: scaleX(0); transform-origin: center; transition: transform .2s ease;
}
.sbd-t-filter-tab:hover { color: var(--sbd-text); }
.sbd-t-filter-tab:hover::after { transform: scaleX(1); }
.sbd-t-filter-tab.is-active { color: var(--sbd-primary); }
.sbd-t-filter-tab.is-active::after { transform: scaleX(1); }
.sbd-t-search-wrap { position: relative; flex: 0 1 260px; min-width: 180px; }
.sbd-t-search-wrap svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--sbd-muted-2); pointer-events: none; }
.sbd-t-search-wrap input {
    width: 100%; font: inherit; font-size: 13.5px; color: var(--sbd-text);
    background: var(--sbd-card); border: 1px solid var(--sbd-border); border-radius: 999px;
    padding: 9px 14px 9px 34px; box-sizing: border-box; outline: none;
}
.sbd-t-search-wrap input:focus { border-color: var(--sbd-primary); }
.sbd-tournament-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.sbd-t-card {
    display: flex; flex-direction: column; gap: 0;
    background: #fff; border: 1px solid var(--sbd-border); border-radius: 14px;
    overflow: hidden; transition: box-shadow .2s ease, transform .2s ease;
}
.sbd-t-card:hover { box-shadow: 0 12px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.sbd-t-banner {
    position: relative; aspect-ratio: 16/9; width: 100%;
    background: linear-gradient(135deg, var(--sbd-primary), var(--sbd-accent));
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    box-sizing: border-box;
}
.sbd-t-banner-fallback { font-size: 34px; font-weight: 800; color: #fff; opacity: .9; }
.sbd-t-status {
    position: absolute; top: 10px; left: 10px;
    display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
    padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--sbd-muted-2);
}
.sbd-t-status--ongoing { background: var(--sbd-primary); color: #fff; }
.sbd-t-status--upcoming { background: var(--sbd-accent); color: #fff; }
.sbd-t-status--completed { background: rgba(255,255,255,.92); color: var(--sbd-muted-2); }
.sbd-t-stats {
    position: absolute; top: 10px; right: 10px;
    display: flex; gap: 8px;
}
.sbd-t-stats span {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11.5px; font-weight: 700; color: #fff;
    background: rgba(0,0,0,.55); padding: 4px 8px; border-radius: 999px;
}
.sbd-t-stats svg { width: 12px; height: 12px; flex-shrink: 0; }
.sbd-t-body { padding: 14px 16px 16px; flex: 1; min-width: 0; }
.sbd-t-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sbd-t-sport { font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--sbd-muted-2); }
.sbd-t-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sbd-t-logo { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--sbd-border); background: #fff; }
.sbd-t-body h3 { font-size: 17px; margin: 0; line-height: 1.3; }
.sbd-t-meta { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--sbd-text); }
.sbd-nav-label { font: inherit; font-weight: 600; font-size: 14.5px; color: var(--sbd-text); cursor: pointer; background: none; border: none; padding: 8px 12px; margin: -8px -12px; border-radius: 8px; transition: background .15s ease, color .15s ease; display: inline-flex; align-items: center; gap: 5px; }
.sbd-nav-caret { width: 9px; height: 9px; transition: transform .15s ease; }
.sbd-has-dropdown:hover .sbd-nav-caret, .sbd-has-dropdown.is-open .sbd-nav-caret { transform: rotate(180deg); }
.sbd-has-dropdown:hover .sbd-nav-label, .sbd-has-dropdown.is-open .sbd-nav-label { color: var(--sbd-primary); background: var(--sbd-card); }

.sbd-back-link { display: inline-block; margin-bottom: 20px; font-weight: 600; color: var(--sbd-muted); }
.sbd-back-link:hover { color: var(--sbd-primary); }

.sbd-match-header { display: flex; justify-content: space-between; align-items: center; }
.sbd-match-teams--big { max-width: 420px; margin-bottom: 20px; }
.sbd-match-teams--big .sbd-match-team { font-size: 18px; padding: 8px 0; border-bottom: 1px solid var(--sbd-border); }

.sbd-scorecard-frame-wrap {
    margin-top: 24px;
    border: 1px solid var(--sbd-border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--sbd-card);
}
.sbd-scorecard-frame { width: 100%; height: 900px; border: 0; display: block; }
.sbd-scorecard-fallback { font-size: 13px; color: var(--sbd-muted-2); margin-top: 12px; }
.sbd-live-strip {
    margin-top: 24px;
    background: var(--sbd-card);
    border: 1px solid var(--sbd-border);
    border-radius: 14px;
    padding: 20px;
}
.sbd-live-strip h3 { font-size: 16px; margin: 0 0 6px; }
.sbd-live-score { font-size: 26px; font-weight: 800; color: var(--sbd-text); margin: 0; }
.sbd-live-score span { font-size: 14px; font-weight: 500; color: var(--sbd-muted-2); margin-left: 8px; }
.sbd-live-target { font-size: 13px; color: var(--sbd-muted-2); margin: 6px 0 0; }

.sbd-score-table-wrap { overflow-x: auto; margin-top: 20px; }
.sbd-score-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sbd-score-table th {
    text-align: left; font-size: 12px; text-transform: uppercase;
    color: var(--sbd-muted-2); padding: 8px 10px; border-bottom: 2px solid var(--sbd-border);
}
.sbd-score-table td { padding: 8px 10px; border-bottom: 1px solid var(--sbd-border); }
.sbd-score-table tr.is-striker td:first-child { font-weight: 700; color: var(--sbd-primary); }
.sbd-dismissal { display: block; color: var(--sbd-teal); font-size: 11.5px; font-weight: 600; text-transform: uppercase; }
.sbd-dismissal.is-not-out { color: #16a34a; }

.sbd-batter-cell { display: flex; align-items: center; gap: 10px; }
.sbd-batter-photo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--sbd-card); border: 1px solid var(--sbd-border); }
.sbd-batter-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sbd-batter-name { font-weight: 700; font-size: 13.5px; text-transform: uppercase; color: var(--sbd-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbd-score-table--batting th:first-child, .sbd-score-table--batting td:first-child { min-width: 180px; }

.sbd-bowler-line { margin-top: 16px; font-size: 14px; }

.sbd-recent-balls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.sbd-ball-pill {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--sbd-card); border: 1px solid var(--sbd-border);
    font-size: 13px; font-weight: 700;
}

.sbd-scorecard-heading { margin-top: 40px; font-size: 22px; color: var(--sbd-primary); }
.sbd-innings-block { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--sbd-border); }
.sbd-innings-block h3 { font-size: 16px; }

.sbd-inn-head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    width: 100%; font: inherit; text-align: left; cursor: pointer;
    background: rgba(23, 199, 168, 0.14); border: 1px solid rgba(23, 199, 168, 0.3);
    border-radius: 10px; padding: 12px 16px;
}
.sbd-inn-head-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sbd-inn-head-logo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #fff; border: 1px solid var(--sbd-border); }
.sbd-inn-head-names { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sbd-inn-head-names strong { font-size: 14.5px; color: var(--sbd-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbd-inn-head-names small { font-size: 11.5px; color: var(--sbd-muted-2); font-weight: 600; }
.sbd-inn-head-score { text-align: right; flex-shrink: 0; }
.sbd-inn-head-score strong { font-size: 18px; color: var(--sbd-text); }
.sbd-inn-head-score small { display: block; font-size: 11.5px; color: var(--sbd-muted-2); font-weight: 600; }
.sbd-inn-head-chevron { width: 18px; height: 18px; flex-shrink: 0; color: var(--sbd-muted-2); transition: transform .15s ease; }
.sbd-inn-head[aria-expanded="false"] .sbd-inn-head-chevron { transform: rotate(180deg); }
.sbd-t-hero {
    background: linear-gradient(120deg, var(--sbd-primary) 0%, var(--sbd-primary-light) 60%, #4a0000 100%);
    color: #fff;
    padding: 40px 0;
}
.sbd-t-hero-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.sbd-t-hero-main { display: flex; align-items: center; gap: 20px; }
.sbd-t-hero-logo {
    width: 84px; height: 84px; border-radius: 14px; overflow: hidden;
    background: rgba(255,255,255,0.15); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.sbd-t-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.sbd-t-hero-logo span { font-size: 26px; font-weight: 800; }
.sbd-t-hero h1 { font-size: 26px; margin: 0 0 6px; }
.sbd-t-hero-meta { color: rgba(255,255,255,0.85); font-size: 14px; margin: 0 0 4px; }
.sbd-t-hero-dates { color: rgba(255,255,255,0.75); font-size: 13.5px; margin: 0; }
.sbd-t-hero-stats { display: flex; gap: 14px; }
.sbd-t-stat {
    background: rgba(0,0,0,0.2); border-radius: 12px; padding: 14px 24px;
    text-align: center; min-width: 90px;
}
.sbd-t-stat strong { display: block; font-size: 28px; }
.sbd-t-stat span { font-size: 12.5px; color: rgba(255,255,255,0.8); }

.sbd-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.sbd-team-card {
    color: inherit; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 18px 12px; border: 1px solid var(--sbd-border); border-radius: 12px; text-align: center;
}
.sbd-team-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.sbd-team-logo {
    width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
    background: var(--sbd-card); display: flex; align-items: center; justify-content: center;
}
.sbd-team-logo img { width: 100%; height: 100%; object-fit: cover; }
.sbd-team-logo span { font-weight: 800; color: var(--sbd-primary); }
.sbd-team-card span:last-child { font-size: 13.5px; font-weight: 600; }
.sbd-live-page--tourney { padding-top: 0; }
.sbd-live-page--tourney .sbd-container {
    background: #fff; border: 1px solid var(--sbd-border); border-top: none;
    border-radius: 0 0 16px 16px; padding-top: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}
.sbd-t-tabs {
    display: flex; gap: 4px; border-bottom: 1px solid var(--sbd-border);
    margin: 0 0 24px; overflow-x: auto;
}
.sbd-t-tab {
    padding: 12px 18px; font-weight: 600; font-size: 14.5px; color: var(--sbd-text);
    background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.sbd-t-tab.is-active { color: var(--sbd-primary); border-bottom-color: var(--sbd-primary); }

.sbd-t-panel { display: none; }
.sbd-t-panel.is-active { display: block; }

.sbd-t-subtabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 24px; }
.sbd-t-subtab {
    padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
    background: var(--sbd-card); color: var(--sbd-text); border: none; cursor: pointer;
}
.sbd-t-subtab.is-active { background: var(--sbd-teal); color: #fff; }

.sbd-t-subpanel { display: none; }
.sbd-t-subpanel.is-active { display: block; }

.sbd-tm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.sbd-tm-card { border: 1px solid var(--sbd-border); border-radius: 12px; padding: 16px; }
.sbd-tm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 12px; color: var(--sbd-muted-2); }
.sbd-tm-teams { font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }
.sbd-tm-vs { color: var(--sbd-muted-2); font-weight: 400; margin: 0 6px; }
.sbd-tm-result { font-size: 13px; color: var(--sbd-primary); font-weight: 600; margin: 0 0 6px; }
.sbd-tm-meta { font-size: 12.5px; color: var(--sbd-muted-2); margin: 0; }

.sbd-t-status--completed { background: var(--sbd-card); color: var(--sbd-muted-2); }
.sbd-t-status--scheduled, .sbd-t-status--upcoming { background: var(--sbd-accent); color: #fff; }

.sbd-pt-group-title { font-size: 16px; margin: 24px 0 12px; }
.sbd-lb-list { display: flex; flex-direction: column; gap: 0; }
.sbd-lb-row {
    color: inherit; text-decoration: none;
    display: flex; align-items: center; gap: 16px;
    padding: 16px 4px; border-bottom: 1px solid var(--sbd-border);
}
.sbd-lb-row:first-child { border-top: 1px solid var(--sbd-border); }
.sbd-lb-avatar {
    width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    background: var(--sbd-card);
}
.sbd-lb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sbd-lb-info { flex: 1; min-width: 0; }
.sbd-lb-name { font-weight: 700; font-size: 15px; }
.sbd-lb-team { font-weight: 400; font-style: italic; color: var(--sbd-muted-2); font-size: 13px; }
.sbd-lb-stats { font-size: 13px; color: var(--sbd-muted-2); margin-top: 4px; }
.sbd-lb-rank { font-size: 24px; font-weight: 300; color: var(--sbd-muted-2); flex-shrink: 0; }

.sbd-lb-filter-row { display: flex; justify-content: flex-end; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.sbd-lb-team-select, .sbd-lb-sort-select {
    padding: 8px 14px; border-radius: 8px; border: 1px solid var(--sbd-border);
    font-size: 13.5px; color: var(--sbd-text); background: #fff;
}

.sbd-ball-pill--wicket { background: #ff0000; color: #fff; border-color: #ff0000; }
.sbd-mh-page { padding-top: 32px; }
.sbd-mh-card { border: 1px solid var(--sbd-border); border-radius: 16px; padding: 24px; margin-top: 16px; }
.sbd-mh-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.sbd-mh-series-link { color: var(--sbd-teal); font-weight: 600; text-decoration: none; font-size: 15px; }
.sbd-mh-series-link:hover { text-decoration: underline; }
.sbd-mh-round { font-weight: 400; color: var(--sbd-muted-2); font-size: 13.5px; margin-left: 4px; }
.sbd-mh-meta { font-size: 13px; color: var(--sbd-muted-2); margin: 8px 0 0; }
.sbd-mh-toss { font-size: 13px; color: var(--sbd-muted-2); margin: 4px 0 0; }

.sbd-mh-grid { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.sbd-mh-main { min-width: 0; }

.sbd-mh-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--sbd-border); margin: 20px 0 24px; overflow-x: auto; }

.sbd-partnership-line { font-size: 13.5px; color: var(--sbd-muted-2); margin: 12px 0 0; }

.sbd-mh-teams-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.sbd-roster-list { list-style: none; margin: 0; padding: 0; }
.sbd-roster-list li { padding: 8px 0; border-bottom: 1px solid var(--sbd-border); font-size: 14px; }

.sbd-mh-sidebar { position: sticky; top: 90px; margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.sbd-mh-side-box { border: 1px solid var(--sbd-border); border-radius: 14px; padding: 18px; }
.sbd-mh-summary-box { padding: 0; overflow: hidden; }
.sbd-mh-views-row {
    text-align: center; padding: 16px; font-size: 12.5px; font-weight: 700;
    text-transform: uppercase; color: var(--sbd-muted-2); border-bottom: 1px solid var(--sbd-border);
}
.sbd-mh-views-row strong { color: var(--sbd-text); font-size: 14px; }
.sbd-mh-rr-row { display: grid; grid-template-columns: 1fr 1fr; }
.sbd-mh-rr-row > div { text-align: center; padding: 16px 10px; }
.sbd-mh-rr-row > div:first-child { border-right: 1px solid var(--sbd-border); }
.sbd-mh-rr-row span { display: block; font-size: 12px; color: var(--sbd-muted-2); margin-bottom: 6px; }
.sbd-mh-rr-row strong { font-size: 20px; }
.sbd-mh-rr-row small { display: block; font-size: 11px; font-weight: 400; color: var(--sbd-muted-2); margin-top: 2px; }
.sbd-mh-side-box h3 { font-size: 15px; margin: 0 0 14px; }
.sbd-mh-side-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--sbd-border); font-size: 13px; }
.sbd-mh-side-row:last-child { border-bottom: none; }
.sbd-mh-side-row span { color: var(--sbd-muted-2); }
.sbd-mh-side-row strong, .sbd-mh-side-row a { text-align: right; color: var(--sbd-text); font-weight: 600; }

@media (max-width: 900px) {
    .sbd-mh-grid { grid-template-columns: 1fr; }
    .sbd-mh-sidebar { position: static; }
    .sbd-mh-teams-grid { grid-template-columns: 1fr; }
}

.sbd-comm-list { display: flex; flex-direction: column; }
.sbd-comm-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--sbd-border); align-items: flex-start; }
.sbd-comm-over { font-size: 12px; color: var(--sbd-muted-2); font-weight: 700; flex-shrink: 0; width: 32px; padding-top: 2px; }
.sbd-comm-display {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    background: var(--sbd-card); font-size: 12.5px; font-weight: 700;
}
.sbd-comm-display--boundary { background: var(--sbd-primary); color: #fff; }
.sbd-comm-display--wicket { background: #ff0000; color: #fff; }
.sbd-comm-text p { margin: 0 0 3px; font-size: 14px; color: var(--sbd-text); }
.sbd-comm-meta { font-size: 12px; color: var(--sbd-muted-2); }

.sbd-mh-team-block { margin-bottom: 32px; }
.sbd-mh-team-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sbd-mh-team-logo {
    width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
    background: var(--sbd-card); display: flex; align-items: center; justify-content: center;
}
.sbd-mh-team-logo img { width: 100%; height: 100%; object-fit: cover; }
.sbd-mh-team-logo span { font-weight: 800; color: var(--sbd-primary); font-size: 15px; }
.sbd-mh-team-head h3 { font-size: 18px; margin: 0; text-transform: uppercase; }

.sbd-player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.sbd-player-card { display: block; border: 1px solid var(--sbd-border); border-radius: 12px; overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; }
.sbd-player-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.sbd-player-photo { position: relative; aspect-ratio: 1.6/1; background: linear-gradient(160deg, #1c1230, #2b1055); }
.sbd-player-photo img { width: 100%; height: 100%; object-fit: cover; }
.sbd-player-badge {
    position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff;
    border: 2px solid #fff;
}
.sbd-player-badge--xi { background: var(--sbd-btn-green); }
.sbd-player-badge--captain { background: var(--sbd-primary); }
.sbd-player-name { display: block; padding: 10px 12px; font-weight: 700; font-size: 13.5px; }

.sbd-extras-row td { font-size: 13.5px; padding-top: 10px; border-top: 2px solid var(--sbd-border); }
.sbd-yet-to-bat, .sbd-fow { font-size: 13px; color: var(--sbd-muted-2); margin: 14px 0 0; padding: 10px 0; border-top: 1px solid var(--sbd-border); }
.sbd-yet-to-bat strong, .sbd-fow strong { color: var(--sbd-text); }

.sbd-match-team.is-batting { color: var(--sbd-btn-green); }
.sbd-match-team.is-batting span { font-weight: 800; color: var(--sbd-text); }
.sbd-match-team.is-batting strong { color: var(--sbd-btn-green); }
.sbd-match-team strong small { font-size: 12px; font-weight: 500; color: var(--sbd-muted-2); }

.sbd-this-over { margin-top: 14px; }
.sbd-this-over-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--sbd-muted-2); margin-bottom: 8px; }

/* player profile page */
.sbd-pp-hero { background: var(--sbd-teal); color: #fff; padding: 32px 0; }
.sbd-pp-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sbd-pp-hero-left { display: flex; align-items: center; gap: 20px; }
.sbd-pp-hero-stats { display: flex; gap: 14px; }
.sbd-pp-photo { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: rgba(255,255,255,0.15); }
.sbd-pp-photo img { width: 100%; height: 100%; object-fit: cover; }
.sbd-pp-hero h1 { font-size: 24px; margin: 0 0 4px; }
.sbd-pp-team { color: rgba(255,255,255,0.85); font-size: 14px; margin: 0 0 4px; }
.sbd-pp-meta { color: rgba(255,255,255,0.75); font-size: 13px; margin: 0; }
.sbd-pp-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 32px; }
@media (max-width: 700px) { .sbd-pp-stats-grid { grid-template-columns: 1fr; } }

/* Pricing */
.sbd-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.sbd-price-card { position: relative; border: 1px solid var(--sbd-border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; }
.sbd-price-card--recommended { border-color: var(--sbd-primary); border-width: 2px; }
.sbd-price-recommended-tag {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--sbd-primary); color: #fff; font-size: 11px; font-weight: 700;
    padding: 4px 14px; border-radius: 999px; text-transform: uppercase;
}
.sbd-price-badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--sbd-primary); margin-bottom: 8px; }
.sbd-price-card h3 { font-size: 18px; margin: 0 0 4px; }
.sbd-price-subtitle { font-size: 13px; color: var(--sbd-muted-2); margin: 0 0 12px; }
.sbd-price-amount { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.sbd-price-amount span { font-size: 13px; font-weight: 500; color: var(--sbd-muted-2); }
.sbd-price-desc { font-size: 13px; color: var(--sbd-muted-2); margin-bottom: 16px; }
.sbd-price-features { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.sbd-price-features li { font-size: 13.5px; padding: 6px 0; border-bottom: 1px solid var(--sbd-border); }
.sbd-price-cta { width: 100%; }

/* Themes */
.sbd-theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.sbd-theme-card { border: 1px solid var(--sbd-border); border-radius: 14px; overflow: hidden; }
.sbd-theme-swatch { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0a12; }
.sbd-theme-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.sbd-theme-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; max-height: 42%;
    object-fit: cover; max-width: none; box-shadow: 0 -6px 16px rgba(0,0,0,0.35);
}
.sbd-theme-swatch-label {
    position: absolute; bottom: 8px; right: 10px;
    font-size: 13px; font-weight: 800; color: #fff;
    background: rgba(0,0,0,0.45); padding: 3px 9px; border-radius: 6px;
}
.sbd-theme-body { padding: 16px; }
.sbd-theme-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.sbd-theme-top h3 { font-size: 15px; margin: 0; }
.sbd-theme-free { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--sbd-btn-green); }
.sbd-theme-sport { font-size: 12px; color: var(--sbd-muted-2); text-transform: uppercase; font-weight: 700; }
.sbd-theme-body p { font-size: 13px; color: var(--sbd-muted-2); margin: 8px 0 0; }

.sbd-lb-bar { height: 3px; background: var(--sbd-border); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.sbd-lb-bar span { display: block; height: 100%; background: var(--sbd-btn-green); }

/* ── Header search suggestions ─────────────────────────────────────────── */
.sbd-search-wrap { position: relative; }
/* The collapse clips its children for the width animation; once open the
   suggestion panel has to be allowed to escape it. */
.sbd-search-wrap.is-open .sbd-search-collapse { overflow: visible; }
.sbd-search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
    padding: 6px;
    z-index: 1200;
}
.sbd-search-suggest[hidden] { display: none; }
.sbd-suggest-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #111827;
    font-size: 14px;
}
.sbd-suggest-row:hover { background: #f6f7f9; }
.sbd-suggest-q {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
.sbd-suggest-scope {
    margin-left: auto;
    font-size: 12.5px;
    font-weight: 700;
    color: #dc2626;
    background: #f1f3f7;
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
}

/* ── Signed-in user menu ───────────────────────────────────────────────── */
.sbd-user-menu { position: relative; }
.sbd-user-menu[hidden] { display: none; }
.sbd-user-trigger {
    display: flex; align-items: center; gap: 8px;
    background: none; border: none; cursor: pointer;
    padding: 4px 6px; border-radius: 999px; color: #111827;
}
.sbd-user-trigger:hover { background: #f1f3f5; }
.sbd-user-avatar {
    width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%;
    background: #16a34a; color: #fff; font-weight: 800; font-size: 13px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.sbd-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sbd-user-name {
    font-size: 14px; font-weight: 700; max-width: 130px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sbd-user-caret { color: #6b7280; transition: transform .2s ease; }
.sbd-user-menu.is-open .sbd-user-caret { transform: rotate(180deg); }
.sbd-user-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 210px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15,23,42,.12); padding: 6px; z-index: 1200;
    /* Slide/fade rather than display:none, which cannot be transitioned.
       visibility keeps it unfocusable while closed. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top right;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.sbd-user-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
    .sbd-user-dropdown { transition: none; }
}
.sbd-user-dropdown a {
    display: block; padding: 10px 12px; border-radius: 8px;
    font-size: 14px; font-weight: 600; color: #111827; text-decoration: none;
}
.sbd-user-dropdown a:hover { background: #f6f7f9; }
.sbd-user-logout-link { color: #dc2626 !important; border-top: 1px solid #f1f3f5; margin-top: 4px; }
@media (max-width: 640px) { .sbd-user-name { display: none; } }

/* The .sbd-btn display rule would otherwise beat the hidden attribute when
   login-status.js swaps the Sign In button for the user menu. */
.sbd-btn[hidden], .sbd-signin-btn[hidden] { display: none !important; }

/* Pre-paint auth state (set by the inline script in <head> from the last
   known session) so the header does not flash "Sign In" for a signed-in
   user on every page load. */
html.sbd-auth-in #sbd-login-btn { display: none !important; }
html.sbd-auth-in .sbd-user-menu[hidden] { display: flex !important; }
/* Placeholder shimmer until the real name/avatar arrive. */
html.sbd-auth-in .sbd-user-menu.is-pending .sbd-user-name { color: transparent; background: #eef0f3; border-radius: 5px; min-width: 88px; }
html.sbd-auth-in .sbd-user-menu.is-pending .sbd-user-avatar { background: #e4e7eb; color: transparent; }

/* Content protection — pairs with the JS handlers in the layout. Inputs keep
   normal selection so forms still work. */
body {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
input, textarea, select, [contenteditable="true"] {
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}
img { -webkit-user-drag: none; user-drag: none; }

/* ── Mobile header fixes ───────────────────────────────────────────────────
   At 375px the 24px row gap plus the container padding pushed the nav toggle
   ~6px past the viewport, giving the whole page a horizontal scrollbar. The
   expanded search box was also a fixed 200px, so opening it on a phone ran
   off-screen. */
@media (max-width: 640px) {
    .sbd-header-inner { gap: 10px; padding-left: 14px; padding-right: 14px; }
    .sbd-header-actions { gap: 6px; }
    .sbd-signin-btn { padding: 9px 16px; white-space: nowrap; }

    /* Fill the space that's actually free instead of a fixed width. */
    .sbd-search-wrap.is-open .sbd-search-collapse { width: min(190px, 44vw); margin-left: 6px; }
    .sbd-search-input { width: 100%; max-width: 100%; }

    /* These panels are right-anchored to a trigger that sits near the screen
       edge, so at phone widths they hung off the left. Pin them to the
       viewport instead of the trigger. */
    .sbd-search-suggest {
        position: fixed;
        top: 66px;
        left: 14px;
        right: 14px;
        width: auto;
        min-width: 0;
        max-width: none;
    }
    .sbd-user-dropdown {
        right: 0;
        left: auto;
        min-width: 0;
        width: max-content;
        max-width: calc(100vw - 28px);
    }
    .sbd-suggest-q { max-width: 48vw; }
}

/* Very narrow phones (320–400px): the wordmark is ~148px, which together
   with the search, sign-in and menu buttons overran the row. */
@media (max-width: 400px) {
    .sbd-header-inner { gap: 8px; padding-left: 10px; padding-right: 10px; }
    .sbd-logo-img { height: 26px; max-width: 112px; }
    .sbd-icon-btn { width: 34px; height: 34px; }
    .sbd-signin-btn { padding: 8px 12px; font-size: 13px; }
    .sbd-search-wrap.is-open .sbd-search-collapse { width: min(150px, 40vw); }
    .sbd-search-suggest { top: 60px; left: 10px; right: 10px; }
}

/* ── Match live stream player ──────────────────────────────────────────── */
.sbd-stream-box { padding: 0; overflow: hidden; }
.sbd-stream-head {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; font-size: 12.5px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .05em; color: #dc2626;
    border-bottom: 1px solid #eef2f6;
}
.sbd-stream-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #dc2626;
    box-shadow: 0 0 0 0 rgba(220,38,38,.6); animation: sbd-stream-pulse 1.8s infinite;
}
@keyframes sbd-stream-pulse {
    70% { box-shadow: 0 0 0 7px rgba(220,38,38,0); }
    100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}
@media (prefers-reduced-motion: reduce) { .sbd-stream-dot { animation: none; } }
.sbd-stream-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.sbd-stream-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Tournament follow button ──────────────────────────────────────────── */
.sbd-follow-btn {
    align-self: center;
    padding: 9px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.5);
    background: transparent;
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.sbd-follow-btn:hover:not(:disabled) { background: #fff; color: #111827; }
.sbd-follow-btn:disabled { opacity: .6; cursor: wait; }
.sbd-follow-btn.is-following { background: #fff; color: #111827; border-color: #fff; }
.sbd-follow-btn.is-following:hover:not(:disabled) { background: rgba(255,255,255,.85); }

.sbd-ad-section { padding: 8px 0; }
.sbd-ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 100px;
    margin: 24px 0;
    padding: 12px;
    border: 1px dashed var(--sbd-border, #e2e2e2);
    border-radius: 8px;
    background: var(--sbd-card, #fafafa);
    overflow: hidden;
}
.sbd-ad-label {
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--sbd-text-muted, #999);
}
.sbd-ad-slot .adsbygoogle { width: 100%; }

/* Match hero v2 (VS card) */
.sbd-mh-hero2 { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.sbd-mh-hero2-team { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; text-align: center; opacity: .7; min-width: 0; }
.sbd-mh-hero2-team.is-batting { opacity: 1; }
.sbd-mh-hero2-logo {
    width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
    background: var(--sbd-card); display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: var(--sbd-primary); font-size: 20px; border: 1px solid var(--sbd-border);
}
.sbd-mh-hero2-logo img { width: 100%; height: 100%; object-fit: cover; }
.sbd-mh-hero2-name { font-weight: 700; font-size: 14.5px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbd-mh-hero2-score { font-size: 20px; font-weight: 800; }
.sbd-mh-hero2-team.is-batting .sbd-mh-hero2-score { color: var(--sbd-primary); }
.sbd-mh-hero2-score small { font-size: 12px; font-weight: 600; color: var(--sbd-muted-2); margin-left: 4px; }
.sbd-mh-hero2-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 auto; }
.sbd-mh-hero2-vs {
    font-weight: 800; font-size: 12.5px; color: var(--sbd-muted-2);
    width: 38px; height: 38px; border-radius: 50%; background: var(--sbd-card);
    display: flex; align-items: center; justify-content: center; border: 1px solid var(--sbd-border);
}
@media (max-width: 560px) {
    .sbd-mh-hero2-logo { width: 46px; height: 46px; font-size: 15px; }
    .sbd-mh-hero2-name { font-size: 12px; max-width: 90px; }
    .sbd-mh-hero2-score { font-size: 16px; }
}

/* Live: striker / partnership / non-striker / bowler row */
.sbd-mh-players-row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 16px; margin: 0 0 16px; border: 1px solid var(--sbd-border); border-radius: 12px; background: var(--sbd-card);
}
.sbd-mh-player { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 130px; }
.sbd-mh-player-icon {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 13px; background: var(--sbd-border);
}
.sbd-mh-player-icon--bat.is-on-strike { background: #16a34a; color: #fff; }
.sbd-mh-player-icon--ball { background: #dc2626; color: #fff; }
.sbd-mh-player-name { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.sbd-mh-player-name sup { color: #16a34a; font-weight: 800; }
.sbd-mh-player-stat { font-size: 13px; color: var(--sbd-muted-2); font-weight: 600; margin-left: auto; white-space: nowrap; }
.sbd-mh-partnership {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 14px; border-radius: 8px; background: rgba(22,163,74,.1); flex: 0 0 auto;
}
.sbd-mh-partnership-label { font-size: 11px; font-weight: 700; color: #16a34a; white-space: nowrap; }
.sbd-mh-partnership-val { font-size: 14px; font-weight: 800; color: #16a34a; }

/* Live: this-over chips + inline stats */
.sbd-mh-over-row {
    padding: 14px 16px; border: 1px solid var(--sbd-border); border-radius: 12px;
    margin-bottom: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.sbd-mh-over-label { font-size: 13px; font-weight: 700; color: var(--sbd-muted-2); white-space: nowrap; }
.sbd-mh-ball-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sbd-mh-ball-chip {
    width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 11.5px; font-weight: 700; background: #e5e7eb; color: var(--sbd-text);
}
.sbd-mh-ball-chip.is-dot { background: var(--sbd-border); color: var(--sbd-muted-2); }
.sbd-mh-ball-chip.is-four { background: #16a34a; color: #fff; }
.sbd-mh-ball-chip.is-six { background: #0f7a3d; color: #fff; }
.sbd-mh-ball-chip.is-wicket { background: #dc2626; color: #fff; }
.sbd-mh-stat-inline { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--sbd-muted-2); margin-left: auto; }
.sbd-mh-stat-inline strong { color: var(--sbd-text); font-weight: 700; }

/* Live: chase banner */
.sbd-mh-chase-banner {
    text-align: center; padding: 12px 16px; border-radius: 10px;
    background: rgba(22,163,74,.1); color: #16a34a; font-weight: 700; font-size: 13.5px; margin-bottom: 16px;
}
