:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --panel: rgba(255, 255, 255, 0.92);
  --ink: #101815;
  --muted: #697972;
  --line: #dce6e1;
  --green: #0d8f63;
  --green-dark: #07583f;
  --lime: #c7f36a;
  --amber: #d88a1d;
  --red: #c44b4b;
  --blue: #256a9b;
  --shadow: 0 24px 70px rgba(25, 43, 36, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(13, 143, 99, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(37, 106, 155, 0.11), transparent 38%),
    var(--bg);
  color: var(--ink);
}

.app-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero {
  position: relative;
  min-height: 330px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 88, 63, 0.96), rgba(16, 24, 21, 0.9)),
    url("https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=1800&q=80") center/cover;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 13, 11, 0.34) 100%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--lime);
  color: var(--green-dark);
  font-weight: 950;
  font-size: 1.2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--green);
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--lime);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(3.4rem, 10vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

h3 {
  margin: 24px 0 12px;
  font-size: 1rem;
}

.subcopy {
  grid-column: 1 / -1;
  align-self: end;
  margin: 56px 0 0;
  color: rgba(255, 255, 255, 0.86);
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.5;
}

.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  max-width: 540px;
}

.hero-stats div {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  font-size: 0.82rem;
}

.hero-stats strong {
  font-size: 1.55rem;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 20px;
  align-items: start;
}

.form-panel,
.result-panel,
.feed-panel {
  padding: 24px;
}

.section-title {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.team-block + .team-block {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #314039;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c8d4ce;
  border-radius: 6px;
  font: inherit;
  color: var(--ink);
  background: #fbfdfc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(13, 143, 99, 0.14);
}

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

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

button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #b8c7c0;
  border-radius: 6px;
  background: #f8fbf9;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

button:hover {
  border-color: var(--green);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(24, 56, 45, 0.12);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero .actions button:first-child,
.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.hero .actions button:first-child {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--green-dark);
}

.hero .actions button:last-child {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.primary {
  width: 100%;
  margin-top: 18px;
}

.feed-panel {
  margin-bottom: 20px;
}

.feed-heading,
.result-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.feed-heading {
  margin-bottom: 16px;
}

.feed-heading h2 {
  margin-bottom: 0;
}

#feedStatus {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: right;
  max-width: 420px;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.feed-card {
  min-height: 214px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbf9);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.feed-card:hover {
  border-color: var(--green);
  box-shadow: 0 10px 28px rgba(31, 46, 39, 0.1);
  transform: translateY(-2px);
}

.feed-card.pending {
  cursor: default;
  opacity: 0.82;
}

.feed-card.pending:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.feed-card header {
  display: grid;
  gap: 5px;
}

.feed-card h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.25;
}

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

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

.team-identity > :last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-badge {
  width: 30px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(16, 24, 21, 0.16));
}

.versus {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.7em;
  font-weight: 900;
  text-transform: uppercase;
}

.result-panel .team-pair {
  gap: 10px;
}

.result-panel .team-badge {
  width: 34px;
  height: 38px;
}

.feed-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.feed-pick {
  display: grid;
  gap: 4px;
}

.feed-pick strong {
  color: var(--green);
  font-size: 1rem;
}

.feed-form {
  display: grid;
  gap: 7px;
}

.feed-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.feed-form-row > span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-strip.compact {
  gap: 4px;
  flex-wrap: nowrap;
}

.form-strip.compact .form-pill {
  width: 22px;
  height: 22px;
  font-size: 0.66rem;
}

.feed-markets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.feed-markets span {
  padding: 5px 7px;
  border-radius: 999px;
  background: #ecf7f2;
  color: #314039;
  font-size: 0.76rem;
  font-weight: 800;
}

.feed-card button {
  min-height: 36px;
  justify-self: start;
  padding: 0 12px;
}

.result-panel {
  position: sticky;
  top: 18px;
}

.badge {
  min-width: 104px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 143, 99, 0.11);
  color: var(--green);
  font-weight: 900;
}

.pick {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(13, 143, 99, 0.1), rgba(199, 243, 106, 0.12));
}

.pick span,
.probabilities span,
.market-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.pick strong {
  font-size: 1.45rem;
}

.probabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.probabilities div,
.market-card {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.probabilities strong {
  font-size: 1.4rem;
}

.last-five-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.last-five-grid > div {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.last-five-grid span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.form-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.form-pill {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
}

.form-pill.win {
  background: var(--green);
}

.form-pill.draw {
  background: var(--amber);
}

.form-pill.loss {
  background: var(--red);
}

.form-empty {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.compact-empty {
  white-space: nowrap;
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.market-card {
  min-height: 92px;
}

.market-card strong {
  font-size: 1.05rem;
  color: var(--green-dark);
}

.market-card small {
  color: var(--muted);
  font-weight: 800;
}

.meter {
  height: 10px;
  border-radius: 999px;
  background: #dfe8e2;
  overflow: hidden;
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--lime));
  transition: width 180ms ease;
}

ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: #314039;
}

@media (max-width: 1020px) {
  .feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero,
  .result-top,
  .feed-heading {
    display: grid;
    grid-template-columns: 1fr;
  }

  #feedStatus {
    text-align: left;
  }

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

  .feed-grid {
    max-height: none;
  }

  .result-panel {
    position: static;
  }
}

.match-analysis-view { margin-top: 24px; }
.app-shell [hidden] { display: none !important; }
.analysis-view-heading { display: flex; gap: 18px; align-items: flex-start; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 18px; }
.analysis-view-heading h2 { margin: 4px 0; }
.analysis-meta { margin: 0; opacity: .8; }
.back-to-feed { background: #fff; color: #d31322; border: 0; border-radius: 8px; font-weight: 800; padding: 11px 14px; white-space: nowrap; cursor: pointer; }
.analysis-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.analysis-summary > div, .detail-market { border: 1px solid rgba(255,255,255,.3); border-radius: 10px; padding: 14px; background: rgba(255,255,255,.08); }
.analysis-summary span, .detail-market span { display: block; font-size: .78rem; opacity: .8; margin-bottom: 7px; }
.analysis-summary strong { font-size: 1.05rem; }
.detail-section { margin-top: 26px; }
.detail-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.detail-section-heading h3 { margin: 0; }
.detail-section-heading span { font-size: .82rem; opacity: .76; }
.history-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.history-tables h4 { margin: 0 0 8px; }
.table-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 440px; }
.table-wrap th, .table-wrap td { padding: 10px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.14); font-size: .86rem; }
.table-wrap th { color: #ffd9dc; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap tr:last-child td { border-bottom: 0; }
.result-chip { display: inline-block; min-width: 25px; padding: 3px 7px; border-radius: 99px; text-align: center; font-weight: 800; }
.result-chip.w { background: #d7f7df; color: #146c2e; }.result-chip.d { background: #fff2be; color: #805b00; }.result-chip.l { background: #ffd7db; color: #a11125; }
.detail-markets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.detail-market strong { display: block; min-height: 38px; }.detail-market b { color: #fff; font-size: 1.15rem; }
.detail-analysis { margin: 16px 0 0; padding-left: 20px; }.detail-analysis li { margin: 7px 0; }
@media (max-width: 700px) { .analysis-view-heading { display: block; }.back-to-feed { margin-bottom: 15px; }.analysis-summary, .history-tables, .detail-markets { grid-template-columns: 1fr; }.detail-section-heading { display: block; }.detail-section-heading span { display: block; margin-top: 4px; } }

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 20px, 1240px);
    padding: 10px 0 20px;
  }

  .hero,
  .form-panel,
  .result-panel,
  .feed-panel {
    padding: 18px;
  }

  .hero {
    min-height: 430px;
  }

  .brand-lockup {
    align-items: start;
  }

  .actions {
    justify-content: stretch;
  }

  .actions button {
    flex: 1 1 150px;
  }

  .subcopy {
    margin-top: 28px;
  }

  .hero-stats,
  .row,
  .row.three,
  .probabilities,
  .last-five-grid,
  .markets-grid,
  .feed-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile refinements and quick page navigation */
html { scroll-behavior: smooth; }
.mobile-scroll-controls { display: none; }
@media (max-width: 560px) {
  body { overflow-x: hidden; }
  .app-shell { width: min(100% - 24px, 1240px); padding: 12px 0 88px; }
  .hero { min-height: 0; gap: 18px; padding: 20px; }
  .brand-lockup { gap: 12px; }
  .mark { width: 48px; height: 48px; font-size: 1rem; }
  h1 { font-size: clamp(2.7rem, 15vw, 4.25rem); line-height: 0.94; }
  .subcopy { margin-top: 6px; font-size: .98rem; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-stats div { min-height: 68px; padding: 10px; }
  .hero-stats strong { font-size: 1.25rem; }
  .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .actions button { min-width: 0; padding: 0 10px; font-size: .86rem; }
  .feed-heading, .result-top { gap: 10px; }
  .feed-card { min-height: 0; padding: 14px; }
  .result-panel .team-pair { flex-wrap: wrap; font-size: 1.05rem; }
  .result-panel .team-identity { max-width: calc(50% - 24px); }
  .probabilities { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .probabilities div { min-height: 72px; padding: 9px; }
  .probabilities span, .market-card span { font-size: .74rem; }
  .probabilities strong { font-size: 1.12rem; }
  .mobile-scroll-controls { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 20; display: grid; gap: 8px; }
  .mobile-scroll-button { width: 46px; min-height: 46px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: var(--green-dark); color: #fff; box-shadow: 0 10px 24px rgba(7,88,63,.28); font-size: 1.4rem; line-height: 1; }
  .mobile-scroll-button:active { transform: scale(.96); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Red-and-white theme based on the approved OBPredict reference */
:root {
  --bg: #fff7f7;
  --panel: rgba(255, 255, 255, 0.96);
  --ink: #2b1115;
  --muted: #7b565b;
  --line: #f1c7cb;
  --green: #df1725;
  --green-dark: #b70f1b;
  --lime: #ffffff;
  --amber: #d88a1d;
  --red: #c44b4b;
  --blue: #a61722;
  --shadow: 0 20px 54px rgba(151, 14, 28, 0.12);
}

body {
  background:
    linear-gradient(135deg, rgba(223, 23, 37, 0.10), transparent 36%),
    linear-gradient(315deg, rgba(223, 23, 37, 0.07), transparent 38%),
    var(--bg);
}

.hero {
  background: linear-gradient(135deg, #e91625 0%, #c90f1c 100%);
}

.hero::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(129, 0, 10, 0.13));
}

.mark {
  background: #fff;
  color: var(--green);
}

.hero .eyebrow {
  color: #fff;
}

.hero .actions button:first-child {
  background: #fff;
  border-color: #fff;
  color: var(--green);
}

.hero .actions button:last-child {
  border-color: rgba(255, 255, 255, 0.9);
  background: transparent;
  color: #fff;
}

.hero-stats div {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.9);
}

input:focus {
  border-color: var(--green);
  outline-color: rgba(223, 23, 37, 0.15);
}

button:hover,
.feed-card:hover {
  border-color: var(--green);
}

.feed-markets span {
  background: #fff0f1;
  color: #81202a;
}

.badge {
  background: rgba(223, 23, 37, 0.11);
  color: var(--green);
}

.pick {
  background: linear-gradient(135deg, rgba(223, 23, 37, 0.10), rgba(255, 235, 237, 0.7));
}

.market-card strong {
  color: var(--green-dark);
}

.form-pill.win {
  background: var(--green);
}

.meter span {
  background: linear-gradient(90deg, var(--green-dark), #ff5360);
}

.mobile-scroll-button {
  background: var(--green);
  box-shadow: 0 10px 24px rgba(183, 15, 27, 0.30);
}

@media (max-width: 560px) {
  .hero {
    text-align: center;
  }

  .brand-lockup {
    justify-content: center;
  }

  .brand-lockup > div:last-child {
    text-align: center;
  }

  .hero .subcopy {
    text-align: center;
  }

  .hero-stats {
    text-align: left;
  }
}

/* Center the complete mobile wordmark without clipping it */
@media (max-width: 560px) {
  .hero .brand-lockup {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
    row-gap: 8px;
  }

  .hero .brand-lockup > div:last-child {
    display: contents;
  }

  .hero .brand-lockup .mark {
    grid-column: 1;
    grid-row: 1;
  }

  .hero .brand-lockup .eyebrow {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    text-align: left;
  }

  .hero .brand-lockup h1 {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin: 0;
    font-size: clamp(2.35rem, 12.5vw, 3.2rem);
    line-height: 0.98;
    text-align: center;
    letter-spacing: -0.04em;
  }
}

/* LiveScore-style score display on match cards */
.feed-scoreboard { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0; padding: 9px 10px; border: 1px solid #f1c7cb; border-radius: 7px; background: #fff5f5; }
.feed-score { color: var(--green-dark); font-size: 1.18rem; letter-spacing: .04em; }
.feed-score-status { padding: 4px 7px; border-radius: 999px; background: #ffe1e4; color: #a61722; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.feed-score-status.live { background: var(--green); color: #fff; }


/* Desktop market filter controls */
.desktop-market-filters {
  position: absolute;
  top: 108px;
  right: 30px;
  z-index: 2;
  width: min(390px, 34%);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background: rgba(118, 0, 13, 0.28);
  backdrop-filter: blur(12px);
}

.filter-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.desktop-market-filters .eyebrow {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.76);
}

.desktop-market-filters h2 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.filter-grid label {
  gap: 4px;
  margin: 0;
  color: #fff;
  font-size: 0.76rem;
}

.filter-grid select {
  width: 100%;
  min-height: 36px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 6px;
  background: #fff;
  color: var(--green-dark);
  font: inherit;
  font-weight: 800;
}

.filter-reset {
  min-height: 32px;
  padding: 0 9px;
  border-color: rgba(255, 255, 255, 0.8);
  background: transparent;
  color: #fff;
  font-size: 0.75rem;
}

.filter-count {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (min-width: 861px) {
  .hero {
    min-height: 405px;
  }

  .hero .subcopy {
    max-width: 61%;
  }

  .hero-stats {
    max-width: 58%;
  }
}

@media (max-width: 860px) {
  .desktop-market-filters {
    display: none;
  }
}

/* 2026 match-centre refresh: compact, high-contrast LiveScore-inspired UI */
:root { --ink: #111827; --muted: #64748b; --surface: #ffffff; --line: #e8edf3; --accent: #e51c2d; --navy: #111827; --soft: #f4f7fb; }
body { background: var(--soft); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.app-shell { width: min(1240px, calc(100% - 28px)); gap: 18px; padding: 16px 0 42px; }
.hero { min-height: 0 !important; padding: 20px 24px; border-radius: 16px; background: linear-gradient(118deg, #121a2c 0%, #202d4b 68%, #e51c2d 170%); box-shadow: 0 14px 34px rgba(15, 23, 42, .17); }
.brand-lockup { gap: 10px; }.hero .mark { width: 42px; height: 42px; border-radius: 11px; font-size: .95rem; color: var(--accent); }.hero .eyebrow { letter-spacing: .08em; font-size: .68rem; opacity: .75; }.hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.055em; line-height: .95; }
.hero .subcopy { display: none; }.hero-stats { display: none; }.actions { margin-left: auto; gap: 8px; }.actions button { min-height: 40px; padding: 0 14px; border-radius: 9px; font-size: .82rem; }.actions #feedBtn { background: var(--accent); color: #fff; border-color: var(--accent); }.actions #sampleBtn { background: transparent; border-color: rgba(255,255,255,.4); }
.desktop-market-filters { position: static; width: auto; margin-top: 18px; padding: 12px 0 0; border: 0; border-top: 1px solid rgba(255,255,255,.18); border-radius: 0; background: transparent; backdrop-filter: none; }.filter-heading { margin-bottom: 8px; }.desktop-market-filters h2 { font-size: .86rem; }.desktop-market-filters .eyebrow { display: none; }.filter-grid { display: flex; flex-wrap: wrap; gap: 8px; }.filter-grid label { display: flex; align-items: center; gap: 6px; padding: 5px 9px; background: rgba(255,255,255,.09); border-radius: 8px; font-size: .7rem; }.filter-grid select { width: auto; min-height: 28px; padding: 3px 22px 3px 6px; border: 0; border-radius: 5px; font-size: .7rem; }.filter-reset { min-height: 29px; }.filter-count { margin: 8px 0 0; }
.panel { border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(15,23,42,.05); }.feed-panel { padding: 0; overflow: hidden; background: var(--surface); }.feed-heading { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }.feed-heading .eyebrow { color: var(--accent); font-size: .69rem; }.feed-heading h2 { color: var(--ink); font-size: 1.2rem; }.feed-heading #feedStatus { color: var(--muted); font-size: .75rem; }
.feed-grid { display: block; }.feed-card { min-height: 0; display: grid; grid-template-columns: minmax(310px, 1.25fr) minmax(170px, .8fr) minmax(160px, .7fr) 112px; gap: 16px; align-items: center; padding: 16px 22px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; box-shadow: none; cursor: pointer; transition: background .16s ease, transform .16s ease; }.feed-card:hover { transform: none; background: #fbfcfe; box-shadow: inset 4px 0 0 var(--accent); }.feed-card header { gap: 4px; }.feed-card header > p:first-child { color: var(--muted); font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }.feed-card h3 { color: var(--ink); font-size: 1rem; }.feed-card p { color: var(--muted); font-size: .75rem; }.feed-scoreboard { justify-self: start; margin: 4px 0 0; padding: 4px 7px; border: 0; background: #f1f5f9; border-radius: 6px; }.feed-score { color: var(--ink); font-size: .9rem; }.feed-score-status { padding: 3px 5px; font-size: .62rem; }.feed-pick { padding: 0; background: transparent; border: 0; }.feed-pick span { color: var(--muted); font-size: .66rem; }.feed-pick strong { color: var(--ink); font-size: .82rem; line-height: 1.35; }.feed-form { gap: 6px; }.feed-form-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; color: var(--muted); font-size: .72rem; }.form-pill { width: 20px; height: 20px; font-size: .62rem; }.feed-markets { display: flex; flex-wrap: wrap; gap: 5px; }.feed-markets span { padding: 4px 6px; border: 1px solid #e7edf5; border-radius: 5px; color: #475569; background: #f8fafc; font-size: .62rem; }.feed-card button { justify-self: end; min-width: 104px; min-height: 34px; padding: 0 9px; border: 1px solid #dbe3ee; border-radius: 7px; color: var(--accent); background: #fff; font-size: .72rem; font-weight: 800; }.feed-card button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.match-analysis-view { padding: 0; overflow: hidden; background: #fff; color: var(--ink); }.analysis-view-heading { padding: 20px 22px; border-color: var(--line); background: #fff; }.analysis-view-heading h2, .detail-section h3, .history-tables h4 { color: var(--ink); }.analysis-meta, .detail-section-heading span { color: var(--muted); }.back-to-feed { background: var(--navy); color: #fff; border-radius: 8px; }.analysis-summary { margin: 0; padding: 14px 22px; grid-template-columns: repeat(3, minmax(0,1fr)); background: #f8fafc; border-bottom: 1px solid var(--line); }.analysis-summary > div, .detail-market { border-color: var(--line); background: #fff; }.analysis-summary span, .detail-market span { color: var(--muted); }.analysis-summary strong, .detail-market strong, .detail-market b { color: var(--ink); }.detail-section { padding: 0 22px 22px; }.detail-section:first-of-type { padding-top: 20px; }.table-wrap { border-color: var(--line); }.table-wrap th { color: var(--muted); background: #f8fafc; }.table-wrap th, .table-wrap td { border-color: var(--line); color: var(--ink); }.detail-analysis { color: #334155; }
@media (max-width: 860px) { .hero { padding: 18px; }.desktop-market-filters { display: none; }.feed-card { grid-template-columns: 1fr auto; gap: 12px; padding: 15px 16px; }.feed-card header { grid-column: 1 / -1; }.feed-pick { grid-column: 1; }.feed-form { grid-column: 1; }.feed-markets { display: none; }.feed-card button { grid-column: 2; grid-row: 2 / span 2; }.feed-scoreboard { margin-top: 5px; }.analysis-summary { padding: 12px 16px; }.analysis-view-heading, .detail-section { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 560px) { .app-shell { width: 100%; gap: 12px; padding: 0 0 32px; }.hero { border-radius: 0 0 16px 16px; }.hero .brand-lockup { display: flex; width: auto; }.hero .brand-lockup > div:last-child { display: block; }.hero .brand-lockup .mark, .hero .brand-lockup .eyebrow, .hero .brand-lockup h1 { width: auto; margin: 0; text-align: left; }.hero .brand-lockup h1 { font-size: 2rem; }.actions { width: auto; margin-left: auto; }.actions #sampleBtn { display: none; }.actions #feedBtn { font-size: 0; width: 40px; padding: 0; }.actions #feedBtn::after { content: "↻"; font-size: 1.1rem; }.feed-panel, .match-analysis-view { border-left: 0; border-right: 0; border-radius: 0; }.feed-heading { padding: 16px; }.feed-heading h2 { font-size: 1rem; }.feed-heading #feedStatus { display: none; }.feed-card { grid-template-columns: 1fr auto; padding: 14px 16px; }.feed-card h3 { font-size: .94rem; }.feed-card button { min-width: 72px; font-size: .65rem; }.analysis-summary { grid-template-columns: 1fr; gap: 8px; }.analysis-summary > div { padding: 10px; }.detail-section { padding-bottom: 18px; }.detail-markets { grid-template-columns: repeat(2, minmax(0,1fr)); }.detail-market { padding: 10px; }.detail-market strong { font-size: .78rem; min-height: 33px; } }
