/* Promotion / playoff / relegation badges */

.pp-rank-badge.pp-rank-promotion {
    background: #16a34a;
    color: #fff;
}

.pp-rank-badge.pp-rank-playoff {
    background: #2563eb;
    color: #fff;
}

.pp-rank-badge.pp-rank-relegation {
    background: #e60023;
    color: #fff;
}

/* Left thin line only */

.pp-standings-table tbody tr.pp-rank-promotion td:first-child {
    border-left: 4px solid #16a34a;
}

.pp-standings-table tbody tr.pp-rank-playoff td:first-child {
    border-left: 4px solid #2563eb;
}

.pp-standings-table tbody tr.pp-rank-relegation td:first-child {
    border-left: 4px solid #e60023;
}

/* Do not color whole rows */

.pp-standings-table tbody tr.pp-rank-promotion td,
.pp-standings-table tbody tr.pp-rank-playoff td,
.pp-standings-table tbody tr.pp-rank-relegation td {
    background: transparent !important;
}

/* Legend colors */

.pp-legend-promotion {
    background: #16a34a;
}

.pp-legend-playoff {
    background: #2563eb;
}

.pp-legend-relegation {
    background: #e60023;
}

/* =========================================================
   STANDINGS ZONES - CLEAN STYLE
   no full row background, only left strip + rank badge
   ========================================================= */

.pp-standings-table tbody tr.pp-rank-cl,
.pp-standings-table tbody tr.pp-rank-el,
.pp-standings-table tbody tr.pp-rank-ecl,
.pp-standings-table tbody tr.pp-rank-relegation {
    background: transparent !important;
}

.pp-standings-table tbody tr.pp-rank-cl td,
.pp-standings-table tbody tr.pp-rank-el td,
.pp-standings-table tbody tr.pp-rank-ecl td,
.pp-standings-table tbody tr.pp-rank-relegation td {
    background: transparent !important;
}

/* optional subtle hover */
.pp-standings-table tbody tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* LEFT COLOR STRIP ONLY */
.pp-standings-table tbody tr.pp-rank-cl td:first-child {
    border-left: 4px solid #1d7cff;
}

.pp-standings-table tbody tr.pp-rank-el td:first-child {
    border-left: 4px solid #c00078;
}

.pp-standings-table tbody tr.pp-rank-ecl td:first-child {
    border-left: 4px solid #f5c400;
}

.pp-standings-table tbody tr.pp-rank-relegation td:first-child {
    border-left: 4px solid #e60023;
}

/* rank badge */
.pp-rank-badge {
    min-width: 34px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    background: #20293c;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.pp-rank-badge.pp-rank-default {
    color: #fff;
}

.pp-rank-badge.pp-rank-cl {
    background: #1d7cff;
    color: #fff;
}

.pp-rank-badge.pp-rank-el {
    background: #c00078;
    color: #fff;
}

.pp-rank-badge.pp-rank-ecl {
    background: #f5c400;
    color: #111;
}

.pp-rank-badge.pp-rank-relegation {
    background: #e60023;
    color: #fff;
}

/* if you want slight tint only in first cell */
.pp-standings-table tbody tr.pp-rank-cl td:first-child {
    background: linear-gradient(90deg, rgba(29,124,255,0.10), transparent) !important;
}

.pp-standings-table tbody tr.pp-rank-el td:first-child {
    background: linear-gradient(90deg, rgba(192,0,120,0.10), transparent) !important;
}

.pp-standings-table tbody tr.pp-rank-ecl td:first-child {
    background: linear-gradient(90deg, rgba(245,196,0,0.10), transparent) !important;
}

.pp-standings-table tbody tr.pp-rank-relegation td:first-child {
    background: linear-gradient(90deg, rgba(230,0,35,0.10), transparent) !important;
}

/* legend */
.pp-standings-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    font-weight: 800;
    color: #dbe7ff;
}

.pp-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pp-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    display: inline-block;
}

.pp-legend-cl {
    background: #1d7cff;
}

.pp-legend-el {
    background: #c00078;
}

.pp-legend-ecl {
    background: #f5c400;
}

.pp-legend-relegation {
    background: #e60023;
}

/* =========================================================
   SOCCERPREDICTION.IO MATCH PAGE - NEW VISUAL REDESIGN
   Replace public/css/match.css with this file.
========================================================= */

:root {
    --sp-bg: #0b0e13;
    --sp-deep: #070b10;
    --sp-card: #10171f;
    --sp-card-2: #141b24;
    --sp-card-3: #0d131a;
    --sp-line: rgba(255,255,255,.08);
    --sp-line-2: rgba(255,255,255,.12);
    --sp-yellow: #f5a623;
    --sp-yellow-2: #ffc21a;
    --sp-green: #22c55e;
    --sp-red: #ef4444;
    --sp-blue: #38bdf8;
    --sp-text: #ffffff;
    --sp-muted: #a7b0bd;
    --sp-soft: #7d8794;
    --sp-radius: 14px;
    --sp-shadow: 0 20px 70px rgba(0,0,0,.28);
}

html, body { max-width: 100%; overflow-x: hidden; }
body.sp-body { background: var(--sp-bg); color: var(--sp-text); }
.sp-page { width: 100%; max-width: none !important; }

.sp-match-layout,
.sp-match-visual-layout {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.modern-match-page {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

.modern-match-page:before,
.modern-match-page:after { display: none !important; }

.sp-match-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 14px;
    align-items: start;
    width: 100%;
}

.sp-match-center,
.pp-prediction-main { min-width: 0; width: 100%; }
.sp-match-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 14px; min-width: 0; }

/* ================= HERO ================= */
.sp-match-hero,
.match-summary-header {
    position: relative;
    min-height: 260px;
    padding: 26px 28px 22px !important;
    overflow: hidden;
    border-radius: 16px !important;
    border: 1px solid rgba(245,166,35,.18) !important;
    background:
        linear-gradient(180deg, rgba(7,12,18,.28), rgba(7,12,18,.78)),
        radial-gradient(circle at 15% 20%, rgba(245,166,35,.14), transparent 22%),
        radial-gradient(circle at 85% 22%, rgba(56,189,248,.12), transparent 26%),
        linear-gradient(120deg, #101923 0%, #0c1219 50%, #101923 100%) !important;
    box-shadow: var(--sp-shadow) !important;
}

.sp-match-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,.14), transparent 12%),
        linear-gradient(90deg, transparent 0%, rgba(255,255,255,.04) 50%, transparent 100%);
    pointer-events: none;
}

.sp-match-hero:after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 46%;
    background:
        linear-gradient(0deg, rgba(0,0,0,.50), transparent),
        repeating-linear-gradient(90deg, rgba(245,166,35,.10) 0 1px, transparent 1px 72px);
    opacity: .45;
    pointer-events: none;
}

.sp-hero-date-pill {
    position: absolute;
    right: 20px;
    top: 18px;
    z-index: 2;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 10px;
    background: rgba(0,0,0,.34);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    font-weight: 900;
    font-size: 13px;
}

.sp-hero-league {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--sp-yellow-2);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.sp-hero-league b { color: rgba(255,255,255,.45); }

.sp-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    min-height: 160px;
}

.sp-hero-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    text-align: center;
}

.sp-hero-logo,
.summary-team-logo {
    width: 88px !important;
    height: 88px !important;
    object-fit: contain;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.07) !important;
    border: 1px solid rgba(255,255,255,.11) !important;
    box-shadow: 0 0 30px rgba(255,255,255,.10);
}

.sp-hero-team-name,
.summary-team-name {
    color: #fff !important;
    text-decoration: none;
    font-size: 22px;
    line-height: 1.12;
    font-weight: 950;
    max-width: 250px;
    text-align: center;
}
.sp-hero-team-name:hover { color: var(--sp-yellow) !important; }

.sp-form-mini { display: flex; gap: 5px; align-items: center; justify-content: center; }
.sp-form-mini span,
.pp-form-badge {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 5px;
    color: #fff;
    font-size: 11px;
    font-weight: 950;
}
.sp-form-w,.pp-form-win { background: #16a34a; }
.sp-form-d,.pp-form-draw { background: #fa9f19; }
.sp-form-l,.pp-form-loss { background: #dc2626; }
.sp-form-empty { background: #334155; }

.sp-hero-scorebox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 126px;
    border-radius: 16px;
    background: rgba(0,0,0,.34);
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.summary-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--sp-red) !important;
    color: #fff !important;
    border: 0 !important;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(239,68,68,.34);
}
.summary-status:not(.pp-status-live) { background: rgba(255,255,255,.08) !important; box-shadow: none; color: var(--sp-yellow) !important; border: 1px solid rgba(245,166,35,.24) !important; }
.pp-status-live { animation: spLivePulse 1s infinite; }
@keyframes spLivePulse { 0%,100%{opacity:1} 50%{opacity:.55} }

.sp-score-live,
.summary-scoreline.is-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    color: #fff;
    font-size: 58px;
    line-height: 1;
    font-weight: 950;
    text-shadow: 0 8px 34px rgba(0,0,0,.55);
}
.summary-score-sep { color: #fff; opacity: .88; }
.sp-score-time { color: var(--sp-yellow); text-transform: uppercase; font-weight: 950; font-size: 20px; }
.sp-hero-minute { margin-top: 10px; color: var(--sp-yellow); font-size: 18px; font-weight: 950; }
.sp-hero-meta { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--sp-muted); font-size: 13px; }
.summary-venue,.summary-referee { color: var(--sp-muted) !important; text-align: center; }

/* ================= TABS ================= */
.pp-pro-tabs,
.modern-match-tabs,
.match-subtabs {
    display: flex !important;
    gap: 8px !important;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 8px 10px !important;
    margin: 10px 0 12px !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #111820, #0d131a) !important;
    border: 1px solid var(--sp-line) !important;
}
.pp-pro-tabs::-webkit-scrollbar { display: none; }
.match-subtab {
    flex: 0 0 auto !important;
    min-height: 42px !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: #d8dee8 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: .02em !important;
    cursor: pointer;
    position: relative;
}
.match-subtab:after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: transparent;
}
.match-subtab.active,
.match-subtab:hover { color: var(--sp-yellow) !important; background: rgba(245,166,35,.05) !important; }
.match-subtab.active:after { background: var(--sp-yellow); }

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: spFade .18s ease; }
@keyframes spFade { from {opacity:.6; transform:translateY(5px)} to {opacity:1; transform:none} }

