.page-home {
  --home-glow: rgba(0, 212, 255, 0.16);
  --home-gold-glow: rgba(255, 180, 0, 0.18);
  --home-orange-glow: rgba(255, 106, 0, 0.22);
  --home-ease: cubic-bezier(0.22, 1, 0.36, 1);
  overflow-x: hidden;
}
.page-home img {
  max-width: 100%;
  height: auto;
}
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 82% 20%, var(--home-glow), transparent 60%),
    radial-gradient(900px 500px at 8% 88%, var(--home-gold-glow), transparent 55%),
    linear-gradient(135deg, var(--ink-deep), var(--ink) 55%, var(--ink-soft));
  color: var(--white);
}
.page-home .home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
.page-home .hero-pitch {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.page-home .hero-pitch path,
.page-home .hero-pitch ellipse,
.page-home .hero-pitch circle {
  stroke: rgba(255, 255, 255, 0.08);
  fill: none;
  stroke-width: 1.5;
}
.page-home .hero-pitch path:nth-child(1) {
  stroke: var(--cyan);
  stroke-width: 1.8;
  opacity: 0.12;
}
.page-home .hero-pitch ellipse {
  stroke-dasharray: 10 8;
}
.page-home .hero-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 2.5rem;
}
.page-home .hero-coord {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.52);
  text-transform: uppercase;
}
.page-home .hero-main {
  padding: 0;
  max-width: 720px;
}
.page-home .hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 0.75rem;
}
.page-home .hero-main h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.9rem;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--white);
}
.page-home .hero-main .lead {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34em;
  margin: 0 0 1.75rem;
}
.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.page-home .hero-score {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 2rem;
  padding: 0.8rem 1.25rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  justify-self: start;
  position: relative;
  z-index: 2;
}
.page-home .score-away,
.page-home .score-home {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--orange);
}
.page-home .score-home {
  color: var(--gold);
}
.page-home .score-colon {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.55);
}
.page-home .score-label {
  margin-left: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
@keyframes home-blink {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.55; transform: translateY(-2px); }
}
.page-home .blink {
  display: inline-block;
  animation: home-blink 1.8s var(--home-ease) infinite;
}
.page-home .hero-image {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  border-radius: 44px;
  overflow: hidden;
  transform: rotate(1.2deg) scale(1.02);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.page-home .hero-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .hero-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  margin-top: 1.5rem;
  justify-content: flex-start;
}
.page-home .hero-legend .legend-item {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
}
.page-home .hero-legend .legend-dot {
  background: var(--white);
}
.page-home .hero-legend .legend-dot.orange {
  background: var(--orange);
}
.page-home .hero-legend .legend-dot.gold {
  background: var(--gold);
}
.page-home .hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  position: relative;
  z-index: 2;
}
.page-home .hero-scroll i {
  width: 12px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  position: relative;
  display: inline-block;
}
.page-home .hero-scroll i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 2px;
  height: 6px;
  margin-left: -1px;
  background: var(--cyan);
  border-radius: 2px;
  animation: home-scroll-dot 1.6s var(--home-ease) infinite;
}
@keyframes home-scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(8px); opacity: 0; }
}

