/* Wolfbet H2H – scoped to .wh2h. Colours follow the tips.wolfbet.com theme:
   dark by default, the theme's `.dark` class switches it to the light variant. */

.wh2h {
  --wh2h-bg: #111A29;
  --wh2h-card: #1C2533;
  --wh2h-card2: #212F45;
  --wh2h-line: #28374D;
  --wh2h-text: #FFFFFF;
  --wh2h-muted: #B8C6DC;
  --wh2h-dim: #6D7D97;
  --wh2h-a: #3D87F9;
  --wh2h-b: #F2B33D;
  --wh2h-draw: #6D7D97;
  --wh2h-win: #22C27A;
  --wh2h-loss: #F05252;
  --wh2h-grad: linear-gradient(90deg, #3D87F9, #1566DF);
  color: var(--wh2h-text);
  font-size: 15px;
  line-height: 1.6;
}
.dark .wh2h {
  --wh2h-card: #F0F3F7;
  --wh2h-card2: #F7F9FB;
  --wh2h-line: #E4E8F0;
  --wh2h-text: #222F42;
  --wh2h-muted: #4A5A72;
  --wh2h-dim: #8392AA;
}
.wh2h *, .wh2h *::before, .wh2h *::after { box-sizing: border-box; }
.wh2h h1, .wh2h h2, .wh2h h3 { font-family: "Maven Pro", sans-serif; color: var(--wh2h-text); margin: 0; }
.wh2h p { margin: 0; }
.wh2h a { color: inherit; }
.wh2h-main { min-width: 0; }

/* Fallback layout for themes without the Blade layout */
.wh2h-fallback { max-width: 1100px; margin: 32px auto; padding: 0 16px; }

/* Breadcrumbs */
.wh2h-crumbs { font-size: 13px; color: var(--wh2h-dim); }
.wh2h-crumbs a { color: var(--wh2h-muted); text-decoration: none; }
.wh2h-crumbs a:hover { text-decoration: underline; }

/* Hero */
.wh2h-hero { margin-top: 12px; background: linear-gradient(180deg, var(--wh2h-card2), var(--wh2h-card)); border: 1px solid var(--wh2h-line); border-radius: 16px; padding: 24px 16px; }
@media (min-width: 768px) { .wh2h-hero { padding: 28px; } }
.wh2h-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; text-align: center; }
.wh2h-team { text-decoration: none; display: flex; flex-direction: column; align-items: center; }
.wh2h-team .wh2h-logo { width: 72px; height: 72px; object-fit: contain; }
.wh2h-team b { display: block; font: 600 17px "Maven Pro", sans-serif; margin-top: 6px; }
.wh2h-team small { color: var(--wh2h-dim); font-size: 12px; }
.wh2h-vs { font: 700 14px "Maven Pro", sans-serif; color: var(--wh2h-dim); border: 1px solid var(--wh2h-line); border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; }
.wh2h-hero h1 { font-size: 22px; text-align: center; margin-top: 20px; line-height: 1.3; }
@media (min-width: 768px) { .wh2h-hero h1 { font-size: 28px; } }
.wh2h-sub { text-align: center; color: var(--wh2h-muted); font-size: 14px; margin: 6px 0 18px !important; }
.wh2h-hero-team { text-align: center; }
.wh2h-hero-team .wh2h-logo { width: 88px; height: 88px; object-fit: contain; }
.wh2h-hero-team h1 { margin-top: 12px; }
.wh2h-hero-league h1 { margin-top: 0; }

.wh2h-record { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.wh2h-record strong { display: block; font: 700 30px "Maven Pro", sans-serif; line-height: 1.2; }
.wh2h-record span { font-size: 12px; color: var(--wh2h-muted); text-transform: uppercase; letter-spacing: .5px; }

.wh2h-bar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--wh2h-line); }
.wh2h-bar i { display: block; }
.wh2h-bar-lg { height: 10px; margin-top: 12px; }
.wh2h-ca { color: var(--wh2h-a); }
.wh2h-cb { color: var(--wh2h-b); }
.wh2h-cd { color: var(--wh2h-draw); }
.wh2h-ba { background: var(--wh2h-a); }
.wh2h-bb { background: var(--wh2h-b); }
.wh2h-bd { background: var(--wh2h-draw); }

/* Sections */
.wh2h-intro { margin-top: 24px; color: var(--wh2h-muted); }
.wh2h-section { margin-top: 32px; }
.wh2h-section > h2 { font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--wh2h-line); padding-bottom: 10px; margin-bottom: 14px; }
.wh2h-lead { color: var(--wh2h-muted); margin-bottom: 12px !important; }
.wh2h-lead strong { color: var(--wh2h-text); }

