/* ================================================================
   BOULIET SPORTS — FOOTBALL FIXTURES & BET SLIP
================================================================ */
.sports-screen {
    position: relative;
    min-height: 100vh;
    margin-top: 64px;
    padding: 30px 24px 72px;
    background:
        radial-gradient(880px 460px at 12% -10%, rgba(39, 174, 96, 0.12), transparent 62%),
        radial-gradient(760px 420px at 92% 0%, rgba(37, 99, 235, 0.14), transparent 58%),
        var(--bg-void, #080b0f);
    overflow: hidden;
}
.sports-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 58px 58px;
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 0%, transparent 76%);
    mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 0%, transparent 76%);
    pointer-events: none;
}
.sports-inner { position: relative; max-width: 1380px; margin: 0 auto; }

.sports-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.sports-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(39, 174, 96, 0.32);
    background: rgba(39, 174, 96, 0.09);
    color: #4ade80;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.sports-title {
    margin: 0 0 6px;
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-primary, #e6edf3);
}
.sports-title em {
    font-style: normal;
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sports-sub { margin: 0; color: var(--text-secondary, #8b949e); font-size: 13px; line-height: 1.6; }

.sports-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(22, 27, 34, 0.8);
    color: #8b949e;
    font-size: 11.5px;
    font-weight: 600;
}
.sp-pill b { color: #e6edf3; font-weight: 700; }
.sp-pill .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
}
.sp-pill.live .dot { animation: spPulse 1.6s infinite; }
.sp-pill.warn .dot { background: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.8); }
@keyframes spPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.sp-refresh {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(240, 192, 64, 0.35);
    background: rgba(240, 192, 64, 0.1);
    color: #f0c040;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s;
}
.sp-refresh:hover { background: rgba(240, 192, 64, 0.2); transform: translateY(-1px); }
.sp-refresh:disabled { opacity: 0.5; cursor: progress; transform: none; }
.sp-refresh .spin { animation: spSpin 1s linear infinite; display: inline-block; }
@keyframes spSpin { to { transform: rotate(360deg); } }

/* ── Toolbar ──────────────────────────────────────────────────── */
.sports-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(13, 17, 23, 0.78);
    backdrop-filter: blur(8px);
}
.sp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #8b949e;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.sp-chip:hover { color: #e6edf3; border-color: rgba(255, 255, 255, 0.22); }
.sp-chip.active {
    color: #04140a;
    border-color: transparent;
    background: linear-gradient(135deg, #4ade80, #16a34a);
}
.sp-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 190px;
    min-width: 170px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #6b7280;
}
.sp-search input {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: transparent;
    color: #e6edf3;
    font-family: inherit;
    font-size: 12.5px;
    outline: none;
}
.sp-select {
    padding: 9px 12px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #11161d;
    color: #cbd5e1;
    font-family: inherit;
    font-size: 12px;
    outline: none;
    max-width: 200px;
}
.sp-auto {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 9px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    color: #8b949e;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.sp-auto input { accent-color: #22c55e; }

/* ── Layout ───────────────────────────────────────────────────── */
.sports-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}
.sports-list { display: flex; flex-direction: column; gap: 14px; min-height: 240px; }

