.page-home {
  background: var(--white);
  color: var(--body-text);
  overflow-x: hidden;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home .home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%);
}

.page-home .home-hero__media {
  position: absolute;
  inset: 0;
}

.page-home .home-hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.6) contrast(1.2);
}

.page-home .home-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(27,27,31,0.94) 0%, rgba(27,27,31,0.75) 45%, rgba(230,57,45,0.38) 100%);
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  padding-bottom: 88px;
}

.page-home .home-hero__breadcrumb {
  margin-bottom: 28px;
  color: rgba(255,255,255,0.72);
}

.page-home .home-hero__title-block {
  position: relative;
  max-width: 900px;
  padding-right: 40px;
}

.page-home .home-hero__vertical {
  position: absolute;
  right: -6px;
  top: 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11px;
  letter-spacing: 0.42em;
  color: rgba(255,255,255,0.42);
  text-transform: uppercase;
}

.page-home .home-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 14px;
}

.page-home .home-hero__kicker::before {
  content: '';
  width: 28px;
  height: 3px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.page-home .home-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0 0 20px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.page-home .home-hero__subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.86);
  max-width: 680px;
  margin: 0;
}

.page-home .home-hero__subtitle strong {
  color: var(--gold);
  font-weight: 700;
}

.page-home .home-hero__bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 44px;
}

.page-home .home-card {
  background: var(--glass-dark);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.28);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.page-home .home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.36);
}

.page-home .home-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.page-home .home-card__head h2,
.page-home .home-card__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--white);
}

.page-home .home-card__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--orange);
}

.page-home .home-card__label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(230,57,45,0.22);
}

.page-home .home-match-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.page-home .home-match-stats__item {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .home-match-stats__item strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gold);
}

.page-home .home-match-stats__item span {
  font-size: 12px;
  color: rgba(255,255,255,0.64);
}

.page-home .home-match-list,
.page-home .home-schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .home-match-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}

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

.page-home .home-match-list__time {
  flex-shrink: 0;
  color: var(--orange);
  font-weight: 600;
  font-size: 12px;
}

.page-home .home-schedule-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}

.page-home .home-schedule-list li:last-child {
  border-bottom: 0;
}

.page-home .home-schedule-list__state {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  white-space: nowrap;
}

.page-home .home-schedule-list__teams {
  font-weight: 600;
}

.page-home .home-schedule-list__teams b {
  color: var(--white);
}

.page-home .home-schedule-list__league {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

.page-home .home-card__note {
  margin: 14px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.52);
}

.page-home .home-card__text {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
}

.page-home .home-card__actions {
  margin-top: auto;
}

.page-home .home-card--match {
  display: flex;
  flex-direction: column;
}

.page-home .home-card--schedule {
  display: flex;
  flex-direction: column;
}

.page-home .home-card--tech {
  display: flex;
  flex-direction: column;
}

.page-home .home-hero .btn-outline {
  border-color: rgba(255,255,255,0.75);
  color: var(--white);
}

.page-home .home-hero .btn-outline:hover {
  background: rgba(255,255,255,0.12);
}

.page-home .home-hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.page-home .home-hero__scroll:hover {
  color: var(--white);
}

.page-home .home-hero__scroll i {
  width: 34px;
  height: 2px;
  background: var(--red);
  position: relative;
  overflow: hidden;
}

.page-home .home-hero__scroll i::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  bottom: 0;
  width: 100%;
  background: var(--gold);
  animation: home-scroll-line 2s var(--ease) infinite;
}

@keyframes home-scroll-line {
  0% { left: -100%; }
  60% { left: 0; }
  100% { left: 100%; }
}

.page-home .home-scoreboard {
  padding: 96px 0 76px;
}

.page-home .section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.6vw, 3.2rem);
  line-height: 1.12;
  position: relative;
  padding-left: 18px;
  margin: 8px 0 0;
}

.page-home .section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 8px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 24%, 100% 76%, 0 100%);
  transform: skewY(-6deg);
}

.page-home .home-scoreboard__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 44px;
}

.page-home .home-scoreboard__entry {
  position: relative;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.page-home .home-scoreboard__media {
  margin: 0;
  min-height: 200px;
}

.page-home .home-scoreboard__media img,
.page-home .home-topic__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .home-scoreboard__entry .home-gold-tag {
  position: absolute;
  top: 16px;
  left: 16px;
}

.page-home .home-gold-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold), #B8860B);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 14px 5px 12px;
  border-radius: 999px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  box-shadow: 0 4px 16px rgba(212,160,23,0.35);
}

.page-home .home-scoreboard__text {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.page-home .home-scoreboard__text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
}

.page-home .home-scoreboard__text p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.76);
  margin: 0;
}

.page-home .home-scoreboard__text .btn {
  margin-top: auto;
}

