.page-home {
  --ph-line: 2px;
  --ph-shadow: 10px 10px 0 rgba(10, 14, 39, 0.8);
  --ph-shadow-soft: 8px 8px 0 rgba(10, 14, 39, 0.6);
  background: var(--gradient-site);
  overflow-x: hidden;
}

@keyframes ph-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes ph-score-flash {
  0%, 100% { text-shadow: 0 0 6px rgba(57, 255, 20, 0.4); }
  50% { text-shadow: 0 0 18px rgba(57, 255, 20, 0.9); }
}

.page-home .ph-live {
  position: relative;
  overflow: hidden;
  padding: 88px 0 48px;
}

.page-home .ph-live::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(0deg, rgba(57, 255, 20, 0.025) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

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

.page-home .ph-live__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: saturate(0.75) contrast(1.12);
}

.page-home .ph-live__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 39, 0.78) 0%, rgba(15, 26, 58, 0.62) 45%, rgba(10, 14, 39, 0.94) 100%);
}

.page-home .ph-live__inner {
  position: relative;
  z-index: 1;
}

.page-home .ph-live__header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.page-home .ph-live__heading {
  max-width: 680px;
}

.page-home .ph-live__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 18px;
}

.page-home .ph-live__crumb a {
  color: var(--color-neon);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.page-home .ph-live__crumb a:hover {
  border-color: var(--color-neon);
}

.page-home .ph-live__crumb-sep {
  color: rgba(170, 184, 208, 0.5);
}

.page-home .ph-live__title {
  font-family: var(--font-headline);
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: 1px;
  margin: 12px 0 10px;
  color: var(--color-text-primary);
  text-transform: uppercase;
}

.page-home .ph-live__desc {
  color: var(--color-text-secondary);
  font-size: 15px;
  margin: 0;
}

.page-home .ph-live__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(57, 255, 20, 0.2);
  border-bottom: 1px solid rgba(57, 255, 20, 0.2);
}

.page-home .ph-live__meta-item {
  display: inline-flex;
  flex-direction: column;
  color: var(--color-text-secondary);
  font-size: 12px;
  gap: 2px;
}

.page-home .ph-live__meta-item .data-num {
  font-size: 24px;
  line-height: 1;
}

.page-home .ph-live__board {
  display: grid;
  gap: 28px;
}

.page-home .ph-scores {
  position: relative;
  background: rgba(15, 26, 58, 0.9);
  border: var(--ph-line) solid rgba(57, 255, 20, 0.26);
  box-shadow: var(--ph-shadow);
}

.page-home .ph-scores::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 16px solid var(--color-accent);
  border-left: 16px solid transparent;
}

.page-home .ph-scores__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--color-text-secondary);
  background: rgba(10, 14, 39, 0.55);
  border-bottom: 1px solid rgba(57, 255, 20, 0.2);
}

.page-home .ph-scores__pulse {
  width: 8px;
  height: 8px;
  background: var(--color-neon);
  box-shadow: 0 0 10px var(--color-neon);
  transform: rotate(45deg);
  animation: ph-pulse 1.5s ease-in-out infinite;
}

.page-home .ph-scores__cycle {
  margin-left: auto;
  color: var(--color-text-primary);
  font-size: 12px;
}

.page-home .ph-scores__cycle .data-num {
  font-size: 15px;
}

.page-home .ph-score {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(170, 184, 208, 0.12);
}

.page-home .ph-score:last-of-type {
  border-bottom: 0;
}

.page-home .ph-score__league {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-secondary);
  background: rgba(170, 184, 208, 0.1);
  padding: 4px 6px;
  text-align: center;
  letter-spacing: 1px;
}

.page-home .ph-score__match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.page-home .ph-score__team {
  font-size: 13px;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .ph-score__team:last-of-type {
  text-align: right;
}

.page-home .ph-score__match strong {
  font-family: var(--font-data);
  font-size: 21px;
  color: var(--color-neon);
  letter-spacing: 1px;
  text-align: center;
  animation: ph-score-flash 6s ease-in-out infinite;
}

.page-home .ph-score__clock {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--color-accent);
  text-align: right;
}

