.page-home {
  --home-gap: clamp(1rem, 3vw, 2rem);
  --home-section-gap: clamp(4rem, 8vw, 7rem);
  display: grid;
  gap: var(--home-section-gap) 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 2%, rgba(255, 107, 0, 0.07), transparent 22rem),
    var(--color-bg);
  color: var(--color-ink);
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home a:focus-visible {
  outline: 3px solid var(--color-highlight);
  outline-offset: 2px;
}

.page-home .page-section {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.page-home .section-head {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.page-home .section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-home .section-head p {
  margin: 0.6rem 0 0;
  color: var(--color-muted);
  max-width: 36em;
  line-height: 1.6;
}

.page-home .hero-collage {
  position: relative;
  padding-top: clamp(2rem, 5vw, 4rem);
}

.page-home .hero-context {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}

.page-home h1 {
  margin: 0 0 1.1rem;
  max-width: 12em;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page-home .hero-lead {
  max-width: 36em;
  margin: 0 0 2rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  color: var(--color-muted);
}

.page-home .overview-title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.2rem;
  font-size: 1rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary-dark);
}

.page-home .overview-title::before {
  content: "";
  width: 2.4rem;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.page-home .hero-swoosh {
  position: absolute;
  top: 1rem;
  right: -1rem;
  width: min(32rem, 60vw);
  height: auto;
  pointer-events: none;
  opacity: 0.7;
  z-index: 0;
}

.page-home .hero-collage .hero-context,
.page-home .hero-collage h1,
.page-home .hero-collage .hero-lead,
.page-home .hero-collage .overview-title,
.page-home .collage-grid {
  position: relative;
  z-index: 1;
}

.page-home .collage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .live-match {
  position: relative;
  min-height: 400px;
  border-radius: calc(var(--radius-lg) + 8px);
  overflow: hidden;
  background: var(--color-ink);
  color: #FFFFFF;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 20px 44px -26px rgba(26, 26, 26, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .live-match:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 56px -28px rgba(26, 26, 26, 0.7);
}

.page-home .live-match-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.page-home .live-match-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(to top, rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.1));
}

.page-home .live-match-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.page-home .live-marker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-home .live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-highlight);
  box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.2);
  animation: page-home-live 1.8s ease-in-out infinite;
}

@keyframes page-home-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.page-home .live-match-top .kicker {
  color: rgba(255, 255, 255, 0.65);
}

.page-home .scoreboard {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.25rem;
  margin-bottom: 1.25rem;
}

.page-home .team-name {
  font-weight: 800;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
}

.page-home .score {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.page-home .score-divider {
  opacity: 0.5;
  font-weight: 700;
}

.page-home .live-stats {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 0.75rem;
  max-width: 22rem;
}

.page-home .live-stats li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
}

.page-home .live-stats span {
  color: rgba(255, 255, 255, 0.75);
}

.page-home .live-stats strong {
  font-family: var(--font-mono);
  font-weight: 800;
}

.page-home .live-note {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

.page-home .rank-snapshot {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: var(--shadow-card);
}

.page-home .rank-snapshot .kicker {
  color: rgba(255, 255, 255, 0.7);
}

.page-home .rank-snapshot .panel-title {
  margin: 0;
  font-size: 1.5rem;
  color: #FFFFFF;
}

.page-home .rank-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.page-home .rank-list li {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.8rem;
}

.page-home .rank-index {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-highlight);
}

.page-home .rank-team {
  font-weight: 600;
}

.page-home .rank-points {
  font-family: var(--font-mono);
  font-weight: 800;
}

.page-home .rank-link {
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  align-self: flex-start;
}

.page-home .rank-link:hover {
  border-color: var(--color-highlight);
}

.page-home .quick-access {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: var(--shadow-card);
}

.page-home .quick-access .kicker {
  color: rgba(26, 26, 26, 0.7);
}

.page-home .quick-access .panel-title {
  margin: 0;
  font-size: 1.5rem;
  color: var(--color-ink);
}

.page-home .quick-desc {
  margin: 0.2rem 0 0.4rem;
  max-width: 27em;
  line-height: 1.6;
}

.page-home .quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.page-home .quick-access .btn-ghost {
  color: var(--color-ink);
  border-color: var(--color-ink);
  background: transparent;
}

.page-home .home-index {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-home .home-index a {
  flex: 0 0 auto;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.page-home .home-index a:hover,
.page-home .home-index a.is-active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.page-home .fixture-section {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.page-home .fixture-side .section-head {
  margin-bottom: 1.25rem;
}

.page-home .fixture-days {
  display: grid;
  gap: 1rem;
}

.page-home .fixture-day {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-card);
  border-left: 6px solid var(--color-primary);
}

.page-home .fixture-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.page-home .fixture-day-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

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

.page-home .fixture-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.2rem 0.75rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-line);
}

.page-home .fixture-item:last-child {
  border-bottom: none;
}

.page-home .fixture-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 5.5rem;
}

.page-home .fixture-league {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.page-home .fixture-time {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.page-home .fixture-match {
  font-weight: 600;
  font-size: 0.95rem;
}

.page-home .fixture-status {
  font-size: 0.8rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-end;
  white-space: nowrap;
}

.page-home .fixture-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-muted);
}

.page-home .fixture-status.is-live {
  color: var(--color-primary-dark);
  font-weight: 800;
}

