.page-home {
  --home-space-lg: 80px;
  --home-space-md: 48px;
  --home-space-sm: 24px;
  --home-hero-bg: linear-gradient(135deg, rgba(10, 25, 47, 0.92) 0%, rgba(10, 25, 47, 0.72) 55%, rgba(212, 175, 55, 0.18) 130%);
  --home-hero-rip: #D4AF37;
  --home-line: rgba(10, 25, 47, 0.10);
  --home-line-dark: rgba(245, 240, 230, 0.16);
  --home-num: #D4AF37;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
}

.page-home .home-shell {
  min-width: 0;
  width: 100%;
}

.page-home .home-index {
  position: relative;
  z-index: 5;
  background-color: var(--deep-blue);
  color: var(--text-dark);
  border-bottom: 1px solid var(--home-line-dark);
}

.page-home .home-index__head,
.page-home .home-index__foot {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--home-line-dark);
}

.page-home .home-index__brand {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-dark-muted);
  text-transform: uppercase;
}

.page-home .home-index__meta {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dark-muted);
  margin: 0;
}

.page-home .index-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.page-home .index-rail__list li {
  position: relative;
  border-right: 1px solid var(--home-line-dark);
  border-bottom: 1px solid var(--home-line-dark);
  flex: 1 1 33.333%;
  min-width: 150px;
}

.page-home .index-rail__list li:last-child {
  border-right: 0;
}

.page-home .index-rail__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 22px;
  text-decoration: none;
  color: var(--text-dark);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  min-height: 76px;
}

.page-home .index-rail__link:hover,
.page-home .index-rail__link.is-active {
  background-color: rgba(212, 175, 55, 0.12);
}

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

.page-home .index-rail__name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.page-home .index-rail__tag {
  display: block;
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  color: var(--text-dark-muted);
}

.page-home .home-main {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- hero ---------- */
.page-home .home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 48px 0 40px;
  overflow: hidden;
}

.page-home .home-hero__text {
  position: relative;
  z-index: 2;
  padding: 0;
}

.page-home .home-hero__title {
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--deep-blue);
  margin: 16px 0;
}

.page-home .home-hero__title-em {
  color: var(--terracotta);
}

.page-home .home-hero__lead {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(26, 26, 46, 0.76);
  max-width: 620px;
  margin: 0 0 32px;
}

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

.page-home .home-hero__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 2 / 1;
}

.page-home .home-hero__figure img,
.page-home .home-league__chart img,
.page-home .home-plans__figure img,
.page-home .home-column__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
}

.page-home .home-hero__panel {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--home-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.page-home .home-hero__panel-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background-color: var(--deep-blue);
  color: var(--text-dark);
}

.page-home .home-hero__pulse {
  color: var(--orange);
  font-size: 12px;
  animation: home-pulse 1.8s ease-in-out infinite;
}

.page-home .home-hero__metric {
  background-color: var(--cream);
  padding: 18px 14px 16px;
}

.page-home .home-hero__unit {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--stone);
  margin-left: 2px;
}

/* ---------- hero diagonal effect ---------- */
.page-home .home-hero__text::before {
  content: "";
  position: absolute;
  top: 40px;
  left: -80px;
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(255, 107, 53, 0.08) 80%);
  transform: rotate(-12deg);
  border-radius: 36px;
  z-index: -1;
}

.page-home .home-hero__figure {
  --hero-clip: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
  clip-path: var(--hero-clip);
}

/* ---------- section base ---------- */
.page-home .section {
  padding: 48px 0;
  scroll-margin-top: 96px;
}

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

.page-home .section__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--stone);
  margin: 0 0 8px;
}

.page-home .section__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.2;
  color: var(--deep-blue);
  margin: 4px 0 10px;
}

.page-home .section__intro {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(26, 26, 46, 0.72);
  max-width: 680px;
  margin: 0;
}

.page-home .mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--stone);
  text-transform: uppercase;
  margin: 0;
}

/* ---------- league ---------- */
.page-home .home-league__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.page-home .home-league__table {
  border-radius: var(--radius-md);
  border: 1px solid var(--home-line);
  overflow: hidden;
  background-color: #fff;
  box-shadow: var(--shadow-soft);
}

.page-home .home-league__row {
  display: grid;
  grid-template-columns: 1.2fr 0.5fr 2fr;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--home-line);
  font-size: 13px;
}

.page-home .home-league__row:last-child {
  border-bottom: 0;
}

