.report-body {
  background:
    linear-gradient(180deg, rgba(6, 18, 18, .72), rgba(7, 10, 18, 1) 380px),
    radial-gradient(820px 520px at 12% 2%, rgba(255, 107, 53, .10), transparent 62%),
    radial-gradient(720px 420px at 92% 12%, rgba(65, 189, 217, .10), transparent 64%),
    #04020d;
}

.report-shell {
  width: min(1320px, calc(100vw - 34px));
}

.report-page {
  display: grid;
  gap: 16px;
}

.report-topbar {
  margin-bottom: 14px;
}

.report-card,
.report-hero {
  border: 1px solid rgba(143, 168, 196, .13);
  background: linear-gradient(180deg, rgba(13, 20, 34, .93), rgba(9, 15, 31, .96));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.report-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 32px 24px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.report-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 180px at 20% 0%, rgba(255, 107, 53, .12), transparent),
    radial-gradient(520px 220px at 100% 15%, rgba(65, 189, 217, .10), transparent);
}

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

.report-kicker-row,
.report-actions,
.report-legend,
.report-section-head {
  display: flex;
  align-items: center;
}

.report-kicker-row {
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.report-kicker,
.report-label {
  color: #7a8aab;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.report-live-pill {
  border: 1px solid rgba(255, 107, 53, .28);
  border-radius: 999px;
  padding: 3px 9px;
  color: #ff7648;
  background: rgba(255, 107, 53, .12);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.report-hero h1 {
  margin: 0;
  color: #f0f4ff;
  font-family: "Roboto Slab", serif;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 800;
}

.report-hero h1 span,
.report-orange {
  color: #ff6b35;
}

.report-hero p,
.report-section-head p,
.report-insight p,
.report-narrative p {
  color: #8393a7;
}

.report-hero p {
  margin: 9px 0 0;
  font-size: 13px;
}

.report-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.report-actions-left {
  justify-content: flex-start;
  margin-top: 18px;
}

.report-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(143, 168, 196, .22);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  color: #f0f4ff;
  padding: 8px 14px;
  font: 800 12px/1 "DM Sans", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, color .12s ease, background .12s ease;
}

.report-btn:hover {
  transform: translateY(-1px);
}

.report-btn-cyan {
  color: #41bdd9;
  border-color: rgba(65, 189, 217, .34);
  background: rgba(65, 189, 217, .08);
}

.report-btn-orange {
  color: #ff7648;
  border-color: rgba(255, 107, 53, .34);
  background: rgba(255, 107, 53, .08);
}

.report-btn-risk {
  color: #ef4444;
  border-color: rgba(239, 68, 68, .30);
  background: rgba(239, 68, 68, .06);
}

.report-btn-muted {
  color: #7a8aab;
}

.report-notice {
  border: 1px solid rgba(255, 107, 53, .25);
  border-radius: 12px;
  padding: 12px 14px;
  color: #ffb199;
  background: rgba(255, 107, 53, .08);
  font-size: 13px;
  line-height: 1.45;
}

.report-notice-info {
  border-color: rgba(65, 189, 217, .25);
  color: #9de8f7;
  background: rgba(65, 189, 217, .08);
}

.report-notice-warn {
  border-color: rgba(255, 107, 53, .30);
}

.report-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(130px, .5fr) minmax(130px, .5fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
}

.report-filters label {
  display: grid;
  gap: 6px;
}

.report-filters label span {
  color: #7a8aab;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.report-filters select {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(143, 168, 196, .18);
  border-radius: 10px;
  padding: 0 11px;
  background: #090f1f;
  color: #f0f4ff;
  font: 700 12px/1 "DM Sans", system-ui, sans-serif;
  outline: none;
}

.report-filters select:disabled {
  color: #7a8aab;
  opacity: .72;
}

.report-demo-hero {
  border-color: rgba(255, 107, 53, .26);
}

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

.report-card {
  border-radius: 14px;
}

.report-insight {
  padding: 16px 18px;
}

.report-insight strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.08;
}

.report-slab,
.report-section-head h2,
.report-narrative-lead {
  font-family: "Roboto Slab", serif;
}

.report-cyan {
  color: #41bdd9;
}

.report-green {
  color: #8ee5ae;
}

.report-risk {
  color: #ef4444;
}

.report-insight p {
  min-height: 36px;
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.report-mini-track {
  height: 3px;
  margin-top: 12px;
  border-radius: 99px;
  background: #161f38;
  overflow: hidden;
}

.report-mini-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.report-matrix-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 16px;
}

.report-chart-card,
.report-table-card,
.report-evidence-card,
.report-narrative,
.report-ranking {
  padding: 20px;
}

.report-section-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.report-section-head h2 {
  margin: 0;
  color: #f0f4ff;
  font-size: 17px;
  font-weight: 800;
}

.report-section-head p {
  margin: 5px 0 0;
  font-size: 12px;
}

.report-section-head p:empty {
  display: none;
}

.report-legend {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.report-legend span {
  color: #7a8aab;
  font-size: 11px;
  white-space: nowrap;
}

.report-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
}