/* ================= ALL MARKETS ================= */
.pp-pro-pred-dashboard { width: 100%; }
.sp-all-markets-card,
.pp-pro-table-card,
.sp-match-panel,
.match-box,
.pred-clean-box,
.fs-form-wrapper,
.odds-market,
.timeline-box,
.pp-pro-season-card,
.pp-pro-text-analysis-card,
.pro-stats-dashboard,
.goal-trends-box {
    background:
        radial-gradient(circle at top right, rgba(245,166,35,.08), transparent 30%),
        linear-gradient(180deg, #131a22, #0e141b) !important;
    border: 1px solid rgba(245,166,35,.20) !important;
    border-radius: 16px !important;
    box-shadow: var(--sp-shadow) !important;
    color: #fff !important;
}
.sp-all-markets-card { padding: 22px !important; position: relative; overflow: hidden; }
.sp-all-markets-card:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(245,166,35,.08), transparent 18%, transparent 82%, rgba(245,166,35,.06));
    pointer-events: none;
}
.sp-all-markets-head { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.sp-all-title-row { display: flex; gap: 14px; align-items: center; }
.sp-all-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(245,166,35,.10); border: 1px solid rgba(245,166,35,.28); color: var(--sp-yellow); font-size: 22px; }
.sp-all-markets-head h2 { margin: 0; color: #fff; font-size: 26px; font-weight: 950; letter-spacing: -.02em; }
.sp-all-markets-head p { margin: 6px 0 0; color: var(--sp-muted); font-size: 13px; }
.sp-market-star { color: var(--sp-yellow); font-size: 26px; filter: drop-shadow(0 0 15px rgba(245,166,35,.55)); }

.sp-market-toolbar { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.sp-market-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-market-filters button,
.sp-sort-select select,
.pp-pro-odds-select {
    height: 38px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid var(--sp-line) !important;
    background: #111820 !important;
    color: #e5e7eb !important;
    font-weight: 850;
    cursor: pointer;
}
.sp-market-filters button.active,
.sp-market-filters button:hover { background: var(--sp-yellow) !important; color: #111 !important; border-color: var(--sp-yellow) !important; }
.sp-sort-select { display: inline-flex; align-items: center; gap: 8px; color: var(--sp-muted); font-size: 13px; white-space: nowrap; }

.pp-pro-table-wrap { position: relative; z-index: 1; overflow-x: auto; border-radius: 12px; border: 1px solid var(--sp-line); background: rgba(3,7,12,.22); }
.pp-pro-markets-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.pp-pro-markets-table th { padding: 14px 18px; text-align: left; color: #aeb7c5; font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .04em; background: rgba(255,255,255,.04); }
.pp-pro-markets-table td { padding: 16px 18px; border-top: 1px solid rgba(255,255,255,.07); color: #fff; font-size: 15px; }
.sp-market-pick { color: #fff; font-weight: 900; }
.pp-pro-odd-pill { display: inline-flex; min-width: 58px; height: 28px; align-items: center; justify-content: center; border-radius: 999px; background: rgba(245,166,35,.10); color: #fff !important; font-weight: 950; }
.pp-pro-odd-pill.empty { color: var(--sp-muted) !important; background: rgba(255,255,255,.06); }
.pp-pro-prob-cell { display: grid; grid-template-columns: 48px minmax(90px, 1fr); align-items: center; gap: 12px; }
.pp-pro-prob-cell span { color: #fff; font-weight: 950; }
.pp-pro-prob-cell div { height: 7px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.12); }
.pp-pro-prob-cell i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sp-yellow), #ffd24d); }
.pp-pro-analysis-icon { color: var(--sp-yellow); font-size: 18px; }
.sp-empty-row { text-align: center; color: var(--sp-muted) !important; }
.sp-view-all-markets { position: relative; z-index: 1; width: 100%; min-height: 54px; margin-top: 20px; border-radius: 12px; border: 1px solid rgba(245,166,35,.45); background: rgba(245,166,35,.03); color: #fff; font-size: 18px; font-weight: 850; cursor: pointer; }
.sp-view-all-markets:hover { background: rgba(245,166,35,.12); color: var(--sp-yellow); }
.sp-view-all-markets span { margin-left: 12px; font-size: 24px; }

/* ================= SIDE PANELS ================= */
.sp-side-card {
    background: linear-gradient(180deg, #131a22, #0e141b);
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 15px 46px rgba(0,0,0,.20);
}
.sp-side-card h3 { margin: 0 0 16px; color: #fff; font-size: 18px; font-weight: 950; }
.sp-overview-list { display: grid; gap: 0; }
.sp-overview-list div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.sp-overview-list div:last-child { border-bottom: 0; }
.sp-overview-list span { color: var(--sp-muted); font-size: 13px; }
.sp-overview-list strong { color: #fff; font-size: 13px; text-align: right; }
.sp-side-teams { display: flex; justify-content: space-between; align-items: center; margin: 5px 0 14px; }
.sp-side-teams img,.sp-recent-form-side img,.sp-h2h-mini img { width: 34px; height: 34px; object-fit: contain; border-radius: 50%; background: rgba(255,255,255,.06); padding: 4px; }
.sp-live-stat-list { display: grid; gap: 10px; }
.sp-live-stat-row { display: grid; grid-template-columns: 38px minmax(0,1fr) 38px; gap: 10px; align-items: center; }
.sp-live-stat-row strong { color: #fff; font-size: 13px; font-weight: 950; }
.sp-live-stat-row strong:last-child { text-align: right; }
.sp-live-stat-row div { position: relative; display: grid; gap: 4px; }
.sp-live-stat-row div span { color: var(--sp-muted); font-size: 12px; text-align: center; }
.sp-live-stat-row div:after { content: ""; height: 6px; border-radius: 999px; background: rgba(255,255,255,.16); display: block; }
.sp-live-stat-row div i { position: absolute; left: 0; bottom: 0; height: 6px; border-radius: 999px; background: var(--sp-yellow); }
.sp-side-btn { display: flex; align-items: center; justify-content: center; min-height: 42px; margin-top: 16px; border-radius: 10px; border: 1px solid rgba(245,166,35,.35); color: var(--sp-yellow); text-decoration: none; font-weight: 900; }
.sp-side-btn:hover { background: rgba(245,166,35,.10); }
.sp-recent-form-side { display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.sp-h2h-mini { display: grid; grid-template-columns: 34px 1fr 1.8fr 1fr 34px; gap: 10px; align-items: center; text-align: center; }
.sp-h2h-mini strong { font-size: 18px; color: #fff; }
.sp-h2h-mini span { color: var(--sp-muted); font-size: 12px; }
.sp-h2h-bar { display: flex; height: 7px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.10); }
.sp-h2h-bar i { background: var(--sp-green); }
.sp-h2h-bar b { background: #64748b; }
.sp-h2h-bar em { background: var(--sp-red); }

/* ================= GENERIC TAB CONTENT ================= */
.match-box h3,
.pp-pro-block-title,
.sp-match-section-title,
.pred-clean-head h3,
.odds-title { color: #fff !important; }
.match-box,
.fs-form-wrapper,
.odds-market,
.timeline-box { padding: 18px !important; }
.stats-compare-row,
.pred-clean-card,
.pred-clean-section,
.pred-clean-row,
.pm-item,
.lineup-col,
.odd-box,
.pp-pro-season-team,
.pp-pro-text-box {
    background: rgba(255,255,255,.035) !important;
    border: 1px solid var(--sp-line) !important;
    border-radius: 12px !important;
}
.odd-value,.pp-pts { color: var(--sp-yellow) !important; }
.create-prediction-btn,.pred-show-more,.save-pick-login,.prediction-submit-btn { background: var(--sp-yellow) !important; color: #111 !important; border: 0 !important; }
.vote-btn { background: rgba(245,166,35,.10) !important; color: var(--sp-yellow) !important; }
.pp-standings-table,.pp-pro-season-table { width: 100%; border-collapse: collapse; }
.pp-standings-table th,.pp-standings-table td,.pp-pro-season-table th,.pp-pro-season-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.pp-standings-table th,.pp-pro-season-table th { color: var(--sp-yellow); background: rgba(245,166,35,.06); text-align: left; }
.pp-team-cell { display: flex; align-items: center; gap: 8px; }
.pp-team-logo { width: 24px; height: 24px; object-fit: contain; }
.pp-match-standing-home,.pp-match-standing-away { background: rgba(245,166,35,.08); }

/* lineups pitch keep readable */
.lineup-pitch { border-radius: 12px; overflow: hidden; }
.pitch-head { background: rgba(245,166,35,.12) !important; color: #fff; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1250px) {
    .sp-match-body-grid { grid-template-columns: 1fr; }
    .sp-match-side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .modern-match-page { padding: 12px !important; }
    .sp-hero-date-pill { position: static; width: max-content; margin-left: auto; margin-bottom: 10px; }
    .sp-hero-grid { grid-template-columns: 1fr 130px 1fr; gap: 10px; min-height: 135px; }
    .sp-hero-logo { width: 56px !important; height: 56px !important; }
    .sp-hero-team-name { font-size: 14px; max-width: 120px; }
    .sp-hero-scorebox { min-height: 100px; }
    .sp-score-live { font-size: 34px !important; gap: 8px; }
    .sp-hero-minute { font-size: 14px; }
    .sp-match-side { grid-template-columns: 1fr; }
    .sp-market-toolbar { align-items: stretch; flex-direction: column; }
    .sp-sort-select { justify-content: space-between; }
    .sp-all-markets-head { align-items: flex-start; }
    .sp-all-markets-head h2 { font-size: 22px; }
}
@media (max-width: 768px) {
    .sp-match-hero { padding: 16px 12px !important; min-height: 210px; }
    .sp-hero-league { font-size: 10px; flex-wrap: wrap; }
    .sp-hero-grid { grid-template-columns: 1fr 94px 1fr; }
    .summary-status { height: 26px; min-width: 54px; font-size: 10px; }
    .sp-form-mini span,.pp-form-badge { width: 18px; height: 18px; font-size: 9px; }
    .match-subtab { min-height: 38px !important; padding: 0 14px !important; font-size: 12px !important; }
    .sp-all-markets-card { padding: 14px !important; }
    .sp-all-title-row { align-items: flex-start; }
    .sp-all-icon { width: 38px; height: 38px; }
    .sp-market-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
    .sp-market-filters button { flex: 0 0 auto; }
    .pp-pro-table-wrap { border: 0; background: transparent; }
    .pp-pro-markets-table { min-width: 0; }
    .pp-pro-markets-table thead { display: none; }
    .pp-pro-markets-table tbody,.pp-pro-markets-table tr,.pp-pro-markets-table td { display: block; width: 100%; }
    .pp-pro-markets-table tr { padding: 12px; margin-bottom: 10px; border: 1px solid var(--sp-line); border-radius: 12px; background: rgba(255,255,255,.035); }
    .pp-pro-markets-table td { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border: 0; font-size: 13px; }
    .pp-pro-markets-table td:before { content: attr(data-label); color: var(--sp-muted); font-weight: 800; }
    .pp-pro-prob-cell { min-width: 150px; grid-template-columns: 42px 1fr; }
    .sp-view-all-markets { font-size: 14px; min-height: 46px; }
}
@media (max-width: 480px) {
    .modern-match-page { padding: 8px !important; }
    .sp-hero-grid { grid-template-columns: 1fr; }
    .sp-hero-scorebox { order: -1; width: 150px; margin: 0 auto; }
    .sp-hero-team { gap: 6px; }
    .sp-hero-logo { width: 50px !important; height: 50px !important; }
    .sp-hero-meta { font-size: 11px; }
    .sp-side-card { padding: 14px; }
}

/* =========================================================
   SOCCERPREDICTION.IO - MATCH PAGE COMPLETE CSS
   Covers: summary, tabs, predictions, stats, h2h/form,
   events/timeline, lineups, odds, standings, missing players,
   modal, mobile responsive.

   Replace: public/css/match.css
========================================================= */

:root {
    --sp-bg: #0b0e13;
    --sp-bg-soft: #0f1117;
    --sp-card: #10141a;
    --sp-card-2: #111820;
    --sp-card-3: #141920;
    --sp-row: rgba(255, 255, 255, 0.035);
    --sp-row-2: rgba(255, 255, 255, 0.055);
    --sp-line: rgba(255, 255, 255, 0.08);
    --sp-line-2: rgba(255, 255, 255, 0.12);
    --sp-yellow: #f5a623;
    --sp-yellow-2: #ffbf3c;
    --sp-green: #22c55e;
    --sp-green-2: #16a34a;
    --sp-red: #ef4444;
    --sp-blue: #3b82f6;
    --sp-purple: #8b5cf6;
    --sp-text: #ffffff;
    --sp-muted: #a7b0bd;
    --sp-soft: #7f8a99;
    --sp-radius: 14px;
    --sp-radius-sm: 10px;
    --sp-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body.sp-body {
    background: var(--sp-bg);
    color: var(--sp-text);
}

/* =========================================================
   GLOBAL MATCH LAYOUT
========================================================= */

.sp-match-layout {
    width: 100%;
    max-width: none;
    margin: 0;
}

.sp-match-main {
    width: 100%;
    max-width: none;
    min-width: 0;
}


.match-box,
.pred-clean-box,
.fs-form-wrapper,
.timeline-box,
.sp-match-panel,
.pp-pro-table-card,
.pp-pro-analysis-card,
.pp-pro-season-card,
.pp-pro-text-analysis-card,
.odds-market,
.lineup-col,
.lineup-pitch-wrap,
.pp-standings-wrap,
.prediction-modal-card {
    background:
        radial-gradient(circle at top right, rgba(245, 166, 35, 0.055), transparent 34%),
        linear-gradient(180deg, var(--sp-card-3) 0%, var(--sp-card) 100%) !important;
    border: 1px solid var(--sp-line) !important;
    border-radius: var(--sp-radius) !important;
    box-shadow: var(--sp-shadow) !important;
    color: var(--sp-text) !important;
}

.match-box,
.pred-clean-box,
.fs-form-wrapper,
.pp-pro-table-card,
.pp-pro-analysis-card,
.pp-pro-season-card,
.pp-pro-text-analysis-card,
.sp-match-panel {
    padding: 18px;
    margin-bottom: 16px;
}

.match-box h3,
.pred-clean-head h3,
.pp-pro-pred-head h1,
.pp-pro-block-title,
.pp-pro-section-head h2,
.sp-match-section-title,
.pp-section-title,
.odds-title,
.odds-section-title {
    color: #ffffff !important;
    font-weight: 950;
    letter-spacing: -0.02em;
    font-size:16px;
}

.pp-pro-pred-head p,
.pp-pro-section-head p,
.summary-venue,
.summary-referee,
.pred-clean-empty,
.fs-form-empty,
.lineup-empty,
.pp-pro-text-box p,
.pp-pro-key-stats-card p {
    color: var(--sp-muted) !important;
}

/* =========================================================
   MATCH SUMMARY / HERO
========================================================= */

.match-summary-header {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 250px;
    padding: 28px 30px 22px !important;
    margin: 0 0 12px !important;
    border-radius: 16px !important;
    background:
        linear-gradient(180deg, rgba(9, 14, 20, 0.20), rgba(9, 14, 20, 0.62)),
        radial-gradient(circle at center, rgba(245, 166, 35, 0.10), transparent 28%),
        linear-gradient(135deg, #111820 0%, #0b1118 52%, #15110a 100%) !important;
    border: 1px solid rgba(245, 166, 35, 0.24) !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28) !important;
    text-align: center;
}

.match-summary-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.08), transparent 18%),
        radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.07), transparent 20%),
        linear-gradient(90deg, transparent 0%, rgba(245, 166, 35, 0.07) 50%, transparent 100%);
    opacity: 0.95;
}

.summary-league,
.summary-league-country,
.summary-league-top,
.summary-kickoff-under-league,
.summary-country {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 0 10px;
    color: var(--sp-yellow) !important;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.summary-kickoff-under-league {
    display: block;
    color: #d7dce4 !important;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}

.summary-top {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    width: 100%;
}

.summary-team,
.summary-team-right,
.summary-team-home,
.summary-team-away {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.summary-team-logo {
    width: 78px;
    height: 78px;
    object-fit: contain;
    border-radius: 50%;
    padding: 9px;
    background: rgba(17, 24, 32, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 0 34px rgba(245, 166, 35, 0.16);
}

.summary-team-name {
    max-width: 230px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 950;
    line-height: 1.12;
    text-align: center;
}

.summary-center-main {
    width: 210px;
    min-width: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.summary-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    min-height: 28px;
    padding: 0 14px;
    margin: 0 auto 9px;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.12) !important;
    border: 1px solid rgba(245, 166, 35, 0.34) !important;
    color: var(--sp-yellow) !important;
    font-size: 12px;
    font-weight: 950;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.summary-status.pp-status-live,
.summary-status.is-live-blink,
.pp-status-live {
    color: #ffffff !important;
    background: rgba(239, 68, 68, 0.86) !important;
    border-color: rgba(239, 68, 68, 0.8) !important;
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.35) !important;
    animation: spLiveBlink 1s infinite;
}

@keyframes spLiveBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.58; }
}

.summary-scoreline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    color: #ffffff;
    font-size: 54px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.38);
}

.summary-scoreline.is-time {
    font-size: 38px;
    color: #ffffff;
}

.summary-scoreline.is-score .js-home-score,
.summary-scoreline.is-score .js-away-score {
    font-size: 58px;
    font-weight: 950;
}

.summary-score-sep,
.summary-sep {
    color: #ffffff;
    opacity: 0.86;
    font-weight: 950;
}

.summary-meta-lines,
.summary-meta-below {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    color: var(--sp-muted);
}

.summary-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #d8dee8 !important;
    font-size: 12px;
    font-weight: 850;
}

.summary-chip strong {
    color: #ffffff;
}

/* =========================================================
   TABS NAVIGATION
========================================================= */

.modern-match-tabs,
.match-subtabs,
.pp-pro-tabs,
.sp-match-tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 56px !important;
    padding: 0 12px !important;
    margin: 0 0 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 13px !important;
    background: linear-gradient(180deg, #111820 0%, #0d1218 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.20) !important;
}

.modern-match-tabs::-webkit-scrollbar,
.match-subtabs::-webkit-scrollbar,
.pp-pro-tabs::-webkit-scrollbar,
.sp-match-tabs::-webkit-scrollbar {
    display: none;
}

.match-subtab,
.pp-pro-tabs .match-subtab,
.modern-match-tabs .match-subtab,
.match-subtabs .match-subtab,
.fs-form-tab {
    position: relative;
    flex: 0 0 auto !important;
    min-width: max-content !important;
    min-height: 56px !important;
    padding: 0 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #cbd3df !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.01em !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: color 0.18s ease, background 0.18s ease;
}

.match-subtab:hover,
.pp-pro-tabs .match-subtab:hover,
.modern-match-tabs .match-subtab:hover,
.match-subtabs .match-subtab:hover,
.fs-form-tab:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.035) !important;
    transform: none !important;
}

.match-subtab.active,
.pp-pro-tabs .match-subtab.active,
.modern-match-tabs .match-subtab.active,
.match-subtabs .match-subtab.active,
.fs-form-tab.active {
    color: var(--sp-yellow) !important;
    background: rgba(245, 166, 35, 0.055) !important;
}

.match-subtab.active::after,
.pp-pro-tabs .match-subtab.active::after,
.modern-match-tabs .match-subtab.active::after,
.match-subtabs .match-subtab.active::after,
.fs-form-tab.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--sp-yellow);
    box-shadow: 0 0 16px rgba(245, 166, 35, 0.45);
}

.match-tab-content {
    width: 100%;
    min-width: 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: spTabFade 0.22s ease;
}

@keyframes spTabFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   PREDICTIONS TAB - ALL MARKETS DESIGN
========================================================= */

.pp-pro-pred-dashboard {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    color: #ffffff;
}

.pp-pro-pred-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.pp-pro-pred-head h1,
.sp-all-markets-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 950;
}

.sp-section-kicker,
.pp-pro-market-title,
.pred-clean-label,
.pred-clean-card-title {
    color: var(--sp-yellow) !important;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pp-pro-odds-select,
.odds-select,
.prediction-field select {
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    background: #111820 !important;
    color: #ffffff !important;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 850;
    outline: 0;
}

.sp-all-markets-card,
.pp-pro-table-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-color: rgba(245, 166, 35, 0.22) !important;
}

.sp-all-markets-card::before,
.pp-pro-table-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.16), transparent 65%);
    pointer-events: none;
}

.sp-all-markets-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.sp-market-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.22);
    color: var(--sp-yellow);
    font-size: 12px;
    font-weight: 950;
}

