/* Bwin-style in-page event view (center column) */
.sb-event-view {
    display: none;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

body.sb-event-mode .sb-event-view {
    display: flex;
}

body.sb-event-mode .sportsbook-center > .sb-sports-topbar,
body.sb-event-mode .sportsbook-center > .sb-center-tabs,
body.sb-event-mode .sportsbook-center > #events,
body.sb-event-mode .content > .search-bar,
body.sb-event-mode .banner-carousel-container {
    display: none !important;
}

body.sb-event-mode .sportsbook-center {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sb-event-view-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 12px;
    flex-shrink: 0;
}

.sb-event-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(15, 33, 46, 0.9);
    color: #e8f0f5;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.sb-event-back-btn:hover {
    background: rgba(30, 60, 80, 0.95);
    border-color: rgba(0, 180, 255, 0.35);
}

.sb-event-view-breadcrumb {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sb-event-loading,
.sb-event-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 24px;
    color: rgba(255, 255, 255, 0.7);
}

.sb-event-error[hidden],
.sb-event-loading[hidden] {
    display: none !important;
}

.sb-event-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--accent-green, #00e701);
    border-radius: 50%;
    animation: sb-ev-spin 0.8s linear infinite;
}

@keyframes sb-ev-spin {
    to { transform: rotate(360deg); }
}

.sb-event-retry-btn {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    background: var(--accent-green, #00e701);
    color: #0a1620;
    font-weight: 700;
    cursor: pointer;
}

.sb-event-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.sb-event-content[hidden] {
    display: none !important;
}

.sb-event-header {
    background: linear-gradient(180deg, rgba(20, 45, 65, 0.95) 0%, rgba(15, 33, 46, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.sb-event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 14px;
}

.sb-ev-flag,
.sb-ev-league-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 2px;
}

.sb-ev-league {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.sb-ev-sep {
    opacity: 0.4;
}

.sb-event-scoreboard {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.sb-ev-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.sb-ev-team.away {
    flex-direction: column;
}

.sb-ev-team-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.sb-ev-team-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    max-width: 160px;
}

.sb-ev-score-col {
    text-align: center;
    min-width: 80px;
}

.sb-ev-score {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
}

.sb-ev-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
}

.sb-ev-status.is-live {
    color: #ff4454;
    font-weight: 700;
}

.sb-ev-venue {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.sb-event-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 12px;
    flex-shrink: 0;
    scrollbar-width: thin;
}

.sb-event-tab {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    background: rgba(15, 33, 46, 0.8);
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.sb-event-tab:hover {
    color: #fff;
    background: rgba(30, 55, 75, 0.9);
}

.sb-event-tab.active {
    background: rgba(0, 120, 200, 0.35);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 180, 255, 0.4);
}

.sb-event-panels {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.sb-event-panel {
    display: none;
}

.sb-event-panel.active {
    display: block;
}

.sb-ev-markets-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sb-market-accordion {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(15, 33, 46, 0.75);
    overflow: hidden;
}

.sb-market-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.sb-market-accordion summary::-webkit-details-marker {
    display: none;
}

.sb-market-accordion summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.2s;
}

.sb-market-accordion[open] summary::after {
    transform: rotate(180deg);
}

.sb-market-accordion-body {
    padding: 0 12px 14px;
}

.sb-market-odds-row {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

.sb-market-odds-row--1x2 {
    grid-template-columns: repeat(3, 1fr);
}

.sb-ev-odd-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(10, 22, 32, 0.9);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    text-align: center;
}

.sb-ev-odd-btn:hover:not(.is-disabled) {
    border-color: rgba(0, 180, 255, 0.45);
    background: rgba(20, 50, 70, 0.95);
}

.sb-ev-odd-btn.is-selected {
    border-color: var(--accent-green, #00e701);
    background: rgba(0, 231, 1, 0.12);
}

.sb-ev-odd-btn.is-disabled {
    opacity: 0.45;
    cursor: default;
}

.sb-ev-odd-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.sb-ev-odd-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--accent-green, #00e701);
}

.sb-market-soon {
    padding: 12px 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.sb-ev-stats {
    max-width: 720px;
    margin: 0 auto;
}

.sb-ev-stats .stat-row {
    margin-bottom: 16px;
}

.sb-ev-stats .stat-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #e8f0f5;
}

.sb-ev-stats .stat-title {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    font-size: 12px;
}

.sb-ev-stats .stat-bar-container {
    display: flex;
    gap: 4px;
    height: 6px;
}

.sb-ev-stats .stat-bar-side {
    flex: 1;
    background: #163354;
    border-radius: 2px;
    display: flex;
    overflow: hidden;
}

.sb-ev-stats .stat-fill.home {
    background: var(--accent-green, #00e701);
    height: 100%;
}

.sb-ev-stats .stat-fill.away {
    background: #fff;
    height: 100%;
}

.sb-ev-lineups-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sb-ev-lineup-col h4 {
    color: #fff;
    font-size: 14px;
    margin: 0 0 10px;
}

.sb-ev-lineup-col .player-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sb-ev-empty {
    padding: 32px;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
}

@media (max-width: 1024px) {
    .sb-ev-team-logo {
        width: 44px;
        height: 44px;
    }
    .sb-ev-team-name {
        font-size: 13px;
        max-width: 120px;
    }
}

@media (max-width: 768px) {
    body.sb-event-mode .sportsbook-layout {
        grid-template-columns: 1fr !important;
    }
    body.sb-event-mode .sportsbook-sidebar {
        display: none;
    }
    .sb-event-scoreboard {
        gap: 8px;
    }
    .sb-ev-score {
        font-size: 22px;
    }
}