.page-home .home-live {
  position: relative;
  background:
    linear-gradient(180deg, var(--cloud) 0%, var(--white) 100%);
}
.page-home .home-live-head {
  position: relative;
}
.page-home .home-live-chip {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
}
.page-home .chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--home-orange-glow);
  animation: home-blink 2s var(--home-ease) infinite;
}
.page-home .live-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
  align-items: start;
}
.page-home .live-app {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--white);
  border: 1px solid var(--mist);
}
.page-home .live-app img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .live-app figcaption {
  padding: 0.8rem 1.1rem;
  font-size: 0.8125rem;
  color: var(--graphite);
  border-top: 1px solid var(--mist);
  font-family: var(--font-mono);
}
.page-home .match-area {
  min-width: 0;
}
.page-home .league-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.page-home .tab {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--mist);
  background: var(--white);
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: background 0.2s var(--home-ease), border-color 0.2s var(--home-ease), color 0.2s var(--home-ease);
}
.page-home .tab:hover,
.page-home .tab:focus-visible {
  border-color: var(--cyan);
  color: var(--ink);
  outline: none;
}
.page-home .tab.is-active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.page-home .match-boards {
  min-height: 320px;
}
.page-home .match-board {
  display: none;
  grid-template-columns: 1fr;
  gap: 1rem;
  scroll-margin-top: 140px;
}
.page-home #lg-all {
  display: grid;
}
.page-home .match-board:target {
  display: grid;
}
.page-home .match-boards:has(#lg-premier:target) #lg-all,
.page-home .match-boards:has(#lg-laliga:target) #lg-all,
.page-home .match-boards:has(#lg-bundes:target) #lg-all {
  display: none;
}
.page-home .match-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-card);
  border: 1px solid transparent;
  transition: transform 0.25s var(--home-ease), box-shadow 0.25s var(--home-ease), border-color 0.25s;
  overflow: hidden;
}
.page-home .match-card:hover,
.page-home .match-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 18px 42px rgba(7, 22, 51, 0.14);
}
.page-home .match-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.page-home .match-league {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
}
.page-home .match-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  color: var(--graphite);
  background: var(--cloud);
}
.page-home .match-status.is-live {
  color: var(--orange);
  background: rgba(255, 106, 0, 0.1);
}
.page-home .match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.page-home .match-team {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--ink);
}
.page-home .match-team:last-child {
  text-align: right;
}
.page-home .match-score-box {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}
.page-home .match-score-box .orange {
  color: var(--orange);
}
.page-home .match-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--graphite);
}
.page-home .match-pulse {
  color: var(--cyan);
}
.page-home .match-summary {
  max-height: none;
  opacity: 1;
  margin: 0.75rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--mist);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--graphite);
  transition: max-height 0.3s var(--home-ease), opacity 0.3s var(--home-ease);
}
.page-home .home-legend {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mist);
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.page-home .home-legend .legend-item {
  font-size: 0.8125rem;
  color: var(--graphite);
}

.page-home .home-video {
  background: var(--white);
}
.page-home .section-more {
  margin-top: 1.25rem;
}
.page-home .video-masonry {
  column-count: 1;
  column-gap: 1.5rem;
  margin-top: 2.5rem;
}
.page-home .video-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--mist);
  display: inline-block;
  width: 100%;
  transition: transform 0.25s var(--home-ease), box-shadow 0.25s var(--home-ease);
}
.page-home .video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(7, 22, 51, 0.13);
}
.page-home .video-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--ink);
}
.page-home .video-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--home-ease);
}
.page-home .video-card:hover .video-media img {
  transform: scale(1.05);
}
.page-home .video-len {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--white);
  background: rgba(7, 22, 51, 0.72);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.6rem;
}
.page-home .video-tag {
  position: absolute;
  left: 12px;
  top: 12px;
}
.page-home .video-info {
  padding: 1rem 1.2rem 1.25rem;
}
.page-home .video-info h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.page-home .video-info p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--graphite);
}

.page-home .home-app {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 500px at 80% 20%, var(--home-glow), transparent 60%),
    linear-gradient(135deg, var(--ink-deep), var(--ink));
  color: var(--white);
}
.page-home .home-app::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--gold), var(--cyan));
  z-index: 2;
}
.page-home .home-app-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.page-home .app-copy .section-index {
  color: var(--gold);
}
.page-home .app-copy .section-title {
  color: var(--white);
}
.page-home .app-intro {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  max-width: 36em;
  margin: 0 0 1.5rem;
}
.page-home .app-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.85rem;
}
.page-home .app-features li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}
.page-home .app-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--home-orange-glow);
}
.page-home .app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.page-home .app-qr-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.1rem;
  max-width: 400px;
}
.page-home .qr-svg {
  width: 80px;
  height: 80px;
  flex: none;
  border-radius: 12px;
  padding: 4px;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.12);
}
.page-home .qr-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--white);
}
.page-home .qr-text span {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}
.page-home .app-figure {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  text-align: center;
}
.page-home .app-figure::before {
  content: "";
  position: absolute;
  inset: 8% -18% -8% -18%;
  background: radial-gradient(closest-side, rgba(0, 212, 255, 0.24), transparent 70%);
  filter: blur(18px);
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}
.page-home .app-figure img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
  border-radius: 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.page-home .app-figure figcaption {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  position: relative;
  z-index: 1;
}