.sp-market-filters,
.dropdown-markets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0 14px;
}

.sp-market-filters button,
.sp-market-filters a,
.dropdown-markets button,
.dropdown-markets a,
.pred-show-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.045);
    color: #d7dde7;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.sp-market-filters .active,
.sp-market-filters button:hover,
.dropdown-markets .active,
.dropdown-markets button:hover,
.pred-show-more:hover {
    background: var(--sp-yellow) !important;
    color: #111111 !important;
    border-color: rgba(245, 166, 35, 0.65) !important;
}

.pp-pro-table-wrap,
.pp-standings-table-wrap,
.pp-pro-season-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
}

.pp-pro-markets-table,
.pp-standings-table,
.pp-pro-season-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.pp-pro-markets-table th,
.pp-standings-table th,
.pp-pro-season-table th {
    padding: 13px 14px;
    text-align: left;
    color: var(--sp-yellow) !important;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(245, 166, 35, 0.055) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
}

.pp-pro-markets-table td,
.pp-standings-table td,
.pp-pro-season-table td {
    padding: 13px 14px;
    color: #e5eaf2;
    font-size: 13px;
    font-weight: 800;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065) !important;
}

.pp-pro-markets-table tr:hover,
.pp-standings-table tbody tr:hover,
.pp-pro-season-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.pp-pro-prob-cell {
    display: grid;
    grid-template-columns: 44px minmax(80px, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 160px;
}

.pp-pro-prob-cell span {
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
}

.pp-pro-prob-cell div,
.pp-pro-card-bar,
.pred-modern-bar,
.pp-pro-xg-bar,
.pp-pro-key-row div,
.stats-bar-track,
.pressure-bar,
.pro-mini-bar {
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.09);
}

.pp-pro-prob-cell i,
.pp-pro-card-bar i,
.pred-modern-bar i,
.pp-pro-xg-bar i,
.pp-pro-key-row div i,
.stats-bar-home,
.stats-shot-home,
.pressure-bar i,
.pro-mini-bar i {
    display: block;
    height: 100%;
    max-width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sp-green), var(--sp-green-2)) !important;
}

.pp-pro-odd-pill,
.odd-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12) !important;
    color: var(--sp-green) !important;
    font-size: 12px;
    font-weight: 950;
}

.pp-pro-odd-pill.empty {
    background: rgba(255, 255, 255, 0.07) !important;
    color: var(--sp-muted) !important;
}

.pp-pro-analysis-icon {
    color: var(--sp-yellow);
    font-size: 15px;
}

/* =========================
   STANDINGS PRO ZONES
========================= */

.sp-standings-pro {
    overflow: hidden;
}

.sp-standings-table-pro th,
.sp-standings-table-pro td {
    white-space: nowrap;
}

.sp-standings-team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
}

.sp-team-tag,
.standing-zone-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.sp-team-tag-home {
    color: #064e3b;
    background: #dcfce7;
    border: 1px solid rgba(134, 239, 172, .75);
}

.sp-team-tag-away {
    color: #1e3a8a;
    background: #dbeafe;
    border: 1px solid rgba(147, 197, 253, .75);
}

.zone-cl {
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.35);
    border: 1px solid rgba(96, 165, 250, 0.45);
}

.zone-el {
    color: #ecfccb;
    background: rgba(101, 163, 13, 0.30);
    border: 1px solid rgba(132, 204, 22, 0.45);
}

.zone-conf {
    color: #cffafe;
    background: rgba(8, 145, 178, 0.30);
    border: 1px solid rgba(34, 211, 238, 0.40);
}

.zone-promotion {
    color: #dcfce7;
    background: rgba(22, 163, 74, 0.32);
    border: 1px solid rgba(34, 197, 94, 0.45);
}

.zone-playoff {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.28);
    border: 1px solid rgba(245, 158, 11, 0.45);
}

.zone-relegation {
    color: #fee2e2;
    background: rgba(220, 38, 38, 0.35);
    border: 1px solid rgba(248, 113, 113, 0.45);
}

.sp-current-home-row {
    background: linear-gradient(90deg, rgba(22, 163, 74, .18), rgba(22, 163, 74, .06)) !important;
}

.sp-current-away-row {
    background: linear-gradient(90deg, rgba(37, 99, 235, .18), rgba(37, 99, 235, .06)) !important;
}

.zone-promotion-row .pp-rank-badge,
.rank-zone-promotion {
    background: linear-gradient(180deg, #16a34a, #15803d);
    color: #fff;
}

.zone-playoff-row .pp-rank-badge,
.rank-zone-playoff {
    background: linear-gradient(180deg, #f5a623, #d97706);
    color: #111;
}

.zone-relegation-row .pp-rank-badge,
.rank-zone-relegation {
    background: linear-gradient(180deg, #ef4444, #b91c1c);
    color: #fff;
}

.zone-cl-row .pp-rank-badge,
.rank-zone-cl {
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    color: #fff;
}

.zone-el-row .pp-rank-badge,
.rank-zone-el {
    background: linear-gradient(180deg, #65a30d, #4d7c0f);
    color: #fff;
}

.zone-conf-row .pp-rank-badge,
.rank-zone-conf {
    background: linear-gradient(180deg, #0891b2, #0e7490);
    color: #fff;
}

.sp-standings-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #aeb8c7;
    font-size: 12px;
    font-weight: 800;
}

.sp-standings-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sp-standings-legend i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.legend-promotion {
    background: #22c55e;
}

.legend-playoff {
    background: #f5a623;
}

.legend-relegation {
    background: #ef4444;
}

.legend-home,
.legend-away {
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 10px;
}

.legend-home {
    color: #064e3b;
    background: #dcfce7;
}

.legend-away {
    color: #1e3a8a;
    background: #dbeafe;
}

@media (max-width: 760px) {
    .pp-standings-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sp-standings-team-cell {
        min-width: 210px;
    }

    .sp-standings-table-pro th,
    .sp-standings-table-pro td {
        font-size: 11px;
        padding: 10px 8px;
    }

    .standing-zone-badge,
    .sp-team-tag {
        font-size: 9px;
        padding: 3px 7px;
    }
}


/* Old prediction cards still supported if rendered */
.pred-clean-main,
.pred-clean-card,
.pred-clean-section,
.pred-modern-card,
.pm-item,
.pred-clean-row,
.pred-clean-prob,
.pp-pro-market-card,
.pp-pro-mini-options div,
.pred-modern-meta,
.pp-pro-text-box,
.goal-trend-card,
.goal-trend-team-card,
.pp-pro-season-team,
.odd-box {
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 12px !important;
}

.pred-clean-tip,
.pred-modern-tip,
.pp-pro-market-option {
    color: #ffffff;
    font-weight: 950;
}

.create-prediction-btn,
.save-pick-login,
.prediction-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(245, 166, 35, 0.45) !important;
    background: var(--sp-yellow) !important;
    color: #111111 !important;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
    cursor: pointer;
}

.create-prediction-btn.closed {
    opacity: 0.55;
    cursor: not-allowed;
}

.vote-buttons-row,
.pred-vote,
.pp-pro-vote {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.vote-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    border: 0;
    background: rgba(245, 166, 35, 0.12) !important;
    color: var(--sp-yellow) !important;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.vote-btn:hover {
    background: var(--sp-yellow) !important;
    color: #111111 !important;
}

.vote-stats,
.vote-closed {
    width: 100%;
    color: var(--sp-muted);
    font-size: 12px;
    font-weight: 800;
}

.vote-closed {
    color: var(--sp-red);
}

/* =========================================================
   RIGHT/INSIDE ANALYTICS CARDS
========================================================= */

.pp-pro-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
}

.pp-pro-side-analysis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pp-pro-recent-form-card,
.pp-pro-key-stats-card {
    grid-column: 1 / -1;
}

.pp-pro-block-title {
    padding: 0 0 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 15px;
}

.pp-pro-distribution-body {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.pp-pro-donut,
.donut {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background:
        radial-gradient(circle closest-side, var(--sp-card) 62%, transparent 63%),
        conic-gradient(var(--sp-green) 0 45%, var(--sp-yellow) 45% 70%, var(--sp-blue) 70% 100%);
}

.pp-pro-legend {
    display: grid;
    gap: 8px;
}

.pp-pro-legend div {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    color: #dce3ed;
    font-size: 12px;
    font-weight: 850;
}

.pp-pro-legend span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sp-green);
}

.pp-pro-legend span.draw { background: var(--sp-yellow); }
.pp-pro-legend span.away { background: var(--sp-blue); }
.pp-pro-legend strong { color: #ffffff; }

.pp-pro-xg-row,
.pp-pro-form-row,
.pp-pro-key-row {
    display: grid;
    align-items: center;
    gap: 12px;
}

.pp-pro-xg-row {
    grid-template-columns: 1fr auto;
    margin-top: 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.pp-pro-form-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pp-pro-form-row:last-child {
    border-bottom: 0;
}

.pp-pro-form-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.pp-pro-form-team img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
    background: #111820;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pp-pro-form-team strong {
    min-width: 0;
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pp-pro-form-badges {
    display: flex;
    gap: 4px;
}

.pp-pro-form-badges span,
.pp-form-badge,
.fs-result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 5px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 950;
}

.pp-pro-form-badges span:nth-child(3),
.pp-form-draw,
.fs-result-draw {
    background: #fa9f19 !important;
    color: #ffffff !important;
}

.pp-pro-form-badges span:nth-child(4),
.pp-form-loss,
.fs-result-loss {
    background: var(--sp-red) !important;
}

.fs-result-win,
.pp-form-win {
    background: var(--sp-green) !important;
}

.pp-pro-key-row {
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    margin-bottom: 13px;
}

.pp-pro-key-row strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
}

.pp-pro-key-row strong:last-child {
    text-align: right;
}

.pp-pro-key-row div {
    display: grid;
    grid-template-rows: auto 7px;
    gap: 6px;
    height: auto;
    background: transparent;
}

.pp-pro-key-row div span {
    display: block;
    position: static;
    text-align: center;
    color: #cbd3df;
    font-size: 11px;
    font-weight: 900;
}

/* =========================================================
   STATS TAB - DESIGN 5 / CIRCULAR + BARS
========================================================= */

.sp-stats-v5-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 18px;
    background:
        radial-gradient(circle at left center, rgba(34, 197, 94, 0.10), transparent 28%),
        radial-gradient(circle at right center, rgba(239, 68, 68, 0.10), transparent 28%),
        linear-gradient(180deg, #111820 0%, #0c1118 100%);
    border: 1px solid rgba(245, 166, 35, 0.22);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.sp-stats-v5-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background:
        linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 58px,
            rgba(255,255,255,0.025) 59px,
            transparent 60px
        );
    pointer-events: none;
}

.sp-stats-v5-card > * {
    position: relative;
    z-index: 1;
}

.sp-stats-v5-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.sp-stats-v5-team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.sp-stats-v5-team.away {
    justify-content: flex-end;
    text-align: right;
}

.sp-stats-v5-team img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
    padding: 6px;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-stats-v5-team strong {
    color: #ffffff;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-stats-v5-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sp-stats-v5-title span {
    display: block;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245,166,35,0.65), transparent);
}

.sp-stats-v5-title h2 {
    margin: 0;
    color: #f5a623;
    font-size: 22px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.sp-stats-v5-body {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 210px;
    gap: 28px;
    align-items: center;
}

.sp-stats-v5-side {
    display: grid;
    gap: 16px;
    justify-items: center;
}

.sp-stats-v5-side.away {
    justify-items: center;
}

/* circles */
.sp-stats-circle {
    --value: 50;
    --color: #22c55e;

    width: 170px;
    height: 170px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        conic-gradient(
            var(--color) calc(var(--value) * 1%),
            rgba(255,255,255,0.10) 0
        );
    box-shadow:
        0 0 34px rgba(34, 197, 94, 0.12),
        inset 0 0 0 1px rgba(255,255,255,0.04);
    position: relative;
}

.sp-stats-circle.away {
    --color: #ef4444;
    box-shadow:
        0 0 34px rgba(239, 68, 68, 0.12),
        inset 0 0 0 1px rgba(255,255,255,0.04);
}

.sp-stats-circle::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.04), transparent 60%),
        #0c1118;
}

.sp-stats-circle > div {
    position: relative;
    z-index: 1;
    text-align: center;
}

.sp-stats-circle strong {
    display: block;
    color: #ffffff;
    font-size: 38px;
    line-height: 1;
    font-weight: 950;
}

.sp-stats-circle span {
    display: block;
    margin-top: 8px;
    color: #aeb8c7;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.sp-stats-circle.small {
    width: 120px;
    height: 120px;
}

.sp-stats-circle.small::before {
    inset: 11px;
}

.sp-stats-circle.small strong {
    font-size: 27px;
}

.sp-stats-circle.small span {
    font-size: 10px;
    line-height: 1.2;
}

/* center rows */
.sp-stats-v5-center {
    display: grid;
    gap: 0;
}

.sp-stats-v5-row {
    display: grid;
    grid-template-columns: 56px minmax(70px, 1fr) 190px minmax(70px, 1fr) 56px;
    gap: 14px;
    align-items: center;
    min-height: 44px;
    border-bottom: 1px solid rgba(255,255,255,0.075);
}

.sp-stats-v5-row:last-child {
    border-bottom: 0;
}

.sp-stats-v5-value {
    color: #ffffff;
    font-size: 17px;
    font-weight: 950;
}

.sp-stats-v5-value.home {
    text-align: right;
}

.sp-stats-v5-value.away {
    text-align: left;
}

.sp-stats-v5-label {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: #ffffff;
    min-width: 0;
}

.sp-stats-v5-label span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #e5e7eb;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    font-size: 14px;
}