.sp-day {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(13, 17, 23, 0.72);
    overflow: hidden;
}
.sp-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
}
.sp-day-head span { color: #6b7280; font-weight: 600; }

.sp-match {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 240px;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.sp-match:last-child { border-bottom: none; }
.sp-match:hover { background: rgba(255, 255, 255, 0.02); }

.sp-time { font-size: 12px; font-weight: 700; color: #8b949e; font-variant-numeric: tabular-nums; }
.sp-time small { display: block; font-size: 10px; font-weight: 600; color: #4b5563; margin-top: 2px; }

.sp-teams { min-width: 0; }
.sp-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #e6edf3;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sp-team + .sp-team { margin-top: 3px; }
.sp-team i { color: #f0c040; font-size: 10px; flex-shrink: 0; }
.sp-league { display: block; margin-top: 4px; font-size: 10.5px; color: #6b7280; letter-spacing: 0.03em; text-transform: uppercase; }

.sp-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.sp-odd {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 9px 4px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
    color: #e6edf3;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.sp-odd b { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sp-odd small { font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; color: #6b7280; }
.sp-odd:hover { border-color: rgba(240, 192, 64, 0.4); background: rgba(240, 192, 64, 0.1); transform: translateY(-1px); }
.sp-odd.selected {
    border-color: transparent;
    background: linear-gradient(135deg, #f0c040, #f97316);
    color: #1a0e00;
}
.sp-odd.selected small { color: rgba(26, 14, 0, 0.65); }

.sp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 56px 20px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: #6b7280;
    font-size: 13px;
    text-align: center;
}
.sp-empty i { font-size: 26px; color: rgba(240, 192, 64, 0.5); }
.sp-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px; color: #8b949e; font-size: 13px; }

/* ── Bet slip ─────────────────────────────────────────────────── */
.bet-slip {
    position: sticky;
    top: 84px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.96), rgba(13, 17, 23, 0.98));
    overflow: hidden;
}
.bet-slip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e6edf3;
}
.bet-slip-head span { color: #6b7280; font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.bet-slip-body { padding: 14px 16px 16px; }

.slip-empty { padding: 22px 4px; text-align: center; color: #6b7280; font-size: 12.5px; line-height: 1.7; }
.slip-empty i { display: block; margin-bottom: 8px; font-size: 20px; color: rgba(240, 192, 64, 0.5); }

.slip-pick {
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid rgba(240, 192, 64, 0.25);
    background: rgba(240, 192, 64, 0.07);
    margin-bottom: 12px;
}
.slip-pick .match { font-size: 12px; font-weight: 600; color: #cbd5e1; line-height: 1.5; }
.slip-pick .pick-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 7px;
    font-size: 12.5px;
    font-weight: 700;
    color: #f0c040;
}
.slip-pick .pick-row span { color: #8b949e; font-weight: 600; font-size: 11px; }

.slip-field { margin-top: 10px; }
.slip-field label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7280; margin-bottom: 6px; }
.slip-stake { display: flex; gap: 8px; }
.slip-stake input {
    flex: 1;
    min-width: 0;
    padding: 11px 12px;
    border-radius: 9px;
    border: 1px solid rgba(0, 0, 0, 0.55);
    background: var(--bg-input, #1a1f44);
    color: #e6edf3;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    outline: none;
    font-variant-numeric: tabular-nums;
}
.slip-quick { display: flex; gap: 5px; margin-top: 7px; }
.slip-quick button {
    flex: 1;
    padding: 6px 0;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #8b949e;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.slip-quick button:hover { color: #f0c040; border-color: rgba(240, 192, 64, 0.4); }

.slip-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 9px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    font-size: 11.5px;
    color: #8b949e;
}
.slip-summary b { color: #4ade80; font-size: 15px; font-variant-numeric: tabular-nums; }

.slip-place {
    width: 100%;
    margin-top: 12px;
    padding: 13px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #f0c040, #f97316);
    color: #1a0e00;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 12px 26px -14px rgba(240, 192, 64, 0.9);
}
.slip-place:hover:not(:disabled) { transform: translateY(-1px); }
.slip-place:disabled { filter: grayscale(0.5) brightness(0.7); cursor: not-allowed; box-shadow: none; }

.slip-note { margin-top: 10px; font-size: 10.5px; line-height: 1.6; color: #4b5563; text-align: center; }

.open-bets { margin-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 12px; }
.open-bets h4 { margin: 0 0 8px; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7280; }
.open-bet {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
    margin-bottom: 7px;
    font-size: 11.5px;
    color: #8b949e;
}
.open-bet b { display: block; color: #cbd5e1; font-size: 12px; margin-bottom: 2px; }
.open-bet .ob-meta { color: #6b7280; font-size: 10.5px; }
.open-bet button {
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.08);
    color: #f87171;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}
.open-bet button:hover { background: rgba(248, 113, 113, 0.18); }

.slip-clear {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #8b949e;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.slip-clear:hover { color: #e6edf3; border-color: rgba(255, 255, 255, 0.22); }
.slip-note.flash { color: #f0c040; }
#openBetsCount { color: #6b7280; font-weight: 600; font-size: 10.5px; letter-spacing: 0; text-transform: none; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .sports-body { grid-template-columns: minmax(0, 1fr); }
    .bet-slip { position: static; }
}
@media (max-width: 760px) {
    .sports-screen { margin-top: 0; padding: 118px 16px 56px; }
    .sports-head { align-items: flex-start; }
    .sp-match { grid-template-columns: 56px minmax(0, 1fr); }
    .sp-odds { grid-column: 1 / -1; }
    .sp-select { max-width: 100%; flex: 1 1 100%; }
}


/* ── Team badges ──────────────────────────────────────────────── */
.sp-team {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary, #e6edf3);
}
.sp-team .sp-team-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sp-logo,
.team-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
}
.sp-logo img,
.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}
.team-crest { width: 100%; height: 100%; display: block; }
.team-logo--crest { background: rgba(255, 255, 255, 0.04); }

@media (max-width: 640px) {
    .sp-logo, .team-logo { width: 19px; height: 19px; }
    .sp-team { font-size: 12.5px; gap: 7px; }
}
