.page-home {
  --home-hero-pad: clamp(48px, 8vw, 88px);
  --home-card-radius: 22px;
  --home-neon-glow: 0 0 24px rgba(57, 255, 20, 0.35);
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: var(--home-hero-pad) clamp(20px, 5vw, 64px);
  background: linear-gradient(135deg, #0D1117 0%, #0D1117 55%, rgba(31, 58, 95, 0.55) 100%);
  min-height: 620px;
  display: flex;
  align-items: center;
}

.page-home .home-hero__glow {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(123, 44, 191, 0.5) 0%, rgba(123, 44, 191, 0.12) 42%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-home .home-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(176, 196, 222, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 196, 222, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 55%, transparent 100%);
  pointer-events: none;
}

.page-home .home-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.page-home .home-hero__copy {
  max-width: 760px;
}

.page-home .home-hero h1 {
  font-family: var(--heading);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 24px 0 28px;
  text-wrap: balance;
}

.page-home .home-hero__lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--gray);
  max-width: 600px;
}

.page-home .home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 48px);
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(176, 196, 222, 0.14);
}

.page-home .home-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .home-hero__stat .data-num {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  color: var(--green);
  text-shadow: var(--home-neon-glow);
}

.page-home .home-hero__stat-label {
  font-size: 0.875rem;
  color: var(--gray);
  letter-spacing: 0.12em;
}

.page-home .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.page-home .schedule-wrap,
.page-home .h2h-wrap {
  max-width: 1200px;
}

.page-home .section {
  padding: clamp(48px, 7vw, 88px) 0;
  position: relative;
}

.page-home .section:nth-of-type(even) {
  background: linear-gradient(180deg, transparent 0%, rgba(31, 58, 95, 0.18) 18%, rgba(31, 58, 95, 0.18) 82%, transparent 100%);
}

.page-home .section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.page-home .section-head h2 {
  font-family: var(--heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin: 0;
}

.page-home .section-head__desc {
  color: var(--gray);
  line-height: 1.7;
  max-width: 640px;
}

.page-home .sec-label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  margin: 0 0 12px;
}

.page-home .sec-label__num {
  color: var(--purple-light);
}

.page-home .panel-cut {
  position: relative;
  background: linear-gradient(165deg, rgba(19, 26, 34, 0.96) 0%, rgba(19, 26, 34, 0.88) 100%);
  border: 1px solid rgba(176, 196, 222, 0.16);
  border-radius: var(--home-card-radius);
  padding: clamp(22px, 3vw, 32px);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.page-home .schedule-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .schedule-list__tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.page-home .schedule-list__tools h3,
.page-home .schedule-timeline__head h3,
.page-home .h2h-visual__head h3,
.page-home .h2h-aside__card h3,
.page-home .update-card h3,
.page-home .index-card h3,
.page-home .schedule-compare__card h3 {
  font-family: var(--heading);
  font-size: 1.2rem;
  color: var(--white);
  margin: 0;
}

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

.page-home .chip {
  font-family: var(--body);
  font-size: 0.875rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(176, 196, 222, 0.28);
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.page-home .chip:hover {
  border-color: var(--green);
  color: var(--white);
}

.page-home .chip.is-active {
  background: rgba(57, 255, 20, 0.12);
  border-color: var(--green);
  color: var(--white);
}

.page-home .schedule-list__item {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(176, 196, 222, 0.12);
}

.page-home .schedule-list__item:last-child {
  border-bottom: 1px solid rgba(176, 196, 222, 0.12);
}

.page-home .schedule-list__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
}

.page-home .schedule-list__teams {
  font-weight: 600;
  color: var(--white);
  flex: 1;
  min-width: 160px;
}

.page-home .schedule-list__time {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--gray);
}

.page-home .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(176, 196, 222, 0.12);
  color: var(--gray);
  border: 1px solid rgba(176, 196, 222, 0.2);
  white-space: nowrap;
}

.page-home .tag.is-green {
  color: var(--green);
  border-color: rgba(57, 255, 20, 0.35);
  background: rgba(57, 255, 20, 0.08);
}

.page-home .tag.is-purple {
  color: var(--purple-light);
  border-color: rgba(123, 44, 191, 0.5);
  background: rgba(123, 44, 191, 0.12);
}