.sp-stats-v5-label em {
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 850;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-stats-v5-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.09);
    overflow: hidden;
    display: flex;
}

.sp-stats-v5-bar.left {
    justify-content: flex-end;
}

.sp-stats-v5-bar.right {
    justify-content: flex-start;
}

.sp-stats-v5-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.sp-stats-v5-bar.left i {
    background: linear-gradient(90deg, #16a34a, #22c55e);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.22);
}

.sp-stats-v5-bar.right i {
    background: linear-gradient(90deg, #ef4444, #fb7185);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.22);
}

.sp-stats-v5-empty {
    min-height: 160px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #a7b0bd;
    background: rgba(255,255,255,0.025);
    border: 1px dashed rgba(255,255,255,0.12);
    font-size: 13px;
    font-weight: 850;
}

/* responsive */
@media (max-width: 1200px) {
    .sp-stats-v5-body {
        grid-template-columns: 150px minmax(0, 1fr) 150px;
        gap: 18px;
    }

    .sp-stats-circle {
        width: 140px;
        height: 140px;
    }

    .sp-stats-circle strong {
        font-size: 32px;
    }

    .sp-stats-circle.small {
        width: 105px;
        height: 105px;
    }

    .sp-stats-v5-row {
        grid-template-columns: 48px minmax(60px, 1fr) 160px minmax(60px, 1fr) 48px;
    }
}

@media (max-width: 900px) {
    .sp-stats-v5-head {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sp-stats-v5-team,
    .sp-stats-v5-team.away {
        justify-content: center;
        text-align: center;
    }

    .sp-stats-v5-title {
        justify-content: center;
    }

    .sp-stats-v5-title span {
        width: 70px;
    }

    .sp-stats-v5-body {
        grid-template-columns: 1fr;
    }

    .sp-stats-v5-side,
    .sp-stats-v5-side.away {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-items: center;
    }
}

@media (max-width: 640px) {
    .sp-stats-v5-card {
        padding: 15px;
    }

    .sp-stats-v5-title h2 {
        font-size: 16px;
    }

    .sp-stats-v5-title span {
        display: none;
    }

    .sp-stats-v5-side,
    .sp-stats-v5-side.away {
        grid-template-columns: 1fr;
    }

    .sp-stats-circle {
        width: 150px;
        height: 150px;
    }

    .sp-stats-v5-row {
        grid-template-columns: 42px minmax(46px, 1fr) minmax(105px, 1.2fr) minmax(46px, 1fr) 42px;
        gap: 7px;
        min-height: 42px;
    }

    .sp-stats-v5-label {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 6px;
    }

    .sp-stats-v5-label span {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .sp-stats-v5-label em {
        font-size: 11px;
    }

    .sp-stats-v5-value {
        font-size: 12px;
    }
}
/* =========================
   8. FORM / H2H ROWS - SOCCERPREDICTION STYLE
========================= */

.fs-form-wrapper,
.sp-h2h-tab-box {
    background:
        radial-gradient(circle at top right, rgba(245, 166, 35, 0.06), transparent 32%),
        linear-gradient(180deg, #141920 0%, #10141a 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18) !important;
}

.fs-form-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.fs-form-tabs::-webkit-scrollbar {
    display: none;
}

.fs-form-tab {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #111820;
    color: #cbd5e1;
    padding: 0 15px;
    min-height: 36px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: 0.18s ease;
}

.fs-form-tab:hover,
.fs-form-tab.active {
    background: #f5a623;
    color: #111111;
    border-color: rgba(245, 166, 35, 0.55);
}

.fs-form-pane {
    display: none;
}

.fs-form-pane.active {
    display: block;
    animation: matchFadeIn 0.22s ease;
}

.fs-form-list-box {
    margin-bottom: 18px;
}

.fs-form-list-box:last-child {
    margin-bottom: 0;
}

.fs-form-list-title {
    background: rgba(255, 255, 255, 0.045);
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    padding: 10px 13px;
    border-radius: 9px;
    margin-bottom: 6px;
    letter-spacing: 0.035em;
    border: 1px solid rgba(255, 255, 255, 0.055);
}

.fs-match-row {
    display: grid;
    grid-template-columns: 82px 48px minmax(0, 1fr) 48px 36px;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background: rgba(255, 255, 255, 0.018);
    transition: 0.18s ease;
}

.fs-match-row:hover {
    background: rgba(245, 166, 35, 0.045);
}

.fs-match-row:last-of-type {
    border-bottom: 0;
}

.fs-col-date {
    font-size: 12px;
    color: #8ea2c8;
    font-weight: 800;
}

.fs-col-comp {
    font-size: 12px;
    color: #cbd5e1;
    font-weight: 950;
}

.fs-col-teams {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.fs-team-line {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.fs-team-logo {
    width: 17px;
    height: 17px;
    object-fit: contain;
    flex: 0 0 auto;
    border-radius: 3px;
}

.fs-team-name {
    font-size: 13px;
    color: #d7dee9;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fs-team-name-main {
    color: #ffffff;
    font-weight: 950;
}

.fs-col-score {
    display: grid;
    gap: 5px;
    justify-items: center;
}

.fs-score-line {
    font-size: 14px;
    font-weight: 950;
    color: #ffffff;
    line-height: 1;
}

.fs-col-result {
    display: flex;
    justify-content: flex-end;
}

.fs-result-badge {
    width: 25px;
    height: 25px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 950;
    color: #ffffff;
}

.fs-result-win {
    background: #22c55e;
}

.fs-result-draw {
    background: #fa9f19;
    color: #111111;
}

.fs-result-loss {
    background: #ef4444;
}

.fs-hidden-match {
    display: none !important;
}

.fs-show-more {
    width: 100%;
    display: block;
    border: 0;
    background: transparent;
    color: #9fb0cf;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    padding: 12px 8px;
    cursor: pointer;
}

.fs-show-more:hover {
    color: #f5a623;
}

.fs-form-empty {
    padding: 14px;
    font-size: 13px;
    color: #9fb0cf;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.025);
}

/* Mobile H2H/Form rows */
@media (max-width: 768px) {
    .fs-form-wrapper,
    .sp-h2h-tab-box {
        padding: 13px !important;
        border-radius: 12px !important;
    }

    .fs-form-tab {
        min-height: 34px;
        padding: 0 13px;
        font-size: 11px;
    }

    .fs-form-list-title {
        font-size: 11px;
        padding: 9px 11px;
    }

    .fs-match-row {
        grid-template-columns: 54px 32px minmax(0, 1fr) 32px 28px;
        gap: 7px;
        min-height: 54px;
        padding: 9px 7px;
    }

    .fs-col-date,
    .fs-col-comp {
        font-size: 10px;
    }

    .fs-team-logo {
        width: 14px;
        height: 14px;
    }

    .fs-team-name {
        font-size: 11px;
    }

    .fs-score-line {
        font-size: 12px;
    }

    .fs-result-badge {
        width: 22px;
        height: 22px;
        border-radius: 6px;
        font-size: 10px;
    }
}

@media (max-width: 420px) {
    .fs-match-row {
        grid-template-columns: 48px 26px minmax(0, 1fr) 28px 24px;
        gap: 5px;
    }

    .fs-team-name {
        font-size: 10.5px;
    }
}
/* =========================================================
   EVENTS TAB - MODERN MATCH EVENTS LIST
========================================================= */

.sp-events-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(245, 166, 35, 0.08), transparent 32%),
        linear-gradient(180deg, #131a22 0%, #0e141b 100%);
    border: 1px solid rgba(245, 166, 35, 0.22);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.sp-events-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(245, 166, 35, 0.06), transparent 22%, transparent 78%, rgba(245, 166, 35, 0.05));
    pointer-events: none;
}

.sp-events-card > * {
    position: relative;
    z-index: 1;
}

.sp-events-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.sp-events-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
}

.sp-events-head p {
    margin: 5px 0 0;
    color: #a7b0bd;
    font-size: 12px;
    font-weight: 700;
}

.sp-events-score {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.24);
}

.sp-events-score span {
    color: #aeb8c7;
    font-size: 11px;
    font-weight: 850;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-events-score strong {
    color: #f5a623;
    font-size: 14px;
    font-weight: 950;
}

.sp-events-board {
    overflow: hidden;
    border-radius: 14px;
    background: rgba(3, 7, 12, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.sp-events-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.035);
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.sp-events-teams strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sp-events-teams strong:last-child {
    text-align: right;
}

.sp-events-teams span {
    text-align: center;
    color: #f5a623;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sp-events-half {
    padding: 0;
}

.sp-events-half-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.055);
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.sp-events-half-title span {
    color: #dbe4ef;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.sp-events-half-title strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 950;
}

.sp-events-list {
    display: grid;
}

.sp-event-row {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 54px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    transition: 0.18s ease;
}

.sp-event-row:last-child {
    border-bottom: 0;
}

.sp-event-row:hover {
    background: rgba(245, 166, 35, 0.035);
}

.sp-event-minute {
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
}

.sp-event-home,
.sp-event-away {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-event-away {
    justify-content: flex-end;
    text-align: right;
}

.sp-event-home > div,
.sp-event-away > div {
    min-width: 0;
}

.sp-event-home strong,
.sp-event-away strong {
    display: inline;
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
}

.sp-event-home small,
.sp-event-away small {
    display: inline;
    margin-left: 5px;
    color: #a7b0bd;
    font-size: 12px;
    font-weight: 700;
}

.sp-event-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-event-center span {
    min-width: 48px;
    height: 28px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 13px;
    font-weight: 950;
}

.sp-event-center i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.sp-event-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 9px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 14px;
    font-weight: 950;
}

.sp-event-row.goal .sp-event-icon {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.28);
}

.sp-event-row.yellow .sp-event-icon {
    background: #f5a623;
    border-color: rgba(245, 166, 35, 0.65);
}

.sp-event-row.yellow .sp-event-icon::before {
    content: "";
    width: 10px;
    height: 16px;
    border-radius: 2px;
    background: #ffd24d;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}

.sp-event-row.red .sp-event-icon {
    background: #ef4444;
    border-color: rgba(239, 68, 68, 0.65);
}

.sp-event-row.red .sp-event-icon::before {
    content: "";
    width: 10px;
    height: 16px;
    border-radius: 2px;
    background: #ff4d4d;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}

.sp-event-row.sub .sp-event-icon {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.22);
}

.sp-event-row.var .sp-event-icon {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.30);
    font-size: 10px;
}

.sp-events-empty {
    min-height: 140px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #a7b0bd;
    background: rgba(255, 255, 255, 0.025);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 850;
}

/* Mobile */
@media (max-width: 760px) {
    .sp-events-card {
        padding: 14px;
    }

    .sp-events-head {
        flex-direction: column;
    }

    .sp-events-score {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .sp-events-teams {
        grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
        padding: 12px;
    }

    .sp-event-row {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 8px;
        padding: 11px 10px;
    }

    .sp-event-center {
        grid-column: 1 / -1;
        order: 4;
        justify-content: flex-start;
        padding-left: 50px;
    }

    .sp-event-home,
    .sp-event-away {
        justify-content: flex-start;
        text-align: left;
    }

    .sp-event-away {
        flex-direction: row-reverse;
    }

    .sp-event-home:empty,
    .sp-event-away:empty {
        display: none;
    }

    .sp-event-home small,
    .sp-event-away small {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }
}

/* =========================================================
   LINEUPS TAB - DESIGN 3 / NO 500 SAFE CLASSES
========================================================= */

.sp-lineup3-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 18px;
    background:
        radial-gradient(circle at left center, rgba(59, 130, 246, 0.10), transparent 32%),
        radial-gradient(circle at right center, rgba(245, 166, 35, 0.11), transparent 32%),
        linear-gradient(180deg, #111820 0%, #0c1118 100%);
    border: 1px solid rgba(245, 166, 35, 0.22);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.sp-lineup3-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.025), transparent);
    pointer-events: none;
}

.sp-lineup3-card > * {
    position: relative;
    z-index: 1;
}

.sp-lineup3-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sp-lineup3-team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.sp-lineup3-team.away {
    justify-content: flex-end;
    text-align: right;
}

.sp-lineup3-team img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 50%;
    padding: 6px;
    background: rgba(0,0,0,0.24);
    border: 1px solid rgba(255,255,255,0.08);
}

.sp-lineup3-team strong {
    display: block;
    color: #ffffff;
    font-size: 21px;
    font-weight: 950;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-lineup3-team span {
    display: block;
    margin-top: 5px;
    color: #f5a623;
    font-size: 13px;
    font-weight: 950;
}

.sp-lineup3-team span small {
    display: block;
    margin-top: 2px;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 750;
}

.sp-lineup3-center-title {
    min-height: 58px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 14px;
    background: rgba(245, 166, 35, 0.075);
    border: 1px solid rgba(245, 166, 35, 0.22);
}

.sp-lineup3-center-title span {
    color: #f5a623;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sp-lineup3-center-title strong {
    margin-top: 3px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
}

.sp-lineup3-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 300px;
    align-items: stretch;
}

/* lists */
.sp-lineup3-list {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025));
    border: 1px solid rgba(255,255,255,0.075);
}

.sp-lineup3-list.home {
    border-left: 3px solid #3b82f6;
}

.sp-lineup3-list.away {
    border-right: 3px solid #f5a623;
}

.sp-lineup3-list-head {
    min-height: 42px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sp-lineup3-list-head.subs {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.sp-lineup3-list-head strong {
    min-width: 0;
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-lineup3-list-head span {
    color: #9ca3af;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.sp-lineup3-rows {
    display: grid;
}

.sp-lineup3-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 34px;
    gap: 9px;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.055);
}

.sp-lineup3-row:last-child {
    border-bottom: 0;
}

.sp-lineup3-row.sub {
    min-height: 34px;
    opacity: 0.92;
}

.sp-lineup3-num {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
}

.sp-lineup3-num.home {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
}

.sp-lineup3-num.away {
    color: #111111;
    background: linear-gradient(180deg, #f5a623, #f59e0b);
}

.sp-lineup3-player-text {
    min-width: 0;
}

.sp-lineup3-player-text strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-lineup3-pos {
    color: #9ca3af;
    font-size: 11px;
    font-weight: 850;
    text-align: right;
}

.sp-lineup3-events,
.sp-lineup3-pitch-events {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.sp-ln-event-badge {
    min-height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 10px;
    font-weight: 850;
}

.sp-lineup3-empty {
    padding: 16px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.sp-lineup3-empty.big {
    min-height: 170px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,0.025);
    border: 1px dashed rgba(255,255,255,0.12);
}

/* center vertical pitch */
.sp-lineup3-pitch {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    border-radius: 16px;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(22, 101, 52, 0.98) 0,
            rgba(22, 101, 52, 0.98) 54px,
            rgba(20, 83, 45, 0.98) 54px,
            rgba(20, 83, 45, 0.98) 108px
        );
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.05),
        inset 0 0 80px rgba(0,0,0,0.30);
}

.sp-lineup3-pitch::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.04), transparent 42%, rgba(0,0,0,0.10));
    pointer-events: none;
}

