/* Container for the ticker */
.csh-container {
  position: relative;
  width: 100%;
  background: none;
  padding: 5px 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
  color: #333;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Arrow buttons */
.csh-arrow {
  background: transparent;
  border: none;
  color: #A52822;
  font-size: 20px;
  cursor: pointer;
  width: 15px;
  height: 30px;
  flex-shrink: 0;
  transition: color 0.3s, background 0.3s, height 0.3s;
}
.csh-arrow:hover {
  background: #A52822;
  color: #fff;
  height: 50px;
}

/* Inner scroll container */
.csh-inner {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 5px;
  width: calc(100% - 70px); /* leave room for arrows */
  scroll-behavior: smooth;
}

/* Each match item */
.csh-item {
  border-left: 1px solid rgba(0, 0, 0, 0.15);
  min-width: 220px;
  margin-right: 15px;
  padding-left: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

/* Header row: league (left), date (center), CTA (right) */
.csh-header{
  display: flex;
  justify-content: space-between;
  grid-template-columns: 1fr auto 1fr; /* left / center / right */
  align-items: center;
  column-gap: 5px;
  position: relative;
  padding-right: 2px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 12px;
  color: #000;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.csh-league { justify-self: start; display: flex; align-items: center; }
.csh-league-icon { width: 16px; height: 16px; margin-right: 4px; vertical-align: middle; }
.csh-league-icon--svg { display: inline-block; flex: 0 0 16px; border-radius: 3px; }
.csh-league-name { font-size: 11px; font-weight: normal; text-transform: capitalize; }
.csh-league-live-label { color:#111827; font-weight:700; text-transform:none; }
.csh-date { justify-self: center; font-weight: normal; }
.csh-item:not(.cs-live):not(.cs-ht) .csh-header { justify-content: flex-start; gap: 6px; }
.csh-item:not(.cs-live):not(.cs-ht) .csh-league { flex: 0 0 auto; }
.csh-item:not(.cs-live):not(.cs-ht) .csh-date { margin-left: auto; text-align: right; text-transform: none; }

/* Ticker inline CTA (text-style) */
.csh-betnow{
  justify-self: end;
  position: static !important;
  background: transparent !important;
  color: #b01818;
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.csh-betnow:hover{ color:#8e101b; text-decoration: underline; }

/* Rows (home/away) */
.csh-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 0;
}
.cstl-team-info { display: flex; align-items: center;font-weight:700; color:#000000; }
.csh-team-logo { width: 18px; height: 18px; margin-right: 4px; vertical-align: middle; border-radius: 50%; }
.csh-team-name { font-weight: 700; }

/* Score box */
.csh-score-box {
  background: #e0e0e0;
  padding: 2px 9px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  /* Equal width regardless of digit: "1" and "4" are different glyph widths,
     so the boxes looked uneven. Tabular figures + a min-width fix it. */
  min-width: 30px;
  text-align: center;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
}

/* Live / HT pill in ticker */
.csh-live-status {
  color:#d50102;
  font-weight:900;
  font-size:13px;
  padding:0;
  border-radius:0;
  margin-left:8px;
  display:inline-block;
  letter-spacing:.02em;
  background:transparent;
  animation:csh-live-blink 1.1s ease-in-out infinite;
}
@keyframes csh-live-blink {
  0%,100% { opacity:1; }
  50% { opacity:.38; }
}
/* HT badge — amber instead of red */
.csh-ht-status {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:30px;
  height:20px;
  padding:0 8px;
  border-radius:8px;
  background:linear-gradient(180deg,#f59e0b 0%,#d97706 100%);
  color:#111827;
  border:1px solid rgba(120,53,15,.25);
  box-shadow:0 4px 10px rgba(217,119,6,.22), inset 0 1px 0 rgba(255,255,255,.28);
  font-size:11px;
  font-weight:950;
  line-height:1;
  letter-spacing:.04em;
}

/* Finished-with-penalties or AET badges in the ticker date slot */
.csh-finish-badge {
  display: inline-block;
  font-weight: bold;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 8px;
  letter-spacing: 0.4px;
  color: #fff;
}
.csh-finish-pen { background-color: #b01818; }
.csh-finish-aet { background-color: #a85b00; }
.csh-pen-num {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #b01818;
  vertical-align: baseline;
}

/* Responsive (ticker) */
@media (max-width: 700px) {
  .csh-item { min-width: 190px; font-size: 12px; }
  .csh-date { font-size: 10px; padding-left: 5px; color: #666;}
  .csh-inner { margin: 0 10px; width: calc(100% - 20px); }
  .cstl-team-info { font-size: 14px; font-weight: 700; }
}
@media (max-width: 480px) {
  .csh-arrow { display: none; width: 25px; height: 25px; font-size: 16px; }
  .csh-item { min-width: 190px; font-size: 12px; }
}

/* ===== MATCH DETAIL v2 ===== */

/* Card container */
.md-card {
  width: 100%;
  margin: 0 0 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.06);
  overflow: hidden;
}

.md-section-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 16px 0;
}

.md-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #97a0b3;
  padding-bottom: 2px;
  border-bottom: 2px solid #b01818;
}

/* Hero / Score section */
.md-hero {
  background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
  color: #1a1a2e;
  padding: 20px 20px 18px;
  text-align: center;
  border-bottom: 1px solid #edf0f4;
  position: relative;
}
/* red accent line removed — was bleeding outside card on some browsers */
.md-league-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #b01818;
  margin-bottom: 16px;
  font-weight: 700;
}
.md-league-label-text {
  display: inline-block;
}
/* md-round-pill removed — matchweek no longer in hero */

/* Scoreboard grid */
.md-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.md-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.md-team--home { justify-self: end; }
.md-team--away { justify-self: start; }
.md-team-logo { width: 44px; height: 44px; object-fit: contain; }
.md-team-name { font-size: 12px; font-weight: 600; color: #1a1a2e; text-align: center; line-height: 1.25; max-width: 120px; }

.md-score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 100px;
}
.md-score-num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1;
  color: #1a1a2e;
}
.md-status-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 12px;
  border-radius: 10px;
}
.md-status-ft    { background: #edf0f4; color: #60697d; }
.md-status-aet   { background: #fff4e6; color: #a85b00; }
.md-status-pen   { background: #fff0f0; color: #b01818; }
.md-pen-line     { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: #b01818; letter-spacing: .02em; }
.md-pen-winner   { display: block; margin-top: 4px; font-size: 13px; font-weight: 800; color: #0b0e15; letter-spacing: .01em; }
.md-status-live  { background: #b01818; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.md-live-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
  animation: md-pulse 1.2s ease-in-out infinite;
}
@keyframes md-pulse { 0%,100%{ opacity:1; } 50%{ opacity:0.3; } }

/* Scheduled match center */
.md-score-vs {
  font-size: 18px;
  font-weight: 700;
  color: #60697d;
  letter-spacing: 2px;
  line-height: 1;
}
.md-sched-date {
  font-size: 11px;
  font-weight: 600;
  color: #60697d;
  letter-spacing: 0.3px;
}
.md-sched-time {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: 1px;
  line-height: 1;
}

.md-scorers-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin: 14px auto 0;
  max-width: 640px;
  text-align: left;
}
.md-scorers-side {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  background: rgba(255,255,255,.72);
}
.md-scorers-team {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #97a0b3;
}
.md-scorers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.md-scorer-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff4f4;
  color: #b01818;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}
.md-scorers-empty {
  color: #97a0b3;
  font-size: 11px;
  font-weight: 700;
}

/* BET button — separate row below scoreboard */
.md-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}
.md-hero-actions[hidden] { display: none !important; }
.md-hero-actions .md-betnow,
.md-hero .md-betnow {
  display: inline-block;
  padding: 8px 32px;
  background: #b01818;
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(176,24,24,0.3);
  transition: background .15s, transform .05s, box-shadow .15s;
}
.md-hero-actions .md-betnow:hover { background: #8e101b; box-shadow: 0 4px 12px rgba(176,24,24,0.4); }
.md-hero-actions .md-betnow:active { transform: translateY(1px); box-shadow: none; }

/* Not-found message */
.md-not-found {
  text-align: center;
  padding: 48px 24px;
  color: #60697d;
}
.md-not-found p { font-size: 15px; margin: 0 0 16px; }
.md-not-found a {
  display: inline-block;
  padding: 8px 22px;
  background: #b01818;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.md-not-found a:hover { background: #8e101b; }

/* Info grid (scheduled match — Info tab) */
.md-info-grid {
  padding: 0;
}
.md-info-row {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid #f0f2f5;
  font-size: 14px;
  transition: background .15s;
}
.md-info-row:hover { background: #fafbfd; }
.md-info-row:last-child { border-bottom: none; }
.md-info-label {
  width: 120px;
  flex-shrink: 0;
  font-weight: 800;
  color: #b01818;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
}
.md-info-value {
  color: #1a1a2e;
  font-weight: 600;
  font-size: 14px;
}

/* Match meta — distinct top bar */
.md-match-meta {
  text-align: center;
  padding: 14px 20px;
  margin: 0;
  background: linear-gradient(180deg, #f4f5f9 0%, #eef0f5 100%);
  border-bottom: 2px solid #e2e5ec;
  font-size: 12px;
  color: #4d5566;
  line-height: 2;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.md-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
}
.md-meta-icon {
  flex-shrink: 0;
  vertical-align: middle;
  color: #b01818;
  opacity: 0.8;
}
.md-meta-dot {
  display: inline-block;
  margin: 0 8px;
  color: #c8cdd8;
  font-weight: 900;
  font-size: 10px;
  vertical-align: middle;
}

/* Events section */
.md-section--events { border-top: 1px solid #eee; }
.md-events { border-top: none; margin-top: 0; }
.md-events-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 2px solid #f0f2f5;
}
.md-events-team { font-size: 12px; font-weight: 800; color: #1a1a2e; text-transform: uppercase; letter-spacing: 0.5px; }
.md-events-team:first-child { text-align: right; padding-right: 14px; }
.md-events-team:last-child  { text-align: left;  padding-left: 14px; }
.md-events-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px; color: #b01818; }

.md-events-list {
  padding: 0;
}
.md-ev {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: center;
  padding: 5px 14px;
  border-bottom: 1px solid #f3f5f8;
  font-size: 12px;
  position: relative;
}
.md-ev:last-child { border-bottom: none; }
.md-ev-home { text-align: right; padding-right: 8px; line-height: 1.2; }
.md-ev-away { text-align: left;  padding-left: 8px;  line-height: 1.2; }
.md-ev-min-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.md-ev-min {
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: #ccc;
  border-radius: 999px;
  padding: 2px 0;
  line-height: 1;
  width: 30px;
  margin: 0 auto;
}
.md-ev--home .md-ev-min { background: #1a1a2e; }
.md-ev--away .md-ev-min { background: #b01818; }

/* Goal rows — prominent */
.md-ev--goal {
  background: #fef7f7;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}
.md-ev--goal .md-ev-min {
  width: 34px;
  padding: 3px 0;
  font-size: 11px;
}

/* Substitution rows — subdued */
.md-ev--sub {
  font-size: 11px;
  color: #777;
  padding: 3px 14px;
}
.md-ev--sub .md-ev-min {
  background: #bbb;
  width: 28px;
  font-size: 9px;
}
.md-ev--home.md-ev--sub .md-ev-min { background: #aab0be; }
.md-ev--away.md-ev--sub .md-ev-min { background: #d4a0a0; }

/* Half-time separator */
.md-ev-ht {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f8f9fc;
  border-top: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
  margin: 4px 0;
}
.md-ev-ht-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #97a0b3;
  background: #edf0f4;
  padding: 2px 8px;
  border-radius: 4px;
}
.md-ev-ht-score {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
}

/* Badges */
.csh-inc-badge {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.3px;
  vertical-align: middle;
  margin: 0 2px;
  line-height: 1.4;
}
.csh-inc-goal { background: #b01818; color: #fff; }
.csh-inc-goal-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 4px 0 2px;
  font-size: 16px;
  line-height: 1;
}
.csh-inc-sub  { background: #27ae60; color: #fff; }
.csh-inc-assist { font-size: 11px; color: #999; font-style: italic; }
.csh-inc-sub-in  { font-weight: 700; color: #222; }
.csh-inc-sub-out { color: #aaa; font-size: 12px; }

/* Card icons — LiveScore style */
.csh-card-icon {
  display: inline-block;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 5px;
  flex-shrink: 0;
}
.csh-card-yc { background: #f0c800; }
.csh-card-rc { background: #c0392b; }

/* Goal running score in center column */
.md-ev-min-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.md-ev-score {
  font-size: 11px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* FT separator */
.md-ev-ft {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: #1a1a2e;
  margin-top: 6px;
}
.md-ev-ft-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 4px;
}
.md-ev-ft-score {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
}

/* Penalty shootout section in match-detail timeline */
.md-ev-pen-header { background: #5a1010; }
.md-pen-label    { background: rgba(255,255,255,0.18) !important; color: #fff !important; letter-spacing: 1.5px !important; }
.md-ev--pen .md-pen-min { background: #b01818; color: #fff; }
.md-ev-pen-pair .md-pen-min { background: #b01818; color: #fff; }
.md-ev-pen-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 11px 18px;
  border-bottom: 1px solid #eee;
}
.md-pen-side {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}
.md-pen-side--home { justify-content: flex-end; text-align: right; }
.md-pen-side--away { justify-content: flex-start; text-align: left; }
.md-pen-player {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.md-pen-kick {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.md-pen-pair-score {
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  color: #111827;
  letter-spacing: 1px;
}
.md-pen-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  margin-right: 4px;
  vertical-align: middle;
}
.md-pen-scored { background: #1f9d55; color: #fff; }
.md-pen-missed { background: #cbd5e1; color: #475569; }

/* Standings inside card */
.md-card .csh-standings { margin: 0; padding: 0; border-top: 1px solid #eee; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  /* Card: full-width, no side radius on very small screens */
  .md-card { border-radius: 6px; }

  /* Hero: no side padding so scoreboard can spread edge-to-edge */
  .md-hero { padding: 14px 0 12px; }
  .md-league-label { gap: 6px; font-size: 10px; letter-spacing: 1px; margin-bottom: 10px; }
  .md-round-pill { font-size: 9px; padding: 1px 7px; }

  /* Scoreboard: fill full width, teams centered in their columns */
  .md-scoreboard { gap: 4px; grid-template-columns: 1fr auto 1fr; width: 100%; }
  .md-team--home { justify-self: center; }
  .md-team--away { justify-self: center; }
  .md-team { gap: 5px; }
  .md-team-logo { width: 38px; height: 38px; }
  .md-team-name { font-size: 10px; max-width: 90px; line-height: 1.2; }

  /* Score center */
  .md-score-num { font-size: 22px; letter-spacing: 2px; }
  .md-score-vs { font-size: 14px; }
  .md-sched-time { font-size: 16px; }
  .md-sched-date { font-size: 10px; }
  .md-score-center { min-width: 64px; gap: 4px; }

  /* Status badges — compact */
  .md-status-badge { padding: 2px 9px; font-size: 10px; letter-spacing: 0.5px; }
  .md-live-pulse { width: 6px; height: 6px; }

  /* BET NOW — smaller on mobile */
  .md-hero-actions { margin-top: 10px; }
  .md-hero-actions .md-betnow,
  .md-hero .md-betnow { padding: 6px 20px; font-size: 10px; letter-spacing: 0.5px; }

  .md-info-row { padding: 12px 14px; font-size: 13px; }
  .md-info-label { width: 90px; font-size: 10px; }
  .md-match-meta { font-size: 11px; padding: 10px 12px; line-height: 1.7; }
  .md-meta-dot { margin: 0 5px; }
  .md-section-head { padding: 12px 12px 0; }
  .md-ev { grid-template-columns: 1fr 30px 1fr; padding: 5px 6px; font-size: 11px; }
  .md-ev--goal { padding: 7px 6px; font-size: 12px; }
  .md-ev-min { width: 26px; font-size: 9px; }
  .md-events-head { padding: 8px 10px; }
  .md-events-team { font-size: 10px; }
  .md-events-label { font-size: 9px; }
  .md-events { margin-top: 4px; }
  .md-tab-btn { padding: 10px 14px; font-size: 11px; }
  /* Prevent mobile event text overflow */
  .md-ev-home, .md-ev-away { overflow: hidden; text-overflow: ellipsis; }
  .csh-inc-badge { font-size: 7px; padding: 1px 4px; }
  .csh-inc-assist { font-size: 9px; }
  .csh-inc-sub-out { font-size: 10px; }
}

/* Standing Table*/
.csh-standings {
  width: 100%;
  margin: 0 0 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  overflow: hidden;
}

.csh-standings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
  border-bottom: 1px solid #f1f3f7;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.csh-modern-table { width: 100%; border-collapse: collapse; font-family: inherit; margin-bottom: 30px; }
.csh-modern-table th {
  text-align: left; padding: 12px 10px; background: #f5f5f5;
  font-size: 14px; text-transform: uppercase; color: #888;
}
.csh-modern-table td { padding: 12px 10px; vertical-align: middle; font-size: 15px; border-bottom: 1px solid #eee; }
.csh-modern-table tbody tr:nth-child(even) { background-color: #fcfcfc; }
.csh-modern-table tbody tr:hover { background-color: #f1f1f1; }

.team-cell { display: flex; align-items: center; gap: 10px; }
.team-logo { width: 20px; height: 20px; vertical-align: middle; }
.team-name { font-weight: 700; }

/* Compact table */
.modern-standings { width: 100%; border-collapse: collapse; table-layout: auto; font-family: inherit; font-size: 14px; }
.modern-standings thead th {
  text-align: center; padding: 12px 8px; font-size: 11px; color: #fff;
  background: #1a1a2e; border: none; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.modern-standings thead th:first-child { text-align: center; width: 36px; min-width: 36px; border: none; border-radius: 6px 0 0 0; white-space: nowrap; }
.modern-standings thead th:last-child { border-radius: 0 6px 0 0; }
.modern-standings tbody td:first-child { text-align: center; width: 36px; min-width: 36px; border: none; white-space: nowrap; }
.modern-standings thead th:nth-child(2),
.modern-standings tbody td:nth-child(2) { text-align: left; border: none; }
.modern-standings thead th:not(:first-child):not(:nth-child(2)),
.modern-standings tbody td:not(:first-child):not(:nth-child(2)) { text-align: center; width: 55px; background: none; }
.modern-standings tbody tr { border-bottom: 1px solid #f0f2f5; transition: background .12s; }
.modern-standings tbody tr:nth-child(even) { background: #fafbfd; }
.modern-standings tbody tr:hover { background: #f0f2f7; }
.modern-standings tbody td { padding: 11px 10px; vertical-align: middle; border: none; font-size: 13px; color: #333; }
.pts { font-weight: 800; color: #1a1a2e; font-size: 14px; }
.md-highlight-row { background: rgba(176,24,24,0.06) !important; }
.md-highlight-row:hover { background: rgba(176,24,24,0.10) !important; }
.md-highlight-row td:first-child { border-left: 3px solid #b01818; }

.ms-rank { width: 36px; min-width: 36px; text-align: center; font-weight: 800; color: #1a1a2e; font-size: 13px; white-space: nowrap; }
.ms-gd { text-align: center; white-space: nowrap; font-weight: 600; color: #4d5566; }

/* Table zone colored left border */
.ms-zone-ucl  td:first-child { border-left: 3px solid #1e90ff !important; }
.ms-zone-uel  td:first-child { border-left: 3px solid #f07800 !important; }
.ms-zone-uecl td:first-child { border-left: 3px solid #27ae60 !important; }
.ms-zone-rel  td:first-child { border-left: 3px solid #c0392b !important; }
/* When both match highlight + zone: zone wins on left, highlight bg wins */
.md-highlight-row.ms-zone-ucl  td:first-child { border-left: 3px solid #1e90ff !important; }
.md-highlight-row.ms-zone-uel  td:first-child { border-left: 3px solid #f07800 !important; }
.md-highlight-row.ms-zone-uecl td:first-child { border-left: 3px solid #27ae60 !important; }
.md-highlight-row.ms-zone-rel  td:first-child { border-left: 3px solid #c0392b !important; }
/* Cup qualification and the UEFA league-phase knockout playoff. */
.ms-zone-adv     td:first-child { border-left: 3px solid #1e90ff !important; }
.ms-zone-playoff td:first-child { border-left: 3px solid #8e6fd8 !important; }
.md-highlight-row.ms-zone-adv     td:first-child { border-left: 3px solid #1e90ff !important; }
.md-highlight-row.ms-zone-playoff td:first-child { border-left: 3px solid #8e6fd8 !important; }
.table-scroll-wrapper { width: 100%; overflow-x: auto; }

/* Zone legend — a coloured stripe means nothing without it. */
.ms-zone-legend {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12px;
  color: #4d5566;
}
.ms-zone-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.ms-zone-swatch { width: 10px; height: 10px; border-radius: 2px; background: #b9c0cc; flex: 0 0 auto; }
.ms-zone-legend-ucl     .ms-zone-swatch { background: #1e90ff; }
.ms-zone-legend-adv     .ms-zone-swatch { background: #1e90ff; }
.ms-zone-legend-uel     .ms-zone-swatch { background: #f07800; }
.ms-zone-legend-uecl    .ms-zone-swatch { background: #27ae60; }
.ms-zone-legend-playoff .ms-zone-swatch { background: #8e6fd8; }
.ms-zone-legend-rel     .ms-zone-swatch { background: #c0392b; }

/* Match detail fixtures */
.md-fixtures-list {
  padding: 14px 16px 16px;
}
.md-fixture-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  color: #07172f;
  text-decoration: none !important;
  border: 1px solid #eef1f6;
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.md-fixture-row + .md-fixture-row {
  margin-top: 8px;
}
.md-fixture-row:hover {
  border-color: #d8dee9;
  background: #fbfcff;
}
.md-fixture-row--current {
  border-color: #f1c7c7;
  background: #fffafa;
}
.md-fixture-date {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #8d96aa;
  font-size: 11px;
  line-height: 1.1;
  text-transform: uppercase;
}
.md-fixture-date strong {
  color: #07172f;
  font-size: 12px;
}
.md-fixture-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
}
.md-fixture-team--away {
  justify-content: flex-end;
  text-align: right;
}
.md-fixture-team img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 24px;
}
.md-fixture-team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.md-fixture-score {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b01818;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}
@media screen and (max-width: 768px) {
  .table-scroll-wrapper { overflow-x: hidden; }
  .modern-standings { min-width: 0 !important; width: 100% !important; table-layout: fixed; font-size: 12px; }
  .modern-standings thead th { padding: 7px 4px; font-size: 10px; white-space: nowrap; }
  .modern-standings tbody td { padding: 8px 4px; font-size: 12px; }
  /* # column */
  .modern-standings thead th:first-child,
  .modern-standings tbody td:first-child { width: 24px; min-width: 24px; white-space: nowrap; }
  /* TEAM column — takes remaining space */
  .modern-standings thead th:nth-child(2),
  .modern-standings tbody td:nth-child(2) { width: auto; }
  /* P, GD, PTS — fixed narrow */
  .modern-standings thead th:not(:first-child):not(:nth-child(2)),
  .modern-standings tbody td:not(:first-child):not(:nth-child(2)) { width: 36px; min-width: 36px; text-align: center; }
  .ms-hide-m { display: none !important; }
  .modern-standings .team-cell { gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; }
  .modern-standings .team-cell div, .modern-standings .team-cell span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .modern-standings .team-logo { width: 16px; height: 16px; flex-shrink: 0; }
  .ms-rank { font-size: 11px; width: 24px; }
  .md-fixtures-list { padding: 12px 10px 14px; }
  .md-fixture-row {
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-areas:
      "date home"
      "date away";
    gap: 7px 10px;
    min-height: 74px;
    padding: 11px 10px;
    align-items: center;
  }
  .md-fixture-date {
    grid-area: date;
    align-self: center;
    font-size: 10px;
  }
  .md-fixture-date strong,
  .md-fixture-score { font-size: 11px; }
  .md-fixture-team {
    gap: 6px;
    font-size: 13px;
  }
  .md-fixture-team--home {
    grid-area: home;
  }
  .md-fixture-team--away {
    grid-area: away;
    justify-content: flex-start;
    text-align: left;
  }
  .md-fixture-team img {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
  .md-fixture-team span {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
  }
  .md-fixture-score {
    display: none;
  }
}

/* List Page*/
.live-match-row-v2 { align-items: center; }

.match-status {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px; /* space between score, status, CTA */
}
.score-text { font-size: 16px; font-weight: bold; margin-bottom: 2px; display: block; }
.status-text { font-size: 12px; color: #777; }
.status-text.live { color: #b01818; font-weight: bold; }

/* Mobile utilities for list page */
@media (max-width: 768px) {
  .team-info { flex-direction: column; align-items: center; justify-content: center; margin: 2px 0; }
  .team-name { font-size: 15px; margin-bottom: 4px; text-align: center; }
  .match-time { text-align: center !important; }
}

/* Breadcrumb + H1 */
.csh-breadcrumb {
  margin: 16px 0 12px;
  font-size: 12px;
  color: #aab0be;
  letter-spacing: 0.2px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.csh-breadcrumb a {
  color: #9ca3af;
  text-decoration: none;
  font-weight: 500;
}

.csh-breadcrumb a:hover {
  color: #b01818;
}

.csh-breadcrumb-league {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.csh-breadcrumb-logo {
  width: 16px;
  height: 16px;
  min-width: 16px;
  flex-shrink: 0;
  object-fit: contain;
  vertical-align: middle;
  border-radius: 2px;
}
.csh-breadcrumb-logo--svg {
  display: inline-block;
}
@media (max-width: 600px) {
  .csh-breadcrumb-logo { display: none; }
}

/* H1 — SEO only, not visible */
.csh-match-heading {
  margin: 12px 0 18px;
}
.csh-match-title {
  margin: 0;
  color: #07172f;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}
@media (max-width: 600px) {
  .csh-match-heading {
    margin: 10px 0 14px;
  }
  .csh-match-title {
    font-size: 20px;
    line-height: 1.25;
  }
}

.csh-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Meta strip — top of card, above hero */
.md-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 10px 20px;
  border-bottom: 1px solid #edf0f4;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.7;
}
@media (max-width: 600px) {
  .md-card-meta { font-size: 11px; padding: 8px 14px; }
  .md-meta-dot { margin: 0 5px; }
}

@media (max-width: 768px){

  #csh-ajax-ticker,
  .csh-container{
    position: relative;
    width: 100% !important;
    max-width: 100% !important;

    /* full-bleed, amma 100vw yoxdur */
    left: 50%;
    transform: translateX(-50%);
    right: auto;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
  }

  /* Swipe scroll, hide real scrollbars (keep only the small left hint pill) */
  .csh-inner{
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;

    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* old Edge/IE */
  }
  .csh-inner::-webkit-scrollbar{
    width: 0 !important;
    height: 0 !important;
    display: none !important;   /* Chrome/Safari */
  }

  /* Hide arrows on mobile */
  .csh-arrow{ display: none !important; }

  /* Card sizing and single divider (right side only) */
  .csh-item{
    width: 170px !important;
    min-width: 170px !important;
    margin: 0 !important;
    padding: 7px 12px 9px !important;

    border: 0 !important;
    border-right: 1px solid rgba(0,0,0,0.15) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .csh-item:last-child{ border-right: 0 !important; }

  .csh-header{
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    column-gap: 5px !important;

    margin: 0 0 5px 0 !important;
    padding: 0 0 4px 0 !important;

    border: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.15) !important;

    font-size: 11px !important;
    line-height: 22px !important;
    height: 27px !important;
    max-height: 27px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    color: #000 !important;
  }

  .csh-league{
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .csh-league-icon{ width: 13px !important; height: 13px !important; margin-right: 4px !important; flex-shrink: 0 !important; }
  .csh-league-name{
    font-size: 11px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
  }
  .csh-date{
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 11px !important;
    color: #000 !important;
    padding-left: 0 !important;
  }

  /* Team rows, no line between teams */
  .csh-row{
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
  }
  .csh-row + .csh-row{
    border-top: 0 !important;
    margin-top: 6px !important;
  }

  .cstl-team-info{
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #000 !important;
  }

  .csh-team-logo{
    width: 22px !important;
    height: 22px !important;
    margin-right: 6px !important;
    border-radius: 50%;
  }

  .csh-score-box{
    background: #e9e9e9 !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    min-width: 26px !important;
    text-align: center !important;
    color: #000 !important;
  }

  /* Keep live minute as red blinking text */
  .csh-live-status{
    color:#d50102 !important;
    background:transparent !important;
    font-size:13px !important;
    font-weight:900 !important;
    padding:0 !important;
    border-radius:0 !important;
    animation:csh-live-blink 1.1s ease-in-out infinite !important;
  }

  /* Only the small left scroll hint pill */
  .csh-container:after{
    content: "";
    position: absolute;
    left: 10px;
    bottom: 2px;
    width: 64px;
    height: 4px;
    background: rgba(0,0,0,.28);
    border-radius: 999px;
    pointer-events: none;
    z-index: 5;
    opacity: .85;
  }
}
@media (max-width: 768px){
  .csh-container:after{
    bottom: 2px !important;
  }
}


@media (max-width: 768px){

  /* Mobile: let native momentum scrolling handle movement (prevents "double jump") */
  .csh-inner{ scroll-behavior: auto !important; }

  /* Scroll hint pill: fade while actively scrolling (JS toggles .csh-is-scrolling) */
  .csh-container:after{ transition: opacity .18s ease; }
  .csh-container.csh-is-scrolling:after{ opacity: 0; }

}


@media (max-width: 768px){
  .csh-container{ position: relative; }

  .csh-container:after{
    content: "";
    position: absolute;
    left: 12px;
    bottom: 6px; 
    width: 50px;
    height: 4px;      
    background: rgba(0,0,0,.28);
    border-radius: 999px;
    pointer-events: none;
    z-index: 5;
    opacity: .85;
  }

  .csh-container:after{ transition: opacity .18s ease; }
  .csh-container.csh-is-scrolling:after{ opacity: .25; }
}



@media (max-width: 768px){

  .csh-container{ 
    --csh-thumb-x: 0px;
    --csh-thumb-w: 46px;
  }

  .csh-container:after{
    width: var(--csh-thumb-w) !important;
    transform: translateX(var(--csh-thumb-x));
    will-change: transform;
  }
}

/* ===== TABS ===== */
.md-tab-nav-wrap {
  background: #fbfcff;
  border-top: 1px solid #edf0f5;
  border-bottom: 1px solid #edf0f5;
  padding: 0 20px;
}
.md-tab-nav {
  display: flex;
  gap: 4px;
  padding: 0;
}
.md-tab-btn {
  background: transparent !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  box-shadow: none !important;
  outline: none;
  border-radius: 6px 6px 0 0 !important;
  padding: 15px 18px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #6f788b;
  cursor: pointer;
  transition: background .15s, color .15s, border-bottom-color .15s;
  line-height: 1;
  position: relative;
  margin-bottom: -1px;
}
.md-tab-btn:hover,
.md-tab-btn:focus {
  background: #f6f8fb !important;
  box-shadow: none !important;
  color: #263244 !important;
}
.md-tab-btn--active,
.md-tab-btn--active:hover,
.md-tab-btn--active:focus {
  background: #fff5f5 !important;
  box-shadow: none !important;
  color: #b01818 !important;
  border-bottom-color: #b01818 !important;
}
.md-tab-panel { display: none; }
.md-tab-panel--active { display: block; }

@media (max-width: 600px) {
  .md-tab-nav-wrap {
    padding: 0 12px;
  }
  .md-tab-nav {
    gap: 2px;
  }
  .md-tab-btn {
    padding: 14px 12px 11px;
    font-size: 12px;
    letter-spacing: .01em;
  }
}

.md-empty-panel {
  text-align: center;
  padding: 24px 16px;
  color: #97a0b3;
  font-size: 13px;
}

/* Tips wrap inside tab */
.md-tips-wrap {
  padding: 18px 22px 22px;
  background: #fbfcff;
}
.md-tips-wrap .ls-tipster-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  pointer-events: none;
}
/* The article odds widget's tips look (csa1x-article.css): one light panel,
   a small red heading, tips as rows split by hairlines, the pick as a teal
   pill with the hit rate and bar on its right. Replaces the three separate
   cards with red side bars live-scores.css lays out as a grid. */
.md-tips-wrap .ls-tipster-panel {
  display: block;
  grid-template-columns: none;
  /* Full width from the left, like the Standings tab - not a centred box. */
  max-width: none;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #ead9d9 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  background: #fffdfd;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.md-tips-wrap .ls-tipster-panel-head {
  display: block;
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid #e3e8ef;
  color: #9f1023;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.md-tips-wrap .ls-tipster-panel-head::before {
  content: none;
  display: none;
}
.md-tips-wrap .ls-tipster-panel-item,
.md-tips-wrap .ls-tipster-panel-item:first-of-type {
  min-width: 0;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid #efe2e2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
/* No red side bar per tip any more - rows, like the widget. */
.md-tips-wrap .ls-tipster-panel-item::before {
  content: none;
  display: none;
}
.md-tips-wrap .ls-tipster-panel-head + .ls-tipster-panel-item,
.md-tips-wrap .ls-tipster-panel-item:first-child {
  padding-top: 0;
  border-top: 0;
}
.md-tips-wrap .ls-tipster-panel-item:last-child {
  padding-bottom: 0;
}
.md-tips-wrap .ls-tipster-panel-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 7px;
}
.md-tips-wrap .ls-tipster-panel-pick {
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0;
  padding: 4px 8px;
  border-radius: 6px;
  background: #e3f6f3;
  color: #087f77;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}
.md-tips-wrap .ls-tipster-panel-rate-num {
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
}
.md-tips-wrap .ls-tipster-panel-bar {
  width: 46px;
  height: 5px;
  background: #eceff4;
}
.md-tips-wrap .ls-tipster-panel-bar-fill {
  background: #c8102e;
}
.md-tips-wrap .ls-tipster-panel-text {
  overflow-wrap: anywhere;
  margin: 0;
  color: #344054;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}
@media (max-width: 680px) {
  .md-tips-wrap {
    padding: 14px;
  }
  .md-tips-wrap .ls-tipster-panel-row {
    gap: 8px;
  }
  .md-tips-wrap .ls-tipster-panel-bar {
    width: 34px;
  }
}

/* ===== STATS ===== */
.md-summary-stack {
  padding: 16px;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
}
.md-summary-stack--insights {
  display: grid;
  gap: 14px;
}
.md-brief-panel {
  padding: 13px 15px;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  background: #fbfcff;
  color: #344054;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}
.md-insight-panel {
  border: 1px solid #edf0f4;
  border-radius: 12px;
  background: #fbfcff;
  overflow: hidden;
}
.md-block-title {
  margin: 0;
  padding: 13px 16px 0;
  color: #1a1a2e;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.md-stats-teams {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.md-stats-team-label { color: #1a1a2e; }
.md-stats-team-label--away { color: #b01818; }

.md-stat-row {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 10px;
  padding: 9px 16px;
  border-bottom: 1px solid #f3f5f8;
}
.md-stat-row:last-child { border-bottom: none; }

.md-stat-val {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  text-align: left;
}
.md-stat-val--right { text-align: right; color: #b01818; }

.md-stat-bars {
  display: flex;
  height: 7px;
  border-radius: 4px;
  overflow: hidden;
  background: #edf0f4;
  gap: 2px;
}
.md-stat-bar--home {
  background: #1a1a2e;
  height: 100%;
  border-radius: 4px 0 0 4px;
  transition: width .4s ease;
  min-width: 4px;
}
.md-stat-bar--away {
  background: #b01818;
  height: 100%;
  border-radius: 0 4px 4px 0;
  transition: width .4s ease;
  min-width: 4px;
}
.md-stat-label {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: #97a0b3;
  letter-spacing: 0.3px;
  padding-top: 3px;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .md-scorers-row { grid-template-columns: 1fr; }
  .md-summary-stack { padding: 12px; }
  .md-stat-row { padding: 8px 12px; }
}

.md-context-panel,
.md-next-panel {
  padding-bottom: 12px;
}
.md-context-name {
  padding: 6px 16px 2px;
  color: #97a0b3;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .7px;
}
.md-context-list,
.md-next-list {
  display: grid;
  gap: 8px;
  padding: 10px 16px 0;
}
.md-context-row,
.md-next-row {
  display: grid;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  background: #fff;
}
/* A header row and fixed number columns, so the panel reads as a standings
   table: # | team | P W D L | GD | Pts | form. Fixed widths rather than auto,
   because each row is its own grid and auto would let the columns drift. */
.md-context-row {
  grid-template-columns: 26px minmax(0, 1fr) repeat(4, 24px) 38px 42px 94px;
}
.md-context-head {
  padding: 0 13px 7px;
  border: 0;
  border-bottom: 1px solid #eef1f5;
  border-radius: 0;
  background: none;
  color: #8a93a6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
}
.md-context-head .md-context-head-team { text-align: left; }
.md-context-num {
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.md-context-form { display: flex; justify-content: center; }
.md-context-form .ms-form-strip { gap: 3px; }
.md-context-form .ms-form-box { width: 16px; height: 16px; font-size: 9px; }
.md-context-form-empty { color: #b3bac6; font-size: 12px; font-weight: 800; }
.md-context-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #eef2f8;
  color: #1f2a44;
  font-size: 11px;
  font-weight: 900;
}
.md-context-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #1a1a2e;
  font-weight: 900;
  font-size: 13px;
}
.md-context-team img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
}
.md-context-stat,
.md-next-date {
  color: #60697d;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
/* Points are the number the panel exists for, so they sit in a pill of their
   own; goal difference takes its sign in colour. */
.md-context-pts {
  justify-self: center;
  min-width: 34px;
  padding: 4px 7px;
  border: 1px solid #f6d3d8;
  border-radius: 7px;
  background: #fff1f3;
  color: #b01818;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.md-context-gd--pos { color: #15803d; }
.md-context-gd--neg { color: #c0263b; }
.md-next-row {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) auto;
}
.md-next-team,
.md-next-opponent {
  min-width: 0;
  color: #1a1a2e;
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.md-next-opponent {
  color: #344054;
}

@media (max-width: 600px) {
  .md-context-list,
  .md-next-list { padding: 10px 12px 0; }
  /* A phone keeps what matters - played, goal difference, points - under
     the same header; it used to hide the labelled cells and keep only "pts". */
  .md-context-row { grid-template-columns: 24px minmax(0, 1fr) 26px 38px 42px; }
  .md-context-head { padding: 0 13px 6px; }
  .md-context-hide-m { display: none !important; }
  .md-next-row { grid-template-columns: 1fr; align-items: start; }
  .md-next-team,
  .md-next-opponent { white-space: normal; }
}

/* Tipster match block */

.csh-tipster-block {
  --csh-tipster-brand: #b01818;
  --csh-tipster-brand-soft: #f8ecec;
  --csh-tipster-brand-ink: #3f1414;
  --csh-tipster-border: #eadede;
  margin-top: 22px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(176,24,24,0.04) 0%, rgba(176,24,24,0) 70%),
    #fff;
  border: 1px solid var(--csh-tipster-border);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}

.csh-tipster-head {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.csh-tipster-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--csh-tipster-brand);
  margin-bottom: 8px;
}

.csh-tipster-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  color: #151515;
  max-width: 640px;
}

.csh-tipster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.csh-tipster-card {
  position: relative;
  border: 1px solid #eadede;
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.025);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  overflow: hidden;
}

.csh-tipster-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: var(--csh-tipster-accent, var(--csh-tipster-brand));
}

.csh-tipster-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0,0,0,0.07);
  border-color: #dfc9c9;
}

.csh-tipster-card-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 14px;
}

.csh-tipster-dot {
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--csh-tipster-accent, var(--csh-tipster-brand)) 20%, white);
  border: 1px solid color-mix(in srgb, var(--csh-tipster-accent, var(--csh-tipster-brand)) 28%, white);
  flex: 0 0 auto;
}

.csh-tipster-pick {
  font-size: 21px;
  line-height: 1.15;
  font-weight: 800;
  color: #111;
  margin-bottom: 10px;
  max-width: 18ch;
}

.csh-tipster-text {
  margin: 0;
  color: #454545;
  font-size: 13px;
  line-height: 1.65;
}

.csh-tipster-card--result { --csh-tipster-accent: #b01818; }
.csh-tipster-card--totals { --csh-tipster-accent: #d24b1f; }
.csh-tipster-card--handicap { --csh-tipster-accent: #8f2c7a; }
.csh-tipster-card--chance { --csh-tipster-accent: #5b3fc4; }
.csh-tipster-card--momentum { --csh-tipster-accent: #0f7a6a; }
.csh-tipster-card--btts { --csh-tipster-accent: #2a6cc6; }
.csh-tipster-card--teamgoals { --csh-tipster-accent: #7a4b10; }
.csh-tipster-card--neutral { --csh-tipster-accent: #b01818; }

.csh-tipster-debug {
  border: 1px solid #f0c7c7;
  background: #fff8f8;
}

.csh-tipster-debug-pre {
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #eadede;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.5;
  color: #222;
}

@media (max-width: 768px) {
  .csh-tipster-block {
    padding: 18px;
    border-radius: 12px;
  }

  .csh-tipster-head {
    flex-direction: column;
  }

  .csh-tipster-title {
    font-size: 24px;
    max-width: none;
  }

  .csh-tipster-grid {
    grid-template-columns: 1fr;
  }
}

.csh-score-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.csh-score-stack .ls-tipster-toggle--solo {
  margin-top: 0;
}

/* ================================================================ *
 *  Dark mode — Match Details (md-*)  (smart-mag: html.s-dark / html.site-s-dark)
 * ================================================================ */
html.s-dark .md-card, html.site-s-dark .md-card { background:#0b1018; border-color:rgba(255,255,255,.1); }
html.s-dark .md-team-name, html.site-s-dark .md-team-name,
html.s-dark .md-events-team, html.site-s-dark .md-events-team,
html.s-dark .match-title, html.site-s-dark .match-title,
html.s-dark .match-heading, html.site-s-dark .match-heading,
html.s-dark .md-ev-home, html.site-s-dark .md-ev-home,
html.s-dark .md-ev-away, html.site-s-dark .md-ev-away { color:#e5e7eb; }

html.s-dark .md-events-head, html.site-s-dark .md-events-head { background:#11161f; border-color:rgba(255,255,255,.1); }
html.s-dark .md-events-list, html.site-s-dark .md-events-list { background:#0b1018; }
html.s-dark .md-ev, html.site-s-dark .md-ev { border-bottom-color:rgba(255,255,255,.08); }

/* Score and event timeline: remove remaining light-mode surfaces in dark mode. */
html.s-dark .md-score-num, html.site-s-dark .md-score-num { color:#f8fafc; }
html.s-dark .md-score-vs, html.site-s-dark .md-score-vs, html.s-dark .md-sched-time, html.site-s-dark .md-sched-time { color:#e5e7eb; }
html.s-dark .md-status-ft, html.site-s-dark .md-status-ft { background:rgba(255,255,255,.08); color:#cbd2dc; }
html.s-dark .md-section--events, html.site-s-dark .md-section--events { border-color:rgba(255,255,255,.1); }
html.s-dark .md-ev--goal, html.site-s-dark .md-ev--goal { background:rgba(176,24,24,.1); }
html.s-dark .md-ev--sub, html.site-s-dark .md-ev--sub { color:#aeb7c4; }
html.s-dark .md-ev-ht, html.site-s-dark .md-ev-ht { background:#11161f; border-color:rgba(255,255,255,.1); }
html.s-dark .md-ev-ht-label, html.site-s-dark .md-ev-ht-label { background:rgba(255,255,255,.08); color:#9aa3b2; }
html.s-dark .md-ev-ht-score, html.site-s-dark .md-ev-ht-score, html.s-dark .md-ev-score, html.site-s-dark .md-ev-score { color:#f8fafc; }
html.s-dark .csh-inc-assist, html.site-s-dark .csh-inc-assist, html.s-dark .csh-inc-sub-out, html.site-s-dark .csh-inc-sub-out { color:#9aa3b2; }
html.s-dark .csh-inc-sub-in, html.site-s-dark .csh-inc-sub-in { color:#e5e7eb; }
html.s-dark .md-ev--home .md-ev-min, html.site-s-dark .md-ev--home .md-ev-min { background:#334155; }
html.s-dark .md-ev-pen-pair, html.site-s-dark .md-ev-pen-pair { border-color:rgba(255,255,255,.08); }
html.s-dark .md-pen-side, html.site-s-dark .md-pen-side { color:#e5e7eb; }
html.s-dark .md-pen-pair-score, html.site-s-dark .md-pen-pair-score { color:#f8fafc; }
html.s-dark .md-pen-missed, html.site-s-dark .md-pen-missed { background:#475569; color:#e2e8f0; }

/* Secondary match-detail text and panels need explicit dark contrast too. */
html.s-dark .md-sched-date, html.site-s-dark .md-sched-date { color:#aeb7c4; }
html.s-dark .md-match-meta, html.site-s-dark .md-match-meta { background:linear-gradient(180deg,#11161f,#0b1018); border-color:rgba(255,255,255,.1); color:#cbd2dc; }
html.s-dark .md-info-row, html.site-s-dark .md-info-row { border-color:rgba(255,255,255,.08); }
html.s-dark .md-info-value, html.site-s-dark .md-info-value { color:#e5e7eb; }
html.s-dark .md-stats-team-label, html.site-s-dark .md-stats-team-label { color:#e5e7eb; }
html.s-dark .md-stats-team-label--away, html.site-s-dark .md-stats-team-label--away { color:#ff9a9a; }
html.s-dark .md-stat-row, html.site-s-dark .md-stat-row { border-color:rgba(255,255,255,.08); }
html.s-dark .md-fixture-date strong, html.site-s-dark .md-fixture-date strong { color:#e5e7eb; }
html.s-dark .md-pen-line, html.site-s-dark .md-pen-line { color:#ff9a9a; }
html.s-dark .md-pen-winner, html.site-s-dark .md-pen-winner { color:#f8fafc; }
html.s-dark .md-info-row:hover, html.site-s-dark .md-info-row:hover { background:rgba(255,255,255,.04); }

html.s-dark .md-card-meta, html.site-s-dark .md-card-meta { background:#11161f; border-color:rgba(255,255,255,.1); color:#cbd2dc; }
html.s-dark .md-card-meta a, html.site-s-dark .md-card-meta a { color:#fca5a5; }

html.s-dark .md-tab-nav-wrap, html.site-s-dark .md-tab-nav-wrap,
html.s-dark .md-tab-nav, html.site-s-dark .md-tab-nav { background:#11161f; border-color:rgba(255,255,255,.1); }
html.s-dark .md-tab-btn, html.site-s-dark .md-tab-btn { color:#9aa3b2; }
html.s-dark .md-tab-btn:hover, html.site-s-dark .md-tab-btn:hover { color:#e5e7eb; }

html.s-dark .md-empty-panel, html.site-s-dark .md-empty-panel { background:#0b1018; color:#9aa3b2; border-color:rgba(255,255,255,.1); }
html.s-dark .md-summary-stack, html.site-s-dark .md-summary-stack { background:#0b1018; border-color:rgba(255,255,255,.1); }
html.s-dark .md-brief-panel, html.site-s-dark .md-brief-panel,
html.s-dark .md-insight-panel, html.site-s-dark .md-insight-panel,
html.s-dark .md-context-row, html.site-s-dark .md-context-row,
html.s-dark .md-next-row, html.site-s-dark .md-next-row,
html.s-dark .md-scorers-side, html.site-s-dark .md-scorers-side { background:#11161f; border-color:rgba(255,255,255,.1); color:#d8dee8; }
html.s-dark .md-block-title, html.site-s-dark .md-block-title,
html.s-dark .md-context-team, html.site-s-dark .md-context-team,
html.s-dark .md-next-team, html.site-s-dark .md-next-team { color:#e5e7eb; }
html.s-dark .md-brief-panel, html.site-s-dark .md-brief-panel,
html.s-dark .md-next-opponent, html.site-s-dark .md-next-opponent { color:#cbd2dc; }
html.s-dark .md-scorer-chip, html.site-s-dark .md-scorer-chip { background:rgba(176,24,24,.18); color:#ff9a9a; }
html.s-dark .md-context-rank, html.site-s-dark .md-context-rank { background:rgba(255,255,255,.08); color:#cbd2dc; }
html.s-dark .md-stat-bars, html.site-s-dark .md-stat-bars { background:rgba(255,255,255,.08); }
html.s-dark .md-stat-val, html.site-s-dark .md-stat-val { color:#e5e7eb; }
html.s-dark .md-stat-val--right, html.site-s-dark .md-stat-val--right,
html.s-dark .md-context-pts, html.site-s-dark .md-context-pts { color:#ff9a9a; }
html.s-dark .md-context-head, html.site-s-dark .md-context-head { background:none; border:0; color:#8b95a7; }
html.s-dark .md-context-num, html.site-s-dark .md-context-num { color:#cbd2dc; }
html.s-dark .md-context-head, html.site-s-dark .md-context-head { border-bottom:1px solid rgba(255,255,255,.08); }
html.s-dark .md-context-pts, html.site-s-dark .md-context-pts { background:rgba(255,107,107,.12); border-color:rgba(255,107,107,.3); }
html.s-dark .md-context-gd--pos, html.site-s-dark .md-context-gd--pos { color:#4ade80; }
html.s-dark .md-context-gd--neg, html.site-s-dark .md-context-gd--neg { color:#ff8a8a; }

/* badges/accents kept; pen/aet stay tinted but readable in dark */
html.s-dark .md-status-aet, html.site-s-dark .md-status-aet { background:rgba(168,91,0,.2); color:#ffcf99; }
html.s-dark .md-status-pen, html.site-s-dark .md-status-pen { background:rgba(176,24,24,.2); color:#ff9a9a; }

/* match details: hero card + standings tab + tips tab — dark */
html.s-dark .md-hero, html.site-s-dark .md-hero { background:linear-gradient(180deg,#0b1018 0%,#11161f 100%); color:#e5e7eb; }
html.s-dark .md-date, html.site-s-dark .md-date,
html.s-dark .md-vs, html.site-s-dark .md-vs,
html.s-dark .md-time, html.site-s-dark .md-time { color:#e5e7eb; }

/* standings tables inside match page */
html.s-dark .csh-standings, html.site-s-dark .csh-standings,
html.s-dark .csh-modern-table, html.site-s-dark .csh-modern-table { background:#0b1018; }
html.s-dark .csh-standings-head, html.site-s-dark .csh-standings-head { background:#11161f; color:#e5e7eb; }
html.s-dark .csh-modern-table th, html.site-s-dark .csh-modern-table th { background:rgba(255,255,255,.06); color:#cbd2dc; }
html.s-dark .csh-modern-table td, html.site-s-dark .csh-modern-table td { border-bottom-color:rgba(255,255,255,.08); color:#e5e7eb; }
html.s-dark .csh-modern-table tbody tr:nth-child(even), html.site-s-dark .csh-modern-table tbody tr:nth-child(even) { background-color:rgba(255,255,255,.03); }
html.s-dark .csh-modern-table tbody tr:hover, html.site-s-dark .csh-modern-table tbody tr:hover { background-color:rgba(176,24,24,.14); }
html.s-dark .modern-standings tbody td, html.site-s-dark .modern-standings tbody td { color:#e5e7eb; }
html.s-dark .modern-standings tbody tr:nth-child(even), html.site-s-dark .modern-standings tbody tr:nth-child(even) { background:rgba(255,255,255,.03); }
html.s-dark .modern-standings tbody tr:hover, html.site-s-dark .modern-standings tbody tr:hover { background:rgba(176,24,24,.14); }
html.s-dark .modern-standings tbody tr, html.site-s-dark .modern-standings tbody tr { border-bottom-color:rgba(255,255,255,.08); }

/* tips tab panel */
html.s-dark .md-tips-wrap .ls-tipster-panel, html.site-s-dark .md-tips-wrap .ls-tipster-panel { background:#11161f !important; border-color:rgba(255,255,255,.1) !important; }
html.s-dark .md-tips-wrap .ls-tipster-panel-item, html.site-s-dark .md-tips-wrap .ls-tipster-panel-item { background:transparent; border-color:rgba(255,255,255,.08); }
html.s-dark .md-tips-wrap .ls-tipster-panel-head, html.site-s-dark .md-tips-wrap .ls-tipster-panel-head { color:#ff9aa8; border-color:rgba(255,255,255,.1); }
html.s-dark .md-tips-wrap .ls-tipster-panel-pick, html.site-s-dark .md-tips-wrap .ls-tipster-panel-pick { background:rgba(74,190,180,.16); color:#78ddd4; }
html.s-dark .md-tips-wrap .ls-tipster-panel-rate-num, html.site-s-dark .md-tips-wrap .ls-tipster-panel-rate-num { color:#9aa4b2; }
html.s-dark .md-tips-wrap .ls-tipster-panel-bar, html.site-s-dark .md-tips-wrap .ls-tipster-panel-bar { background:rgba(255,255,255,.12); }
html.s-dark .md-tips-wrap .ls-tipster-panel-text, html.site-s-dark .md-tips-wrap .ls-tipster-panel-text { color:rgba(229,231,235,.78); }

/* match title + remaining match-detail light spots — dark */
html.s-dark .csh-match-title, html.site-s-dark .csh-match-title { color:#e5e7eb !important; }

/* tips tab wrapper (was #fbfcff) */
html.s-dark .md-tips-wrap, html.site-s-dark .md-tips-wrap { background:#0b1018; }

/* standings: odd rows were showing through light; force dark rows + light text */
html.s-dark .modern-standings tbody tr, html.site-s-dark .modern-standings tbody tr { background:#0b1018; }
html.s-dark .modern-standings tbody tr:nth-child(even), html.site-s-dark .modern-standings tbody tr:nth-child(even) { background:rgba(255,255,255,.03); }
html.s-dark .modern-standings tbody tr:hover, html.site-s-dark .modern-standings tbody tr:hover { background:rgba(176,24,24,.14); }
html.s-dark .md-highlight-row, html.site-s-dark .md-highlight-row { background:rgba(176,24,24,.18) !important; }
html.s-dark .modern-standings tbody td, html.site-s-dark .modern-standings tbody td,
html.s-dark .csh-team-name, html.site-s-dark .csh-team-name,
html.s-dark .ms-rank, html.site-s-dark .ms-rank,
html.s-dark .ms-gd, html.site-s-dark .ms-gd,
html.s-dark .pts, html.site-s-dark .pts { color:#e5e7eb !important; }

/* fixture rows inside match page */
html.s-dark .md-fixture-row, html.site-s-dark .md-fixture-row { background:#11161f; border-color:rgba(255,255,255,.1); color:#e5e7eb; }
html.s-dark .md-fixture-row:hover, html.site-s-dark .md-fixture-row:hover { border-color:rgba(255,255,255,.2); background:#161c27; }

/* standings header bar (# TEAM P W D L ...) — force dark */
html.s-dark .modern-standings thead th, html.site-s-dark .modern-standings thead th { background:#11161f !important; color:#cbd2dc !important; }
html.s-dark .csh-standings-head, html.site-s-dark .csh-standings-head { background:#11161f !important; color:#e5e7eb; }
html.s-dark .csh-modern-table thead th, html.site-s-dark .csh-modern-table thead th { background:#11161f !important; color:#cbd2dc !important; }

/* match-detail tabs — dark default + hover + active */
html.s-dark .md-tab-btn, html.site-s-dark .md-tab-btn { color:#9aa3b2 !important; }
html.s-dark .md-tab-btn:hover, html.site-s-dark .md-tab-btn:hover,
html.s-dark .md-tab-btn:focus, html.site-s-dark .md-tab-btn:focus { background:rgba(255,255,255,.06) !important; color:#e5e7eb !important; }
html.s-dark .md-tab-btn--active, html.site-s-dark .md-tab-btn--active,
html.s-dark .md-tab-btn--active:hover, html.site-s-dark .md-tab-btn--active:hover,
html.s-dark .md-tab-btn--active:focus, html.site-s-dark .md-tab-btn--active:focus { background:rgba(176,24,24,.18) !important; color:#ff9a9a !important; border-bottom-color:#b01818 !important; }

/* Match hero odds: bookmaker logo first, then aligned market cells. */
.md-odds {
  display:grid; grid-template-columns:minmax(88px,.85fr) repeat(3,minmax(86px,1fr));
  justify-content:stretch; align-items:stretch; gap:7px;
  margin:12px auto 0; padding:8px; max-width:480px;
  border-radius:12px;
  background:#f6f7f9;
  border:1px solid #e3e7ed;
}
.md-odds[hidden] { display: none !important; }
.md-odds-head {
  grid-column:1/-1; margin-bottom:1px;
  color:#7d8797; font-size:9px; font-weight:900;
  letter-spacing:.1em; text-transform:uppercase; text-align:left;
}
.md-odds-pill {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  min-height:40px; padding:4px 6px; border-radius:10px;
  background:#eef6ff; border:1px solid #cadced;
  text-decoration:none;
  transition:border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.md-odds-pill:hover { border-color:#8eb8dc; background:#e5f2ff; box-shadow:0 4px 12px rgba(18,93,153,.12); transform:translateY(-1px); text-decoration:none; }
.md-odds-pill em {
  font-style:normal; font-size:9px; font-weight:900; line-height:1;
  color:#617085;
}
.md-odds-val { color:#0b3157; font-size:14px; font-weight:950; font-variant-numeric:tabular-nums; line-height:1; }
.md-odds-by {
  position:relative; display:inline-flex; align-items:center; justify-content:center; padding:5px 8px;
  border-radius:10px; background:#eef6ff; color:#0b3157; border:1px solid #cadced;
  text-decoration:none; overflow:hidden;
  transition:border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.md-odds-by::after { content:'\2197'; position:absolute; top:2px; right:2px; color:#8a94a3; font-size:8px; line-height:1; }
.md-odds-by:hover { background:#e5f2ff; border-color:#8eb8dc; box-shadow:0 3px 10px rgba(18,93,153,.1); color:#0b3157; text-decoration:none; transform:translateY(-1px); }
.md-bookmaker-logo { display:block; width:82px; max-width:100%; height:20px; object-fit:contain; object-position:center; mix-blend-mode:normal; }
.md-odds--btts { grid-template-columns:minmax(90px,.9fr) repeat(2,minmax(96px,1fr)); max-width:480px; }
.md-odds--btts .md-odds-pill {
  gap:4px;
  justify-content:center;
  padding:7px 12px;
}
.md-odds--btts .md-odds-like {
  font-size:14px;
  line-height:1;
}
.md-odds--btts .md-odds-val {
  font-size:17px;
  letter-spacing:.01em;
}
@media (max-width: 600px) {
  .md-odds { grid-template-columns:72px repeat(3,minmax(0,1fr)); gap:5px; max-width:96%; padding:7px; }
  .md-odds--btts { grid-template-columns:72px repeat(2,minmax(0,1fr)); }
  .md-odds-by { min-width:0; padding:5px 6px; }
  .md-bookmaker-logo { width:58px; max-width:100%; height:18px; }
  .md-odds-pill { min-width:0; min-height:38px; padding:4px 3px; }
  .md-odds-val { font-size:13px; }
}

html.s-dark .md-odds, html.site-s-dark .md-odds { background:#11161f; border-color:rgba(255,255,255,.1); }
html.s-dark .md-odds-head, html.site-s-dark .md-odds-head { color:#a9b2c0; }
html.s-dark .md-odds-pill, html.site-s-dark .md-odds-pill { background:#142132; border-color:rgba(125,178,222,.26); }
html.s-dark .md-odds-pill:hover, html.site-s-dark .md-odds-pill:hover { background:#192a3e; border-color:rgba(125,178,222,.55); }
html.s-dark .md-odds-pill em, html.site-s-dark .md-odds-pill em { color:#aeb9c8; }
html.s-dark .md-odds-val, html.site-s-dark .md-odds-val { color:#eaf4ff; }
html.s-dark .md-odds-by, html.site-s-dark .md-odds-by { background:#142132; border-color:rgba(125,178,222,.26); }
html.s-dark .md-odds-by:hover, html.site-s-dark .md-odds-by:hover { background:#192a3e; border-color:rgba(125,178,222,.55); }
html.s-dark .md-bookmaker-logo, html.site-s-dark .md-bookmaker-logo { mix-blend-mode:normal; border-radius:5px; }

.md-form-card {
  margin:16px 14px 0;
  padding:14px;
  border:1px solid #edf0f5;
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.md-form-title {
  margin:0 0 12px;
  font-size:14px;
  line-height:1.2;
  font-weight:900;
  color:#0f172a;
}
.md-form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.md-form-team {
  padding:12px;
  border:1px solid #edf0f5;
  border-radius:12px;
  background:#f8fafc;
}
.md-form-team-head {
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  font-size:12px;
  font-weight:900;
  color:#182232;
}
.md-form-logo {
  width:22px;
  height:22px;
  object-fit:contain;
  border-radius:50%;
}
.md-form-strip {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.md-form-box {
  width:28px;
  height:28px;
  border-radius:7px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:12px;
  font-weight:950;
  line-height:1;
}
.md-form-w { background:#16a34a; }
.md-form-d { background:#f59e0b; }
.md-form-l { background:#dc2626; }
@media (max-width: 600px) {
  .md-form-grid { grid-template-columns:1fr; }
  .md-form-card { margin:14px 10px 0; padding:12px; }
}
html.s-dark .md-form-card, html.site-s-dark .md-form-card {
  background:#0b1018;
  border-color:rgba(255,255,255,.1);
  box-shadow:none;
}
html.s-dark .md-form-title, html.site-s-dark .md-form-title { color:#e5e7eb; }
html.s-dark .md-form-team, html.site-s-dark .md-form-team {
  background:#11161f;
  border-color:rgba(255,255,255,.1);
}
html.s-dark .md-form-team-head, html.site-s-dark .md-form-team-head { color:#f8fafc; }

/* match standings: recent-form column (W/D/L pills, latest on the right) */
.modern-standings thead th.ms-form,
.modern-standings tbody td.ms-form { width: auto !important; min-width: 96px; text-align: center !important; white-space: nowrap; }
.ms-form-strip { display: inline-flex; gap: 4px; align-items: center; justify-content: center; }
.ms-form-box {
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 800; line-height: 1;
}
.ms-form-w { background: #16a34a; }
.ms-form-d { background: #9ca3af; }
.ms-form-l { background: #e11d48; }
.ms-form-box--latest { box-shadow: 0 0 0 2px rgba(0,0,0,.12); }
.ms-form-empty { color: #b8bfca; font-weight: 700; }

/* live (provisional) standings: LiveScore-style orange dot per in-play team + key */
.ms-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #f97316; flex: 0 0 auto; display: inline-block;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(249,115,22,.55);
  animation: ms-live-pulse 1.5s infinite;
}
@keyframes ms-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(249,115,22,.55); }
  70% { box-shadow: 0 0 0 5px rgba(249,115,22,0); }
  100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); }
}
.md-standings-key {
  display: flex; align-items: center; gap: 7px;
  margin: 10px 14px 2px;
  font-size: 12px; color: #6b7280; font-weight: 600;
}
.md-standings-key--top { margin: 2px 14px 10px; }
html.s-dark .md-standings-key, html.site-s-dark .md-standings-key { color: #9aa3b2; }
@media (max-width: 600px) {
  .modern-standings thead th.ms-form,
  .modern-standings tbody td.ms-form { min-width: 70px !important; width: auto !important; padding-left: 6px; padding-right: 6px; }
  .ms-form-box { width: 16px; height: 16px; font-size: 9px; }
  .ms-form-strip { gap: 3px; }
}
html.s-dark .ms-form-box--latest, html.site-s-dark .ms-form-box--latest { box-shadow: 0 0 0 2px rgba(255,255,255,.18); }

/* match standings: group label heading (World Cup groups) */
.md-group-title {
  margin: 16px 14px 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #b01818;
}
.md-group-title:first-of-type { margin-top: 14px; }
html.s-dark .md-group-title, html.site-s-dark .md-group-title { color: #ff9a9a; }

/* Scheduled ticker cards: keep Today/Tomorrow/date beside the competition icon.
   Live/HT cards keep their minute badge on the right. */
.csh-item:not(.cs-live):not(.cs-ht) .csh-header {
  justify-content:flex-start !important;
  gap:6px !important;
}
.csh-item:not(.cs-live):not(.cs-ht) .csh-league {
  flex:0 0 auto !important;
}
.csh-item:not(.cs-live):not(.cs-ht) .csh-date {
  /* was margin-left:2px (old "date beside icon" design) - that !important
     kept beating the flush-right rule; time/FT now pins to the right edge */
  margin-left:auto !important;
  text-align:right !important;
  text-transform:none !important;
}
.csh-item.cs-live .csh-header,
.csh-item.cs-ht .csh-header {
  justify-content:space-between !important;
}
.csh-item.cs-live .csh-league,
.csh-item.cs-ht .csh-league {
  flex:1 1 auto !important;
}
.csh-item.cs-live .csh-date,
.csh-item.cs-ht .csh-date {
  margin-left:auto !important;
}
.csh-league-live-label {
  color:#111827 !important;
  font-weight:700 !important;
  text-transform:none !important;
}

/* ticker: scheduled day label (Today / Tomorrow / 13 JUN) beside the icon */
.csh-date-label {
  color: #111827;
  font-weight: 700;
  text-transform: none;
  font-size: 11px;
}
/* "Live" beside the icon in red, matching the blinking minute on the right */
.csh-league-live-label {
  color: #d50102 !important;
}
html.s-dark .csh-date-label, html.site-s-dark .csh-date-label { color: #e5e7eb; }

/* FT badge: base .csh-finish-badge has white text and no background (only
   pen/aet variants add one) -> plain FT was invisible. Proper style: */
.csh-finish-ft {
  background: #edf0f4;
  color: #5d6779;
}
html.s-dark .csh-finish-ft, html.site-s-dark .csh-finish-ft {
  background: rgba(255,255,255,.12);
  color: #cbd2dc;
}

/* Header: pin the time/badge hard right (flex space-between alone was
   letting it drift toward the middle on short labels) */
.csh-header .csh-date {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

/* 1xBet chip on match pages: hardened so partial/minified CSS can't collapse
   it into a blue dot */
.md-odds-by {
  min-height: 34px;
  min-width: 56px;
  white-space: nowrap;
  justify-content: center;
  align-self: stretch;
  line-height: 1;
}

/* WC 2026 real logo (img replaced the inline SVG): the source is portrait
   (180x279) — contain keeps it undistorted in the square icon slots. */
img.csh-league-icon--svg {
  object-fit: contain;
  border-radius: 3px;
  background: #fff;
}
img.csh-breadcrumb-logo--svg {
  background: #fff;
}

/* Live label: pulsing red dot before the word (TV-style live indicator).
   Overrides the earlier label rules; applies to both server- and JS-rendered
   "Live" spans since they share the class. */
.csh-league-live-label {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  color: #d50102 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .02em;
}
.csh-league-live-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d50102;
  flex: 0 0 auto;
  animation: csh-live-dot-pulse 1.2s ease-in-out infinite;
}
@keyframes csh-live-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .25; transform: scale(.6); }
}

/* Ticker card hover — subtle brand-red tint + score-box emphasis. The card is
   an <a>, so the whole match is the hover/click target. */
.csh-item {
  transition: background .16s ease;
  border-radius: 5px;
}
.csh-item:hover {
  background: rgba(176, 24, 24, .06);
}
.csh-item:hover .csh-score-box {
  background: #d2d2d2;
}
/* Live / HT cards: a touch stronger so the live match still stands out */
.csh-item.cs-live:hover,
.csh-item.cs-ht:hover {
  background: rgba(176, 24, 24, .1);
}
/* Dark mode */
html.s-dark .csh-item:hover, html.site-s-dark .csh-item:hover {
  background: rgba(255, 255, 255, .06);
}
html.s-dark .csh-item:hover .csh-score-box, html.site-s-dark .csh-item:hover .csh-score-box {
  background: rgba(255, 255, 255, .2);
}
html.s-dark .csh-item.cs-live:hover, html.site-s-dark .csh-item.cs-live:hover,
html.s-dark .csh-item.cs-ht:hover, html.site-s-dark .csh-item.cs-ht:hover {
  background: rgba(176, 24, 24, .22);
}

/* Mobile ticker clarity: keep the scheduled date readable beside the league
   identity and give competition marks a real, consistent visual slot. The
   previous 13px slot left several logos looking cropped or invisible, while
   the date inherited the light-theme black colour in SmartMag dark mode. */
@media (max-width: 768px) {
  .csh-header {
    height: auto !important;
    min-height: 27px !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .csh-league-icon {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    margin-right: 5px !important;
    padding: 1px !important;
    box-sizing: border-box !important;
    object-fit: contain !important;
    border-radius: 4px !important;
    background: #fff !important;
  }
  .csh-league-name {
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }
  .csh-header .csh-date {
    display: block !important;
    flex: 0 0 auto !important;
    min-width: max-content !important;
    padding-left: 4px !important;
    color: #182230 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
    text-align: right !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

html.s-dark .csh-header .csh-date,
html.site-s-dark .csh-header .csh-date,
body.s-dark .csh-header .csh-date,
body.site-s-dark .csh-header .csh-date {
  color: #e5e7eb !important;
}

/* ===== Match-detail enrichment redesign (v51): scorers / brief / next ===== */

/* Goal scorers — ball icon + name + minute pill, clean list */
.md-scorers-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.md-scorer {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; line-height: 1.2; color: #1a1a2e;
}
.md-scorers-side--away .md-scorer { flex-direction: row-reverse; text-align: right; }
.md-scorer-ball { font-size: 12px; flex: 0 0 auto; filter: grayscale(.1); }
.md-scorer-name { font-weight: 700; }
.md-scorer-min {
  font-size: 11px; font-weight: 800; color: #b01818;
  background: #fff0f0; border-radius: 999px; padding: 1px 7px; flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}
.md-scorers-empty { list-style: none; color: #98a0ad; font-size: 12px; font-style: italic; }

/* Compact summary — score badge + headline + round context */
.md-brief {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(135deg, #fff5f5, #fff 70%);
  border: 1px solid #f1dada;
}
.md-brief-score {
  flex: 0 0 auto;
  font-size: 22px; font-weight: 950; letter-spacing: 1px;
  color: #b01818; font-variant-numeric: tabular-nums;
  min-width: 64px; text-align: center;
  padding: 6px 12px; border-radius: 11px;
  background: #fff; border: 1px solid #f0d8d8;
}
.md-brief--draw .md-brief-score { color: #5d6779; }
.md-brief-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.md-brief-headline { font-size: 15px; font-weight: 800; color: #14203a; line-height: 1.25; }
.md-brief-context {
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: #98a0ad;
}
.md-brief--live .md-brief-score { background: #b01818; color: #fff; border-color: #b01818; }

/* Next matches — flagged cards */
.md-next-list { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
.md-next-card {
  display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 11px;
  background: #fff; border: 1px solid #eadfdf;
}
.md-next-side { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.md-next-side--opp { justify-content: flex-end; }
.md-next-flag {
  width: 20px; height: 14px; border-radius: 2px; object-fit: cover; flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.md-next-name { font-size: 13px; font-weight: 700; color: #14203a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-next-vs { font-size: 10px; font-weight: 800; color: #98a0ad; text-transform: uppercase; flex: 0 0 auto; }
.md-next-date {
  font-size: 11px; font-weight: 800; color: #b01818; white-space: nowrap; flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  .md-next-card { grid-template-columns: 1fr auto 1fr; row-gap: 4px; }
  .md-next-date { grid-column: 1 / -1; text-align: center; }
}

/* Dark mode */
html.s-dark .md-scorer, html.site-s-dark .md-scorer,
html.s-dark .md-brief-headline, html.site-s-dark .md-brief-headline,
html.s-dark .md-next-name, html.site-s-dark .md-next-name { color: #e5e7eb; }
html.s-dark .md-scorer-min, html.site-s-dark .md-scorer-min { background: rgba(176,24,24,.22); color: #ff9a9a; }
html.s-dark .md-brief, html.site-s-dark .md-brief { background: linear-gradient(135deg,#1a0e0e,#11161f 70%); border-color: rgba(255,255,255,.1); }
html.s-dark .md-brief-score, html.site-s-dark .md-brief-score { background: #0b1018; border-color: rgba(255,255,255,.12); color: #ff9a9a; }
html.s-dark .md-brief--draw .md-brief-score, html.site-s-dark .md-brief--draw .md-brief-score { color: #cbd2dc; }
html.s-dark .md-next-card, html.site-s-dark .md-next-card { background: #11161f; border-color: rgba(255,255,255,.1); }
html.s-dark .md-next-vs, html.site-s-dark .md-next-vs { color: #9aa3b2; }

/* On narrow standings tables the team cell must wrap instead of hiding the
   end of a club name behind an ellipsis.  Numeric columns stay compact while
   the row grows naturally to fit a two-line name. */
@media screen and (max-width: 768px) {
  .modern-standings .team-cell {
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.25;
  }
  .modern-standings .team-cell div,
  .modern-standings .team-cell span {
    min-width: 0;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}
