.bb-predictions-app {
    display: grid;
    gap: 18px;
}

.bb-seo-hero {
    display: grid;
    gap: 6px;
}

.bb-seo-hero h1 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.04;
}

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

.bb-nav-date {
    display: flex;
    justify-content: flex-end;
    min-width: 320px;
    margin-left: auto;
}

.bb-nav-date-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bb-date-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bb-primary);
    cursor: pointer;
}

.bb-date-btn:disabled {
    opacity: .35;
    cursor: default;
}

.bb-date-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.bb-date-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--bb-surface-border);
    border-radius: 10px;
    background: var(--bb-input-bg);
    color: var(--bb-text-main);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.bb-date-label i {
    color: var(--bb-primary);
}

.bb-predictions-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.bb-predictions-main {
    flex: 1 1 auto;
    min-width: 0;
}

.bb-right-rail {
    width: 300px;
    flex: 0 0 300px;
}

.bb-mode-indicator,
.bb-seo-copy {
    padding: 14px 16px;
    border: 1px solid var(--bb-surface-border);
    border-radius: 14px;
    background: var(--bb-surface-soft);
}

.bb-mode-indicator {
    margin-bottom: 14px;
}

.bb-mode-indicator h3,
.bb-seo-copy h2 {
    margin: 0 0 8px;
}

.bb-mode-indicator p,
.bb-seo-copy p {
    margin: 0;
    color: var(--bb-text-muted);
    font-size: 13px;
    line-height: 1.7;
}

.bb-seo-copy p + p {
    margin-top: 8px;
}

.bb-clear-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    text-decoration: none;
    color: var(--bb-primary);
    font-size: 13px;
    font-weight: 700;
}

.bb-predictions-container {
    min-height: 1180px;
}

.bb-league-section {
    margin-bottom: 10px;
    border: 1px solid var(--bb-surface-border);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    background: var(--bb-surface-soft);
    position: relative;
    z-index: 5;
}

.bb-league-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    background: linear-gradient(90deg, rgba(112, 112, 112, 0.72) 0%, rgba(255, 255, 255, 0.96) 100%);
    border-radius: 0;
    color: #1c1713;
    font-size: 12px;
    font-weight: 600;
}

html[data-theme="light"] .bb-league-title {
    background: linear-gradient(90deg, rgba(150, 150, 150, 0.42) 0%, rgba(255, 255, 255, 1) 100%);
    color: #2a2119;
}

.bb-main-header-row,
.bb-prediction-row {
    display: grid;
    grid-template-columns: 64px 1fr 92px 1fr 124px;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
}

.bb-main-header-row {
    position: sticky;
    top: 0;
    z-index: 4;
    border-radius: 8px 8px 0 0;
    border: 1px solid rgba(255, 138, 61, 0.28);
    border-bottom: 0;
    background: linear-gradient(135deg, rgba(229, 90, 0, 0.30) 0%, rgba(201, 72, 0, 0.18) 55%, rgba(120, 44, 0, 0.12) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: rgba(255, 244, 235, 0.88);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding-bottom: 18px;
    margin-bottom: -14px;
}

html[data-theme="light"] .bb-main-header-row {
    border-color: rgba(229, 90, 0, 0.20);
    background: linear-gradient(135deg, rgba(255, 193, 148, 0.85) 0%, rgba(255, 234, 220, 0.96) 58%, rgba(255, 248, 242, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    color: rgba(77, 37, 14, 0.86);
}

.bb-main-header-row > div {
    text-align: center;
}

.bb-main-header-row > div:nth-child(2) {
    text-align: right;
}

.bb-main-header-row > div:nth-child(4) {
    text-align: left;
}

.bb-prediction-row {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .bb-prediction-row {
    border-top-color: rgba(0, 0, 0, 0.05);
}

.bb-prediction-row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.05);
}

.bb-prediction-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .bb-prediction-row:nth-child(odd) {
    background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .bb-prediction-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.92);
}

.bb-prediction-row.is-finished:nth-child(odd) {
    background: rgba(44, 133, 74, 0.26);
}

.bb-prediction-row.is-finished:nth-child(even) {
    background: rgba(44, 133, 74, 0.14);
}

html[data-theme="light"] .bb-prediction-row.is-finished:nth-child(odd) {
    background: rgba(44, 133, 74, 0.16);
}

html[data-theme="light"] .bb-prediction-row.is-finished:nth-child(even) {
    background: rgba(44, 133, 74, 0.06);
}

.bb-match-time {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--bb-primary);
}

.bb-match-date {
    display: block;
    font-size: 10px;
    color: var(--bb-text-muted);
}

.bb-team-home {
    text-align: right;
    padding-right: 8px;
}

.bb-team-away {
    text-align: left;
    padding-left: 8px;
}

.bb-prediction-box {
    text-align: center;
    white-space: nowrap;
}

.bb-pred-pill,
.bb-result-pill {
    display: inline-block;
    min-width: 34px;
    padding: 3px 6px;
    border-radius: 5px;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.bb-pred-pill {
    background: linear-gradient(135deg, #e55a00 0%, #c94800 100%);
    color: #fff;
}

.bb-result-pill {
    color: var(--bb-text-main);
    font-weight: 800;
}

.bb-prediction-row.is-finished .bb-result-pill {
    color: #f7fff8;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] .bb-prediction-row.is-finished .bb-result-pill {
    color: #12301f;
    text-shadow: none;
}

.bb-right-cards {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.bb-side-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 46px;
    padding: 4px 7px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 800;
    line-height: 1;
}

.bb-side-card .k {
    font-size: 9px;
    opacity: .8;
}

.bb-side-card .v {
    font-size: 13px;
}

.bb-side-card.is-ok {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.46);
    color: #fff;
}

.bb-side-card.is-bad {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.42);
    color: #fff;
}