.sp-lineup3-pitch-lines span {
    position: absolute;
    pointer-events: none;
}

.sp-pitch-border {
    inset: 18px;
    border: 2px solid rgba(255,255,255,0.36);
    border-radius: 10px;
}

.sp-pitch-half {
    left: 18px;
    right: 18px;
    top: 50%;
    height: 2px;
    background: rgba(255,255,255,0.34);
}

.sp-pitch-circle {
    width: 126px;
    height: 126px;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(255,255,255,0.28);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.sp-pitch-dot {
    width: 8px;
    height: 8px;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    transform: translate(-50%, -50%);
}

.sp-pitch-home-box,
.sp-pitch-away-box {
    left: 50%;
    width: 230px;
    height: 86px;
    border: 2px solid rgba(255,255,255,0.28);
    transform: translateX(-50%);
}

.sp-pitch-home-box {
    top: 18px;
    border-top: 0;
}

.sp-pitch-away-box {
    bottom: 18px;
    border-bottom: 0;
}

.sp-pitch-home-six,
.sp-pitch-away-six {
    left: 50%;
    width: 112px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.25);
    transform: translateX(-50%);
}

.sp-pitch-home-six {
    top: 18px;
    border-top: 0;
}

.sp-pitch-away-six {
    bottom: 18px;
    border-bottom: 0;
}

/* pitch players */
.sp-lineup3-pitch-player {
    position: absolute;
    z-index: 3;
    width: 86px;
    text-align: center;
    transform: translate(-50%, -50%);
}

.sp-lineup3-player-dot {
    position: relative;
    width: 38px;
    height: 38px;
    margin: 0 auto 6px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow:
        0 10px 22px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.20);
}

.sp-lineup3-player-dot.home {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    border: 1px solid rgba(147,197,253,0.55);
}

.sp-lineup3-player-dot.away {
    background: linear-gradient(180deg, #f5a623, #f59e0b);
    border: 1px solid rgba(253,230,138,0.70);
}

.sp-lineup3-player-dot span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
}

.sp-lineup3-player-dot.away span {
    color: #111111;
}

.sp-lineup3-pitch-player strong {
    display: block;
    color: #ffffff;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 950;
    text-shadow: 0 2px 6px rgba(0,0,0,0.75);
}

.sp-lineup3-rating {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 30px;
    height: 18px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #111111;
    background: #f5a623;
    font-size: 10px;
    font-weight: 950;
    z-index: 5;
}

.sp-lineup3-pitch-events {
    position: absolute;
    top: -4px;
    right: 8px;
    flex-direction: column;
}

.sp-lineup3-pitch-events .sp-ln-event-badge {
    min-width: 18px;
    min-height: 18px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,0.60);
    font-size: 9px;
}

/* legend */
.sp-lineup3-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.07);
}

.sp-lineup3-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 800;
}

.sp-lineup3-legend i {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
}

.sp-lineup3-legend i.home {
    background: #3b82f6;
}

.sp-lineup3-legend i.away {
    background: #f5a623;
}

/* responsive */
@media (max-width: 1350px) {
    .sp-lineup3-grid {
        grid-template-columns: 260px minmax(0, 1fr) 260px;
    }

    .sp-lineup3-pitch {
        min-height: 610px;
    }
}

@media (max-width: 1100px) {
    .sp-lineup3-grid {
        grid-template-columns: 1fr;
    }

    .sp-lineup3-pitch {
        order: 1;
        min-height: 620px;
    }

    .sp-lineup3-list.home {
        order: 2;
    }

    .sp-lineup3-list.away {
        order: 3;
    }

    .sp-lineup3-head {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sp-lineup3-team,
    .sp-lineup3-team.away {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 700px) {
    .sp-lineup3-card {
        padding: 14px;
    }

    .sp-lineup3-pitch {
        min-height: 540px;
    }

    .sp-lineup3-pitch-player {
        width: 68px;
    }

    .sp-lineup3-player-dot {
        width: 30px;
        height: 30px;
    }

    .sp-lineup3-player-dot span {
        font-size: 12px;
    }

    .sp-lineup3-pitch-player strong {
        font-size: 9px;
    }

    .sp-pitch-circle {
        width: 88px;
        height: 88px;
    }

    .sp-pitch-home-box,
    .sp-pitch-away-box {
        width: 170px;
        height: 66px;
    }

    .sp-pitch-home-six,
    .sp-pitch-away-six {
        width: 82px;
        height: 34px;
    }

    .sp-lineup3-team strong {
        font-size: 18px;
    }

    .sp-lineup3-row {
        grid-template-columns: 30px minmax(0, 1fr) 30px;
    }
}

@media (max-width: 480px) {
    .sp-lineup3-pitch {
        min-height: 490px;
    }

    .sp-lineup3-pitch-player {
        width: 58px;
    }

    .sp-lineup3-player-dot {
        width: 27px;
        height: 27px;
    }

    .sp-lineup3-pitch-player strong {
        font-size: 8px;
    }
}


/* =========================================================
   ODDS TAB - ACCORDION STYLE DESIGN 6
========================================================= */

.sp-odds-acc {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(245, 166, 35, 0.09), transparent 32%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 30%),
        linear-gradient(180deg, #111820 0%, #0c1118 100%);
    border: 1px solid rgba(245, 166, 35, 0.22);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.sp-odds-acc::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.025), transparent);
    pointer-events: none;
}

.sp-odds-acc > * {
    position: relative;
    z-index: 1;
}

.sp-odds-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.sp-odds-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    margin-bottom: 8px;
    border-radius: 999px;
    color: #f5a623;
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.22);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.sp-odds-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: 26px;
    font-weight: 950;
    line-height: 1.05;
}

.sp-odds-head p {
    margin: 7px 0 0;
    color: #aeb8c7;
    font-size: 13px;
    font-weight: 700;
}

.sp-odds-head p strong {
    color: #f5a623;
}

.sp-odds-controls {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sp-odds-controls label {
    display: grid;
    gap: 6px;
}

.sp-odds-controls label > span {
    color: #aeb8c7;
    font-size: 11px;
    font-weight: 850;
}

.sp-odds-select {
    min-width: 210px;
    height: 40px;
    padding: 0 13px;
    border-radius: 11px;
    background: #111a24;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.10);
    outline: none;
    font-size: 13px;
    font-weight: 850;
}

.sp-odds-select:focus {
    border-color: rgba(245, 166, 35, 0.45);
}

.sp-odds-bookmaker-panel {
    display: none;
}

.sp-odds-market-list {
    display: grid;
    gap: 10px;
}

.sp-odds-acc-item {
    overflow: hidden;
    border-radius: 15px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.075);
    transition: 0.18s ease;
}

.sp-odds-acc-item:hover {
    border-color: rgba(245, 166, 35, 0.24);
}

.sp-odds-acc-item.active {
    border-color: rgba(245, 166, 35, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sp-odds-acc-toggle {
    width: 100%;
    min-height: 62px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.4fr) 34px;
    gap: 14px;
    align-items: center;
    border: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    text-align: left;
}

.sp-odds-market-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-odds-market-left i {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #f5a623;
    background: rgba(245, 166, 35, 0.09);
    border: 1px solid rgba(245, 166, 35, 0.22);
    font-style: normal;
    font-size: 16px;
}

.sp-odds-market-left strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-odds-market-left em {
    display: block;
    margin-top: 3px;
    color: #9ca3af;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.sp-odds-market-preview {
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    overflow: hidden;
}

.sp-odds-market-preview small {
    min-width: 74px;
    padding: 7px 9px;
    border-radius: 10px;
    color: #aeb8c7;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.sp-odds-market-preview small b {
    display: block;
    color: #22c55e;
    font-size: 13px;
    font-weight: 950;
    margin-top: 2px;
}

.sp-odds-chevron {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #f5a623;
    background: rgba(245, 166, 35, 0.07);
    border: 1px solid rgba(245, 166, 35, 0.16);
    font-size: 18px;
    transition: 0.18s ease;
}

.sp-odds-acc-item.active .sp-odds-chevron {
    transform: rotate(180deg);
}

.sp-odds-acc-body {
    display: none;
    padding: 0 14px 14px;
}

.sp-odds-acc-item.active .sp-odds-acc-body {
    display: block;
}

.sp-odds-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.sp-odd-pill {
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 12px;
    display: grid;
    align-content: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.065);
    text-align: center;
    transition: 0.18s ease;
}

.sp-odd-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 166, 35, 0.30);
}

.sp-odd-pill span {
    color: #aeb8c7;
    font-size: 12px;
    font-weight: 850;
}

.sp-odd-pill strong {
    color: #22c55e;
    font-size: 18px;
    font-weight: 950;
}

.sp-odd-pill.home {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.16);
}

.sp-odd-pill.draw {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.16);
}

.sp-odd-pill.draw strong {
    color: #60a5fa;
}

.sp-odd-pill.away {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.16);
}

.sp-odd-pill.away strong {
    color: #fb7185;
}

.sp-odd-pill.neutral strong {
    color: #22c55e;
}

.sp-odd-hidden {
    display: none;
}

.sp-odds-view-all {
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #f5a623;
    background:
        linear-gradient(180deg, rgba(245, 166, 35, 0.08), rgba(245, 166, 35, 0.035));
    border: 1px solid rgba(245, 166, 35, 0.28);
    cursor: pointer;
    font-size: 13px;
    font-weight: 950;
    transition: 0.18s ease;
}

.sp-odds-view-all:hover {
    background:
        linear-gradient(180deg, rgba(245, 166, 35, 0.14), rgba(245, 166, 35, 0.06));
    border-color: rgba(245, 166, 35, 0.42);
    transform: translateY(-1px);
}

.sp-odds-view-all span {
    font-size: 18px;
    line-height: 1;
}

.sp-odds-view-all.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.12);
}

.sp-odds-empty {
    min-height: 150px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #a7b0bd;
    background: rgba(255, 255, 255, 0.025);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 850;
}

/* Mobile */
@media (max-width: 850px) {
    .sp-odds-head {
        flex-direction: column;
    }

    .sp-odds-controls {
        width: 100%;
        justify-content: stretch;
    }

    .sp-odds-controls label,
    .sp-odds-select {
        width: 100%;
        min-width: 0;
    }

    .sp-odds-acc-toggle {
        grid-template-columns: minmax(0, 1fr) 34px;
    }

    .sp-odds-market-preview {
        grid-column: 1 / -1;
        justify-content: flex-start;
        flex-wrap: wrap;
        order: 2;
    }

    .sp-odds-chevron {
        grid-column: 2;
        grid-row: 1;
    }

    .sp-odds-values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .sp-odds-acc {
        padding: 14px;
    }

    .sp-odds-head h2 {
        font-size: 22px;
    }

    .sp-odds-acc-toggle {
        padding: 11px;
    }

    .sp-odds-values {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   STANDINGS TAB
========================================================= */

.pp-standings-wrap,
.sp-match-panel {
    padding: 18px;
}

.pp-standings-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pp-standings-table {
    min-width: 780px;
}

.pp-col-rank { width: 52px; }
.pp-col-team { min-width: 230px; }
.pp-col-form { min-width: 120px; }

.pp-team-cell,
.pp-team-link {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #ffffff;
    text-decoration: none;
}

.pp-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.pp-team-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 950;
}

.pp-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
}

