.page-home {
  --home-check: var(--volt);
  overflow-x: hidden;
}

.page-home .home-hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.page-home .home-hero__shade {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 25, 0.86);
}

.page-home .home-hero__slash {
  position: absolute;
  top: -20%;
  right: 16%;
  width: 2px;
  height: 140%;
  background: linear-gradient(180deg, transparent, var(--electro), transparent);
  transform: rotate(24deg);
  opacity: 0.45;
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.page-home .home-hero__eyebrow {
  color: var(--electro);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .home-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 0.92;
  color: var(--snow);
  letter-spacing: -0.04em;
  margin: 10px 0 6px;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.page-home .home-hero__subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.14em;
  margin: 0;
}

.page-home .home-hero__meta-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.page-home .home-hero__lead {
  color: var(--cloud);
  font-size: 15px;
  line-height: 1.85;
  max-width: 520px;
  border-left: 2px solid var(--volt);
  padding-left: 16px;
  margin: 0;
}

.page-home .home-hero__index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 440px;
}

.page-home .home-hero__index-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(26, 35, 45, 0.78);
  border: 1px solid var(--line);
  color: var(--snow);
  text-decoration: none;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.page-home .home-hero__index-item:hover {
  border-color: var(--volt);
  transform: translateY(-2px);
}

.page-home .home-hero__index-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--electro);
}

.page-home .home-hero__index-text {
  font-size: 14px;
  font-weight: 600;
}

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

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

.page-home .home-section-head--center {
  justify-content: center;
  text-align: center;
}

.page-home .home-section-title {
  font-size: var(--fs-headline);
  font-weight: 800;
  color: var(--snow);
  line-height: 1.12;
  margin: 6px 0 0;
  letter-spacing: -0.02em;
}

.page-home .home-section-title::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 5px;
  margin-right: 12px;
  background: var(--volt);
  transform: skewX(-24deg);
  vertical-align: middle;
}

.page-home .home-scoreboard {
  position: relative;
  border-top: 1px solid var(--line);
}

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

.page-home .home-match-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-home .home-match-card:hover {
  border-color: var(--volt);
  box-shadow: 0 0 0 1px var(--volt), 0 14px 32px rgba(0, 0, 0, 0.35);
}

.page-home .home-match-card--featured {
  background:
    linear-gradient(135deg, rgba(200, 245, 66, 0.06) 0%, transparent 42%),
    var(--panel);
}

.page-home .home-match-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.page-home .home-match-card__badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--volt);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.page-home .home-match-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 8px var(--volt);
  animation: homeLivePulse 1.4s infinite;
}

@keyframes homeLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.72); }
}

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

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

.page-home .home-match-card__flag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.page-home .home-match-card__name {
  color: var(--snow);
  font-weight: 600;
  line-height: 1.25;
  font-size: 15px;
}

.page-home .home-match-card__score {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}

.page-home .home-match-card__score-num {
  font-size: var(--fs-data);
  font-weight: 700;
  color: var(--snow);
  line-height: 1;
}

.page-home .home-match-card--featured .home-match-card__score-num {
  color: var(--volt);
  text-shadow: 0 0 18px rgba(200, 245, 66, 0.35);
}

.page-home .home-match-card__score-num--sm {
  font-size: 24px;
}

.page-home .home-match-card__score-colon {
  color: var(--muted);
  font-size: 20px;
}

.page-home .home-match-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  color: var(--cloud);
  font-size: 14px;
}

.page-home .home-match-card__meta b {
  font-family: var(--font-mono);
  color: var(--electro);
  font-weight: 700;
}

.page-home .home-match-card--basket .home-match-card__body,
.page-home .home-match-card--soccer .home-match-card__body {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
}

.page-home .home-match-card--basket .home-match-card__team,
.page-home .home-match-card--soccer .home-match-card__team {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.page-home .home-match-card__note {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.page-home .home-match-card__ice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .home-match-card__ice-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  color: var(--cloud);
  font-size: 14px;
}

.page-home .home-match-card__ice-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .home-match-card__ice-time {
  font-family: var(--font-mono);
  color: var(--electro);
  font-size: 14px;
  white-space: nowrap;
}

.page-home .home-scoreboard__media {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-home .home-check {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .home-check__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.page-home .home-check__lead {
  color: var(--cloud);
  line-height: 1.85;
  margin: 20px 0 0;
  max-width: 680px;
}

.page-home .home-check__highlight {
  color: var(--volt);
  font-weight: 700;
}

.page-home .home-check__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0;
}

.page-home .home-check__metric {
  padding: 18px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.page-home .home-check__metric-num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-data);
  font-weight: 700;
  color: var(--electro);
  line-height: 1;
  letter-spacing: -0.02em;
}

.page-home .home-check__metric-label {
  display: block;
  margin-top: 8px;
  color: var(--cloud);
  font-size: 13px;
}

.page-home .home-check__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-check__media {
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  max-width: 480px;
}

.page-home .home-highlights__lead {
  max-width: 760px;
  color: var(--cloud);
  line-height: 1.8;
  margin: 0 0 28px;
}

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

.page-home .home-highlight-item {
  position: relative;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-home .home-highlight-item:hover {
  border-color: var(--electro);
  transform: translateY(-3px);
}

.page-home .home-highlight-item h3 {
  color: var(--snow);
  font-size: 16px;
  margin: 14px 0 10px;
  line-height: 1.45;
}

.page-home .home-highlight-item__time {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 13px;
}

.page-home .home-highlights__more {
  color: var(--muted);
  font-size: 14px;
  margin: 20px 0 0;
}

.page-home .home-highlights__more a {
  color: var(--electro);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.page-home .home-favorites {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
}

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

.page-home .home-favorites__panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}

.page-home .home-favorites__lead {
  color: var(--cloud);
  line-height: 1.8;
  margin: 14px 0 0;
}

.page-home .home-favorites__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .home-favorites__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.page-home .home-favorites__note {
  color: var(--muted);
  font-size: 13px;
}

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

.page-home .home-favorites__week h3 {
  color: var(--snow);
  font-size: 18px;
  margin: 0 0 14px;
}

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

.page-home .home-favorites__date-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--cloud);
}

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

