.page-home {
  --home-grid-line: rgba(198, 255, 0, 0.12);
  --home-panel-grad: linear-gradient(135deg, rgba(74, 14, 78, 0.92), rgba(14, 27, 42, 0.96));
  position: relative;
  width: 100%;
  min-width: 0;
  background: var(--night-blue);
  color: var(--paper);
  overflow-x: hidden;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  font-family: var(--font-heading);
  color: var(--paper);
  line-height: 1.15;
}

.page-home p {
  font-family: var(--font-body);
  color: rgba(245, 247, 250, 0.86);
}

.page-home .container {
  padding-right: 20px;
  padding-left: 20px;
}

.page-home .page-title {
  margin: 12px 0 16px;
  font-size: clamp(28px, 5.5vw, 52px);
  letter-spacing: 0.01em;
}

.page-home .section-title {
  margin: 4px 0 12px;
  font-size: clamp(24px, 3.5vw, 40px);
  letter-spacing: 0.02em;
}

.page-home .home-eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-green);
}

.page-home .breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 13px;
}

.page-home .breadcrumb-item {
  padding: 4px 10px;
  border: 1px solid rgba(198, 255, 0, 0.5);
  color: var(--neon-green);
}

.page-home .btn-ghost {
  border-color: rgba(245, 247, 250, 0.75);
  color: var(--paper);
}

.page-home .home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 44px 20px 56px;
  isolation: isolate;
}

.page-home .home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-home .home-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  display: block;
}

.page-home .home-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 27, 42, 0.82) 0%, rgba(14, 27, 42, 0.68) 48%, rgba(14, 27, 42, 0.96) 100%);
}

.page-home .home-hero-body,
.page-home .home-scoreboard {
  position: relative;
  z-index: 1;
}

.page-home .home-hero-lead {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.7;
  max-width: 60ch;
}

.page-home .home-hero-meta {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--neon-green);
  letter-spacing: 0.02em;
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .home-scoreboard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--home-panel-grad);
  border: var(--border-w) solid var(--neon-green);
  box-shadow: var(--shadow-hard);
}

.page-home .home-scoreboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-home .home-scoreboard-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-green);
}

.page-home .home-scoreboard-more {
  font-size: 14px;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}

.page-home .home-scoreboard-more:hover {
  color: var(--neon-green);
}

.page-home .home-match-main {
  background: rgba(245, 247, 250, 0.05);
  border: 1px solid rgba(245, 247, 250, 0.18);
  padding: 18px;
}

.page-home .home-match-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.page-home .home-match-competition {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(245, 247, 250, 0.8);
}

.page-home .home-match-scoreline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 20px 0 14px;
}

.page-home .home-match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.page-home .home-match-team-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  white-space: nowrap;
}

.page-home .home-match-team-score {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  color: var(--neon-green);
  line-height: 1;
  animation: home-score-flash 1.8s ease-in-out infinite;
}

.page-home .home-match-colon {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--orange);
}

.page-home .home-match-meta-data {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding-top: 12px;
  border-top: 1px dashed rgba(245, 247, 250, 0.2);
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(245, 247, 250, 0.8);
}

.page-home .home-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.page-home .home-mini {
  background: rgba(245, 247, 250, 0.06);
  border: 1px solid rgba(245, 247, 250, 0.16);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .home-mini-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(245, 247, 250, 0.75);
}

.page-home .home-mini-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
}

.page-home .home-mini-home {
  text-align: left;
  color: var(--paper);
  font-size: 14px;
}

.page-home .home-mini-away {
  text-align: right;
  color: var(--paper);
  font-size: 14px;
}

.page-home .home-mini-score {
  display: flex;
  gap: 6px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--paper);
}

.page-home .home-mini-score b {
  font-size: 18px;
  color: var(--neon-green);
}

.page-home .home-mini-score em {
  color: var(--orange);
  font-style: normal;
}

.page-home .home-leagues {
  padding: 64px 0;
  background:
    linear-gradient(var(--home-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid-line) 1px, transparent 1px),
    var(--night-blue);
  background-size: 36px 36px;
}

.page-home .home-leagues-head {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}

.page-home .home-leagues-desc {
  max-width: 58ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

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

.page-home .home-league-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  background: rgba(245, 247, 250, 0.04);
  border: 1px solid rgba(245, 247, 250, 0.14);
  border-top: 3px solid var(--neon-green);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: var(--paper);
  transition: transform 0.18s ease, background 0.18s ease;
}

.page-home .home-league-item:hover {
  transform: translate(-2px, -2px);
  background: rgba(198, 255, 0, 0.1);
}

.page-home .home-league-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
}

.page-home .home-league-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .home-league-count {
  font-size: 13px;
  color: rgba(245, 247, 250, 0.72);
}

.page-home .home-h2h {
  background: var(--paper);
  color: var(--ink);
  padding: 64px 0;
}

.page-home .home-h2h .section-title,
.page-home .home-h2h h3 {
  color: var(--ink);
}

.page-home .home-h2h p {
  color: rgba(26, 26, 26, 0.74);
}

.page-home .home-h2h-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.page-home .home-h2h-visual {
  border: var(--border-w) solid var(--night-blue);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  background: var(--purple);
}

.page-home .home-h2h-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-h2h-content {
  padding-top: 4px;
}