.page-home .home-league__row--head {
  background-color: var(--deep-blue);
  color: var(--text-dark-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.page-home .home-league__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--deep-blue);
}

.page-home .home-league__num {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--terracotta);
  font-weight: 700;
}

.page-home .home-league__stat {
  color: rgba(26, 26, 46, 0.6);
  font-size: 12px;
}

.page-home .home-league__chart {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0;
  box-shadow: var(--shadow-soft);
}

.page-home .home-league__foot,
.page-home .home-recap__foot {
  margin-top: 20px;
}

.page-home .home-league__link {
  display: inline-block;
  color: var(--terracotta);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 123, 99, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-home .home-league__link:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* ---------- plans ---------- */
.page-home .home-plans {
  background-color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 40px 18px;
  margin: 0 0 40px;
}

.page-home .home-plans__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  min-width: 480px;
}

.page-home .home-plans__table th,
.page-home .home-plans__table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--home-line);
}

.page-home .home-plans__table th {
  background-color: rgba(10, 25, 47, 0.04);
  color: var(--deep-blue);
  font-weight: 900;
  font-family: var(--font-head);
  font-size: 13px;
}

.page-home .home-plans__table td {
  color: rgba(26, 26, 46, 0.78);
}

.page-home .home-plans__table tbody tr:last-child td {
  border-bottom: 0;
}

.page-home .home-plans__tick {
  color: var(--moss);
  font-weight: 700;
}

.page-home .home-plans__figure {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 24px 0 0;
  box-shadow: var(--shadow-soft);
}

/* ---------- live ---------- */
.page-home .section--dark {
  background-color: var(--deep-blue);
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  box-shadow: var(--shadow-lift);
}

.page-home .section--dark .section__title {
  color: var(--text-dark);
}

.page-home .section--dark .section__intro {
  color: var(--text-dark-muted);
}

.page-home .section--dark .section__kicker,
.page-home .section--dark .mono-label {
  color: var(--home-num);
}

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

.page-home .home-live__match {
  background: rgba(245, 240, 230, 0.06);
  border: 1px solid var(--home-line-dark);
  border-radius: var(--radius-md);
  padding: 20px 16px;
}

.page-home .home-live__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.page-home .home-live__league {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background-color: rgba(212, 175, 55, 0.18);
  color: var(--gold);
  font-weight: 700;
}

.page-home .home-live__score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}

.page-home .home-live__team {
  font-size: 14px;
  font-weight: 700;
  width: 80px;
  text-align: center;
  color: var(--text-dark);
}

.page-home .home-live__digit {
  width: 48px;
  height: 48px;
  background-color: rgba(212, 175, 55, 0.16);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home .home-live__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 28px;
  color: var(--gold);
}

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

.page-home .home-live__odds-item {
  background: rgba(245, 240, 230, 0.05);
  border-radius: 12px;
  padding: 10px 12px;
}

.page-home .home-live__odds-val {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dark);
  display: block;
  margin-top: 4px;
}

.page-home .home-live__flash {
  display: inline-block;
  animation: home-odds-flash 2.2s ease-in-out infinite;
  color: var(--gold);
}

.page-home .home-live__matches {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .home-live__mini {
  background: rgba(245, 240, 230, 0.04);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dark);
  border: 1px solid rgba(245, 240, 230, 0.08);
}

.page-home .home-live__mini-league {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 999px;
  padding: 2px 8px;
}

.page-home .home-live__mini-odds {
  margin-left: auto;
  color: var(--text-dark-muted);
}

.page-home .home-live__note {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dark-muted);
}

/* ---------- recap ---------- */
.page-home .home-recap__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .home-recap__item {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.page-home .home-recap__item:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.page-home .home-recap__title {
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1.35;
  color: var(--deep-blue);
  margin: 10px 0 8px;
  font-weight: 900;
}

.page-home .home-recap__text {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(26, 26, 46, 0.7);
  margin: 0 0 16px;
}

.page-home .home-recap__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--terracotta);
  text-decoration: none;
}

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

/* ---------- column ---------- */
.page-home .section--terracotta {
  background: linear-gradient(145deg, rgba(201, 123, 99, 0.12) 0%, rgba(245, 240, 230, 0.9) 70%);
  border: 1px solid rgba(201, 123, 99, 0.18);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  margin-bottom: 24px;
}

.page-home .home-column__wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.page-home .home-column__cover {
  aspect-ratio: 4 / 5;
  max-width: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0;
  box-shadow: var(--shadow-soft);
}