.page-home .home-scoreboard__chart {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.page-home .home-league-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.page-home .home-league-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-home .home-league-switch label {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(27,27,31,0.06);
  color: var(--body-text);
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.page-home .home-league-switch input:checked + label {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(230,57,45,0.28);
}

.page-home .home-chart-panel {
  display: none;
  padding: 8px 0;
}

.page-home .home-chart-panel h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--dark);
}

.page-home .home-chart-panel p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--grayblue);
  margin: 0;
}

.page-home #home-league-csl:checked ~ .home-chart-panel--csl,
.page-home #home-league-jia:checked ~ .home-chart-panel--jia,
.page-home #home-league-cba:checked ~ .home-chart-panel--cba {
  display: block;
}

.page-home .home-svg-bars {
  width: 100%;
  height: auto;
  display: block;
}

.page-home .home-svg-bars text {
  font-family: var(--font-body);
  font-size: 11px;
  fill: var(--grayblue);
}

.page-home .home-scoreboard__hint {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px dashed rgba(107,122,143,0.35);
  font-size: 12px;
  line-height: 1.6;
  color: var(--grayblue);
}

.page-home .home-topics {
  position: relative;
  padding: 88px 0 80px;
  background: linear-gradient(160deg, var(--white) 0%, #EFEDE6 100%);
}

.page-home .home-topics::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red) 0%, var(--orange) 55%, var(--gold) 100%);
}

.page-home .home-topics__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 44px;
}

.page-home .home-topic {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.page-home .home-topic:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(27,27,31,0.14);
}

.page-home .home-topic--expert::before,
.page-home .home-topic--member::before,
.page-home .home-topic--cost::before,
.page-home .home-topic--help::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.page-home .home-topic--member::before {
  background: linear-gradient(90deg, var(--gold), var(--red));
}

.page-home .home-topic--cost::before {
  background: linear-gradient(90deg, var(--orange), var(--gold));
}

.page-home .home-topic--help::before {
  background: linear-gradient(90deg, var(--grayblue), var(--dark));
}

.page-home .home-topic__media {
  margin: 0;
  min-height: 180px;
}

.page-home .home-topic__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.page-home .home-topic__body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0;
  color: var(--dark);
}

.page-home .home-topic__body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--grayblue);
  margin: 0;
}

.page-home .home-topic__body .btn {
  margin-top: auto;
}

.page-home .home-index {
  padding: 96px 0 84px;
}

.page-home .home-index__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 44px;
}

.page-home .home-index__item {
  position: relative;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 22px 20px 22px 68px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.page-home .home-index__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
  transform: skewY(-20deg);
}

.page-home .home-index__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(27,27,31,0.2);
}

.page-home .home-index__num {
  position: absolute;
  left: 20px;
  top: 20px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0.9;
}

.page-home .home-index__item strong {
  font-size: 16px;
  font-weight: 700;
}

.page-home .home-index__item span:last-child {
  font-size: 12px;
  color: rgba(255,255,255,0.56);
}

.page-home .home-index__download {
  background: linear-gradient(140deg, var(--dark) 0%, #2A2A30 100%);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,0.08);
}

.page-home .home-index__download h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 4px 0 0;
}

.page-home .home-index__download p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.page-home .home-index__download .btn {
  margin-top: auto;
}

.page-home .home-trust {
  background: var(--dark);
  color: var(--white);
  clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
  margin-top: 84px;
}

.page-home .home-trust__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 108px;
  padding-bottom: 84px;
}

.page-home .home-trust__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  margin: 0 0 16px;
}

.page-home .home-trust__text p {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255,255,255,0.76);
  max-width: 720px;
  margin: 0;
}

@media (min-width: 768px) {
  .page-home .home-hero__bento {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-rows: repeat(2, auto);
    align-items: stretch;
  }

  .page-home .home-card--match {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .page-home .home-card--schedule {
    grid-column: 2;
    grid-row: 1;
  }

  .page-home .home-card--tech {
    grid-column: 2;
    grid-row: 2;
  }

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

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

  .page-home .home-trust__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-home .home-trust__text {
    flex: 1;
  }
}

@media (min-width: 1080px) {
  .page-home .home-hero__inner {
    padding-top: 96px;
    padding-bottom: 120px;
  }

  .page-home .home-hero__subtitle {
    font-size: 1.08rem;
  }

  .page-home .home-scoreboard__layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .page-home .home-scoreboard__media {
    min-height: 320px;
  }

  .page-home .home-topics__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(260px, auto);
  }

  .page-home .home-topic--expert {
    grid-column: span 2;
    grid-row: span 2;
  }

  .page-home .home-topic--member {
    grid-column: span 2;
  }

  .page-home .home-topic--cost {
    grid-column: span 2;
  }

  .page-home .home-topic--help {
    grid-column: span 1;
    grid-row: span 2;
  }

  .page-home .home-topic--expert .home-topic__media {
    min-height: 220px;
  }

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

  .page-home .home-index__download {
    grid-column: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .page-home .home-card:hover,
  .page-home .home-topic:hover,
  .page-home .home-index__item:hover {
    transform: none;
  }
}