.page-home .ph-scores__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--color-text-secondary);
  border-top: 1px solid rgba(170, 184, 208, 0.08);
}

.page-home .ph-scores__more {
  color: var(--color-neon);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.page-home .ph-scores__more:hover {
  border-color: var(--color-neon);
}

.page-home .ph-heat {
  background: rgba(10, 14, 39, 0.72);
  border: 1px solid var(--color-border-glow);
  padding: 20px;
  box-shadow: var(--ph-shadow-soft);
}

.page-home .ph-heat__title {
  font-family: var(--font-headline);
  font-size: 20px;
  color: var(--color-text-primary);
  margin: 0 0 6px;
  letter-spacing: 1px;
}

.page-home .ph-heat__desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 0 0 16px;
}

.page-home .ph-heat__frame {
  margin-bottom: 16px;
}

.page-home .ph-heat__chart {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .ph-live__stream {
  display: none;
}

.ph-compare {
  padding: 64px 0 48px;
  background:
    linear-gradient(rgba(10, 14, 39, 0.82), rgba(15, 26, 58, 0.82)),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(57, 255, 20, 0.04) 18px 19px);
}

.page-home .ph-compare__grid {
  display: grid;
  gap: 32px;
  margin-top: 32px;
}

.page-home .ph-compare__chart {
  background: rgba(15, 26, 58, 0.75);
  border: 1px solid var(--color-border-glow);
  padding: 24px 20px;
  box-shadow: var(--ph-shadow);
}

.page-home .ph-compare__legend {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 18px;
}

.page-home .ph-compare__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  transform: rotate(45deg);
}

.page-home .ph-compare__dot--home {
  background: var(--color-neon);
}

.page-home .ph-compare__dot--away {
  background: var(--color-accent);
}

.page-home .ph-compare__svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .ph-compare__svg text {
  font-family: var(--font-body);
  font-size: 13px;
}

.page-home .ph-compare__svg text.ph-num,
.page-home .ph-compare__svg text[font-family="Courier New"] {
  font-family: var(--font-data);
  fill: var(--color-text-primary);
  font-size: 14px;
}

.page-home .ph-compare__media {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.page-home .ph-compare__img {
  width: 100%;
}

.page-home .ph-compare__coverage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.page-home .ph-compare__coverage-item {
  background: rgba(15, 26, 58, 0.6);
  border: 1px solid rgba(170, 184, 208, 0.15);
  border-left: 3px solid var(--color-neon);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--color-text-secondary);
  font-size: 13px;
}

.page-home .ph-compare__coverage-item .data-num {
  font-size: 30px;
}

.page-home .ph-history {
  padding: 64px 0 56px;
  background: var(--gradient-site);
}

.page-home .ph-history__grid {
  display: grid;
  gap: 32px;
  margin-top: 36px;
}

.page-home .ph-history__sub {
  font-size: 15px;
  color: var(--color-text-primary);
  letter-spacing: 1px;
  margin: 0 0 16px;
  padding-left: 10px;
  border-left: 3px solid var(--color-neon);
}

.page-home .ph-history__list {
  list-style: none;
  margin: 0;
  padding: 4px 0 4px 24px;
  border-left: 1px solid rgba(57, 255, 20, 0.32);
}

.page-home .ph-history__list li {
  position: relative;
  padding: 0 0 22px 20px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.page-home .ph-history__list li:last-child {
  padding-bottom: 0;
}

.page-home .ph-history__list li::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: var(--color-neon);
  border: 1px solid rgba(57, 255, 20, 0.4);
  transform: rotate(45deg);
}

.page-home .ph-history__list .data-num {
  display: inline-block;
  margin-right: 8px;
  font-size: 15px;
}

.page-home .ph-history__note {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0 0 16px;
}