.pp-rank-cl { background: rgba(34,197,94,.18); color: var(--sp-green); }
.pp-rank-el { background: rgba(59,130,246,.18); color: #60a5fa; }
.pp-rank-ecl { background: rgba(139,92,246,.18); color: #a78bfa; }
.pp-rank-relegation { background: rgba(239,68,68,.18); color: #f87171; }

.pp-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
}

.pp-badge-green { background: rgba(34,197,94,.16); color: var(--sp-green); }
.pp-badge-blue { background: rgba(59,130,246,.16); color: #60a5fa; }
.pp-pts { color: var(--sp-yellow) !important; font-weight: 950 !important; }
.pp-form-list { display: flex; gap: 4px; }

.pp-match-standing-home,
.pp-match-standing-away {
    background: rgba(245, 166, 35, 0.08) !important;
}

/* =========================================================
   SEASON STATS + TEXT ANALYSIS
========================================================= */

.pp-pro-full-extra {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.pp-pro-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.pp-pro-section-head h2 {
    margin: 0;
    font-size: 19px;
}

.pp-pro-season-teams {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.pp-pro-season-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 58px;
    padding: 12px;
}

.pp-pro-season-team.away {
    justify-content: flex-end;
    text-align: right;
}

.pp-pro-season-team img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.pp-pro-season-team strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
}

.pp-pro-season-team span {
    color: var(--sp-muted);
    font-size: 12px;
    font-weight: 850;
}

.pp-pro-season-table th,
.pp-pro-season-table td {
    text-align: center;
}

.pp-pro-season-value {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.pp-pro-season-value.away {
    grid-template-columns: minmax(0, 1fr) 48px;
}

.pp-pro-season-value strong {
    color: #ffffff;
    font-weight: 950;
}

.pp-pro-season-value.away strong { text-align: right; }
.pp-pro-season-value span { height: 7px; border-radius: 999px; background: rgba(255,255,255,.09); overflow: hidden; }
.pp-pro-season-value i { display: block; height: 100%; border-radius: 999px; background: var(--sp-green); }
.pp-pro-season-value.away i { background: var(--sp-purple); margin-left: auto; }
.pp-pro-season-label { color: #dce3ed; font-size: 13px; font-weight: 950; }

.pp-pro-analysis-text-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pp-pro-text-box-main { grid-column: 1 / -1; }
.pp-pro-text-box { padding: 14px; }
.pp-pro-text-box span { display: block; margin-bottom: 7px; color: var(--sp-yellow); font-size: 11px; font-weight: 950; text-transform: uppercase; letter-spacing: .05em; }
.pp-pro-text-box p { margin: 0; line-height: 1.65; font-size: 13px; }
.pp-pro-insights-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.pp-pro-insights-list div { padding: 10px 12px; border-radius: 11px; background: rgba(245,166,35,.06); border: 1px solid rgba(245,166,35,.12); color: #ffe0a8; font-size: 12px; font-weight: 850; }

/* =========================================================
   MISSING PLAYERS TAB
========================================================= */

.missing-card,
.missing-list,
.missing-team-box {
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    padding: 14px;
    color: #ffffff;
}

/* =========================================================
   MODAL + TOAST
========================================================= */

.prediction-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.prediction-modal.active { display: flex; }
.prediction-modal-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.72); backdrop-filter: blur(8px); }
.prediction-modal-card { position: relative; z-index: 2; width: min(420px, 100%); padding: 20px; }
.prediction-modal-close { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; border-radius: 999px; border: 0; background: rgba(255,255,255,.08); color: #ffffff; cursor: pointer; font-size: 22px; }
.prediction-modal-head span { color: var(--sp-yellow); font-size: 11px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.prediction-modal-head h3 { margin: 7px 0 8px; color: #ffffff; font-size: 24px; font-weight: 950; }
.prediction-modal-head p { margin: 0 0 16px; color: var(--sp-muted); font-size: 13px; line-height: 1.5; }
.prediction-field { display: grid; gap: 7px; margin-bottom: 13px; }
.prediction-field span { color: #dce3ed; font-size: 12px; font-weight: 900; }
.pp-toast { position: fixed; right: 20px; bottom: 20px; z-index: 10000; padding: 12px 14px; border-radius: 12px; background: var(--sp-card); border: 1px solid var(--sp-line); color: #ffffff; box-shadow: var(--sp-shadow); }

/* =========================================================
   MOBILE RESPONSIVE
========================================================= */

@media (max-width: 1200px) {
    .modern-match-page,
    .sp-match-main .modern-match-page {
        padding: 18px 18px 36px !important;
    }

    .pp-pro-side-analysis,
    .stats-bars-grid {
        grid-template-columns: 1fr;
    }

    .summary-top {
        grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
    }

    .summary-center-main {
        width: 180px;
        min-width: 180px;
    }
}

@media (max-width: 900px) {
    .modern-match-page,
    .sp-match-main .modern-match-page {
        padding: 14px 12px 28px !important;
    }

    .match-summary-header {
        min-height: auto;
        padding: 18px 14px 16px !important;
    }

    .summary-top {
        grid-template-columns: minmax(0, 1fr) 118px minmax(0, 1fr);
        gap: 10px;
    }

    .summary-center-main {
        width: 118px;
        min-width: 118px;
    }

    .summary-team-logo {
        width: 52px;
        height: 52px;
        padding: 5px;
    }

    .summary-team-name {
        max-width: 120px;
        font-size: 14px;
    }

    .summary-scoreline,
    .summary-scoreline.is-score .js-home-score,
    .summary-scoreline.is-score .js-away-score {
        font-size: 32px;
    }

    .summary-scoreline.is-time {
        font-size: 20px;
    }

    .modern-match-tabs,
    .match-subtabs,
    .pp-pro-tabs,
    .sp-match-tabs {
        min-height: 52px !important;
        padding: 0 8px !important;
        margin-bottom: 12px !important;
    }

    .match-subtab,
    .pp-pro-tabs .match-subtab,
    .modern-match-tabs .match-subtab,
    .match-subtabs .match-subtab,
    .fs-form-tab {
        min-height: 52px !important;
        padding: 0 13px !important;
        font-size: 11px !important;
    }

    .pp-pro-markets-table,
    .pp-standings-table,
    .pp-pro-season-table {
        min-width: 640px;
    }

    .lineup-lists,
    .pro-stats-teams-row,
    .goal-trends-teams-row,
    .pro-played-row,
    .goals-summary-pro,
    .goal-trend-two-cols,
    .pp-pro-season-teams,
    .pp-pro-analysis-text-grid,
    .pp-pro-insights-list {
        grid-template-columns: 1fr;
    }

    .timeline-head {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .timeline-home-name,
    .timeline-away-name {
        text-align: center;
    }

    .stats-shot-row {
        grid-template-columns: 74px minmax(0, 1fr) 74px;
    }
}

@media (max-width: 768px) {
    .match-box,
    .pred-clean-box,
    .fs-form-wrapper,
    .timeline-box,
    .sp-match-panel,
    .pp-pro-table-card,
    .pp-pro-analysis-card,
    .pp-pro-season-card,
    .pp-pro-text-analysis-card,
    .odds-market {
        padding: 14px;
        border-radius: 12px !important;
    }

    .sp-market-filters,
    .dropdown-markets {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .sp-market-filters::-webkit-scrollbar,
    .dropdown-markets::-webkit-scrollbar { display: none; }

    /* All markets becomes compact cards */
    .pp-pro-table-wrap {
        overflow: hidden;
    }

    .pp-pro-markets-table {
        min-width: 0 !important;
    }

    .pp-pro-markets-table thead {
        display: none !important;
    }

    .pp-pro-markets-table,
    .pp-pro-markets-table tbody {
        display: block !important;
        width: 100% !important;
    }

    .pp-pro-markets-table tr {
        display: grid !important;
        grid-template-columns: minmax(90px, 1fr) minmax(110px, 1.15fr) 54px !important;
        gap: 8px !important;
        align-items: center !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.075) !important;
    }

    .pp-pro-markets-table td {
        display: block !important;
        padding: 0 !important;
        border: 0 !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    .pp-pro-markets-table td:nth-child(1) { display: none !important; }
    .pp-pro-markets-table td:nth-child(2) { grid-column: 1 !important; overflow: hidden; text-overflow: ellipsis; }
    .pp-pro-markets-table td:nth-child(3) { grid-column: 2 !important; }
    .pp-pro-markets-table td:nth-child(4) { grid-column: 3 !important; text-align: right; }
    .pp-pro-markets-table td:nth-child(5),
    .pp-pro-analysis-icon { display: none !important; }

    .pp-pro-prob-cell {
        display: flex;
        gap: 6px;
        min-width: 0;
    }

    .pp-pro-prob-cell span {
        flex: 0 0 38px;
        font-size: 11px;
    }

    .pp-pro-prob-cell div {
        min-width: 34px;
        flex: 1;
    }

    .fs-match-row {
        grid-template-columns: 50px 26px minmax(0, 1fr) 32px 28px;
        gap: 6px;
        padding: 9px 6px;
    }

    .fs-col-date,
    .fs-col-comp,
    .fs-team-name,
    .event-player,
    .event-team {
        font-size: 11px;
    }

    .lineup-pitch-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pitch-head,
    .lineup-pitch {
        min-width: 760px;
    }

    .lineup-pitch {
        min-height: 500px;
    }

    .odds-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .modern-match-page,
    .sp-match-main .modern-match-page {
        padding: 10px 8px 24px !important;
    }

    .summary-top {
        grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
        gap: 7px;
    }

    .summary-center-main {
        width: 86px;
        min-width: 86px;
    }

    .summary-team-logo {
        width: 42px;
        height: 42px;
    }

    .summary-team-name {
        max-width: 84px;
        font-size: 11px;
    }

    .summary-scoreline,
    .summary-scoreline.is-score .js-home-score,
    .summary-scoreline.is-score .js-away-score {
        font-size: 26px;
    }

    .summary-status {
        min-width: 52px;
        min-height: 24px;
        font-size: 10px;
    }

    .pp-pro-distribution-body,
    .pp-pro-key-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pp-pro-key-row strong,
    .pp-pro-key-row strong:last-child {
        text-align: center;
    }

    .odds-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   SEASON STATISTICS + KEY STATS - CLEAN NEW DESIGN
========================================================= */

.sp-after-predictions-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
    gap: 14px;
    margin-top: 14px;
    align-items: start;
}

.sp-side-stats-stack {
    display: grid;
    gap: 14px;
    align-content: start;
}

/* SEASON CARD */

.sp-season-pro-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(245, 166, 35, 0.10), transparent 32%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.10), transparent 34%),
        linear-gradient(180deg, #111820 0%, #0c1118 100%);
    border: 1px solid rgba(245, 166, 35, 0.22);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.sp-season-pro-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.025) 50%, transparent 100%),
        radial-gradient(circle at 50% 0%, rgba(245, 166, 35, 0.055), transparent 38%);
    pointer-events: none;
}

.sp-season-pro-card > * {
    position: relative;
    z-index: 1;
}

.sp-season-pro-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.sp-season-pro-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.sp-season-pro-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #f5a623;
    background: rgba(245, 166, 35, 0.10);
    border: 1px solid rgba(245, 166, 35, 0.30);
    font-size: 22px;
    box-shadow: 0 14px 32px rgba(245, 166, 35, 0.10);
}

.sp-season-pro-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 950;
}

.sp-season-pro-head p {
    margin: 6px 0 0;
    color: #aeb8c7;
    font-size: 13px;
    font-weight: 700;
}

.sp-season-pro-pill {
    flex: 0 0 auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 999px;
    color: #f5a623;
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.28);
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.sp-season-pro-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.sp-season-pro-team {
    min-width: 0;
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 40%),
        rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.sp-season-pro-team.away {
    justify-content: flex-end;
    text-align: right;
}

.sp-season-pro-team img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.24);
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-season-pro-team strong {
    display: block;
    color: #ffffff;
    font-size: 17px;
    font-weight: 950;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-season-pro-team span {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.18);
    font-size: 11px;
    font-weight: 950;
}

.sp-season-pro-team.away span {
    color: #f5a623;
    background: rgba(245, 166, 35, 0.10);
    border-color: rgba(245, 166, 35, 0.22);
}

.sp-season-pro-vs {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #111111;
    background: linear-gradient(180deg, #f6b23a 0%, #f5a623 100%);
    border: 1px solid rgba(245, 166, 35, 0.75);
    font-size: 13px;
    font-weight: 950;
    box-shadow:
        0 0 0 8px rgba(245, 166, 35, 0.05),
        0 14px 30px rgba(245, 166, 35, 0.16);
}

.sp-season-pro-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 15px;
}

.sp-season-pro-strip > div {
    min-width: 0;
    padding: 12px 8px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
}

.sp-season-pro-strip span {
    display: block;
    color: #f5a623;
    font-size: 16px;
    line-height: 1;
    margin-bottom: 6px;
}

.sp-season-pro-strip strong {
    display: block;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    font-weight: 950;
}

.sp-season-pro-strip small {
    display: block;
    margin-top: 6px;
    color: #9ca3af;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
}

.sp-season-pro-list {
    overflow: hidden;
    border-radius: 16px;
    background: rgba(3, 7, 12, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.sp-season-pro-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: 0.18s ease;
}

.sp-season-pro-row:last-child {
    border-bottom: 0;
}

.sp-season-pro-row:hover {
    background: rgba(245, 166, 35, 0.035);
}

.sp-season-pro-row > strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
}

.sp-season-pro-row > strong:last-child {
    text-align: right;
}

.sp-season-pro-mid {
    min-width: 0;
}

.sp-season-pro-mid span {
    display: block;
    color: #dbe4ef;
    font-size: 12px;
    font-weight: 950;
    text-align: center;
    margin-bottom: 7px;
}

.sp-season-pro-bar,
.sp-key-bar {
    display: flex;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.sp-season-pro-bar i,
.sp-key-bar i {
    display: block;
    height: 100%;
}

.sp-season-pro-bar .home,
.sp-key-bar .home {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.sp-season-pro-bar .away,
.sp-key-bar .away {
    background: linear-gradient(90deg, #f5a623 0%, #f59e0b 100%);
}

/* RIGHT CARDS */

.sp-key-card,
.sp-mini-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(245, 166, 35, 0.07), transparent 32%),
        linear-gradient(180deg, #111820 0%, #0c1118 100%);
    border: 1px solid rgba(245, 166, 35, 0.20);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sp-section-head h2,
.sp-mini-head h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 950;
}

.sp-section-head p,
.sp-mini-head span {
    margin: 5px 0 0;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
    display: block;
}

.sp-key-stats-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.sp-key-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.sp-key-row:last-child {
    border-bottom: 0;
}

.sp-key-row > strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
}

.sp-key-row > strong:last-child {
    text-align: right;
}

.sp-key-row span {
    display: block;
    color: #dbe4ef;
    font-size: 11px;
    font-weight: 950;
    text-align: center;
    margin-bottom: 6px;
}

/* MINI CARDS */

.sp-mini-head {
    margin-bottom: 14px;
}

.sp-mini-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.sp-mini-badge,
.sp-mini-metrics > div {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.sp-mini-badge small,
.sp-mini-metrics small {
    display: block;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 5px;
}

.sp-mini-badge strong,
.sp-mini-metrics strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
}

.sp-mini-insight-list {
    display: grid;
    gap: 10px;
}

.sp-mini-insight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-mini-label {
    color: #dbe4ef;
    font-size: 12px;
    font-weight: 800;
}

.sp-mini-value {
    color: #f5a623;
    font-size: 12px;
    font-weight: 950;
    text-align: right;
}

.sp-mini-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.sp-mini-note {
    margin: 0;
    padding: 12px 13px;
    border-radius: 12px;
    color: #dbe4ef;
    background: rgba(245, 166, 35, 0.05);
    border: 1px solid rgba(245, 166, 35, 0.12);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
}

/* RESPONSIVE */

@media (max-width: 1200px) {
    .sp-after-predictions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .sp-season-pro-head {
        flex-direction: column;
    }

    .sp-season-pro-teams {
        grid-template-columns: 1fr;
    }

    .sp-season-pro-vs {
        margin: 0 auto;
    }

    .sp-season-pro-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-mini-badges,
    .sp-mini-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .sp-season-pro-card,
    .sp-key-card,
    .sp-mini-card {
        padding: 15px;
    }

    .sp-season-pro-row,
    .sp-key-row {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 8px;
        padding: 11px 8px;
    }

    .sp-season-pro-row > strong,
    .sp-key-row > strong {
        font-size: 12px;
    }

    .sp-season-pro-mid span,
    .sp-key-row span {
        font-size: 10px;
    }
}
/* =========================================================
   SOCCERPREDICTION - MODERN AI PREDICTIONS DESIGN
   For: resources/views/partials/match/predictions.blade.php
========================================================= */

.sp-prediction-showcase {
    width: 100%;
    min-width: 0;
}

.sp-ai-markets-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 22px;
    background:
        radial-gradient(circle at top left, rgba(245, 166, 35, 0.10), transparent 32%),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 30%),
        linear-gradient(180deg, #111820 0%, #0c1118 100%);
    border: 1px solid rgba(245, 166, 35, 0.22);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.sp-ai-markets-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.025) 50%, transparent 100%),
        radial-gradient(circle at 50% 0%, rgba(245, 166, 35, 0.06), transparent 38%);
    pointer-events: none;
}

.sp-ai-markets-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.sp-ai-markets-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 950;
}

.sp-ai-markets-header p {
    margin: 7px 0 0;
    color: #aeb8c7;
    font-size: 13px;
    font-weight: 700;
}

.sp-ai-model-pill {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: #f5a623;
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.28);
    font-size: 12px;
    font-weight: 950;
}

.sp-ai-market-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.35fr);
    gap: 16px;
    align-items: stretch;
}

/* =========================
   TOP AI PICK CARD
========================= */