.page-home .schedule-timeline__list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.page-home .schedule-timeline__item {
  position: relative;
  padding-left: 28px;
  padding-bottom: 28px;
}

.page-home .schedule-timeline__item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--green) 0%, rgba(123, 44, 191, 0.6) 70%, transparent 100%);
}

.page-home .schedule-timeline__item:last-child::before {
  display: none;
}

.page-home .schedule-timeline__dot {
  position: absolute;
  left: 4px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: var(--home-neon-glow);
}

.page-home .schedule-timeline__body {
  background: rgba(13, 17, 23, 0.55);
  border-radius: 12px;
  padding: 16px 18px;
  border-left: 2px solid var(--green);
}

.page-home .schedule-timeline__date {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--purple-light);
  margin: 0 0 6px;
}

.page-home .schedule-timeline__match {
  font-weight: 600;
  color: var(--white);
  margin: 0 0 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page-home .schedule-timeline__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray);
  margin: 0;
}

.page-home .schedule-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 28px;
}

.page-home .schedule-compare__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .schedule-compare__desc {
  color: var(--gray);
  line-height: 1.7;
}

.page-home .schedule-compare__switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(123, 44, 191, 0.1);
  border: 1px solid rgba(123, 44, 191, 0.4);
  border-radius: 10px;
}

.page-home .schedule-compare__label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--gray);
}

.page-home .schedule-compare__value {
  font-weight: 600;
  color: var(--purple-light);
}

.page-home .img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--home-card-radius);
  background: linear-gradient(145deg, rgba(31, 58, 95, 0.55) 0%, rgba(13, 17, 23, 0.9) 100%);
}

.page-home .img-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(57, 255, 20, 0.06) 0 2px,
    transparent 2px 12px
  );
  pointer-events: none;
  z-index: 1;
}

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

.page-home .img-frame[data-caption]::after {
  content: attr(data-caption);
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--white);
  background: rgba(13, 17, 23, 0.88);
  border-radius: 8px 0 0 0;
  padding: 8px 14px;
}

.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--heading);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
}

.page-home .btn-primary {
  background: linear-gradient(120deg, var(--blue-bright), var(--purple));
  color: var(--white);
  box-shadow: 0 4px 18px rgba(123, 44, 191, 0.35);
}

.page-home .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(123, 44, 191, 0.5);
}

.page-home .btn-outline {
  border-color: rgba(176, 196, 222, 0.35);
  color: var(--gray);
  background: transparent;
}

.page-home .btn-outline:hover {
  border-color: var(--green);
  color: var(--white);
}

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

.page-home .player-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.page-home .player-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(31, 58, 95, 0.5);
}

.page-home .player-card__media {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

.page-home .player-card__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: saturate(0.8) contrast(1.1);
}

.page-home .player-card__role {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--heading);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--white);
  background: rgba(13, 17, 23, 0.72);
  border: 1px solid rgba(57, 255, 20, 0.4);
  border-radius: 6px;
  padding: 5px 12px;
}

.page-home .player-card__info {
  padding: 20px 24px 8px;
}

.page-home .player-card__info h3 {
  font-family: var(--heading);
  font-size: 1.5rem;
  color: var(--white);
  margin: 0 0 4px;
}

.page-home .player-card__team {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--gray);
  margin: 0;
}

.page-home .player-card__stats {
  display: flex;
  gap: 24px;
  padding: 16px 24px;
  margin: 0;
  border-top: 1px solid rgba(176, 196, 222, 0.1);
}

.page-home .player-card__stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .player-card__stats dt {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-home .player-card__stats dd {
  margin: 0;
}

.page-home .data-num {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--green);
}

.page-home .player-card__hover {
  display: none;
}

.page-home .h2h-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.page-home .legend {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--gray);
}

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