.page-home .home-column__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home .home-column__entry {
  background: rgba(255, 255, 255, 0.7);
  border-left: 3px solid var(--home-num);
  border-radius: 12px;
  padding: 16px 18px;
}

.page-home .home-column__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 16px;
  color: var(--deep-blue);
  margin: 6px 0 6px;
}

.page-home .home-column__text {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(26, 26, 46, 0.7);
  margin: 0;
}

/* ---------- guide ---------- */
.page-home .home-guide__filter {
  background: var(--deep-blue);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  margin-bottom: 28px;
}

.page-home .home-guide__seg {
  display: inline-flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.page-home .home-guide__seg-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dark-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
  font-family: var(--font-body);
}

.page-home .home-guide__seg-btn.is-active {
  background-color: var(--gold);
  color: var(--deep-blue);
  transform: translateY(-1px);
}

.page-home .home-guide__desc {
  color: var(--text-dark-muted);
  font-size: 13px;
  margin: 16px 0 0;
}

.page-home .home-guide__desc strong {
  color: var(--gold);
}

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

.page-home .home-guide__step {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--home-line);
  padding: 20px 18px;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.page-home .home-guide__step-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: rgba(212, 175, 55, 0.4);
}

.page-home .home-guide__step-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 16px;
  color: var(--deep-blue);
  margin: 0 0 6px;
}

.page-home .home-guide__step-text {
  font-size: 13px;
  color: rgba(26, 26, 46, 0.68);
  margin: 0;
}

/* ---------- back to top ---------- */
.page-home .back-to-top {
  position: fixed;
  right: 20px;
  bottom: 28px;
  z-index: 60;
  background-color: var(--deep-blue);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transform: translateY(70px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s ease;
  box-shadow: var(--shadow-lift);
}

.page-home .back-to-top.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.page-home .back-to-top:hover {
  background-color: var(--ink);
}

/* ---------- animations ---------- */
@keyframes home-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

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

/* ---------- media ---------- */
@media (min-width: 640px) {
  .page-home .home-main {
    padding: 0 32px;
  }

  .page-home .home-hero__title {
    font-size: 42px;
  }

  .page-home .home-recap__grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .page-home .home-column__wrap {
    grid-template-columns: 200px 1fr;
  }

  .page-home .home-plans {
    padding: 40px 28px;
  }
}

@media (min-width: 900px) {
  .page-home .home-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
  }

  .page-home .home-index {
    border-right: 1px solid var(--home-line-dark);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-bottom: 0;
  }

  .page-home .index-rail__list {
    display: block;
  }

  .page-home .index-rail__list li {
    border-right: 0;
    border-bottom: 1px solid rgba(245, 240, 230, 0.08);
    min-width: 0;
  }

  .page-home .index-rail__link {
    padding: 18px 22px;
    min-height: 68px;
  }

  .page-home .index-rail__tag {
    display: inline;
    position: static;
  }

  .page-home .home-main {
    padding: 0 48px;
    max-width: 1480px;
  }

  .page-home .home-hero {
    grid-template-columns: 1fr 1.1fr;
    grid-template-areas:
      "text figure"
      "panel figure";
    padding: 72px 0 64px;
    gap: 0;
  }

  .page-home .home-hero__text {
    grid-area: text;
    padding-right: 48px;
  }

  .page-home .home-hero__figure {
    grid-area: figure;
    align-self: stretch;
    aspect-ratio: auto;
    margin: 12px 0 0 24px;
  }

  .page-home .home-hero__panel {
    grid-area: panel;
    margin-top: 24px;
    margin-right: 48px;
    align-self: start;
  }

  .page-home .home-hero__title {
    font-size: 52px;
  }

  .page-home .home-league__grid {
    grid-template-columns: 1.5fr 1fr;
  }

  .page-home .home-live__board {
    grid-template-columns: 1.5fr 1fr;
  }

  .page-home .home-plans__figure {
    aspect-ratio: 16 / 8;
  }

  .page-home .home-column__wrap {
    grid-template-columns: 300px 1fr;
  }
}

@media (min-width: 1140px) {
  .page-home .home-main {
    padding: 0 56px;
  }

  .page-home .section {
    padding: 72px 0;
  }

  .page-home .section--dark,
  .page-home .section--terracotta,
  .page-home .home-plans {
    padding: 56px 44px;
  }
}