.sp-ai-top-pick {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 72% 32%, rgba(245, 166, 35, 0.20), transparent 34%),
        linear-gradient(160deg, rgba(245, 166, 35, 0.08), transparent 48%),
        linear-gradient(180deg, #131a22 0%, #0c1118 100%);
    border: 1px solid rgba(245, 166, 35, 0.55);
    box-shadow:
        0 0 0 1px rgba(245, 166, 35, 0.08),
        0 24px 60px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.sp-ai-top-pick::before {
    content: "";
    position: absolute;
    right: -40px;
    top: 40px;
    width: 250px;
    height: 250px;
    opacity: 0.14;
    background:
        radial-gradient(circle, rgba(245,166,35,0.95), transparent 54%);
    filter: blur(2px);
}

.sp-ai-top-pick::after {
    content: "";
    position: absolute;
    right: 28px;
    top: 80px;
    width: 190px;
    height: 190px;
    opacity: 0.16;
    background:
        linear-gradient(135deg, transparent 25%, rgba(245,166,35,0.45) 26%, transparent 27%),
        linear-gradient(45deg, transparent 25%, rgba(245,166,35,0.35) 26%, transparent 27%);
    background-size: 26px 26px;
    border-radius: 50%;
}

.sp-top-pick-badge {
    position: relative;
    z-index: 2;
    width: fit-content;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    color: #f5a623;
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.38);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.sp-ai-card-market {
    position: relative;
    z-index: 2;
    color: #aeb8c7;
    font-size: 14px;
    font-weight: 850;
    text-transform: uppercase;
    margin-bottom: 9px;
}

.sp-ai-top-pick h3 {
    position: relative;
    z-index: 2;
    max-width: 260px;
    margin: 0 0 26px;
    color: #ffffff;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 950;
}

.sp-ai-top-body {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sp-ai-top-body span,
.sp-ai-top-metrics span,
.sp-ai-card-stats span {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.sp-ai-top-body strong {
    display: inline-block;
    color: #22c55e;
    font-size: 38px;
    line-height: 1;
    font-weight: 950;
    margin-right: 12px;
}

.sp-ai-top-body em {
    color: #22c55e;
    font-size: 13px;
    font-style: normal;
    font-weight: 850;
}

.sp-ai-top-metrics {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sp-ai-top-metrics > div {
    min-width: 0;
    padding: 0 16px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.sp-ai-top-metrics > div:first-child {
    padding-left: 0;
}

.sp-ai-top-metrics > div:last-child {
    border-right: 0;
    padding-right: 0;
}

.sp-ai-top-metrics strong {
    color: #f5a623;
    font-size: 22px;
    font-weight: 950;
}

.sp-ai-top-metrics > div:nth-child(2) strong {
    color: #22c55e;
}

.sp-ai-main-btn {
    position: relative;
    z-index: 2;
    margin-top: 22px;
    min-height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #111111;
    background: linear-gradient(180deg, #f6b23a 0%, #f5a623 100%);
    border: 1px solid rgba(245, 166, 35, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 950;
    box-shadow: 0 14px 34px rgba(245, 166, 35, 0.18);
}

.sp-ai-main-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/* =========================
   SECONDARY MARKET CARDS
========================= */

.sp-ai-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sp-ai-market-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    border-radius: 14px;
    padding: 18px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 38%),
        linear-gradient(180deg, #131b25 0%, #0d131c 100%);
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 18px 42px rgba(0,0,0,0.16);
    transition: 0.18s ease;
}

.sp-ai-market-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 166, 35, 0.30);
}

.sp-ai-market-card::before {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 12px;
    width: 110px;
    height: 110px;
    opacity: 0.08;
    border-radius: 28px;
    background: rgba(255,255,255,0.7);
    transform: rotate(-10deg);
}

.sp-ai-card-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.sp-ai-card-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(245,166,35,0.35), rgba(245,166,35,0.10));
    border: 1px solid rgba(245,166,35,0.28);
    font-size: 20px;
}

.sp-ai-card-top span:not(.sp-ai-card-icon) {
    display: block;
    color: #aeb8c7;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.sp-ai-card-top strong {
    display: block;
    color: #ffffff;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.22;
}

.sp-ai-card-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 90px;
    gap: 12px;
    align-items: end;
}

.sp-ai-card-stats strong {
    display: block;
    color: #22c55e;
    font-size: 20px;
    font-weight: 950;
}

.sp-ai-card-stats > div:last-child strong {
    color: #ffffff;
}

.sp-ai-progress {
    position: relative;
    z-index: 2;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.11);
    overflow: hidden;
    margin-top: 12px;
}

.sp-ai-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.28);
}

