.page-home {
  --hero-red-glow: rgba(255, 59, 76, 0.16);
  --gold-line: rgba(255, 197, 61, 0.35);
  background: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
}

.page-home .home-hero {
  position: relative;
  padding: calc(var(--header-height) + 24px) 0 56px;
  background: linear-gradient(160deg, #0B1120 0%, #101E38 55%, #0B1120 100%);
  overflow: hidden;
}

.page-home .hero-pitch-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.page-home .hero-pitch {
  width: 100%;
  height: 100%;
  display: block;
}

.page-home .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
}

.page-home .hero-main {
  min-width: 0;
}

.page-home .hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 5.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 20px 0 20px;
  text-wrap: balance;
}

.page-home .hero-desc {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 54ch;
  margin: 0 0 32px;
}

.page-home .hero-desc strong {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
}

.page-home .hero-scoreboard {
  max-width: 520px;
  margin: 0;
  background: linear-gradient(135deg, var(--bg-panel) 0%, #1A2542 100%);
  border: 2px solid var(--border-line);
  border-left: 4px solid var(--accent-red);
  padding: 20px;
  box-shadow: 12px 12px 0 rgba(255, 59, 76, 0.08);
}

.page-home .hero-scoreboard .scoreboard__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-home .scoreboard-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.page-home .sb-team {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-main);
}

.page-home .sb-num {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-line);
  padding: 6px 12px;
  min-width: 60px;
  text-align: center;
}

.page-home .sb-num--lead {
  color: var(--accent-red);
  border-color: rgba(255, 59, 76, 0.5);
  box-shadow: 0 0 12px rgba(255, 59, 76, 0.25);
}

.page-home .sb-sep {
  font-family: var(--font-mono);
  color: var(--accent-gold);
  font-size: 1.4rem;
}

.page-home .hero-scoreboard .scoreboard__value {
  font-size: 0.8rem;
  color: var(--accent-gold);
}

.page-home .hero-side {
  position: relative;
  display: grid;
  gap: 24px;
  align-content: start;
}

.page-home .hero-img-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-panel);
  clip-path: polygon(6% 0, 100% 0, 100% 92%, 0 100%);
  aspect-ratio: 16 / 9;
}

.page-home .hero-img-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.05);
}

.page-home .hero-midterm {
  position: relative;
  width: 88%;
  margin-top: -58px;
  margin-left: 6%;
  background: var(--bg-panel);
  border: 2px solid rgba(255, 197, 61, 0.4);
  padding: 18px 20px;
  display: grid;
  gap: 2px;
  box-shadow: 10px 10px 0 rgba(255, 197, 61, 0.08);
}

.page-home .midterm-stat {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--accent-gold);
  line-height: 1.1;
}

.page-home .midterm-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.page-home .midterm-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border-line);
}

.page-home .score-ticker {
  background: var(--bg-panel);
  border-top: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
  overflow: hidden;
  padding: 12px 0;
}

.page-home .ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
  white-space: nowrap;
  animation: page-home-ticker 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

.page-home .ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.page-home .ticker-track span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent-red);
  transform: rotate(45deg);
  flex-shrink: 0;
}

@keyframes page-home-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

.page-home .section-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 24px;
  position: relative;
}

.page-home .section-title__index {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-red);
  font-size: 1.1rem;
}

.page-home .section-title__text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0;
}

.page-home .section-title__note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-left: auto;
}

.page-home .live-scores-grid {
  display: grid;
  gap: 16px;
}

.page-home .home-match {
  background: var(--bg-panel);
  border: 2px solid var(--border-line);
  padding: 20px;
  position: relative;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.page-home .home-match:hover {
  border-color: var(--accent-red);
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 rgba(255, 59, 76, 0.12);
}

.page-home .home-match--featured {
  border-top: 4px solid var(--accent-gold);
}

.page-home .home-match__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.page-home .home-match__league {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.page-home .home-match__scoreline {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-home .home-match__team {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.page-home .home-match__team--right {
  text-align: right;
}

.page-home .home-match__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}

.page-home .home-match__rank {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.page-home .home-match__nums {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-home .home-match__num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-line);
  padding: 4px 10px;
  min-width: 54px;
  text-align: center;
}

.page-home .home-match__num--lead {
  color: var(--accent-red);
  border-color: rgba(255, 59, 76, 0.5);
}

.page-home .home-match__colon {
  font-family: var(--font-mono);
  color: var(--accent-gold);
  font-size: 1.4rem;
}

.page-home .home-match__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-line);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.page-home .home-match__status {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.page-home .home-match__status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: page-home-pulse 1.6s ease-in-out infinite;
}

@keyframes page-home-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 59, 76, 0.4);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 6px rgba(255, 59, 76, 0);
  }
}

.page-home .report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  position: relative;
}

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

.page-home .tab-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 10px 16px;
  border: 2px solid var(--border-line);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  user-select: none;
}

.page-home .tab-label__index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
}

.page-home .tab-input:checked + .tab-label {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

.page-home .tab-input:checked + .tab-label .tab-label__index {
  color: rgba(255, 255, 255, 0.85);
}

.page-home .tab-input:focus-visible + .tab-label {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

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

.page-home #tab-focus:checked ~ .report-panel[data-panel="focus"],
.page-home #tab-tactics:checked ~ .report-panel[data-panel="tactics"],
.page-home #tab-data:checked ~ .report-panel[data-panel="data"],
.page-home #tab-summary:checked ~ .report-panel[data-panel="summary"] {
  display: block;
}

.page-home .report-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-color: var(--border-line) transparent;
}