.page-home .fixture-status.is-live .status-dot {
  background: var(--color-highlight);
  box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.2);
}

.page-home .discipline-section {
  background: var(--color-surface);
  border-radius: calc(var(--radius-lg) + 8px);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  box-shadow: var(--shadow-card);
}

.page-home .discipline-layout {
  display: grid;
  gap: 2rem;
}

.page-home .discipline-chart img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.page-home .league-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  position: relative;
}

.page-home .league-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.page-home .league-option {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.page-home .league-option:hover {
  border-color: var(--color-primary);
}

.page-home .league-radio:checked + .league-option {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.page-home .league-radio:focus-visible + .league-option {
  outline: 3px solid var(--color-highlight);
  outline-offset: 2px;
}

.page-home .discipline-panels {
  flex-basis: 100%;
  display: grid;
  gap: 1.2rem;
}

.page-home .discipline-panel {
  display: none;
}

.page-home #lf-all:checked ~ .discipline-panels .discipline-panel-dom,
.page-home #lf-all:checked ~ .discipline-panels .discipline-panel-intl,
.page-home #lf-dom:checked ~ .discipline-panels .discipline-panel-dom,
.page-home #lf-intl:checked ~ .discipline-panels .discipline-panel-intl {
  display: block;
}

.page-home .discipline-panel-title {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
}

.page-home .table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.page-home .discipline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 380px;
}

.page-home .discipline-table th {
  text-align: left;
  padding: 0.7rem 0.9rem;
  background: var(--color-bg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  border-bottom: 2px solid var(--color-line);
}

.page-home .discipline-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--color-line);
  font-weight: 600;
}

.page-home .discipline-table td:nth-child(n+2) {
  font-family: var(--font-mono);
  text-align: right;
  color: var(--color-primary-dark);
}

.page-home .discipline-table tr:last-child td {
  border-bottom: 0;
}

.page-home .discipline-table tbody tr:hover td {
  background: rgba(255, 107, 0, 0.08);
}

.page-home .table-note {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.page-home .nav-map-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-home .phone-frame {
  max-width: 320px;
  margin: 0 auto;
  background: var(--color-ink);
  border-radius: 40px;
  padding: 0.75rem;
  box-shadow: 0 30px 60px -28px rgba(26, 26, 26, 0.55);
  transform: rotate(2deg);
}

.page-home .phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
}

.page-home .nav-layers {
  display: grid;
  gap: 1.4rem;
}

.page-home .layer-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.9rem;
  border-left: 4px solid var(--color-accent);
  padding-left: 1rem;
}

.page-home .layer-index {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.page-home .layer-item h3 {
  margin: 0;
  font-size: 1.05rem;
}

.page-home .layer-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.page-home .features-band {
  background: linear-gradient(135deg, var(--color-ink) 0%, #111111 100%);
  color: #FFFFFF;
  border-radius: calc(var(--radius-lg) + 8px);
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  box-shadow: var(--shadow-card);
}

.page-home .features-band .section-head h2 {
  color: #FFFFFF;
}

.page-home .features-band .section-head p {
  color: rgba(255, 255, 255, 0.65);
}

.page-home .feature-grid {
  display: grid;
  gap: 1rem;
}

.page-home .feature-card {
  background: var(--color-surface);
  color: var(--color-ink);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  border-top: 6px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -25px rgba(0, 0, 0, 0.4);
}

.page-home .feature-card-orange {
  border-top-color: var(--color-accent);
}

.page-home .feature-card-green {
  border-top-color: var(--color-highlight);
}

.page-home .feature-card-blue {
  border-top-color: var(--color-primary);
}

.page-home .feature-num {
  font-family: var(--font-mono);
  color: var(--color-muted);
  font-size: 0.9rem;
}

.page-home .feature-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.page-home .feature-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-muted);
  flex: 1;
}

.page-home .feature-link {
  color: var(--color-primary-dark);
  font-weight: 700;
  text-decoration: none;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-line);
  margin-top: 0.2rem;
  font-size: 0.9rem;
}

.page-home .feature-link:hover {
  color: var(--color-accent);
}

.page-home .news-section {
  max-width: var(--container-sm);
}

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

.page-home .news-list li + li {
  margin-top: 0.7rem;
}

.page-home .news-list a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.page-home .news-list a:hover {
  background: var(--color-bg);
  transform: translateX(4px);
}

.page-home .news-tag {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-bg);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.6rem;
}

.page-home .news-title {
  font-weight: 600;
  flex: 1;
}

.page-home .news-arrow {
  color: var(--color-accent);
  font-weight: 800;
}

.page-home .support-banner {
  position: relative;
  border-radius: calc(var(--radius-lg) + 8px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
}

.page-home .support-banner-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-home .support-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .support-banner-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #FFFFFF;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.88), rgba(26, 26, 26, 0.25));
}

.page-home .support-banner-content h2 {
  color: #FFFFFF;
  margin: 0 0 0.5rem;
}

.page-home .support-banner-content p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.2rem;
}

.page-home .support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-home .support-banner-content .btn-ghost {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.65);
  background: transparent;
}

@media (min-width: 620px) {
  .page-home .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .live-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  .page-home .collage-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  }

  .page-home .live-match {
    grid-row: span 2;
  }

  .page-home .fixture-section {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .page-home .nav-map-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

@media (min-width: 960px) {
  .page-home .discipline-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
  }
}

@media (min-width: 1080px) {
  .page-home .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
