
html{font-size:18px;}
body{background:#0a0e17;color:#fff;margin:0;padding:0;
 font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;}
.wrap{max-width:1320px;margin:0 auto;padding:2.5rem 1.5rem 4rem;}
a{color:#60a5fa;text-decoration:none;} a:hover{text-decoration:underline;}
.back{display:inline-block;font-size:.85rem;color:#60a5fa;margin-bottom:1.25rem;}
h1{font-size:2.3rem;font-weight:800;margin:0 0 .5rem;letter-spacing:-.01em;}
.meta{font-size:.95rem;color:#94a3b8;margin:0 0 2rem;}
.section-title{font-size:1.35rem;font-weight:700;margin:2rem 0 1rem;}
.tabs{display:flex;gap:10px;margin:0 0 1.5rem;}
.tab{padding:9px 20px;border-radius:999px;font-weight:700;font-size:.9rem;
 border:1px solid #2d4a7a;color:#60a5fa;background:rgba(59,130,246,.08);}
.tab.active{background:#2563eb;color:#fff;border-color:#2563eb;}
.row-card{background:#111827;border:1px solid #1e2d42;border-radius:16px;
 padding:1.35rem 1.6rem;margin-bottom:1rem;display:flex;align-items:center;
 justify-content:space-between;gap:1.2rem;flex-wrap:wrap;}
.row-main{flex:1;min-width:250px;}
.row-title{font-size:1.15rem;font-weight:700;margin:0 0 .3rem;}
.row-title a{color:#fff;}
.row-sub{font-size:.85rem;color:#64748b;margin:0 0 .6rem;}
.chips{display:flex;flex-wrap:wrap;gap:8px;}
.chip{font-size:.78rem;background:#0d1526;border:1px solid #22314a;border-radius:8px;
 padding:5px 10px;color:#9fb3d1;white-space:nowrap;display:inline-flex;align-items:center;gap:6px;}
.chip b{color:#22c55e;font-weight:700;}
.chip i{font-style:normal;color:#64748b;font-size:.7rem;}
.pill{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;
 background:rgba(59,130,246,.08);border:1px solid #2d4a7a;color:#60a5fa;
 font-weight:700;font-size:.9rem;border-radius:999px;padding:10px 20px;white-space:nowrap;}
.pill:hover{background:rgba(59,130,246,.16);text-decoration:none;}
.card{background:#111827;border:1px solid #1e2d42;border-radius:16px;
 padding:1.5rem 1.75rem;margin-bottom:1.25rem;}
.mtitle{font-size:1.05rem;font-weight:700;margin:0 0 .9rem;color:#e2e8f0;}
table{width:100%;border-collapse:collapse;}
th{text-align:left;color:#64748b;font-size:.7rem;letter-spacing:.05em;
 text-transform:uppercase;padding:7px 10px;border-bottom:1px solid #1e2d42;font-weight:600;}
td{padding:9px 10px;border-bottom:1px solid #18263d;font-size:.88rem;color:#cbd5e1;vertical-align:top;}
.best{white-space:nowrap;}
.best b{color:#4ade80;font-weight:800;font-size:.95rem;}
.best i{font-style:normal;color:#64748b;font-size:.7rem;margin-left:5px;}
.others span{display:inline-block;margin:0 12px 4px 0;white-space:nowrap;color:#9fb3d1;font-size:.8rem;}
.others span b{color:#22c55e;font-weight:700;}
.none{color:#475569;font-size:.85rem;}
.hero{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;margin-bottom:2rem;}
@media(max-width:720px){.hero{grid-template-columns:1fr;}}
.hero-card{background:#111827;border:1px solid #22314a;border-radius:16px;padding:1.5rem 1.75rem;}
.hero-label{font-size:.95rem;font-weight:700;color:#94a3b8;margin:0 0 1rem;
 text-transform:uppercase;letter-spacing:.04em;font-size:.72rem;}
.hero-row{display:flex;align-items:center;justify-content:space-between;
 padding:8px 0;border-bottom:1px solid #18263d;}
.hero-row:last-child{border-bottom:none;}
.hero-row span{font-size:.95rem;color:#e2e8f0;}
.hero-row b{color:#4ade80;font-weight:800;font-size:1.05rem;}
.hero-row i{font-style:normal;color:#64748b;font-size:.72rem;margin-left:6px;}
.book-section{background:#0d1526;border:1px solid #1e2d42;border-radius:16px;
 padding:1.5rem 1.75rem;margin-bottom:1.25rem;}
.book-name{font-size:1.2rem;font-weight:800;color:#fff;margin:0 0 1.1rem;
 display:flex;align-items:center;gap:10px;}
.book-name .book-dot{width:8px;height:8px;border-radius:50%;background:#22c55e;}
.book-market{margin-bottom:1.1rem;}
.book-market:last-child{margin-bottom:0;}
.book-market-title{font-size:.85rem;font-weight:700;color:#93c5fd;margin:0 0 .5rem;}
.book-table{width:100%;border-collapse:collapse;}
.book-table td{padding:5px 10px 5px 0;border:none;font-size:.86rem;color:#cbd5e1;}
.book-table td.odds{color:#22c55e;font-weight:700;text-align:right;}
.badge{display:inline-block;background:#052e16;border:1px solid #14532d;color:#4ade80;
 font-size:11px;font-weight:700;border-radius:999px;padding:3px 10px;margin-left:8px;}

/* Player-detail-page market panels (15/08/2026): tile grid for
   single-selection markets (Anytime Goalscorer, To Be Booked), table
   grid for threshold markets (Shots, Fouls, Tackles, Assists) - the
   split is driven by THRESHOLD_AWARE_PLAYER_MARKETS, same set used
   elsewhere in this file. Visual language matches the rest of the site
   (same green #22c55e for best/available prices) rather than reusing
   the World Cup page's inline styles verbatim. */
.pmarket{background:#111827;border:1px solid #1e2d42;border-radius:16px;
 padding:1.35rem 1.6rem;margin-bottom:1rem;}
.pmarket-title{font-size:1.05rem;font-weight:800;margin:0 0 1rem;color:#fff;}
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;}
.ptile{border:1px solid #223047;border-radius:12px;padding:12px;text-align:center;
 background:rgba(255,255,255,.02);}
.ptile.best{border-color:#22c55e;background:rgba(34,197,94,.08);}
.ptile-book{color:#91a0b5;font-size:.72rem;margin-bottom:6px;}
.ptile-odds{color:#e2e8f0;font-size:1.1rem;font-weight:800;}
.ptile.best .ptile-odds{color:#4ade80;font-size:1.3rem;}
.ptile-best-tag{color:#86efac;font-size:.62rem;font-weight:800;margin-top:4px;
 letter-spacing:.03em;}
.pthresh{width:100%;border-collapse:collapse;}
.pthresh th{text-align:center;font-size:.78rem;color:#93c5fd;font-weight:700;
 padding:6px 8px;border-bottom:1px solid #1e2d42;}
.pthresh th:first-child{text-align:left;}
.pthresh td{text-align:center;font-size:.9rem;padding:7px 8px;color:#e2e8f0;
 border-bottom:1px solid #18263d;}
.pthresh td:first-child{text-align:left;color:#91a0b5;}
.pthresh td.pcell{color:#4ade80;font-weight:700;}
.pthresh td.pcell.best{color:#4ade80;font-weight:900;background:rgba(34,197,94,.15);
 border-radius:6px;box-shadow:inset 0 0 0 1px rgba(74,222,128,.5);}
.pthresh td.pempty{color:#3a4a63;}

/* Opta player-history card (23/08/2026): approved compact dropdown inside
   the existing player-detail pmarket card. No Opta panel is rendered when
   player identity is uncertain. */
.opta-history{margin-top:14px;border-top:1px solid #223047;padding-top:10px;}
.opta-history summary{cursor:pointer;list-style:none;color:#93c5fd;font-size:.82rem;
 font-weight:800;text-align:center;padding:7px 10px;border-radius:9px;
 user-select:none;}
.opta-history summary::-webkit-details-marker{display:none;}
.opta-history summary::before{content:"▾";display:inline-block;margin-right:7px;
 transition:transform .15s ease;}
.opta-history[open] summary::before{transform:rotate(180deg);}
.opta-history-table-wrap{overflow-x:auto;margin-top:8px;}
.opta-history-table{width:100%;border-collapse:collapse;min-width:860px;}
.opta-history-table th{font-size:.7rem;color:#93c5fd;font-weight:800;text-align:center;
 padding:7px 8px;border-bottom:1px solid #223047;white-space:nowrap;}
.opta-history-table th:first-child{text-align:left;}
.opta-history-table td{font-size:.78rem;color:#dbe5f1;text-align:center;padding:8px;
 border-bottom:1px solid #18263d;white-space:nowrap;}
.opta-history-table td:first-child{text-align:left;color:#e2e8f0;font-weight:700;}
.opta-submeta{color:#91a0b5;font-size:.78rem;margin:-4px 0 12px;}

/* Search (16/08/2026): one generic client-side filter reused on the
   index page (games), match page (bookmakers/markets), and props page
   (players/markets) - see search_box_html()/SEARCH_JS below for how the
   data-search/data-search-group attributes drive it. */
.search-box{position:relative;margin:0 0 1.25rem;}
.search-box input{width:100%;box-sizing:border-box;background:#0d1526;
 border:1px solid #1e2d42;border-radius:12px;padding:.85rem 1rem .85rem 2.6rem;
 color:#fff;font-size:.95rem;font-family:inherit;}
.search-box input::placeholder{color:#64748b;}
.search-box input:focus{outline:none;border-color:#2563eb;}
.search-box::before{content:"🔍";position:absolute;left:.95rem;top:50%;
 transform:translateY(-50%);font-size:.85rem;pointer-events:none;opacity:.7;}
.search-empty{display:none;color:#64748b;font-size:.9rem;padding:.5rem 0 1rem;}

.btb-defence.football{display:block;width:fit-content;max-width:100%;margin:8px 0;padding:0!important;font:12px/1.5 system-ui,sans-serif;color:#afc3da;text-transform:none;letter-spacing:normal}
.btb-defence.football summary{display:list-item;list-style-position:inside;cursor:pointer;border:1px solid #506078;border-radius:8px;padding:5px 9px;color:#c9d8e9;background:#172234;font:650 12px/1.5 system-ui,sans-serif;overflow-wrap:anywhere}
.btb-defence.football.good summary{color:#72edb2;background:#103328;border-color:#23744d}
.btb-defence.football.tough summary{color:#ffaaaa;background:#351f28;border-color:#834452}
.btb-defence.football p{margin:8px 0 0;padding:10px;max-width:440px;border:1px solid #34445d;border-radius:8px;background:#101c2b;color:#c4d2e5;font:12px/1.6 system-ui,sans-serif;overflow-wrap:anywhere}
.btb-football-recent{max-width:440px;margin-top:8px;padding:10px;border:1px solid #34445d;border-radius:8px;background:#101c2b}
.btb-football-recent h4{font:700 13px/1.5 system-ui,sans-serif;margin:0 0 8px;color:#edf4ff}
.btb-football-recent table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;font:12px/1.5 system-ui,sans-serif}
.btb-football-recent th,.btb-football-recent td{width:auto;padding:6px 3px;border-bottom:1px solid #26364a;text-align:left;white-space:normal;overflow-wrap:anywhere;color:#c4d2e5}
.btb-football-recent th:first-child,.btb-football-recent td:first-child{width:21%}
.btb-football-recent th:last-child,.btb-football-recent td:last-child{width:32%;text-align:right;font-variant-numeric:tabular-nums}
.btb-football-recent th{font-weight:500;color:#9fb9d4;text-transform:none;letter-spacing:normal}
.btb-defence.football summary:focus-visible{outline:2px solid #78b8ff;outline-offset:3px}
.btb-team-overview{margin:20px 0;padding:18px;border:1px solid #263449;border-radius:16px;background:#101827}
.btb-team-overview h2{font-size:19px;margin:0 0 5px}.btb-team-overview>p{font-size:12px;color:#a5b5cb;margin:0 0 14px}
.btb-team-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.btb-team-overview-grid>div{min-width:0}
.btb-team-overview h3{font-size:16px;margin:0 0 10px}.btb-team-overview .btb-defence{width:100%}
.btb-prop-matchups{margin:12px 0 18px;padding:12px;border:1px solid #263449;border-radius:10px;background:#0d1725}
.btb-prop-matchups>p{margin:0 0 10px;font-size:12px;color:#9fb3d1}
.btb-prop-matchups-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.btb-prop-matchups-grid>div{min-width:0}.btb-prop-matchups h3{margin:0;font-size:13px;color:#dce8f7}
@media(max-width:650px){.btb-prop-matchups-grid{grid-template-columns:1fr}}
@media(max-width:650px){.btb-team-overview-grid{grid-template-columns:1fr}.tabs{flex-wrap:wrap}.card[data-prop-list]{overflow-x:auto}}