.page-home .home-data {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 15% 10%, var(--home-gold-glow), transparent 55%),
    linear-gradient(145deg, var(--ink-deep), var(--ink) 60%, #050d1f);
  color: var(--white);
}
.page-home .home-data::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--orange));
  z-index: 2;
}
.page-home .home-data .section-title {
  color: var(--white);
}
.page-home .home-data .section-index {
  color: var(--cyan);
}
.page-home .home-data .section-desc {
  color: rgba(255, 255, 255, 0.72);
}
.page-home .stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  position: relative;
  z-index: 1;
}
.page-home .stat-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1rem;
  text-align: center;
  transition: transform 0.25s var(--home-ease), background 0.25s, border-color 0.25s;
}
.page-home .stat-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 212, 0, 0.5);
}
.page-home .stat-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--gold);
}
.page-home .stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.03em;
}
.page-home .data-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  position: relative;
  z-index: 1;
}
.page-home .data-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 2.25rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.62);
  position: relative;
  z-index: 1;
}
.page-home .data-note a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--home-ease);
}
.page-home .data-note a:hover,
.page-home .data-note a:focus-visible {
  border-color: currentColor;
  outline: none;
}

@media (min-width: 768px) {
  .page-home .hero-main h1 {
    font-size: 4rem;
  }
  .page-home .hero-main .lead {
    font-size: 1.0625rem;
  }
  .page-home .hero-score {
    gap: 0.6rem;
    padding: 1rem 1.5rem;
  }
  .page-home .score-away,
  .page-home .score-home {
    font-size: 2.6rem;
  }
  .page-home .match-board,
  .page-home #lg-all,
  .page-home .match-board:target {
    grid-template-columns: 1fr 1fr;
  }
  .page-home .video-masonry {
    column-count: 2;
  }
  .page-home .stat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .page-home .stat-num {
    font-size: 2.1rem;
  }
  .page-home .home-app-inner {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) {
  .page-home .home-hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-areas:
      "caption image"
      "main image"
      "score image"
      "legend image";
    align-items: center;
    min-height: 92vh;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }
  .page-home .hero-caption {
    grid-area: caption;
    margin-bottom: 0;
  }
  .page-home .hero-main {
    grid-area: main;
    padding-right: 2rem;
  }
  .page-home .hero-main h1 {
    font-size: 5.2rem;
  }
  .page-home .hero-main .lead {
    font-size: 1.1rem;
  }
  .page-home .hero-score {
    grid-area: score;
    margin-top: 2.5rem;
  }
  .page-home .hero-image {
    grid-area: image;
    margin-top: 0;
    align-self: stretch;
    min-height: 620px;
  }
  .page-home .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .page-home .hero-legend {
    grid-area: legend;
    margin-top: 2rem;
  }
  .page-home .hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    margin-top: 0;
  }
  .page-home .live-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 3rem;
  }
  .page-home .live-app {
    position: sticky;
    top: 130px;
  }
  .page-home .home-app-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 3.5rem;
  }
  .page-home .app-figure {
    max-width: 380px;
  }
  .page-home .stat-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }
  .page-home .stat-num {
    font-size: 2rem;
  }
  .page-home .video-masonry {
    column-count: 3;
  }
}

@media (hover: hover) and (min-width: 992px) {
  .page-home .match-summary {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding-top: 0;
    border-top: 0;
  }
  .page-home .match-card:hover .match-summary,
  .page-home .match-card:focus-within .match-summary {
    max-height: 10rem;
    opacity: 1;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--mist);
  }
}