.page-home .legend-key {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.page-home .legend-key.is-green {
  background: var(--green);
}

.page-home .legend-key.is-purple {
  background: var(--purple-light);
}

.page-home .h2h-chart {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 16px;
}

.page-home .h2h-chart__axis {
  stroke: rgba(176, 196, 222, 0.18);
  stroke-width: 1;
}

.page-home .h2h-chart__line {
  fill: none;
  stroke-width: 2.5;
}

.page-home .h2h-chart__line--green {
  stroke: var(--green);
  filter: drop-shadow(0 0 6px rgba(57, 255, 20, 0.45));
}

.page-home .h2h-chart__line--purple {
  stroke: var(--purple-light);
}

.page-home .h2h-chart__dot--green {
  fill: var(--green);
}

.page-home .h2h-chart__dot--purple {
  fill: var(--purple-light);
}

.page-home .h2h-chart__label {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--gray);
}

.page-home .h2h-visual__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(176, 196, 222, 0.12);
}

.page-home .h2h-visual__foot .data-num {
  font-size: 1.6rem;
}

.page-home .h2h-visual__foot p {
  color: var(--gray);
  line-height: 1.6;
  margin: 0;
  flex: 1;
  min-width: 220px;
}

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

.page-home .h2h-aside__list {
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-home .h2h-aside__list > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(176, 196, 222, 0.14);
}

.page-home .h2h-aside__list > div:last-child {
  border-bottom: 0;
}

.page-home .h2h-aside__list dt {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-home .h2h-aside__list dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray);
}

.page-home .h2h-aside__list dd .data-num {
  font-size: 1.25rem;
  margin-right: 6px;
}

.page-home .h2h-aside__status {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home .h2h-aside__status li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray);
  font-size: 0.9375rem;
}

.page-home .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: var(--home-neon-glow);
  flex-shrink: 0;
}

.page-home .update-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .update-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  overflow: hidden;
}

.page-home .update-card__img {
  width: 100%;
  height: 100%;
}

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

.page-home .update-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.page-home .update-card__body h3 {
  font-size: 1.4rem;
}

.page-home .update-card__body p {
  color: var(--gray);
  line-height: 1.7;
  margin: 0;
}

.page-home .update-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--gray);
  margin-top: 6px;
}

.page-home .update-card__meta .data-num {
  font-size: 1.125rem;
  margin-right: 4px;
}

.page-home .troubleshoot-panel {
  background:
    linear-gradient(120deg, rgba(123, 44, 191, 0.35) 0%, rgba(31, 58, 95, 0.28) 40%, rgba(13, 17, 23, 0.85) 100%),
    var(--bg-elev);
}

.page-home .troubleshoot-panel__content {
  max-width: 800px;
}

.page-home .troubleshoot-panel__content h2 {
  font-family: var(--heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin: 0 0 18px;
}

.page-home .troubleshoot-panel__content > p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 620px;
}

.page-home .troubleshoot-panel__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.page-home .troubleshoot-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(13, 17, 23, 0.5);
  border: 1px solid rgba(176, 196, 222, 0.16);
  border-radius: 12px;
}

.page-home .troubleshoot-step .data-num {
  font-size: 1.125rem;
  color: var(--purple-light);
  flex-shrink: 0;
}

.page-home .troubleshoot-step p {
  color: var(--white);
  margin: 0;
  font-size: 0.9375rem;
}

.page-home .troubleshoot-panel .btn-primary {
  margin-top: 8px;
}

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

.page-home .index-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.page-home .index-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
}

.page-home .index-card__num {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--purple-light);
}

.page-home .index-card h3 {
  margin: 0;
}

.page-home .index-card p {
  color: var(--gray);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 640px) {
  .page-home .player-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .update-card {
    grid-template-columns: 1fr 1.2fr;
    align-items: stretch;
  }

  .page-home .update-card__img {
    min-height: 240px;
  }

  .page-home .troubleshoot-panel__steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 900px) {
  .page-home .schedule-layout {
    grid-template-columns: 1.05fr 1.35fr;
  }

  .page-home .schedule-compare {
    grid-template-columns: 1fr 1.35fr;
  }

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

  .page-home .h2h-aside {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .page-home .player-card__hover {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(
      165deg,
      rgba(31, 58, 95, 0.9) 0%,
      rgba(13, 17, 23, 0.95) 100%
    );
    padding: 28px;
    border-radius: var(--home-card-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: all 0.4s var(--ease-out);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  }

  .page-home .player-card:hover .player-card__hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .page-home .player-card {
    position: relative;
  }

  .page-home .player-card__hover p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
  }

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

@media (min-width: 1200px) {
  .page-home .player-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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