.report-legend .top { background: #ff6b35; }
.report-legend .mid { background: #41bdd9; }
.report-legend .risk { background: #ef4444; }

.report-chart-wrap {
  position: relative;
  min-height: 360px;
}

.report-chart-wrap canvas {
  width: 100%;
  height: 360px;
}

.report-chart-fallback {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  color: #7a8aab;
  font-size: 13px;
  text-align: center;
}

.report-chart-fallback[hidden] {
  display: none;
}

.report-ranking {
  display: grid;
  align-content: start;
  gap: 10px;
}

.report-rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(143, 168, 196, .08);
}

.report-rank-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.report-rank-name i {
  width: 18px;
  flex: 0 0 18px;
  color: #7a8aab;
  font: 600 12px/1 "Oswald", sans-serif;
  font-style: normal;
}

.report-rank-name span {
  overflow: hidden;
  color: #f0f4ff;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-rank-score,
.report-score,
.report-trend,
.report-scoreline,
.report-team-badge {
  font-family: "Oswald", sans-serif;
}

.report-rank-score {
  color: #ff6b35;
  font-size: 15px;
  font-weight: 700;
}

.report-table-scroll {
  overflow-x: auto;
}

.report-metric-help {
  color: #f0f4ff;
  font-weight: 800;
}

.report-metric-help {
  text-decoration: underline dotted rgba(143, 168, 196, .55);
  text-underline-offset: 3px;
  cursor: help;
}

.report-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.report-table th {
  padding: 9px 7px;
  border-bottom: 1px solid rgba(143, 168, 196, .15);
  color: #7a8aab;
  font: 800 11px/1.2 "DM Sans", system-ui, sans-serif;
  text-align: center;
}

.report-table th:nth-child(1) { width: 34px; }
.report-table th:nth-child(2) { text-align: left; width: 190px; }
.report-table th:nth-child(3) { color: #ff6b35; width: 86px; }
.report-table th:nth-child(10) { text-align: left; width: 132px; }

.report-table td {
  padding: 10px 7px;
  border-bottom: 1px solid rgba(143, 168, 196, .07);
  color: #f0f4ff;
  text-align: center;
}

.report-table tr {
  transition: background .12s ease;
}

.report-table tr:hover {
  background: rgba(13, 20, 34, .72);
}

.report-table td:nth-child(2),
.report-table td:nth-child(10) {
  text-align: left;
}

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

.report-team-badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
}

.report-team-cell span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-score {
  color: #ff6b35;
  font-size: 16px;
  font-weight: 700;
}

.report-metric-cell {
  display: grid;
  gap: 4px;
}

.report-bar {
  height: 4px;
  border-radius: 99px;
  background: #161f38;
  overflow: hidden;
}

.report-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.report-status {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.report-evidence-list {
  display: grid;
  gap: 7px;
}

.report-match-row {
  display: grid;
  grid-template-columns: 70px minmax(180px, 1fr) 80px 105px minmax(220px, 1.3fr);
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(143, 168, 196, .08);
  border-radius: 10px;
  background: rgba(12, 18, 36, .58);
}

.report-match-date,
.report-match-comment {
  color: #7a8aab;
  font-size: 11px;
  line-height: 1.45;
}

.report-home {
  color: #ff7648;
  font-weight: 700;
}

.report-away {
  color: #41bdd9;
  font-weight: 700;
}

.report-vs {
  margin: 0 5px;
  color: #7a8aab;
  font-size: 11px;
}

.report-scoreline {
  color: #f0f4ff;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.report-metric-pill {
  border: 1px solid rgba(255, 107, 53, .25);
  border-radius: 999px;
  padding: 4px 9px;
  color: #ff7648;
  background: rgba(255, 107, 53, .09);
  font: 600 12px/1 "Oswald", sans-serif;
  text-align: center;
  white-space: nowrap;
}

.report-narrative {
  border-left: 3px solid #ff6b35;
  border-radius: 0 14px 14px 0;
}

.report-narrative p {
  margin: 13px 0 0;
  font-size: 13px;
  line-height: 1.75;
}

.report-narrative-lead {
  color: #f0f4ff !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}

.report-narrative-lead span {
  color: #ff6b35;
}

@media (max-width: 980px) {
  .report-hero,
  .report-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-actions,
  .report-legend {
    justify-content: flex-start;
  }

  .report-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .report-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-match-row {
    grid-template-columns: 64px minmax(0, 1fr) 64px;
  }

  .report-metric-pill,
  .report-match-comment {
    grid-column: 2 / -1;
  }
}

@media (max-width: 640px) {
  .report-shell {
    width: min(100vw - 20px, 1320px);
    margin-top: 10px;
  }

  .report-hero,
  .report-chart-card,
  .report-table-card,
  .report-evidence-card,
  .report-narrative,
  .report-ranking {
    padding: 16px;
  }

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

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

  .report-insight strong {
    font-size: 25px;
  }

  .report-chart-wrap,
  .report-chart-wrap canvas {
    min-height: 320px;
    height: 320px;
  }

  .report-match-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .report-scoreline,
  .report-metric-pill,
  .report-match-comment {
    grid-column: auto;
    text-align: left;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 8mm;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .fb-topbar,
  .report-actions {
    display: none !important;
  }

  .report-shell {
    width: 100%;
    margin: 0;
  }

  .report-body {
    background: #04020d;
  }

  .report-card,
  .report-hero,
  .report-matrix-grid {
    break-inside: avoid;
  }

  .report-page {
    gap: 12px;
  }

  .report-chart-wrap,
  .report-chart-wrap canvas {
    min-height: 330px;
    height: 330px;
  }
}