.bb-side-card.is-pending {
    background: rgba(255, 255, 255, 0.08);
    color: var(--bb-text-muted);
}

html[data-theme="light"] .bb-side-card.is-pending {
    background: rgba(0, 0, 0, 0.04);
    color: var(--bb-text-muted);
}

.bb-stats-strip {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--bb-surface-border);
    border-radius: 12px;
    background: var(--bb-surface-soft);
}

.bb-stats-strip h4 {
    margin: 0 0 10px;
}

.bb-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bb-stat-item {
    padding: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.18);
    text-align: center;
}

html[data-theme="light"] .bb-stat-item {
    background: rgba(255, 255, 255, 0.72);
}

.bb-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--bb-text-muted);
}

.bb-stat-value {
    margin-top: 4px;
    font-size: 18px;
    font-weight: 800;
}

.bb-stat-sub {
    margin-top: 4px;
    font-size: 10px;
    color: var(--bb-text-muted);
}

.bb-stat-good { color: #22c55e; }
.bb-stat-medium { color: #f59e0b; }
.bb-stat-bad { color: #ef4444; }

.bb-loading-skeleton {
    display: grid;
    gap: 12px;
}

.bb-skeleton-card {
    overflow: hidden;
    border: 1px solid var(--bb-surface-border);
    border-radius: 12px;
    background: var(--bb-surface-soft);
}

.bb-skeleton-bar {
    height: 30px;
    background: rgba(0, 0, 0, 0.24);
}

html[data-theme="light"] .bb-skeleton-bar {
    background: rgba(0, 0, 0, 0.08);
}

.bb-skeleton-row {
    display: grid;
    grid-template-columns: 64px 1fr 92px 1fr 124px;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .bb-skeleton-row {
    border-top-color: rgba(0, 0, 0, 0.06);
}

.bb-skeleton-block {
    display: block;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.08) 75%);
    background-size: 200% 100%;
    animation: bbSkeletonPulse 1.4s ease-in-out infinite;
}

html[data-theme="light"] .bb-skeleton-block {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 25%, rgba(0, 0, 0, 0.12) 50%, rgba(0, 0, 0, 0.06) 75%);
    background-size: 200% 100%;
}

.bb-skeleton-time {
    width: 44px;
}

.bb-skeleton-team {
    width: 100%;
}

.bb-skeleton-pred {
    width: 82px;
    justify-self: center;
}

.bb-skeleton-meta {
    width: 92px;
    justify-self: center;
}

.bb-empty-state {
    padding: 28px 16px;
    border: 1px dashed var(--bb-surface-border);
    border-radius: 14px;
    background: var(--bb-surface-soft);
    text-align: center;
}

.bb-empty-state h3 {
    margin: 10px 0 0;
}

.bb-empty-state p {
    margin: 8px 0 0;
    color: var(--bb-text-muted);
}

.bb-flag {
    width: 16px;
    height: 11px;
    object-fit: cover;
    border-radius: 2px;
}

@keyframes bbSkeletonPulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 1200px) {
    .bb-predictions-layout {
        display: block;
    }

    .bb-right-rail {
        display: none;
    }
}

@media (max-width: 991px) {
    .bb-nav-date {
        min-width: 0;
        width: 100%;
    }

    .bb-nav-date-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .bb-predictions-container {
        min-height: 820px;
    }

    .bb-main-header-row,
    .bb-prediction-row,
    .bb-skeleton-row {
        grid-template-columns: repeat(12, 1fr);
    }

    .bb-main-header-row > :nth-child(1) { grid-column: 1 / 2; }
    .bb-main-header-row > :nth-child(2) { grid-column: 2 / 6; text-align: left; }
    .bb-main-header-row > :nth-child(3) { grid-column: 6 / 8; }
    .bb-main-header-row > :nth-child(4) { grid-column: 8 / 12; text-align: left; }
    .bb-main-header-row > :nth-child(5) { display: none; }

    .bb-match-time { grid-column: 1 / 2; grid-row: 1 / 3; text-align: left; }
    .bb-team-home { grid-column: 2 / 6; grid-row: 1; font-size: 11px; }
    .bb-prediction-box { grid-column: 6 / 8; grid-row: 1; }
    .bb-team-away { grid-column: 8 / 12; grid-row: 1; font-size: 11px; }
    .bb-right-cards { grid-column: 2 / 12; grid-row: 2; }

    .bb-skeleton-row .bb-skeleton-time { grid-column: 1 / 2; }
    .bb-skeleton-row .bb-skeleton-team:first-of-type { grid-column: 2 / 6; }
    .bb-skeleton-row .bb-skeleton-pred { grid-column: 6 / 8; }
    .bb-skeleton-row .bb-skeleton-team:last-of-type { grid-column: 8 / 12; }
    .bb-skeleton-row .bb-skeleton-meta { grid-column: 2 / 12; margin-top: 4px; }
}