.page-home .home-favorites__date {
  width: 44px;
  font-family: var(--font-mono);
  color: var(--electro);
  flex-shrink: 0;
}

.page-home .home-favorites__status {
  margin-left: auto;
  font-size: 12px;
  color: var(--volt);
  white-space: nowrap;
}

.page-home .home-stats {
  border-top: 1px solid var(--line);
}

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

.page-home .home-stat {
  padding: 26px 20px;
  background: var(--panel);
  border-top: 2px solid var(--electro);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.page-home .home-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-data);
  font-weight: 700;
  color: var(--snow);
  line-height: 1;
  letter-spacing: -0.03em;
}

.page-home .home-stat__label {
  display: block;
  margin-top: 12px;
  color: var(--cloud);
  font-size: 14px;
  line-height: 1.5;
}

.page-home .home-stats__note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 840px;
  margin: 20px 0 0;
}

.page-home .home-upgrade {
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(160, 231, 255, 0.04) 0%, transparent 55%);
}

.page-home .home-upgrade__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.page-home .home-upgrade__content {
  order: 2;
}

.page-home .home-upgrade__media {
  order: 1;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-home .home-upgrade__list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .home-upgrade__list li {
  position: relative;
  padding-left: 22px;
  color: var(--cloud);
  line-height: 1.65;
}

.page-home .home-upgrade__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--volt);
  transform: rotate(-45deg);
}

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

.page-home .home-quickbar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: calc(100vw - 32px);
}

.page-home .home-quickbar__btn {
  padding: 10px 20px;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

@media (max-width: 767px) {
  .page-home .home-quickbar {
    display: flex;
  }
}

@media (min-width: 768px) {
  .page-home .home-hero__shade {
    background: linear-gradient(90deg, rgba(11, 18, 25, 0.97) 0%, rgba(11, 18, 25, 0.82) 55%, rgba(11, 18, 25, 0.55) 100%);
  }

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

  .page-home .home-match-card--featured {
    grid-column: span 4;
  }

  .page-home .home-match-card--basket {
    grid-column: span 2;
  }

  .page-home .home-match-card--soccer {
    grid-column: span 3;
  }

  .page-home .home-match-card--ice {
    grid-column: span 3;
  }

  .page-home .home-scoreboard__media {
    grid-column: span 6;
  }

  .page-home .home-check__inner {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    gap: 44px;
  }

  .page-home .home-check__media {
    justify-self: end;
  }

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

  .page-home .home-favorites__inner {
    grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr);
  }

  .page-home .home-stats__note {
    margin-left: auto;
    margin-right: auto;
  }

  .page-home .home-upgrade__inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1.05fr);
  }

  .page-home .home-upgrade__content {
    order: 1;
  }

  .page-home .home-upgrade__media {
    order: 2;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 56px;
    align-items: center;
    padding-top: 96px;
    padding-bottom: 96px;
    min-height: 620px;
  }

  .page-home .home-hero__meta-col {
    grid-template-columns: 1fr auto;
    grid-template-areas: "index lead" "actions lead";
    gap: 24px 36px;
    align-items: start;
  }

  .page-home .home-hero__index {
    grid-area: index;
    grid-template-columns: 1fr;
  }

  .page-home .home-hero__lead {
    grid-area: lead;
    writing-mode: vertical-rl;
    height: 340px;
    max-height: 360px;
    max-width: 280px;
    border-left: 0;
    border-top: 2px solid var(--volt);
    padding-left: 0;
    padding-top: 16px;
    letter-spacing: 0.08em;
    overflow: hidden;
    margin: 0;
  }

  .page-home .home-hero__actions {
    grid-area: actions;
  }

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

  .page-home .home-match-card--featured {
    grid-column: span 8;
  }

  .page-home .home-match-card--basket {
    grid-column: span 4;
  }

  .page-home .home-match-card--soccer {
    grid-column: span 3;
  }

  .page-home .home-match-card--ice {
    grid-column: span 4;
  }

  .page-home .home-scoreboard__media {
    grid-column: span 5;
  }

  .page-home .home-stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}