.page-home .report-card {
  flex: 0 0 84%;
  scroll-snap-align: start;
  background: var(--bg-panel);
  border: 2px solid var(--border-line);
  border-top: 4px solid var(--accent-red);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.page-home .report-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-home .report-card--featured {
  border-top-color: var(--accent-gold);
}

.page-home .report-card--plain {
  border-top-color: var(--border-line);
  border-left-width: 4px;
  border-left-color: var(--accent-red);
}

.page-home .report-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-deep);
}

.page-home .report-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .report-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.page-home .report-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 0;
}

.page-home .report-card__excerpt {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.page-home .report-card__meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
}

.page-home .home-subscribe {
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0F1930 50%, var(--bg-deep) 100%);
  border-block: 2px solid var(--border-line);
}

.page-home .subscribe-layout {
  display: grid;
  gap: 40px;
}

.page-home .subscribe-intro {
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 48ch;
  margin: 0 0 16px;
}

.page-home .subscribe-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}

.page-home .subscribe-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-dim);
  line-height: 1.6;
}

.page-home .subscribe-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  transform: rotate(45deg);
}

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

.page-home .subscribe-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-home .flip-card {
  perspective: 1200px;
  width: min(100%, 340px);
}

.page-home .flip-inner {
  position: relative;
  aspect-ratio: 3 / 4;
  transform-style: preserve-3d;
  transition: transform 0.65s var(--ease-out);
}

.page-home .flip-card:hover .flip-inner,
.page-home .flip-card:focus-within .flip-inner,
.page-home .flip-card:focus .flip-inner {
  transform: rotateY(180deg);
}

.page-home .flip-front,
.page-home .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 2px solid var(--border-line);
  background: var(--bg-panel);
  overflow: hidden;
}

.page-home .flip-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .flip-hint {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  text-align: center;
  background: rgba(11, 17, 32, 0.82);
  border: 1px solid var(--border-line);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 7px 10px;
}

.page-home .flip-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  border-color: rgba(255, 197, 61, 0.55);
}

.page-home .qrcode-mark {
  width: 120px;
  height: 120px;
  border: 2px dashed var(--accent-gold);
  background: linear-gradient(135deg, rgba(255, 197, 61, 0.12), transparent 60%);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
}

.page-home .flip-back p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

.page-home .flip-back__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
}

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

.page-home .perf-card {
  background: var(--bg-panel);
  border: 2px solid var(--border-line);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.page-home .perf-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, transparent 0 50%, rgba(255, 59, 76, 0.3) 50%);
}

.page-home .perf-card__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2rem;
  color: var(--accent-cyan);
  line-height: 1.1;
}

.page-home .perf-card--wide .perf-card__num {
  color: var(--accent-gold);
}

.page-home .perf-card__label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.page-home .perf-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.page-home .perf-timeline {
  margin-top: 40px;
  border-left: 2px solid var(--border-line);
  padding-left: 20px;
  display: grid;
  gap: 20px;
}

.page-home .perf-timeline .timeline__item {
  position: relative;
}

.page-home .perf-timeline .timeline__item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--accent-cyan);
  transform: rotate(45deg);
}

.page-home .perf-timeline .timeline__date {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent-gold);
}

.page-home .perf-timeline p {
  margin: 4px 0 0;
  color: var(--text-dim);
  line-height: 1.6;
}

.page-home .quick-layout {
  display: grid;
  gap: 32px;
}

.page-home .quick-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid var(--border-line);
  transform: skewX(-6deg);
  background: var(--bg-panel);
}

.page-home .quick-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: skewX(6deg) scale(1.12);
}

.page-home .quick-content {
  min-width: 0;
}

.page-home .quick-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 14px;
}

.page-home .quick-steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-panel);
  border: 2px solid var(--border-line);
  padding: 18px;
  transition: border-color 0.2s;
}

.page-home .quick-steps li:hover {
  border-color: var(--accent-red);
}

.page-home .quick-steps li > span {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent-red);
  line-height: 1.2;
}

.page-home .quick-steps p {
  margin: 0;
  color: var(--text-dim);
}

.page-home .quick-note {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0 0 28px;
  padding: 12px 0 0;
  border-top: 1px solid var(--border-line);
}

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

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

  .page-home .hero-midterm {
    width: 80%;
  }
}

@media (min-width: 992px) {
  .page-home .hero-grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: 56px;
  }

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

  .page-home .hero-midterm {
    width: 80%;
    margin-left: -40px;
    margin-top: -72px;
  }

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

  .page-home .home-match--featured {
    grid-column: 1 / 8;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
  }

  .page-home .home-match--featured .home-match__footer {
    margin-top: auto;
  }

  .page-home .home-match--side {
    grid-column: 8 / 13;
    grid-row: 1 / 2;
  }

  .page-home .home-match--side-second {
    grid-column: 8 / 13;
    grid-row: 2 / 3;
  }

  .page-home .report-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
    padding-bottom: 0;
  }

  .page-home .report-card {
    flex: none;
  }

  .page-home .subscribe-layout {
    grid-template-columns: 6fr 5fr;
    gap: 64px;
    align-items: center;
  }

  .page-home .subscribe-media {
    justify-content: flex-end;
  }

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

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

  .page-home .perf-card--wide {
    grid-column: 1 / -1;
  }

  .page-home .quick-layout {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ticker-track,
  .page-home .home-match__status-dot {
    animation: none;
  }
}
