/* Sports discovery extends the existing orange identity. */
.sidebar .sport { background: white; color: #303b4c; }
.sidebar .sport.active { background: #fff0ea; color: #a32904; }
.sidebar .sport:hover { background: #f3f5fb; }
.welcome { min-height: 112px; padding: 24px; }
.welcome-copy { width: 76%; position: relative; z-index: 1; }
.welcome h1 { font-size: clamp(25px,2.5vw,34px); }
.welcome .subtitle { max-width: none; margin-top: 8px; }
.hero-players { width: 28%; object-fit: contain; opacity: .6; }
.league-navigation { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.league-navigation h2 { margin: 0 12px 12px; font-size: 13px; }
#league-links { display: grid; gap: 4px; }
#league-links button { display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left; font-size: 12px; line-height: 1.5; }
.sports-discovery { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sports-discovery button,.time-filters button,.event-market-tabs button,.stake-presets button,#league-links button { font: inherit; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); padding: 10px 12px; min-height: 44px; cursor: pointer; }
.sports-search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; min-width: 0; border: 1px solid #a9b9d1; border-radius: 8px; padding-left: 12px; background: white; }
.sports-search svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.sports-search input { width: 100%; min-width: 0; background: transparent; border: 0; margin: 0; padding: 12px 8px; color: var(--ink); font: inherit; }
.sports-search:focus-within { outline: 2px solid #b82b00; outline-offset: 2px; }
.league-select { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; min-width: 0; }
.league-select select { width: 170px; max-width: 100%; min-height: 44px; padding: 8px; font: inherit; border: 1px solid #a9b9d1; border-radius: 8px; background: white; color: var(--ink); }
.time-filters { display: flex; gap: 6px; overflow-x: auto; margin: 14px 0 10px; padding: 3px; }
.time-filters button { flex-shrink: 0; font-size: 12px; }
.sports-discovery button[aria-pressed="true"],.time-filters button[aria-pressed="true"],.event-market-tabs button[aria-pressed="true"],#league-links button[aria-pressed="true"] { border-color: #b82b00; background: #fff0ea; color: #992400; font-weight: 700; }
.results-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 14px; font-size: 12px; color: var(--muted); }
.results-summary p { margin: 0; }
.results-summary button,.match-footer button,.event-back { background: none; border: 0; color: #a32904; min-height: 44px; padding: 8px 0; cursor: pointer; font: inherit; font-weight: 650; }
.matches { display: grid; gap: 16px; }
.league-group { min-width: 0; }
.league-group > summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; gap: 12px; cursor: pointer; font-weight: 700; list-style: none; }
.league-group > summary::-webkit-details-marker { display: none; }
.league-group > summary::after { content: '+'; font-size: 20px; }
.league-group[open] > summary::after { content: '−'; }
.league-group summary b { margin-left: auto; color: var(--muted); font-size: 12px; }
.league-group summary small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.league-events { display: grid; gap: 8px; }
.match { padding: 12px 14px; min-width: 0; }
.match-meta { align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.match-meta > span:first-child { flex: 1; font-size: 11px; }
.match-status { font-size: 11px; }
.favorite-button { border: 0; padding: 10px; background: transparent; color: #59657a; cursor: pointer; min-height: 44px; min-width: 44px; }
.favorite-button svg { width: 19px; height: 19px; display: block; }
.favorite-button[aria-pressed="true"] { color: #a32904; }
.favorite-button[aria-pressed="true"] svg { fill: #ffe1d5; }
.match-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; font-size: 11px; color: var(--muted); }
.match-footer button { font-size: 12px; }
.sport-rules { margin-bottom: 0; }
.sports-empty { background: white; padding: 32px 20px; border-radius: 12px; text-align: center; }
.sports-empty h3 { font-size: 17px; }
.sports-empty p { color: var(--muted); line-height: 1.6; }
#event-detail { min-width: 0; scroll-margin-top: 20px; }
.event-detail-head { padding: 24px; background: #202938; color: white; border-radius: 12px; margin: 8px 0 20px; }
.event-detail-head h2 { font-size: clamp(20px,2vw,28px); line-height: 1.35; margin: 16px 0; }
.event-detail-head h2 span { color: #b8c6dd; font-size: 16px; font-weight: 400; }
.event-detail-head p { font-size: 12px; line-height: 1.6; color: #d5deed; margin: 0; }
.event-market-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.event-market { background: white; padding: 20px; margin-bottom: 12px; border-radius: 12px; }
.event-market h3 { font-size: 14px; margin: 0 0 16px; }
.event-market .market-options .odd > span { font-size: 12px; overflow-wrap: anywhere; }
.detail-note { font-size: 12px; line-height: 1.6; color: var(--muted); }
.stake-presets { display: flex; gap: 6px; margin: 8px 0; }
.stake-presets button { flex: 1; min-height: 36px; font-size: 12px; padding: 6px; }
.sports-mobile-nav { display: none; }
.sports-discovery button:hover,.time-filters button:hover,.stake-presets button:hover { background: #fff0ea; }
button:focus-visible,summary:focus-visible,select:focus-visible { outline: 2px solid #b82b00; outline-offset: 3px; }
@media(max-width:960px) {
 .sports-discovery .league-select { flex: 1 1 100%; }
 .league-select select { flex: 1; width: auto; }
}
@media(max-width:620px) {
 body { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
 .welcome { min-height: 96px; padding: 20px; }
 .welcome-copy { width: 100%; }
 .welcome h1 { font-size: 27px; }
 .hero-players { display: none; }
 .sidebar .league-navigation,.sidebar .responsible { display: none; }
 .sports-discovery { gap: 8px; }
 .sports-search { flex-basis: 100%; }
 .sports-discovery #favorites-filter { flex: 0 1 auto; font-size: 12px; }
 .sports-discovery .league-select { flex: 1 1 100px; }
 .league-select select { min-width: 0; width: 100%; }
 .match { padding: 10px 12px; }
 .match-meta > span:first-child { flex-basis: calc(100% - 60px); }
 .match-status { order: 3; width: 100%; }
 .match-meta .favorite-button { margin-left: auto; }
 .event-detail-head { padding: 20px; }
 .event-market { padding: 16px 12px; }
 .event-market .market-options { flex-wrap: wrap; }
 .event-market .market-options .odd { min-width: 90px; min-height: 48px; }
 .sports-mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; padding: 4px 10px calc(4px + env(safe-area-inset-bottom)); min-height: 56px; background: #202938; z-index: 7; }
 .sports-mobile-nav button { flex: 1; min-height: 48px; border: 0; background: transparent; color: white; font: inherit; font-size: 12px; cursor: pointer; }
 .sports-mobile-nav button:hover { background: #354158; }
 .bet-panel { bottom: calc(66px + env(safe-area-inset-bottom)); }
 .cart-content { max-height: calc(100dvh - 260px); }
 .toast { bottom: calc(130px + env(safe-area-inset-bottom)); }
}

.league-nav-label { display: flex; align-items: center; gap: 8px; min-width: 0; font-style: normal; }
.league-nav-label em { font-style: normal; font-size: 12px; line-height: 1.35; }
.league-nav-label img, .league-logo-empty { flex: 0 0 20px; width: 20px; height: 20px; object-fit: contain; }
.league-nav-label img.wide { flex-basis: 40px; width: 40px; }
