/* CS Edge — a faithful datalouna.io layout in CS Edge colors:
   their palette (#eaecf2 text, #1d1e24 cards, #292a33 raised, #2cc256 green,
   #df1c48 red) with every yellow (#f1b90a / gold) replaced by orange. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  color-scheme: dark;
  /* datalouna's actual page bg is the blue-tinted #15161d (measured live
     2026-07-24), with the deep tone reserved for the top bar. */
  --bg: #15161d;
  --bg-deep: #101116;
  --card: #1d1e24;
  --raised: #292a33;
  --border: #363843;
  --border-soft: #2c2d36;
  --text: #eaecf2;
  --muted: #9ba0b0;
  --faint: #4d505f;
  --accent: #f97316;       /* their #f1b90a, in orange */
  --accent-soft: #fb923c;
  --grad: linear-gradient(135deg, #ea6a0f 0%, #fb923c 100%);
  --tile-grad: linear-gradient(45deg in oklab, #f97316 0%, #000000 100%);
  --green: #2cc256;
  --red: #df1c48;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}
* { box-sizing: border-box; }
/* Smooth transitions everywhere (Simen: premium feel, no snap) */
@keyframes viewIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.view-anim { animation: viewIn 0.24s ease; }
.mstat-panel:not(.hidden) { animation: viewIn 0.2s ease; }
button, a, .risk-tag, .count-chip { transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  /* datalouna sets 500 as the BODY weight — it's a big part of their look */
  font-weight: 500;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ================= header ================= */
.topbar {
  background: var(--bg-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
}
.brandwrap { display: flex; align-items: center; gap: 12px; }
.brand-tile {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.brand { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.brand em { font-style: normal; color: var(--accent); }
.topbar-divider { width: 1px; height: 48px; background: var(--border-soft); }
.mainnav { display: flex; align-items: center; gap: 40px; flex: 1; }
.mainnav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.12s ease;
  padding: 6px 0;
}
.mainnav a:hover { color: var(--text); }
.mainnav a.active { color: var(--text); box-shadow: 0 2px 0 var(--accent); }
.auth { display: flex; align-items: center; gap: 18px; }
.view-toggle {
  display: inline-flex;
  background: var(--bg-deep);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.view-toggle[hidden] { display: none; }
.view-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
}
.view-toggle button.active { background: var(--grad); color: #fff; }
.updated { font-size: 12px; color: var(--faint); font-weight: 600; white-space: nowrap; }
.refresh-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.12s ease;
}
.refresh-btn:hover { border-color: var(--accent); }
.refresh-btn:disabled { opacity: 0.55; cursor: default; }
.lang-chip {
  background: var(--raised);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.login-link {
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.signup-btn {
  background: var(--grad);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: filter 0.12s ease;
}
.signup-btn:hover { filter: brightness(1.08); }

/* ================= shell layout ================= */
.shell {
  max-width: 1440px;
  margin: 40px auto 0;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}
main { min-width: 0; }

/* ================= right aside ================= */
.side {
  position: sticky;
  top: 104px;
  background: var(--card);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.side-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-deep);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 8px;
}
.side-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 0;
  border-radius: 9px;
  cursor: pointer;
}
.side-tab.active { background: var(--raised); color: var(--text); }
.side-scroll {
  width: 100%;
  height: 26px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: var(--faint);
  cursor: pointer;
}
.side-scroll:hover { color: var(--accent); }
.side-scroll svg { width: 18px; height: 18px; }
.side-list { max-height: 56vh; overflow-y: auto; }
.side-list::-webkit-scrollbar { width: 0; }
.side-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.side-row:hover { background: var(--raised); }
.side-teams { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.side-team { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; }
.side-team img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.side-team .ph {
  width: 18px; height: 18px; flex: none;
  border-radius: 5px;
  background: var(--raised);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
  color: var(--muted);
}
.side-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-when { text-align: right; font-size: 12px; color: var(--muted); flex: none; }
.side-when b { display: block; color: var(--text); font-weight: 700; }
.side-event {
  padding: 12px;
  border-radius: 12px;
  cursor: default;
}
.side-event:hover { background: var(--raised); }
.side-event .en { font-size: 13.5px; font-weight: 700; }
.side-event .ec { margin-top: 3px; font-size: 12px; color: var(--muted); }

/* ================= shared blocks ================= */
.panel {
  background: var(--card);
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.panel + .panel, .section { margin-top: 28px; }
h1.page-title { margin: 0 0 22px; font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }
.h-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.h-row h2 { margin: 0; font-size: 22px; font-weight: 800; }
.count-chip {
  background: var(--raised);
  border-radius: 9px;
  padding: 4px 11px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.empty-note {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  background: var(--bg-deep);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

/* ================= calculator (home hero) ================= */
.calc {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr);
  gap: 34px;
  align-items: start;
  position: relative;
  overflow: hidden;
}
/* datalouna's diagonal pinstripe decor in the calculator panel's corner */
.calc::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 52%; height: 100%;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.03) 0 1.5px, transparent 1.5px 13px);
  -webkit-mask-image: linear-gradient(250deg, #000, transparent 62%);
  mask-image: linear-gradient(250deg, #000, transparent 62%);
  pointer-events: none;
}
.calc-left h1 { margin: 0 0 6px; font-size: 27px; font-weight: 800; }
.calc-sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.calc-flat {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bg-deep); border: 1px solid var(--border-soft);
  border-radius: 14px; padding: 14px 22px;
}
.calc-flat .coin .lni { width: 26px; height: 26px; color: var(--accent); }
.calc-flat .flat-amt { font-size: 30px; font-weight: 800; color: var(--text); }
.calc-flat .flat-lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.calc-input {
  display: flex;
  align-items: center;
  background: var(--bg-deep);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 15px 18px;
  gap: 12px;
}
.calc-input .coin { color: var(--accent); font-size: 17px; display: inline-flex; }
.calc-input .coin .lni { width: 20px; height: 20px; color: var(--accent); }
.calc-input input[type='number'] {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  color: var(--text);
  font: 700 19px 'Montserrat', sans-serif;
  min-width: 0;
}
.calc-input .cur { color: var(--faint); font-weight: 700; }
.calc-slider { margin-top: 16px; display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; }
input[type='range'] {
  flex: 1;
  appearance: none;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 30%), var(--raised) var(--fill, 30%));
  outline: none;
}
input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--accent);
  cursor: pointer;
}
.calc-right .over-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.over-line .line { flex: 1; height: 2px; background: linear-gradient(90deg, var(--accent), var(--red)); opacity: 0.7; border-radius: 1px; }
.over-line span { font-size: 16px; font-weight: 800; white-space: nowrap; }
.info-dot {
  flex: none;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--raised);
  color: var(--muted);
  font: 700 12px 'Montserrat', serif;
  font-style: italic;
  cursor: help;
}
.info-dot:hover { color: var(--accent); }
.calc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.calc-stat {
  background: linear-gradient(180deg, var(--raised), var(--card));
  border: 1px solid var(--border-soft);
  border-radius: 15px;
  padding: 22px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* faint chevron watermark, like datalouna's stat cards */
.calc-stat::after {
  content: '';
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 90px;
  height: 90px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 4l8 8-8 8M12 4l8 8-8 8' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}
/* datalouna's soft colored glow at the top of each stat card */
.calc-stat::before {
  content: '';
  position: absolute;
  left: 50%; top: -34px;
  transform: translateX(-50%);
  width: 140px; height: 96px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
}
.calc-stat:has(.ic.green)::before { background: radial-gradient(closest-side, rgba(44, 194, 86, 0.17), transparent); }
.calc-stat:has(.ic.orange)::before { background: radial-gradient(closest-side, rgba(249, 115, 22, 0.18), transparent); }
.calc-stat > * { position: relative; }
.calc-stat .ic { margin-bottom: 8px; display: block; }
.calc-stat .ic .lni { width: 26px; height: 26px; color: var(--muted); }
.calc-stat .ic.green .lni { color: var(--green); }
.calc-stat .ic.orange .lni { color: var(--accent); }
.month-row span .lni { width: 14px; height: 14px; vertical-align: -0.18em; color: var(--faint); margin-right: 4px; }
.calc-stat .v { font-size: 25px; font-weight: 800; }
.calc-stat .v.green { color: var(--green); }
.calc-stat .v.orange { color: var(--accent); }
.calc-stat .k { margin-top: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* ================= monthly cards ================= */
.months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.month-card { background: var(--card); border-radius: 15px; padding: 12px; box-shadow: var(--shadow); }
.month-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--raised);
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
}
.month-head .pl.pos { color: var(--green); }
.month-head .pl.neg { color: var(--red); }
.month-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px 2px;
  font-size: 12.5px;
  color: var(--muted);
}
.month-row b { color: var(--text); }

/* ================= get started carousel ================= */
.getstarted-head {
  background: var(--card);
  border-radius: 14px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.gs-cards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.gs-card {
  background: linear-gradient(180deg, var(--card), var(--bg-deep));
  border-radius: 16px;
  padding: 24px 22px;
  min-height: 190px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.gs-ic {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(249, 115, 22, 0.06));
  border: 1px solid rgba(249, 115, 22, 0.3);
  font-size: 20px;
  margin-bottom: 14px;
}
.gs-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 800; line-height: 1.35; }
.gs-card h3 em { font-style: normal; color: var(--accent); }
.gs-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.gs-card p em { font-style: normal; color: var(--accent); }
.gs-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(44, 194, 86, 0.12);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
}
.gs-btn {
  margin-top: 16px;
  display: inline-block;
  background: var(--grad);
  color: #fff;
  border: 0;
  border-radius: 11px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ================= match cards (list) ================= */
.match-list { display: flex; flex-direction: column; gap: 14px; }
.mcard {
  background: var(--card);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.mcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
}
.mcard img, .md-team img.tl { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4)); }
@keyframes livePulse {
  0%, 100% { border-color: rgba(223, 28, 72, 0.35); }
  50% { border-color: rgba(223, 28, 72, 0.85); }
}
.mcard-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.mcard-top img { width: 16px; height: 16px; object-fit: contain; }
.mcard-top .when { margin-left: auto; font-weight: 700; color: var(--text); }
.mcard-top .when small { color: var(--muted); font-weight: 600; margin-right: 8px; }
.mcard-mid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 16px 0 4px;
}
.mteam { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mteam.right { flex-direction: row-reverse; text-align: right; }
.mteam img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.mteam .ph {
  width: 34px; height: 34px; flex: none;
  border-radius: 9px;
  background: var(--raised);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
}
.mteam > div { min-width: 0; }
/* long names wrap to at most 2 lines inside their own column — never over "VS" */
.mteam .nm {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.mteam .od { font-size: 13px; font-weight: 700; color: var(--muted); }
.mteam .od.up::after { content: ' ⌃'; color: var(--green); }
.mteam .od.down::after { content: ' ⌄'; color: var(--red); }
.mvs {
  background: var(--raised);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}
.mvs .s1, .mvs .s2 { color: var(--text); }
.mvs .win { color: var(--green); }
.mvs .lose { color: var(--red); }
.mcard-bottom {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.risk-tag { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; }
.risk-bars { display: flex; gap: 5px; }
.risk-bars i { width: 34px; height: 4px; border-radius: 2px; background: var(--raised); }
.risk-tag.low i:nth-child(1) { background: var(--green); }
.risk-tag.medium i:nth-child(-n + 2) { background: var(--accent); }
.risk-tag.high i { background: var(--red); }
.risk-tag.unknown .risk-bars i { background: var(--faint); }
.risk-tag.locked, .md-risk.locked { color: var(--muted); font-weight: 700; }
.pred-line { flex: 1; font-size: 13.5px; color: var(--muted); }
.pred-line b { color: var(--text); }
.pred-line .acc { color: var(--green); font-weight: 700; }
.pred-line .inacc { color: var(--red); font-weight: 700; }
.details-link {
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.details-link:hover { text-decoration: underline; }
.show-more {
  margin-top: 16px;
  width: 100%;
  background: var(--raised);
  border: 0;
  color: var(--text);
  border-radius: 12px;
  padding: 13px 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.show-more:hover { background: var(--border); }

/* ================= predictions statistics ================= */
.pstats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.pstat {
  background: var(--bg-deep);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
}
.pstat .v { font-size: 26px; font-weight: 800; }
.pstat .v.orange { color: var(--accent); }
.pstat .v.red { color: var(--red); }
.pstat .k { margin-top: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* ================= history rows ================= */
.tab-row { display: flex; gap: 10px; margin-bottom: 18px; }
.tab-pill {
  border: 0;
  background: var(--raised);
  color: var(--muted);
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.tab-pill.active { background: var(--grad); color: #fff; }

/* ================= match detail ================= */
.md-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.md-head img { width: 20px; height: 20px; object-fit: contain; }
.md-head .sep { color: var(--faint); }
.md-head .date-pill {
  margin-left: auto;
  background: var(--raised);
  border-radius: 10px;
  padding: 8px 16px;
  color: var(--text);
}
.md-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
}
.md-team {
  background: var(--bg-deep);
  padding: 34px 26px 26px;
  text-align: center;
  position: relative;
}
.md-team.picked {
  background: linear-gradient(160deg, rgba(249, 115, 22, 0.16), var(--bg-deep) 70%);
  box-shadow: inset 0 -3px 0 var(--accent);
}
.md-team.winner {
  background: linear-gradient(160deg, rgba(44, 194, 86, 0.14), var(--bg-deep) 70%);
  box-shadow: inset 0 -3px 0 var(--green);
}
.md-team.loser { opacity: 0.5; filter: grayscale(0.35); }
/* live/final series score in the center, datalouna-style */
.md-score.live-score { display: flex; align-items: center; gap: 8px; font-size: 30px; font-weight: 800; }
.md-score.live-score i { font-style: normal; color: var(--faint); }
.md-score.live-score b.w { color: var(--green); }
.md-score.live-score b.l { color: var(--red); }
.md-team .rank {
  position: absolute;
  top: 16px;
  left: 18px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
.md-team img.tl { width: 84px; height: 84px; object-fit: contain; }
.md-team .ph-big {
  width: 84px; height: 84px; margin: 0 auto;
  border-radius: 20px;
  background: var(--raised);
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
  color: var(--muted);
}
.md-team .nm { margin-top: 14px; font-size: 24px; font-weight: 800; }
.md-team .md-chance { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.md-team .md-chance .mc-lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.md-team .od { margin-top: 6px; font-size: 16px; font-weight: 800; color: var(--muted); }
.maps-set {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  border: 1px solid rgba(44, 194, 86, 0.4);
  border-radius: 999px;
  padding: 2px 9px;
  vertical-align: middle;
}
.md-center {
  display: grid;
  place-items: center;
  background: var(--bg-deep);
  padding: 0 8px;
}
.md-score {
  background: var(--raised);
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}
.md-score .win { color: var(--green); }
.md-score .lose { color: var(--red); }
.md-score.vs { color: var(--muted); }
.md-sub {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: 14px;
}
.md-risk, .md-verdict {
  background: var(--card);
  border-radius: 14px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.md-verdict .acc { color: var(--green); }
.md-verdict .inacc { color: var(--red); }
.md-verdict b { color: var(--accent); }

/* maps */
.md-maps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.map-card {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-card .mc-head {
  background: var(--raised);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.map-card .mc-head .pickb {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--accent);
  border: 1px solid rgba(249, 115, 22, 0.5);
  border-radius: 999px;
  padding: 3px 9px;
}
.map-card .mc-body { padding: 16px; }
.map-card .chance-label { font-size: 11.5px; color: var(--muted); text-align: center; margin-bottom: 10px; }
.chance-row { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; }
.chance-track { flex: 1; height: 7px; border-radius: 4px; background: var(--raised); overflow: hidden; display: flex; }
.chance-track .c1 { background: var(--grad); height: 100%; }
.chance-track .c2 { background: rgba(255, 255, 255, 0.18); height: 100%; }
.map-card .np { text-align: center; color: var(--faint); font-size: 12.5px; padding: 8px 0 2px; }

/* datalouna-style chance value: >50% green + raised, <50% red + lowered */
.chance { font-size: 18px; font-weight: 800; display: inline-flex; align-items: baseline; gap: 3px; }
.chance i { font-style: normal; font-size: 11px; }
.chance.up { color: var(--green); transform: translateY(-1px); }
.chance.down { color: var(--red); transform: translateY(1px); }
.chance.na { color: var(--faint); }
.chance.locked { color: var(--accent); font-size: 15px; letter-spacing: 0.5px; }
.lock-cta { color: var(--accent); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* live indicators */
.live-dot { color: var(--red); font-weight: 800; font-size: 12px; letter-spacing: 0.5px; animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.mcard.is-live { border: 1px solid rgba(223, 28, 72, 0.4); animation: livePulse 2.4s ease-in-out infinite; }
/* event-logo watermark on the match-page header panel */
.md-panel { position: relative; overflow: hidden; }
.md-panel .md-wm {
  position: absolute; right: -10px; top: -14px;
  width: 150px; height: 150px; object-fit: contain;
  opacity: 0.045; filter: grayscale(1) brightness(2);
  pointer-events: none;
}
.md-panel > :not(.md-wm) { position: relative; }
.mvs.live { color: var(--text); }
.mvs.live .s1, .mvs.live .s2 { color: var(--accent); }

/* upcoming grouped by event */
.event-block { margin-bottom: 18px; }
.event-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-deep);
  border-radius: 11px;
  margin-bottom: 10px;
}
.event-bar img { width: 20px; height: 20px; object-fit: contain; }
.event-bar .eb-name { font-size: 14px; font-weight: 800; }
.event-bar .eb-count { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }

/* picked maps — per-map win-chance prediction (green/red) + who picked it */
.picked-maps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.picked-map { background: var(--card); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.pm-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pm-name { font-size: 15px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.pm-picker {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(249, 115, 22, 0.5);
  border-radius: 999px;
  padding: 3px 10px;
}
.pm-picker.decider { color: var(--muted); border-color: var(--border); }
.pm-chances { display: grid; grid-template-columns: 1fr minmax(70px, 1.2fr) 1fr; gap: 12px; align-items: center; }
.pm-team { display: flex; flex-direction: column; gap: 4px; }
.pm-team.right { align-items: flex-end; }
.pm-tn { font-size: 12px; color: var(--muted); font-weight: 600; }
.pm-bar { display: flex; height: 8px; border-radius: 5px; overflow: hidden; background: var(--raised); }
.pm-bar .pmb-1 { background: var(--green); }
.pm-bar .pmb-2 { background: var(--red); }
.pm-odds {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
}
.pm-odds > span:last-child { text-align: right; }
.pm-odds .pm-odds-lbl { font-size: 10px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 1px; }

/* player rating chip under lineup player */
.lp-rating { margin-top: 4px; font-size: 13px; font-weight: 800; }
.lp-rating span { display: block; font-size: 9px; font-weight: 600; color: var(--faint); letter-spacing: 0.5px; text-transform: uppercase; }
.lp-rating.good { color: var(--green); }
.lp-rating.bad { color: var(--red); }

/* map stats — HLTV-style tabs (Win % / Pick % / Ban %), no radar */
.mstat-tabs {
  display: inline-flex;
  background: var(--bg-deep);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 14px;
}
.mstat-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 9px;
  cursor: pointer;
}
.mstat-tab.active { background: var(--raised); color: var(--text); }
.mstat-wrap { padding: 8px 20px 16px; }
.mstat-panel.hidden { display: none; }
.mstat-legend {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.mstat-legend span:last-child { text-align: right; }
.mstat-row {
  display: grid;
  grid-template-columns: 1fr 150px 1fr;
  gap: 16px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--border-soft);
}
.mstat-val { display: flex; flex-direction: column; gap: 2px; }
.mstat-val.left { align-items: flex-start; }
.mstat-val.right { align-items: flex-end; }
.mstat-val .v { font-size: 20px; font-weight: 800; }
.mstat-val .n { font-size: 11px; color: var(--faint); font-weight: 600; }
.mstat-name {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--mc, #5a5f6e);
  border-radius: 7px;
  padding: 7px 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
/* map screenshot behind the map-name pill in Map stats (all three tabs) */
.mstat-name.has-img {
  background:
    linear-gradient(rgba(15, 16, 20, 0.55), rgba(15, 16, 20, 0.55)),
    var(--mi) center 35% / cover no-repeat;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* map pool table (bo3.gg-style: WR + pick/ban per team, compare bar) */
.maps-panel { padding: 20px 22px; }
.maps-legend {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
  font-weight: 800;
}
.maps-legend span:last-child { text-align: right; }
.maps-legend .ml-c { font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: 0.3px; }
.map-line {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 1.4fr) 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.map-line:last-child { border-bottom: 0; }
.ml-side { display: flex; flex-direction: column; gap: 3px; }
.ml-side.left { align-items: flex-start; }
.ml-side.right { align-items: flex-end; }
.ml-wr { font-size: 18px; font-weight: 800; }
.ml-pb { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ml-mid { text-align: center; }
.ml-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.ml-bar {
  display: flex;
  height: 8px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--raised);
}
.ml-bar .mlb-1 { background: var(--grad); }
.ml-bar .mlb-2 { background: rgba(255, 255, 255, 0.16); }
.ml-odds { margin-top: 7px; font-size: 12.5px; font-weight: 800; color: var(--accent); }
.ml-odds span { color: var(--faint); font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }

/* player stats tables (live/finished matches) */
.pstat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pstat-box { background: var(--card); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.pstat-head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.pstat-head img { width: 22px; height: 22px; object-fit: contain; }
.pstat-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.9fr 1fr 0.8fr;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-soft);
}
.pstat-row:last-child { border-bottom: 0; }
.pstat-row span:not(.pn) { text-align: right; color: var(--muted); font-weight: 600; }
.pstat-row .pn { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pstat-hrow { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); }
.pstat-hrow span:not(.pn) { color: var(--faint); }
.pstat-row .rat { color: var(--text); font-weight: 800; }
.pstat-row .rat.good { color: var(--green); }
.pstat-row .rat.bad { color: var(--red); }

/* odds range (one range per team, not a bookmaker list) */
.odds-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.or-team { text-align: center; }
.or-name { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.or-val { font-size: 26px; font-weight: 800; color: var(--accent); }
.or-sep { font-size: 14px; font-weight: 800; color: var(--faint); }
.odds-src { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft);
  font-size: 12px; color: var(--muted); text-align: center; line-height: 1.5; }
.odds-verify { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.odds-verify:hover { text-decoration: underline; }
.odds-none { font-size: 13.5px; color: var(--muted); line-height: 1.6; text-align: center; padding: 6px 0; }

/* lineups */
.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lineup-box { background: var(--card); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); position: relative; }

/* datalouna-style player cards: rating legend, circular photos with a
   rating-colored ring, team-rating pill, click-popup with full stats */
.pr-legend { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 14px; flex-wrap: wrap; }
.pr-legend .lg.top { color: #cfa64e; }
.pr-legend .lg.high { color: var(--green); }
.pr-legend .lg.avg { color: #e0b53c; }
.pr-legend .lg.low { color: var(--red); }
.pcards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; transition: filter 0.18s; }
.pcards.dimmed .pcard:not(.was-open) { filter: blur(3px) brightness(0.55); }
.pcard { text-align: center; cursor: pointer; position: relative; padding: 4px 2px; border-radius: 12px; transition: transform 0.15s; }
.pcard:hover { transform: translateY(-2px); }
.pcard .pc-star { position: absolute; top: -2px; right: 8%; color: #cfa64e; font-size: 15px; }
.pcard .pc-circle {
  width: 100%; max-width: 84px; aspect-ratio: 1; margin: 0 auto;
  border-radius: 50%; overflow: hidden; position: relative;
  background: radial-gradient(circle at 50% 30%, #3a3325, #232127 70%);
  border: 2px solid var(--border);
}
.pcard.top .pc-circle { border-color: #cfa64e; box-shadow: 0 0 14px rgba(207, 166, 78, 0.25); }
.pcard.high .pc-circle { border-color: var(--green); }
.pcard.avg .pc-circle { border-color: #e0b53c; }
.pcard.low .pc-circle { border-color: var(--red); }
.pcard .pc-circle img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pcard .pc-ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 26px; font-weight: 800; color: var(--muted); }
.pcard .pc-nick { margin-top: 7px; font-size: 12.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-rating { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border-soft); border-radius: 999px; padding: 9px 16px; font-size: 13px; color: var(--muted); font-weight: 600; }
.team-rating b { color: var(--text); font-size: 15px; }
.pcard-pop {
  position: absolute; left: 12px; right: 12px; bottom: 8px; z-index: 5;
  display: flex; gap: 14px; align-items: flex-start;
  background: linear-gradient(160deg, #26232b, var(--bg-deep));
  border: 1px solid var(--border); border-radius: 14px; padding: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  animation: popIn 0.16s ease;
}
@keyframes popIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pcard-pop .pp-photo { width: 84px; height: 104px; object-fit: cover; object-position: top; border-radius: 10px; background: #2a2730; }
.pcard-pop .pp-name { font-size: 16px; font-weight: 800; }
.pcard-pop .pp-nick { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.pcard-pop .pp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 10px; }
.pcard-pop .pp-stat { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.pcard-pop .pp-stat b { background: var(--raised); border-radius: 8px; padding: 3px 10px; color: var(--text); font-size: 13px; }
.pcard-pop .pp-nostats { margin-top: 10px; font-size: 12px; color: var(--faint); }

/* gold-tinted broadcast bar under the match header (datalouna) */
.bc-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 16px 0 4px; padding: 13px 18px; border-radius: 12px;
  background: rgba(249, 115, 22, 0.12); color: var(--accent);
  font-weight: 800; font-size: 14.5px; transition: background 0.15s;
}
.bc-btn:hover { background: rgba(249, 115, 22, 0.2); }
.bc-btn .bc-ic { font-size: 13px; letter-spacing: -1px; }
.lineup-box .lb-head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.lineup-box .lb-head img { width: 22px; height: 22px; object-fit: contain; }
.lineup-players { display: flex; gap: 10px; flex-wrap: wrap; }
.lp {
  text-align: center;
  width: 74px;
}
.lp img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--raised);
}
.lp .ph-p {
  width: 62px; height: 62px; margin: 0 auto;
  border-radius: 12px;
  background: var(--raised);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}
.lp .n { margin-top: 6px; font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* match history & h2h */
.mh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mh-box { background: var(--card); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); }
.mh-box .mh-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mh-box .mh-head .tn { font-size: 15px; font-weight: 800; }
.mh-box .mh-head .st { font-size: 12px; color: var(--accent); font-weight: 700; }
.mh-sum { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.mh-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--border-soft);
}
.mh-row:last-child { border-bottom: 0; }
.mh-row .wl { width: 20px; height: 20px; flex: none; border-radius: 6px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; }
.mh-row .wl.w { background: rgba(44, 194, 86, 0.15); color: var(--green); }
.mh-row .wl.l { background: rgba(223, 28, 72, 0.14); color: var(--red); }
.mh-row .op { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); font-weight: 600; }
.mh-row .sc { font-weight: 800; color: var(--text); }

/* datalouna-style map rows on the match CARD (maps known / live) */
.mcard-maps {
  margin: 2px 16px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 6px 12px;
  background: var(--bg-deep);
}
.mm-row {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 10px;
  align-items: center;
  padding: 7px 2px;
}
/* map screenshot behind each front-page map row (datalouna) — thin banner
   with a heavy scrim so the percentages stay readable */
.mm-row.has-img {
  background:
    linear-gradient(90deg, rgba(15, 16, 20, 0.92), rgba(15, 16, 20, 0.55) 30%, rgba(15, 16, 20, 0.55) 70%, rgba(15, 16, 20, 0.92)),
    var(--mi) center 35% / cover no-repeat;
  border-radius: 10px;
  padding: 9px 10px;
  margin: 3px 0;
}
.mm-mid { min-width: 0; }
.mm-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-row + .mm-row { border-top: 1px solid var(--border-soft); }
.mm-row.has-img + .mm-row.has-img { border-top: 0; }
.mm-lock { color: var(--faint); font-size: 13px; text-align: center; }
.mm-pct { font-size: 13px; font-weight: 800; text-align: center; }
.mm-pct.up { color: var(--green); }
.mm-pct.down { color: var(--red); }
.mm-mid { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; }
.mm-name { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; color: var(--muted); }
.mm-score { background: var(--card); border-radius: 8px; padding: 3px 10px; font-size: 13px; font-weight: 800; color: var(--faint); }
.mm-score i { font-style: normal; margin: 0 4px; color: var(--faint); }
.mm-score .w { color: var(--green); }
.mm-score .l { color: var(--red); }

/* datalouna-style map banner cards on the match PAGE */
.dlmaps { display: grid; gap: 14px; }
.dlmap { border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.dlmap-banner {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  min-height: 88px;
  padding: 12px 18px;
  background:
    linear-gradient(90deg, rgba(20, 21, 26, 0.88), rgba(20, 21, 26, 0.45) 30%, rgba(20, 21, 26, 0.45) 70%, rgba(20, 21, 26, 0.88)),
    linear-gradient(115deg, color-mix(in oklab, var(--mc, #666) 45%, #14151a), #14151a 60%, color-mix(in oklab, var(--mc, #666) 25%, #14151a));
}
/* real in-game screenshot behind the banner (datalouna) — dark scrim keeps
   the logos/score readable; the flat map-color version stays as fallback */
.dlmap-banner.has-img {
  background:
    linear-gradient(90deg, rgba(15, 16, 20, 0.86), rgba(15, 16, 20, 0.38) 30%, rgba(15, 16, 20, 0.38) 70%, rgba(15, 16, 20, 0.86)),
    var(--mi) center / cover no-repeat;
}
.dlm-side { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.dlm-side img, .dlm-side .ph { width: 40px; height: 40px; border-radius: 9px; object-fit: contain; }
.dlm-pick { font-size: 11px; font-weight: 800; color: #fff; background: rgba(255, 255, 255, 0.14); border-radius: 6px; padding: 1px 8px; }
.dlm-center { text-align: center; }
.dlm-name { font-size: 19px; font-weight: 800; letter-spacing: 0.12em; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.dlm-dec { font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; color: var(--accent); vertical-align: middle; }
.dlm-score { display: inline-flex; align-items: center; margin-top: 6px; background: rgba(0, 0, 0, 0.45); border-radius: 9px; padding: 3px 14px; font-size: 15px; font-weight: 800; color: var(--faint); }
.dlm-score i { font-style: normal; margin: 0 7px; color: var(--faint); }
.dlm-score .w { color: var(--green); }
.dlm-score .l { color: var(--red); }
.dlmap-chance {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  padding: 12px 18px;
  background: var(--raised);
}
.dlc-pct { font-size: 19px; font-weight: 800; text-align: center; }
.dlc-pct.up { color: var(--green); }
.dlc-pct.down { color: var(--red); }
.dlc-lbl { text-align: center; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.dlc-odds { display: block; font-style: normal; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.dlc-none { grid-column: 1 / -1; text-align: center; font-size: 13.5px; color: var(--faint); font-weight: 600; }

/* Analytics insights — bo3.gg-style green/red per-team read */
.ins-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ins-team { background: var(--card); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.ins-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font-size: 15px; font-weight: 800; }
.ins-head .ph, .ins-head img { width: 24px; height: 24px; border-radius: 6px; flex: none; object-fit: contain; }
.ins-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; font-size: 13px; line-height: 1.5; color: var(--text); border-bottom: 1px solid var(--border-soft); }
.ins-row:last-child { border-bottom: 0; }
.ins-row .ins-ic { flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; margin-top: 1px; }
.ins-row.good .ins-ic { background: rgba(44, 194, 86, 0.15); color: var(--green); }
.ins-row.bad .ins-ic { background: rgba(223, 28, 72, 0.14); color: var(--red); }
.ins-locked { display: grid; place-items: center; padding: 30px 20px; text-align: center; }
.ins-lock-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 420px; }
.ins-lock-inner b { font-size: 16px; }
.ins-lock-inner span { font-size: 13px; color: var(--muted); line-height: 1.55; }
.ins-cta { margin-top: 8px; padding: 9px 20px; border-radius: 10px; background: var(--accent); color: #1a1206; font-weight: 800; font-size: 13px; text-decoration: none; }
.ins-cta:hover { background: var(--accent-soft); }

/* Winner highlight on finished matches (datalouna-style): soft green gradient
   + green underline on the winning side, dimmed losing side. */
.mcard.settled .mcard-mid .mteam { position: relative; padding: 10px 12px; border-radius: 12px; transition: opacity 0.2s; }
.mcard.settled .mteam.winner {
  background: linear-gradient(135deg, rgba(44, 194, 86, 0.18), rgba(44, 194, 86, 0.05) 55%, rgba(44, 194, 86, 0) 85%);
}
.mcard.settled .mteam.winner.right {
  background: linear-gradient(225deg, rgba(44, 194, 86, 0.18), rgba(44, 194, 86, 0.05) 55%, rgba(44, 194, 86, 0) 85%);
}
.mcard.settled .mteam.winner::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--green), rgba(44, 194, 86, 0.15));
}
.mcard.settled .mteam.winner.right::after { background: linear-gradient(270deg, var(--green), rgba(44, 194, 86, 0.15)); }
.mcard.settled .mteam.loser { opacity: 0.45; filter: grayscale(0.4); }

/* Bets — odds-free prop bets on the match page (free: day's one free match;
   premium: every match). Map blocks with a colored accent + risk chips. */
.bets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.bet-map { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 4px 14px 8px; }
.bm-head { display: flex; align-items: center; gap: 8px; padding: 10px 0 8px; border-bottom: 1px solid var(--border-soft); }
.bm-head .bm-name { font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--text); }
.bm-head::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: var(--mc, var(--accent)); }
.bm-head.series::before { background: var(--accent); }
.bet-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 13px; border-bottom: 1px solid var(--border-soft); }
.bet-row:last-child { border-bottom: 0; }
.bet-row .bl { color: var(--text); line-height: 1.4; }
.bet-row .bv { display: flex; align-items: center; gap: 7px; font-weight: 800; color: var(--text); white-space: nowrap; }
.bet-risk { font-size: 10px; font-weight: 800; letter-spacing: 0.04em; padding: 3px 7px; border-radius: 7px; text-transform: uppercase; }
.bet-risk.low { background: rgba(44, 194, 86, 0.15); color: var(--green); }
.bet-risk.medium { background: rgba(255, 153, 31, 0.16); color: var(--accent); }
.bet-risk.high { background: rgba(223, 28, 72, 0.14); color: var(--red); }
.bets-locked { padding: 22px 20px; text-align: center; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.bets-locked b { color: var(--text); }
.bets-note { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; padding: 10px 14px; line-height: 1.5; }
@media (max-width: 760px) { .bets-grid { grid-template-columns: 1fr; } }

/* Manual-refresh progress card (bottom-right, EdgeLabs master only) */
.cs-progress {
  position: fixed; right: 22px; bottom: 22px; z-index: 120;
  width: 320px; max-width: calc(100vw - 32px);
  background: var(--card); border: 1px solid var(--border-soft); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45); padding: 14px 16px;
  transform: translateY(16px); opacity: 0; pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.cs-progress.show { transform: translateY(0); opacity: 1; }
.csp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.csp-title { font-size: 13.5px; font-weight: 800; }
.csp-count { font-size: 12px; font-weight: 700; color: var(--muted); }
.csp-track { position: relative; height: 7px; margin: 10px 0 8px; border-radius: 5px; background: var(--bg-deep); overflow: hidden; }
.csp-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0;
  border-radius: 5px; background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: width .3s ease; }
.cs-progress.done .csp-fill { background: var(--green); }
.csp-fill.indet { width: 30% !important; animation: cspIndet 1.1s ease-in-out infinite; }
@keyframes cspIndet { 0% { left: -32%; } 100% { left: 100%; } }
.csp-label { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.h2h-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: center;
}
.h2h-cell { background: var(--bg-deep); border-radius: 13px; padding: 18px; }
.h2h-cell .n { font-size: 28px; font-weight: 800; }
.h2h-cell .n.orange { color: var(--accent); }
.h2h-cell .k { margin-top: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.h2h-list { margin-top: 16px; border-top: 1px solid var(--border-soft); }
.h2h-row {
  display: grid;
  grid-template-columns: 64px 1fr 96px 74px;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12.5px;
}
.h2h-row:last-child { border-bottom: 0; }
.h2h-date { color: var(--muted); font-weight: 600; }
.h2h-ev { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h2h-map {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--mc, #5a5f6e);
  border-radius: 6px;
  padding: 4px 0;
}
.h2h-score { text-align: right; font-weight: 800; color: var(--muted); }
.h2h-score b.win { color: var(--green); }
.h2h-score b.lose { color: var(--red); }

/* coefficients */
.coef-rows { display: flex; flex-direction: column; gap: 8px; }
.coef-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  background: var(--bg-deep);
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 14px;
}
.coef-row .pv { font-weight: 700; color: var(--muted); }
.coef-row b { font-size: 15px; width: 56px; text-align: right; }
.coef-row b.best { color: var(--accent); }

/* veto / format note */
.veto-note { font-size: 13px; color: var(--muted); line-height: 1.7; white-space: pre-line; }

/* ================= states / blog / about ================= */
.state-panel { text-align: center; padding: 90px 20px; color: var(--muted); }
.state-panel h2 { color: var(--text); font-size: 20px; font-weight: 800; margin: 18px 0 8px; }
.state-panel p { font-size: 13.5px; max-width: 430px; margin: 0 auto; line-height: 1.6; }
.spin {
  width: 34px; height: 34px; margin: 0 auto;
  border-radius: 50%;
  border: 3px solid var(--raised);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.stale-note {
  margin-bottom: 16px;
  padding: 11px 16px;
  border: 1px solid rgba(223, 28, 72, 0.45);
  border-radius: 12px;
  color: #f1a3a6;
  font-size: 12.5px;
  background: var(--card);
}
/* account button in header */
.account-btn {
  background: var(--grad);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: filter 0.12s ease;
  white-space: nowrap;
}
.account-btn:hover { filter: brightness(1.08); }
.account-btn.is-member { background: rgba(44, 194, 86, 0.15); color: #86e0a5; box-shadow: inset 0 0 0 1px rgba(44, 194, 86, 0.5); }

/* account / subscribe page */
.account-hero { max-width: 640px; margin: 10px auto; }
.account-hero h1 { font-size: 32px; margin: 8px 0 12px; font-weight: 900; }
.acc-lead { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.acc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.signout {
  flex: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  border-radius: 9px;
  padding: 8px 14px;
  font: 600 12.5px 'Montserrat', sans-serif;
  cursor: pointer;
}
.signout:hover { border-color: var(--accent); color: var(--text); }
.google-btn {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #1a1a1a;
  border: 0;
  border-radius: 12px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.google-btn .g {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: conic-gradient(from -45deg, #ea4335, #fbbc05, #34a853, #4285f4, #ea4335);
  color: #fff; font-weight: 800; font-size: 13px;
}
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0 12px; }
.plan {
  position: relative;
  background: var(--bg-deep);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 24px 22px;
  text-align: center;
}
.plan.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-badge {
  position: absolute;
  top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name { font-size: 14px; font-weight: 700; color: var(--muted); }
.plan-price { font-size: 34px; font-weight: 900; margin: 8px 0 18px; }
.plan-price span { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan-btn {
  width: 100%;
  background: var(--grad);
  color: #fff;
  border: 0;
  border-radius: 11px;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.plan:not(.best) .plan-btn { background: var(--raised); }
.plan-btn:hover { filter: brightness(1.08); }
.pay-note { margin-top: 14px; font-size: 12.5px; color: var(--faint); text-align: center; line-height: 1.6; }
.discord-btn {
  display: block;
  margin-top: 24px;
  background: #5865F2;
  color: #fff;
  border-radius: 13px;
  padding: 18px 0;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.discord-btn:hover { filter: brightness(1.08); }
.manage-btn {
  display: block; width: 100%; margin-top: 12px;
  background: transparent; color: var(--muted);
  border: 1px solid var(--border-soft); border-radius: 12px;
  padding: 13px 0; font-size: 14px; font-weight: 700; cursor: pointer;
}
.manage-btn:hover { border-color: var(--accent); color: var(--text); }

.about-hero h1 { font-size: 34px; margin: 0 0 14px; font-weight: 900; }
.about-hero p { color: var(--muted); font-size: 14.5px; line-height: 1.75; max-width: 640px; }
.about-hero em { font-style: normal; color: var(--accent); font-weight: 700; }

/* ================= footer ================= */
.foot { margin-top: 96px; background: var(--bg-deep); padding: 36px 0 24px; }
.foot-inner { max-width: 1440px; margin: 0 auto; padding: 0 28px; }
.foot-nav { display: flex; gap: 28px; margin-bottom: 16px; }
.foot-nav a { font-size: 14px; font-weight: 600; color: var(--muted); }
.foot-nav a:hover { color: var(--text); }
.foot-note { font-size: 12.5px; color: var(--faint); margin: 0 0 6px; }
.foot-copy { font-size: 12px; color: var(--faint); margin: 0; }

/* ================= modal ================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 30px 34px;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.modal-card h3 { margin: 0 0 10px; font-size: 20px; font-weight: 800; }
.modal-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

/* ================= responsive ================= */
@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; order: 2; }
  .side-scroll { display: none; }
  .side-list { max-height: none; }
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  /* rock-solid: no horizontal page swipe */
  html, body { overflow-x: hidden; max-width: 100%; }
  .topbar-inner, .foot-inner { max-width: 100%; }
  /* full feature parity with desktop: the top nav becomes the bottom nav, but
     the master toggle, refresh and "updated" stamp stay available — they wrap
     onto a second header row so nothing is lost on phones. */
  .topbar-inner { gap: 10px 12px; padding: 10px 16px; height: auto; min-height: 60px; flex-wrap: wrap; }
  .mainnav, .topbar-divider, .lang-chip { display: none; }
  .auth { flex-wrap: wrap; gap: 8px 12px; margin-left: auto; }
  .view-toggle { order: 5; }
  .view-toggle button { padding: 6px 10px; font-size: 11px; }
  .updated { order: 6; font-size: 11px; }
  .refresh-btn { order: 7; padding: 7px 12px; font-size: 12px; }
  .account-btn { padding: 9px 16px; font-size: 14px; }
  .shell { padding: 0 14px; margin-top: 22px; }
  .calc-stats, .pstats-grid { grid-template-columns: 1fr; }
  .mh-grid { grid-template-columns: 1fr; }
  .ins-grid { grid-template-columns: 1fr; }
  .dlm-name { font-size: 16px; letter-spacing: 0.09em; }
  .dlmap-banner { grid-template-columns: 52px 1fr 52px; padding: 10px 12px; min-height: 78px; }
  .dlmap-chance { grid-template-columns: 58px 1fr 58px; padding: 10px 12px; }
  .dlc-pct { font-size: 16px; }
  .mcard-maps { margin: 2px 12px 8px; }

  /* match detail: teams stay SIDE BY SIDE (like desktop), just scaled down */
  .md-teams { grid-template-columns: 1fr auto 1fr; }
  .md-team { padding: 18px 8px 14px; }
  .md-team img.tl, .md-team .ph-big { width: 46px; height: 46px; }
  .md-team .ph-big { font-size: 18px; }
  .md-team .nm { font-size: 14px; margin-top: 8px; line-height: 1.15;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .md-team .rank { top: 8px; left: 9px; font-size: 11px; }
  .md-team .md-chance { margin-top: 7px; }
  .md-team .md-chance .chance { font-size: 15px; }
  .md-team .md-chance .mc-lbl { font-size: 10px; }
  .md-team .od { font-size: 13px; margin-top: 4px; }
  .md-center { padding: 0 3px; }
  .md-score { font-size: 17px; padding: 9px 12px; border-radius: 10px; }
  .md-score.vs { font-size: 14px; }
  /* verdict / risk row: stack + wrap so the long text doesn't overflow */
  .md-sub { grid-template-columns: 1fr; }
  .md-risk, .md-verdict { font-size: 13px; flex-wrap: wrap; padding: 13px 16px; }
  .md-head { flex-wrap: wrap; font-size: 13px; }
  .md-head .date-pill { margin-left: 0; }
  .picked-maps, .pstat-grid, .odds-range { grid-template-columns: 1fr; }
  .odds-range { gap: 10px; }
  .or-val { font-size: 22px; }

  /* lineups: each team's box stacks, but its 5 players stay on ONE line */
  .lineups { grid-template-columns: 1fr; }
  .lineup-players { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .lp { width: auto; }
  .lp img, .lp .ph-p { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .lp .n { font-size: 9.5px; }
  .lp-rating { font-size: 12px; }
  .lp-rating span { font-size: 8px; }
  h1.page-title { font-size: 25px; }
  .calc-left h1 { font-size: 23px; }
  body { padding-bottom: 72px; } /* clear the fixed bottom nav */

  /* match-card footer: wrap instead of overflowing off the right edge */
  .mcard { padding: 16px; }
  .mcard-bottom { flex-wrap: wrap; gap: 10px; }
  .mcard-bottom .risk-tag { order: 1; }
  .mcard-bottom .details-link { order: 2; margin-left: auto; }
  .mcard-bottom .pred-line { order: 3; flex: 1 1 100%; }
  .mcard-top span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mteam .nm { font-size: 15px; }
  /* map-stats rows: keep the map pill from squeezing the numbers together */
  .mstat-row { grid-template-columns: 1fr 96px 1fr; gap: 8px; }
  .mstat-val .v { font-size: 17px; }
  .h2h-row { grid-template-columns: 52px 1fr 60px; gap: 8px; }
  .h2h-ev { display: none; } /* event name drops on narrow screens */
  /* "over the past 100 matches" divider must not push width */
  .over-line { gap: 10px; }
  .over-line .line { min-width: 0; }
  .over-line span { font-size: 12.5px; white-space: normal; }
  .maps-legend, .mstat-legend { font-size: 11px; }
}

/* mobile bottom navigation (hidden on desktop) */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    width: 100%;
    max-width: 100vw;
    background: rgba(15, 16, 20, 0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-soft);
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 0;
    padding: 6px 2px;
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
  }
  .bottom-nav a .bn-ic { width: 23px; height: 23px; opacity: 0.9; }
  .bottom-nav a.active { color: var(--accent); }

  /* calculator: keep the 3 stats in one row like datalouna's mobile, no cards */
  .calc-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .calc-stat { background: none; border: 0; padding: 6px 2px; box-shadow: none; }
  .calc-stat::after, .calc-stat::before { display: none; }
  .calc-stat .ic { font-size: 16px; margin-bottom: 4px; }
  .calc-stat .v { font-size: 19px; }
  .calc-stat .k { font-size: 11px; margin-top: 3px; }

  /* month cards + get-started cards become swipeable rows */
  .months, .gs-cards {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .months::-webkit-scrollbar, .gs-cards::-webkit-scrollbar { display: none; }
  .month-card { min-width: 74%; scroll-snap-align: start; }
  .gs-card { min-width: 80%; scroll-snap-align: start; }
}