/* background mood by market */
.sp-card-bg-ball {
    background:
        radial-gradient(circle at 78% 35%, rgba(245, 166, 35, 0.20), transparent 34%),
        linear-gradient(180deg, #131b25 0%, #0d131c 100%);
}

.sp-card-bg-goal {
    background:
        radial-gradient(circle at 78% 35%, rgba(59, 130, 246, 0.22), transparent 34%),
        linear-gradient(180deg, #131b25 0%, #0d131c 100%);
}

.sp-card-bg-ball-blue {
    background:
        radial-gradient(circle at 78% 35%, rgba(37, 99, 235, 0.25), transparent 34%),
        linear-gradient(180deg, #131b25 0%, #0d131c 100%);
}

.sp-card-bg-corner {
    background:
        radial-gradient(circle at 78% 35%, rgba(245, 166, 35, 0.20), transparent 34%),
        linear-gradient(180deg, #131b25 0%, #0d131c 100%);
}

.sp-card-bg-clock {
    background:
        radial-gradient(circle at 78% 35%, rgba(14, 165, 233, 0.20), transparent 34%),
        linear-gradient(180deg, #131b25 0%, #0d131c 100%);
}

.sp-card-bg-score {
    background:
        radial-gradient(circle at 78% 35%, rgba(59, 130, 246, 0.22), transparent 34%),
        linear-gradient(180deg, #131b25 0%, #0d131c 100%);
}

.sp-card-bg-card {
    background:
        radial-gradient(circle at 78% 35%, rgba(239, 68, 68, 0.18), transparent 34%),
        linear-gradient(180deg, #131b25 0%, #0d131c 100%);
}

/* =========================
   AI SUMMARY
========================= */

.sp-ai-insight-summary {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
    gap: 18px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 14px;
    background:
        radial-gradient(circle at left, rgba(34,197,94,0.08), transparent 30%),
        linear-gradient(180deg, #111820 0%, #0d131c 100%);
    border: 1px solid rgba(255,255,255,0.08);
}

.sp-ai-summary-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.sp-ai-summary-icon {
    width: 54px;
    height: 54px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(245,166,35,0.10);
    border: 1px solid rgba(245,166,35,0.24);
    font-size: 24px;
}

.sp-ai-summary-main h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 950;
}

.sp-ai-summary-main p {
    margin: 7px 0 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.45;
}

.sp-ai-summary-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-left: 1px solid rgba(255,255,255,0.08);
}

.sp-ai-summary-metrics > div {
    padding: 0 18px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.sp-ai-summary-metrics > div:last-child {
    border-right: 0;
}

.sp-ai-summary-metrics span {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 850;
    margin-bottom: 6px;
}

.sp-ai-summary-metrics strong {
    display: block;
    color: #22c55e;
    font-size: 23px;
    font-weight: 950;
}

.sp-ai-summary-metrics em {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
    margin-top: 4px;
}

.sp-ai-empty {
    min-height: 180px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #9ca3af;
    border: 1px dashed rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.025);
    font-weight: 850;
}

/* ================================
   SEASON + KEY STATS
================================ */

.sp-after-predictions-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    gap: 14px;
    margin-top: 14px;
}

.sp-season-card,
.sp-key-card {
    background:
        radial-gradient(circle at top right, rgba(245, 166, 35, 0.06), transparent 34%),
        linear-gradient(180deg, #141920 0%, #10141a 100%);
    border: 1px solid rgba(245, 166, 35, 0.18);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.sp-section-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 950;
}

.sp-section-head p {
    margin: 5px 0 0;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
}

.sp-season-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 18px 0;
}

.sp-season-teams > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.sp-season-teams > div:last-child {
    justify-content: flex-end;
    text-align: right;
}

.sp-season-teams img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.sp-season-teams strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-season-teams > span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    color: #f5a623;
    background: rgba(245, 166, 35, 0.10);
    border: 1px solid rgba(245, 166, 35, 0.24);
    font-size: 11px;
    font-weight: 950;
}

.sp-season-table,
.sp-key-stats-list {
    display: grid;
    gap: 9px;
}

.sp-season-row,
.sp-key-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) 74px;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.sp-season-row:last-child,
.sp-key-row:last-child {
    border-bottom: 0;
}

.sp-season-row > strong,
.sp-key-row > strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
}

.sp-season-row > strong:last-child,
.sp-key-row > strong:last-child {
    text-align: right;
}

.sp-season-row span,
.sp-key-row span {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 850;
    text-align: center;
    margin-bottom: 6px;
}

.sp-season-bar,
.sp-key-bar {
    display: flex;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.sp-season-bar i,
.sp-key-bar i {
    display: block;
    height: 100%;
}

.sp-season-bar .home,
.sp-key-bar .home {
    background: #22c55e;
}

.sp-season-bar .away,
.sp-key-bar .away {
    background: #f5a623;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1250px) {
    .sp-ai-market-grid {
        grid-template-columns: 1fr;
    }

    .sp-ai-top-pick {
        min-height: 330px;
    }
}

@media (max-width: 1100px) {
    .sp-ai-insight-summary,
    .sp-after-predictions-grid {
        grid-template-columns: 1fr;
    }

    .sp-ai-summary-metrics {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,0.08);
        padding-top: 14px;
    }
}

@media (max-width: 760px) {
    .sp-ai-markets-card {
        padding: 15px;
        border-radius: 14px;
    }

    .sp-ai-markets-header {
        flex-direction: column;
    }

    .sp-ai-markets-header h2 {
        font-size: 22px;
    }

    .sp-ai-secondary-grid {
        grid-template-columns: 1fr;
    }

    .sp-ai-top-pick {
        min-height: auto;
        padding: 18px;
    }

    .sp-ai-top-pick h3 {
        font-size: 28px;
    }

    .sp-ai-top-body strong {
        font-size: 32px;
    }

    .sp-ai-top-metrics {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sp-ai-top-metrics > div {
        padding: 0 0 12px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .sp-ai-top-metrics > div:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .sp-ai-card-stats {
        grid-template-columns: 1fr 80px;
    }

    .sp-ai-insight-summary {
        padding: 14px;
    }

    .sp-ai-summary-main {
        align-items: flex-start;
    }

    .sp-ai-summary-metrics {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sp-ai-summary-metrics > div {
        padding: 0 0 12px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .sp-ai-summary-metrics > div:last-child {
        border-bottom: 0;
    }

    .sp-season-teams {
        grid-template-columns: 1fr;
    }

    .sp-season-teams > span {
        margin: 0 auto;
    }

    .sp-season-row,
    .sp-key-row {
        grid-template-columns: 56px minmax(0, 1fr) 56px;
        gap: 8px;
    }
}


/* =========================================================
   MOBILE MATCH PAGE FINAL FIX
   Compact match header + optimized events
========================================================= */

@media (max-width: 600px) {

    .modern-match-page,
    .sp-match-main .modern-match-page {
        padding: 8px 6px 22px !important;
    }

    .match-summary-header {
        min-height: auto !important;
        padding: 14px 10px 14px !important;
        margin-bottom: 10px !important;
        border-radius: 14px !important;
    }

    .summary-kickoff-under-league {
        width: fit-content !important;
        max-width: 100% !important;
        margin: 0 auto 8px !important;
        padding: 7px 10px !important;
        border-radius: 9px !important;
        background: rgba(255,255,255,.06) !important;
        border: 1px solid rgba(255,255,255,.10) !important;
        color: #fff !important;
        font-size: 10px !important;
        font-weight: 900 !important;
        line-height: 1.15 !important;
        text-align: center !important;
    }

    .summary-league,
    .summary-league-country,
    .summary-league-top,
    .summary-country {
        margin-bottom: 8px !important;
        font-size: 9px !important;
        line-height: 1.25 !important;
        gap: 4px !important;
        flex-wrap: wrap !important;
    }

    /* Match in one row */
    .summary-top {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) !important;
        gap: 6px !important;
        align-items: center !important;
        width: 100% !important;
    }

    .summary-team,
    .summary-team-right,
    .summary-team-home,
    .summary-team-away {
        gap: 5px !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .summary-team-logo {
        width: 40px !important;
        height: 40px !important;
        padding: 4px !important;
        margin: 0 !important;
    }

    .summary-team-name {
        max-width: 100% !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
        min-height: 22px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: normal !important;
    }

    .summary-center-main {
        width: 76px !important;
        min-width: 76px !important;
    }

    .summary-status {
        min-width: 44px !important;
        min-height: 20px !important;
        height: 20px !important;
        padding: 0 9px !important;
        margin: 0 auto 6px !important;
        font-size: 8px !important;
        line-height: 1 !important;
        border-radius: 999px !important;
    }

    .summary-scoreline,
    .summary-scoreline.is-score .js-home-score,
    .summary-scoreline.is-score .js-away-score {
        font-size: 24px !important;
        line-height: 1 !important;
        gap: 6px !important;
    }

    .summary-scoreline.is-time {
        font-size: 18px !important;
    }

    .summary-bottom,
    .summary-meta-lines,
    .summary-meta-below {
        margin-top: 8px !important;
        gap: 4px !important;
        font-size: 10px !important;
    }

    .sp-form-mini {
        gap: 2px !important;
        margin-top: 2px !important;
    }

    .sp-form-mini span,
    .pp-form-badge {
        width: 14px !important;
        height: 14px !important;
        border-radius: 4px !important;
        font-size: 7px !important;
    }

    /* Tabs compact */
    .modern-match-tabs,
    .match-subtabs,
    .pp-pro-tabs,
    .sp-match-tabs {
        min-height: 42px !important;
        padding: 0 6px !important;
        gap: 5px !important;
        margin-bottom: 10px !important;
        border-radius: 11px !important;
    }

    .match-subtab,
    .pp-pro-tabs .match-subtab,
    .modern-match-tabs .match-subtab,
    .match-subtabs .match-subtab,
    .fs-form-tab {
        min-height: 42px !important;
        padding: 0 10px !important;
        font-size: 9px !important;
        gap: 4px !important;
    }

    .match-subtab.active::after,
    .pp-pro-tabs .match-subtab.active::after,
    .modern-match-tabs .match-subtab.active::after,
    .match-subtabs .match-subtab.active::after,
    .fs-form-tab.active::after {
        left: 8px !important;
        right: 8px !important;
        height: 2px !important;
    }
}

/* =========================================================
   EVENTS MOBILE OPTIMIZED
========================================================= */

@media (max-width: 600px) {

    .sp-events-card {
        padding: 10px !important;
        border-radius: 13px !important;
    }

    .sp-events-head {
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    .sp-events-head h2 {
        font-size: 16px !important;
        line-height: 1.15 !important;
    }

    .sp-events-head p {
        font-size: 10px !important;
        line-height: 1.35 !important;
    }

    .sp-events-score {
        min-height: 30px !important;
        padding: 0 9px !important;
        gap: 6px !important;
    }

    .sp-events-score span {
        max-width: 90px !important;
        font-size: 9px !important;
    }

    .sp-events-score strong {
        font-size: 11px !important;
    }

    .sp-events-board {
        border-radius: 12px !important;
    }

    .sp-events-teams {
        grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr) !important;
        gap: 6px !important;
        padding: 9px 8px !important;
    }

    .sp-events-teams strong {
        font-size: 10px !important;
        line-height: 1.15 !important;
    }

    .sp-events-teams span {
        font-size: 9px !important;
    }

    .sp-events-half-title {
        min-height: 28px !important;
        padding: 0 9px !important;
    }

    .sp-events-half-title span {
        font-size: 10px !important;
    }

    .sp-events-half-title strong {
        min-width: 42px !important;
        height: 20px !important;
        font-size: 10px !important;
    }

    /* Event row becomes compact */
    .sp-event-row {
        grid-template-columns: 34px 26px minmax(0, 1fr) !important;
        gap: 7px !important;
        min-height: auto !important;
        padding: 8px 7px !important;
        align-items: start !important;
    }

    .sp-event-minute {
        grid-column: 1 !important;
        grid-row: 1 !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
        text-align: left !important;
        padding-top: 3px !important;
    }

    .sp-event-center {
        grid-column: 2 !important;
        grid-row: 1 !important;
        order: initial !important;
        padding-left: 0 !important;
        justify-content: center !important;
    }

    .sp-event-center span {
        min-width: 24px !important;
        height: 24px !important;
        padding: 0 !important;
        border-radius: 8px !important;
        font-size: 10px !important;
    }

    .sp-event-center i {
        width: 6px !important;
        height: 6px !important;
    }

    .sp-event-home,
    .sp-event-away {
        grid-column: 3 !important;
        grid-row: 1 !important;
        justify-content: flex-start !important;
        text-align: left !important;
        gap: 7px !important;
        min-width: 0 !important;
        flex-direction: row !important;
    }

    .sp-event-home:empty,
    .sp-event-away:empty {
        display: none !important;
    }

    .sp-event-icon {
        width: 24px !important;
        height: 24px !important;
        border-radius: 7px !important;
        font-size: 11px !important;
    }

    .sp-event-row.yellow .sp-event-icon::before,
    .sp-event-row.red .sp-event-icon::before {
        width: 8px !important;
        height: 13px !important;
    }

    .sp-event-home > div,
    .sp-event-away > div {
        min-width: 0 !important;
    }

    .sp-event-home strong,
    .sp-event-away strong {
        display: block !important;
        font-size: 11px !important;
        line-height: 1.15 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .sp-event-home small,
    .sp-event-away small {
        display: block !important;
        margin: 2px 0 0 !important;
        font-size: 9px !important;
        line-height: 1.15 !important;
        color: #a7b0bd !important;
        white-space: normal !important;
    }
}

/* =========================================================
   FINAL MOBILE HERO FIX - FORCE TEAMS IN ONE ROW
========================================================= */

@media (max-width: 600px) {

    .sp-match-hero {
        min-height: auto !important;
        padding: 14px 10px !important;
        border-radius: 14px !important;
    }

    .sp-hero-date-pill {
        position: static !important;
        width: fit-content !important;
        max-width: 100% !important;
        margin: 0 auto 8px !important;
        min-height: 28px !important;
        padding: 0 10px !important;
        font-size: 10px !important;
        border-radius: 8px !important;
    }

    .sp-hero-league {
        margin-bottom: 8px !important;
        font-size: 9px !important;
        line-height: 1.25 !important;
        gap: 4px !important;
        flex-wrap: wrap !important;
        text-align: center !important;
    }

    .sp-hero-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) !important;
        gap: 6px !important;
        align-items: center !important;
        min-height: auto !important;
        width: 100% !important;
    }

    .sp-hero-team {
        min-width: 0 !important;
        width: 100% !important;
        gap: 5px !important;
        text-align: center !important;
    }

    .sp-hero-team:first-child {
        grid-column: 1 !important;
    }

    .sp-hero-scorebox {
        grid-column: 2 !important;
        order: 0 !important;
        width: 76px !important;
        min-width: 76px !important;
        min-height: 72px !important;
        padding: 8px 4px !important;
        margin: 0 auto !important;
        border-radius: 12px !important;
    }

    .sp-hero-team:last-child {
        grid-column: 3 !important;
    }

    .sp-hero-logo {
        width: 40px !important;
        height: 40px !important;
        padding: 4px !important;
        margin: 0 auto !important;
    }
    
    /* =========================================================
   FIX SEASON STATISTICS BREAKING ON NARROW DESKTOP
========================================================= */

@media (max-width: 1450px) {

    .sp-after-predictions-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .sp-side-stats-stack {
        grid-template-columns: 1fr 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .sp-season-pro-card,
    .sp-key-card,
    .sp-mini-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 980px) {

    .sp-side-stats-stack {
        grid-template-columns: 1fr !important;
    }

    .sp-season-pro-head {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .sp-season-pro-pill {
        position: static !important;
        align-self: flex-start !important;
        max-width: 100% !important;
        white-space: normal !important;
        text-align: left !important;
    }

    .sp-season-pro-title {
        width: 100% !important;
        min-width: 0 !important;
    }

    .sp-season-pro-title h2 {
        font-size: 22px !important;
        line-height: 1.1 !important;
        word-break: normal !important;
    }

    .sp-season-pro-title p {
        max-width: 100% !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    .sp-season-pro-teams {
        grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .sp-season-pro-team {
        min-width: 0 !important;
        padding: 10px 8px !important;
        gap: 7px !important;
    }

    .sp-season-pro-team img {
        width: 36px !important;
        height: 36px !important;
        object-fit: contain !important;
        flex: 0 0 36px !important;
    }

    .sp-season-pro-team strong {
        max-width: 100% !important;
        font-size: 12px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }

    .sp-season-pro-team span {
        font-size: 10px !important;
    }

    .sp-season-pro-vs {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        font-size: 11px !important;
    }

    .sp-season-pro-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .sp-season-pro-strip > div {
        min-width: 0 !important;
        padding: 10px 6px !important;
    }

    .sp-season-pro-strip strong {
        font-size: 18px !important;
    }

    .sp-season-pro-strip small {
        font-size: 9px !important;
        line-height: 1.15 !important;
    }
}

@media (max-width: 620px) {

    .sp-season-pro-card,
    .sp-key-card,
    .sp-mini-card {
        padding: 14px !important;
        border-radius: 15px !important;
    }

    .sp-season-pro-title h2 {
        font-size: 19px !important;
    }

    .sp-season-pro-teams {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .sp-season-pro-vs {
        margin: 0 auto !important;
    }

    .sp-season-pro-team,
    .sp-season-pro-team.away {
        justify-content: center !important;
        text-align: center !important;
    }

    .sp-season-pro-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .sp-season-pro-row,
    .sp-key-row {
        grid-template-columns: 42px minmax(0, 1fr) 42px !important;
        gap: 7px !important;
    }

    .sp-season-pro-row > strong,
    .sp-key-row > strong {
        font-size: 12px !important;
    }

    .sp-season-pro-mid span,
    .sp-key-row span {
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    .sp-mini-badges,
    .sp-mini-metrics {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   FIX ALL PREDICTIONS MARKETS CARDS ON NARROW DESKTOP
========================================================= */

@media (max-width: 1450px) {

    .sp-all-predictions-grid,
    .sp-predictions-grid,
    .sp-markets-grid,
    .all-predictions-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .sp-main-prediction-card,
    .sp-top-pick-card,
    .sp-market-main-card,
    .sp-prediction-main-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .sp-side-predictions-grid,
    .sp-small-predictions-grid,
    .sp-market-side-grid,
    .sp-other-markets-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .sp-small-prediction-card,
    .sp-market-card,
    .sp-prediction-mini-card,
    .sp-ai-market-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .sp-small-prediction-card *,
    .sp-market-card *,
    .sp-prediction-mini-card *,
    .sp-ai-market-card * {
        min-width: 0 !important;
    }
}

@media (max-width: 980px) {

    .sp-side-predictions-grid,
    .sp-small-predictions-grid,
    .sp-market-side-grid,
    .sp-other-markets-grid {
        grid-template-columns: 1fr !important;
    }

    .sp-small-prediction-card,
    .sp-market-card,
    .sp-prediction-mini-card,
    .sp-ai-market-card {
        min-height: auto !important;
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .sp-small-prediction-card h3,
    .sp-market-card h3,
    .sp-prediction-mini-card h3,
    .sp-ai-market-card h3 {
        font-size: 18px !important;
        line-height: 1.18 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    .sp-small-prediction-card strong,
    .sp-market-card strong,
    .sp-prediction-mini-card strong,
    .sp-ai-market-card strong {
        font-size: 22px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .sp-confidence-row,
    .sp-market-meta,
    .sp-odds-row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
}

@media (max-width: 620px) {

    .sp-main-prediction-card,
    .sp-top-pick-card,
    .sp-market-main-card,
    .sp-prediction-main-card {
        padding: 18px !important;
        border-radius: 16px !important;
        min-height: auto !important;
    }

    .sp-main-prediction-card h2,
    .sp-top-pick-card h2,
    .sp-market-main-card h2,
    .sp-prediction-main-card h2 {
        font-size: 30px !important;
        line-height: 1.1 !important;
    }

    .sp-small-prediction-card,
    .sp-market-card,
    .sp-prediction-mini-card,
    .sp-ai-market-card {
        padding: 14px !important;
    }
}

    .sp-hero-team-name {
        max-width: 100% !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
        min-height: 22px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: normal !important;
    }

    .sp-score-live,
    .summary-scoreline.is-score {
        font-size: 23px !important;
        line-height: 1 !important;
        gap: 5px !important;
        margin-top: 5px !important;
    }

    .summary-status {
        min-width: 38px !important;
        min-height: 18px !important;
        height: 18px !important;
        padding: 0 8px !important;
        margin: 0 auto 5px !important;
        font-size: 8px !important;
    }

    .sp-form-mini {
        gap: 2px !important;
        margin-top: 2px !important;
    }

    .sp-form-mini span {
        width: 13px !important;
        height: 13px !important;
        border-radius: 4px !important;
        font-size: 7px !important;
    }
}

/* =========================================================
   FIX SEASON STATISTICS BREAKING ON NARROW DESKTOP
========================================================= */

@media (max-width: 1450px) {

    .sp-after-predictions-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .sp-side-stats-stack {
        grid-template-columns: 1fr 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .sp-season-pro-card,
    .sp-key-card,
    .sp-mini-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 980px) {

    .sp-side-stats-stack {
        grid-template-columns: 1fr !important;
    }

    .sp-season-pro-head {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .sp-season-pro-pill {
        position: static !important;
        align-self: flex-start !important;
        max-width: 100% !important;
        white-space: normal !important;
        text-align: left !important;
    }

    .sp-season-pro-title {
        width: 100% !important;
        min-width: 0 !important;
    }

    .sp-season-pro-title h2 {
        font-size: 22px !important;
        line-height: 1.1 !important;
        word-break: normal !important;
    }

    .sp-season-pro-title p {
        max-width: 100% !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    .sp-season-pro-teams {
        grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .sp-season-pro-team {
        min-width: 0 !important;
        padding: 10px 8px !important;
        gap: 7px !important;
    }

    .sp-season-pro-team img {
        width: 36px !important;
        height: 36px !important;
        object-fit: contain !important;
        flex: 0 0 36px !important;
    }

    .sp-season-pro-team strong {
        max-width: 100% !important;
        font-size: 12px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }

    .sp-season-pro-team span {
        font-size: 10px !important;
    }

    .sp-season-pro-vs {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        font-size: 11px !important;
    }

    .sp-season-pro-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .sp-season-pro-strip > div {
        min-width: 0 !important;
        padding: 10px 6px !important;
    }

    .sp-season-pro-strip strong {
        font-size: 18px !important;
    }

    .sp-season-pro-strip small {
        font-size: 9px !important;
        line-height: 1.15 !important;
    }
}

@media (max-width: 620px) {

    .sp-season-pro-card,
    .sp-key-card,
    .sp-mini-card {
        padding: 14px !important;
        border-radius: 15px !important;
    }

    .sp-season-pro-title h2 {
        font-size: 19px !important;
    }

    .sp-season-pro-teams {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .sp-season-pro-vs {
        margin: 0 auto !important;
    }

    .sp-season-pro-team,
    .sp-season-pro-team.away {
        justify-content: center !important;
        text-align: center !important;
    }

    .sp-season-pro-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .sp-season-pro-row,
    .sp-key-row {
        grid-template-columns: 42px minmax(0, 1fr) 42px !important;
        gap: 7px !important;
    }

    .sp-season-pro-row > strong,
    .sp-key-row > strong {
        font-size: 12px !important;
    }

    .sp-season-pro-mid span,
    .sp-key-row span {
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    .sp-mini-badges,
    .sp-mini-metrics {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   FIX ALL PREDICTIONS MARKETS CARDS ON NARROW DESKTOP
========================================================= */

@media (max-width: 1450px) {

    .sp-all-predictions-grid,
    .sp-predictions-grid,
    .sp-markets-grid,
    .all-predictions-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .sp-main-prediction-card,
    .sp-top-pick-card,
    .sp-market-main-card,
    .sp-prediction-main-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .sp-side-predictions-grid,
    .sp-small-predictions-grid,
    .sp-market-side-grid,
    .sp-other-markets-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .sp-small-prediction-card,
    .sp-market-card,
    .sp-prediction-mini-card,
    .sp-ai-market-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .sp-small-prediction-card *,
    .sp-market-card *,
    .sp-prediction-mini-card *,
    .sp-ai-market-card * {
        min-width: 0 !important;
    }
}

@media (max-width: 980px) {

    .sp-side-predictions-grid,
    .sp-small-predictions-grid,
    .sp-market-side-grid,
    .sp-other-markets-grid {
        grid-template-columns: 1fr !important;
    }

    .sp-small-prediction-card,
    .sp-market-card,
    .sp-prediction-mini-card,
    .sp-ai-market-card {
        min-height: auto !important;
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .sp-small-prediction-card h3,
    .sp-market-card h3,
    .sp-prediction-mini-card h3,
    .sp-ai-market-card h3 {
        font-size: 18px !important;
        line-height: 1.18 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    .sp-small-prediction-card strong,
    .sp-market-card strong,
    .sp-prediction-mini-card strong,
    .sp-ai-market-card strong {
        font-size: 22px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .sp-confidence-row,
    .sp-market-meta,
    .sp-odds-row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
}

@media (max-width: 620px) {

    .sp-main-prediction-card,
    .sp-top-pick-card,
    .sp-market-main-card,
    .sp-prediction-main-card {
        padding: 18px !important;
        border-radius: 16px !important;
        min-height: auto !important;
    }

    .sp-main-prediction-card h2,
    .sp-top-pick-card h2,
    .sp-market-main-card h2,
    .sp-prediction-main-card h2 {
        font-size: 30px !important;
        line-height: 1.1 !important;
    }

    .sp-small-prediction-card,
    .sp-market-card,
    .sp-prediction-mini-card,
    .sp-ai-market-card {
        padding: 14px !important;
    }
}