.page-home .home-h2h-demo {
  margin: 22px 0;
  padding: 18px;
  box-shadow: var(--shadow-hard);
}

.page-home .home-h2h-demo h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.page-home .home-h2h-summary {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--orange);
  font-weight: 700;
}

.page-home .home-h2h-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-h2h-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(26, 26, 26, 0.18);
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(26, 26, 26, 0.84);
}

.page-home .home-h2h-list li:last-child {
  border-bottom: none;
}

.page-home .home-reports {
  background: linear-gradient(160deg, rgba(74, 14, 78, 1) 0%, rgba(14, 27, 42, 0.95) 100%);
  padding: 64px 0;
}

.page-home .home-reports-head {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}

.page-home .home-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.page-home .home-report-card {
  display: flex;
  flex-direction: column;
  background: rgba(245, 247, 250, 0.06);
  border: 1px solid rgba(245, 247, 250, 0.16);
  border-top: var(--border-w) solid var(--neon-green);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.page-home .home-report-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--purple);
}

.page-home .home-report-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .home-report-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  flex: 1;
}

.page-home .home-report-body h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.page-home .home-report-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(245, 247, 250, 0.7);
}

.page-home .home-report-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--neon-green);
  text-decoration: none;
}

.page-home .home-report-link:hover {
  color: var(--orange);
}

.page-home .home-index {
  background:
    radial-gradient(circle at 80% 20%, rgba(74, 14, 78, 0.55), transparent 40%),
    var(--night-blue);
  padding: 64px 0;
}

.page-home .home-index-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  box-shadow: var(--shadow-hard);
  border: var(--border-w) solid var(--neon-green);
  overflow: hidden;
}

.page-home .home-index-media {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: rgba(74, 14, 78, 0.5);
}

.page-home .home-index-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .home-index-content {
  padding: 28px 22px;
}

.page-home .home-index-content .section-title,
.page-home .home-index-content p {
  color: var(--ink);
}

.page-home .home-index-desc {
  margin: 0 0 22px;
  line-height: 1.7;
}

.page-home .home-index-search {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.page-home .home-search-icon {
  position: absolute;
  left: 14px;
  display: flex;
  color: rgba(14, 27, 42, 0.6);
  pointer-events: none;
}

.page-home .home-index-search input[type="search"] {
  flex: 1 1 220px;
  padding: 12px 12px 12px 44px;
  border: var(--border-w) solid var(--night-blue);
  border-radius: 0;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(14, 27, 42, 0.18);
}

.page-home .home-index-search input[type="search"]:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.page-home .home-index-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.page-home .home-index-tags li {
  color: var(--ink);
}

.page-home .home-index-tags a {
  display: inline-block;
  padding: 5px 10px;
  background: rgba(14, 27, 42, 0.06);
  border: 1px solid rgba(14, 27, 42, 0.18);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.page-home .home-index-tags a:hover {
  background: var(--neon-green);
  color: var(--ink);
}

.page-home .home-stats {
  background: var(--neon-green);
  color: var(--ink);
  padding: 64px 0;
}

.page-home .home-stats .section-title,
.page-home .home-stats .home-stat-label,
.page-home .home-stats .home-stats-foot {
  color: var(--ink);
}

.page-home .home-eyebrow-dark {
  color: rgba(14, 27, 42, 0.72);
}

.page-home .home-stats-head {
  margin-bottom: 28px;
}

.page-home .home-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.page-home .home-stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 108px;
  padding: 22px 14px;
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.page-home .home-stat-num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  color: var(--night-blue);
  line-height: 1;
  margin-bottom: 8px;
  white-space: nowrap;
}

.page-home .home-stat-label {
  font-size: 14px;
  opacity: 0.8;
}

.page-home .home-stats-foot {
  margin: 28px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

.page-home .home-stats-foot a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
}

.page-home .home-help {
  background: var(--night-blue);
  border-top: var(--border-w) solid var(--neon-green);
  padding: 40px 0;
}

.page-home .home-help-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.page-home .home-help-text {
  margin: 0;
  font-size: 15px;
}

@keyframes home-score-flash {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.04);
  }
}

@media (min-width: 640px) {
  .page-home .home-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .home-league-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .home-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .home-hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
    align-items: stretch;
    padding: 72px 48px 80px;
  }

  .page-home .home-hero-body {
    padding-top: 28px;
  }

  .page-home .home-scoreboard {
    padding: 24px;
  }

  .page-home .home-leagues,
  .page-home .home-h2h,
  .page-home .home-reports,
  .page-home .home-index,
  .page-home .home-stats {
    padding-top: 84px;
    padding-bottom: 84px;
  }

  .page-home .home-league-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .home-h2h-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
  }

  .page-home .home-h2h-content {
    padding-top: 0;
  }

  .page-home .home-report-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .home-report-card-featured {
    grid-column: span 2;
    flex-direction: row;
  }

  .page-home .home-report-card-featured .home-report-img {
    width: 42%;
    height: auto;
    min-height: 260px;
    flex-shrink: 0;
  }

  .page-home .home-report-card-featured .home-report-body {
    padding: 24px;
  }

  .page-home .home-index-card {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .page-home .home-index-media {
    min-height: 420px;
  }

  .page-home .home-index-content {
    padding: 40px 36px;
  }

  .page-home .home-stats-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .page-home .home-hero {
    padding-left: 56px;
    padding-right: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