/* Next meeting */
.wh2h-next { display: grid; gap: 16px; background: var(--wh2h-card); border: 1px solid var(--wh2h-line); border-radius: 14px; padding: 18px; }
@media (min-width: 768px) { .wh2h-next { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.wh2h-next-teams { font: 600 17px "Maven Pro", sans-serif; }
.wh2h-when { font-weight: 500; }
.wh2h-meta, .wh2h-note { color: var(--wh2h-muted); font-size: 13px; }
.wh2h-note { margin-top: 8px !important; font-size: 11px; color: var(--wh2h-dim); }
.wh2h-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wh2h-odds div { background: var(--wh2h-card2); border: 1px solid var(--wh2h-line); border-radius: 8px; text-align: center; padding: 8px 4px; min-width: 0; }
.wh2h-odds small { display: block; color: var(--wh2h-dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh2h-odds b { font: 600 17px "Maven Pro", sans-serif; }
.wh2h-btn { display: inline-block; background: var(--wh2h-grad); color: #fff !important; text-decoration: none !important; font-weight: 500; font-size: 14px; border-radius: 6px; padding: 0 22px; line-height: 40px; margin-top: 12px; transition: opacity .3s; }
.wh2h-btn:hover { opacity: .9; }
.wh2h-btn-ghost { background: var(--wh2h-line); color: var(--wh2h-text) !important; line-height: 1.4; padding: 10px 16px; }
.wh2h-prediction { margin-top: 12px; max-width: 380px; }
.wh2h-predcard { display: flex; gap: 12px; background: var(--wh2h-card); border-radius: 12px; padding: 12px; text-decoration: none; }
.wh2h-predcard img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; }
.wh2h-predcard small { display: block; color: var(--wh2h-a); font-size: 11px; text-transform: uppercase; }
.wh2h-predcard strong { display: block; }
.wh2h-predcard span { font-size: 13px; color: var(--wh2h-muted); }

/* Stat tiles */
.wh2h-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .wh2h-grid { grid-template-columns: repeat(4, 1fr); } }
.wh2h-stat { background: var(--wh2h-card); border-radius: 12px; padding: 14px; }
.wh2h-stat strong { display: block; font: 700 26px "Maven Pro", sans-serif; }
.wh2h-stat span { font-size: 13px; color: var(--wh2h-muted); }
.wh2h-meter { height: 6px; background: var(--wh2h-line); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.wh2h-meter i { display: block; height: 100%; background: var(--wh2h-grad); }

/* Home / away */
.wh2h-split { display: grid; gap: 16px; }
@media (min-width: 768px) { .wh2h-split { grid-template-columns: 200px 1fr; align-items: center; } }
.wh2h-donut { width: 180px; height: 180px; margin: 0 auto; display: block; }
.wh2h-donut-n { font: 700 7px "Maven Pro", sans-serif; fill: var(--wh2h-text); }
.wh2h-donut-l { font: 400 3px Roboto, sans-serif; fill: var(--wh2h-dim); }
.wh2h-venue { background: var(--wh2h-card); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.wh2h-venue h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.wh2h-venue p { margin-top: 6px; font-size: 13px; color: var(--wh2h-muted); }

/* Tables */
.wh2h-tablewrap { overflow-x: auto; border: 1px solid var(--wh2h-line); border-radius: 12px; }
.wh2h-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; margin: 0; }
.wh2h-table th, .wh2h-table td { padding: 10px 12px; text-align: left; border: 0; }
.wh2h-table thead th { font-weight: 500; font-size: 12px; color: var(--wh2h-dim); text-transform: uppercase; letter-spacing: .4px; background: var(--wh2h-card); }
.wh2h-table tbody tr { border-top: 1px solid var(--wh2h-line); }
.wh2h-table tbody th { font-weight: 500; }
.wh2h-table a { text-decoration: none; }
.wh2h-table a:hover { text-decoration: underline; }
.wh2h-table time { white-space: nowrap; color: var(--wh2h-muted); font-size: 13px; }
.wh2h-w { font-weight: 700; }
.wh2h-c { text-align: center !important; }
.wh2h-score { font: 700 15px "Maven Pro", sans-serif; text-align: center !important; white-space: nowrap; }
.wh2h-score small { display: block; font: 400 11px Roboto, sans-serif; color: var(--wh2h-dim); }
.wh2h-comp { color: var(--wh2h-muted); font-size: 13px; }
.wh2h-col-bar { width: 28%; }
.wh2h-opp { display: inline-flex; align-items: center; gap: 8px; }
.wh2h-opp .wh2h-logo { width: 20px; height: 20px; object-fit: contain; }

.wh2h-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.wh2h-tabs button { background: var(--wh2h-card); color: var(--wh2h-muted); border: 1px solid var(--wh2h-line); border-radius: 16px; padding: 5px 14px; font: 500 13px Roboto, sans-serif; cursor: pointer; }
.wh2h-tabs button span { opacity: .7; }
.wh2h-tabs button[aria-selected="true"] { background: var(--wh2h-grad); color: #fff; border-color: transparent; }
.wh2h-panel[hidden] { display: none; }
.wh2h-tabs ~ .wh2h-panel .wh2h-panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wh2h-panel-title { font-size: 15px; margin: 16px 0 8px !important; }
.wh2h-more { margin-top: 10px; }
.wh2h-more summary { cursor: pointer; color: var(--wh2h-a); font-size: 14px; margin-bottom: 10px; }

/* Records */
.wh2h-records { display: grid; gap: 10px; }
@media (min-width: 768px) { .wh2h-records { grid-template-columns: repeat(3, 1fr); } }
.wh2h-rec { background: var(--wh2h-card); border-radius: 12px; padding: 14px; border-left: 3px solid var(--wh2h-a); }
.wh2h-rec-b { border-left-color: var(--wh2h-b); }
.wh2h-rec-n { border-left-color: var(--wh2h-draw); }
.wh2h-rec span { font-size: 12px; color: var(--wh2h-dim); text-transform: uppercase; }
.wh2h-rec strong { display: block; font: 700 18px "Maven Pro", sans-serif; margin: 4px 0; }
.wh2h-rec p { font-size: 13px; color: var(--wh2h-muted); }

/* Form */
.wh2h-form { display: grid; gap: 10px; }
@media (min-width: 768px) { .wh2h-form { grid-template-columns: 1fr 1fr; } }
.wh2h-formcard { background: var(--wh2h-card); border-radius: 12px; padding: 14px; }
.wh2h-formcard h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.wh2h-formcard h3 .wh2h-logo { width: 24px; height: 24px; object-fit: contain; }
.wh2h-pills { display: flex; gap: 4px; margin: 10px 0 6px; padding: 0; list-style: none; }
.wh2h-pills li { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; margin: 0; }
.wh2h-pills abbr { font: 700 12px Roboto, sans-serif; color: #fff; text-decoration: none; border: 0; cursor: help; }
.wh2h-p-w { background: var(--wh2h-win); }
.wh2h-p-d { background: var(--wh2h-draw); }
.wh2h-p-l { background: var(--wh2h-loss); }
.wh2h-formcard p { font-size: 13px; color: var(--wh2h-muted); }

/* FAQ */
.wh2h-faq details { background: var(--wh2h-card); border-radius: 10px; margin-bottom: 8px; padding: 12px 16px; }
.wh2h-faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.wh2h-faq summary::-webkit-details-marker { display: none; }
.wh2h-faq summary::after { content: "+"; color: var(--wh2h-dim); font-size: 18px; line-height: 1; }
.wh2h-faq details[open] summary::after { content: "–"; }
.wh2h-faq details p { margin-top: 10px; color: var(--wh2h-muted); font-size: 14px; }

/* Links and grids */
.wh2h-links { display: grid; gap: 16px; }
@media (min-width: 768px) { .wh2h-links { grid-template-columns: 1fr 1fr; } }
.wh2h-links h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.wh2h-links ul, .wh2h-allpairs, .wh2h-teamgrid { list-style: none; margin: 0; padding: 0; }
.wh2h-links ul { display: flex; flex-wrap: wrap; gap: 6px; }
.wh2h-links li { margin: 0; }
.wh2h-links a { display: block; background: var(--wh2h-card); border: 1px solid var(--wh2h-line); border-radius: 16px; padding: 4px 12px; font-size: 13px; text-decoration: none; color: var(--wh2h-muted); }
.wh2h-links a:hover, .wh2h-link-hub { color: var(--wh2h-text) !important; }
.wh2h-source { font-size: 12px; color: var(--wh2h-dim); margin-top: 24px !important; }

.wh2h-teamgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .wh2h-teamgrid { grid-template-columns: repeat(4, 1fr); } }
.wh2h-teamgrid a { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--wh2h-card); border: 1px solid var(--wh2h-line); border-radius: 12px; padding: 14px 8px; text-decoration: none; text-align: center; font-weight: 500; }
.wh2h-teamgrid .wh2h-logo { width: 48px; height: 48px; object-fit: contain; }
.wh2h-teamgrid small { color: var(--wh2h-dim); }
.wh2h-allpairs { columns: 1; column-gap: 24px; }
@media (min-width: 600px) { .wh2h-allpairs { columns: 2; } }
@media (min-width: 1024px) { .wh2h-allpairs { columns: 3; } }
.wh2h-allpairs li { margin: 0 0 6px; break-inside: avoid; }
.wh2h-allpairs a { color: var(--wh2h-muted); text-decoration: none; font-size: 14px; }
.wh2h-allpairs a:hover { color: var(--wh2h-text); text-decoration: underline; }

/* Box inside prediction articles */
.wh2h-predbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--wh2h-card); border: 1px solid var(--wh2h-line); border-radius: 12px; padding: 14px 18px; margin: 24px 0; }
.wh2h-predbox strong { display: block; font-family: "Maven Pro", sans-serif; }
.wh2h-predbox span { font-size: 13px; color: var(--wh2h-muted); }
.wh2h-predbox .wh2h-btn { margin-top: 0; }