.page-home .ph-history__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.page-home .ph-history__tags .tag {
  text-decoration: none;
  background: rgba(15, 26, 58, 0.8);
  border-color: rgba(57, 255, 20, 0.28);
  color: var(--color-text-primary);
  transition: background 0.2s, color 0.2s;
}

.page-home .ph-history__tags .tag:hover {
  background: rgba(57, 255, 20, 0.14);
  color: var(--color-neon);
}

.page-home .ph-history__trust {
  display: inline-block;
}

.page-home .ph-history__aside {
  display: flex;
  justify-content: center;
}

.page-home .ph-history__art {
  width: 100%;
  max-width: 300px;
}

.page-home .ph-history__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 40px;
  padding: 20px 0 0;
  border-top: 1px solid rgba(170, 184, 208, 0.14);
  color: var(--color-text-secondary);
  font-size: 14px;
}

.page-home .ph-history__stats .data-num {
  font-size: 22px;
  margin-right: 6px;
}

.page-home .ph-version {
  padding: 56px 0 72px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 107, 53, 0.12), transparent 42%),
    repeating-linear-gradient(135deg, rgba(57, 255, 20, 0.025) 0 1px, transparent 1px 6px),
    var(--gradient-site);
}

.page-home .ph-version__box {
  display: grid;
  gap: 24px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.14), rgba(15, 26, 58, 0.92) 62%);
  border: 2px solid rgba(255, 107, 53, 0.42);
  box-shadow: 12px 12px 0 rgba(10, 14, 39, 0.75);
  padding: 32px 26px;
  align-items: start;
}

.page-home .ph-version__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 107, 53, 0.12);
  border: 2px solid var(--color-accent);
  min-width: 92px;
  padding: 16px 24px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 14px 100%);
  justify-self: center;
}

.page-home .ph-version__badge .data-num {
  font-size: 26px;
  color: var(--color-accent);
  line-height: 1;
}

.page-home .ph-version__badge span:last-child {
  font-size: 11px;
  color: var(--color-text-secondary);
  letter-spacing: 1px;
}

.page-home .ph-version__content {
  min-width: 0;
}

.page-home .ph-version__title {
  font-family: var(--font-headline);
  font-size: 26px;
  letter-spacing: 1px;
  margin: 0 0 10px;
  color: var(--color-text-primary);
}

.page-home .ph-version__content p {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.page-home .ph-version__points {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .ph-version__points li {
  position: relative;
  padding-left: 22px;
  color: var(--color-text-primary);
  font-size: 14px;
}

.page-home .ph-version__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  background: var(--color-neon);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

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

@media (min-width: 768px) {
  .page-home .ph-compare {
    padding: 88px 0;
  }

  .page-home .ph-history {
    padding: 88px 0;
  }

  .page-home .ph-version {
    padding: 80px 0 96px;
  }

  .page-home .ph-version__box {
    grid-template-columns: 130px 1fr;
    gap: 32px;
    padding: 36px 40px;
  }

  .page-home .ph-version__badge {
    margin-left: 28px;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 100%, 22px 100%);
  }

  .page-home .ph-history__stats {
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .page-home .ph-live {
    padding-top: calc(var(--header-height) + 56px);
    padding-bottom: 88px;
  }

  .page-home .ph-live__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .page-home .ph-live__meta {
    border-top: 0;
    border-bottom: 0;
    padding-right: 8px;
    gap: 24px;
  }

  .page-home .ph-live__board {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }

  .page-home .ph-scores {
    margin-bottom: 0;
  }

  .page-home .ph-heat {
    margin-top: 64px;
  }

  .page-home .ph-compare__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 36px;
    align-items: center;
  }

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

  .page-home .ph-history__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.7fr);
    gap: 40px;
  }
}

@media (min-width: 1400px) {
  .page-home .ph-live__stream {
    display: block;
    position: absolute;
    right: 24px;
    bottom: 32px;
    z-index: 2;
    width: 200px;
    opacity: 0.75;
    pointer-events: none;
  }

  .page-home .ph-live__stream img {
    display: block;
    width: 100%;
    height: auto;
  }
}
