.page-home {
  --home-accent: #E63946;
  --home-accent-soft: #FF6B6B;
  --home-data-blue: #00E5FF;
  --home-night: #0B0C10;
  --home-panel: #1F2833;
  --home-text: #C5C6C7;
  --home-white: #F5F5F5;
  --home-cut: 14px;
  --home-font-data: "JetBrains Mono", "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --home-font-head: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--home-night);
  color: var(--home-text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

.home-hero {
  padding: clamp(24px, 5vw, 56px) 0 0;
  position: relative;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.5vw, 28px);
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.home-hero__primary {
  position: relative;
  background: var(--home-panel);
  clip-path: polygon(0 0, calc(100% - var(--home-cut)) 0, 100% var(--home-cut), 100% 100%, var(--home-cut) 100%, 0 calc(100% - var(--home-cut)));
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

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

.home-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-hero__img-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,12,16,0.35) 0%, rgba(11,12,16,0.85) 78%, rgba(11,12,16,0.98) 100%);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 48px);
}

.section-index {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--home-font-data);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--home-text);
  margin-bottom: 14px;
}

.section-index__num {
  color: var(--home-data-blue);
  font-weight: 700;
  font-size: 13px;
}

.section-index__label {
  border-left: 1px solid rgba(0, 229, 255, 0.35);
  padding-left: 10px;
}

.section-index__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(230,57,70,0.5), transparent);
  margin-left: 8px;
}

.home-hero__title {
  font-family: var(--home-font-head);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--home-white);
  margin: 0 0 16px;
}

.home-hero__lead {
  font-size: clamp(14px, 1.6vw, 18px);
  max-width: 560px;
  margin: 0 0 26px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, #E63946 0%, #FF6B6B 100%);
  color: #F5F5F5;
  box-shadow: 0 4px 20px rgba(230,57,70,0.35);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(197,198,199,0.4);
  color: var(--home-text);
}

.btn--data {
  background: transparent;
  border-color: rgba(0, 229, 255, 0.5);
  color: var(--home-data-blue);
  font-family: var(--home-font-data);
}

.home-hero__stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 4vw, 40px);
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(197,198,199,0.15);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat__label {
  font-size: 12px;
  color: var(--home-text);
  opacity: 0.75;
}

.stat__value {
  font-family: var(--home-font-data);
  font-size: 26px;
  font-weight: 700;
  color: var(--home-white);
  line-height: 1.2;
  margin-top: 4px;
}

.stat__value--blue {
  color: var(--home-data-blue);
}

.stat__value--red {
  color: var(--home-accent-soft);
}

.home-hero__side {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.5vw, 28px);
}

.home-hero__archive {
  background: var(--home-panel);
  padding: clamp(20px, 3vw, 32px);
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
}

.home-hero__archive-meta {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.home-hero__archive-img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.home-hero__archive-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 3px;
  align-self: flex-start;
}

.tag--red {
  background: rgba(230,57,70,0.18);
  color: var(--home-accent-soft);
  border: 1px solid rgba(230,57,70,0.4);
}

.tag--blue {
  background: rgba(0,229,255,0.12);
  color: var(--home-data-blue);
  border: 1px solid rgba(0,229,255,0.35);
}

.home-hero__archive-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--home-white);
  margin: 0;
  font-family: var(--home-font-head);
}

.home-hero__archive-desc {
  font-size: 14px;
  margin: 0;
}

.home-hero__score {
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(0,119,255,0.08));
  border: 1px solid rgba(0,229,255,0.25);
  backdrop-filter: blur(4px);
  padding: clamp(20px, 3vw, 32px);
  position: relative;
  clip-path: polygon(0 0, calc(100% - var(--home-cut)) 0, 100% var(--home-cut), 100% 100%, 0 100%);
}

.home-score__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.home-score__item {
  background: rgba(11,12,16,0.55);
  border-radius: 6px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
  cursor: pointer;
}

.home-score__item:hover {
  border-left: 2px solid var(--home-accent);
}

.home-score__team {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-score__name {
  color: var(--home-white);
  font-weight: 700;
  font-size: 15px;
  font-family: var(--home-font-head);
}

.home-score__league {
  font-family: var(--home-font-data);
  font-size: 12px;
  color: var(--home-data-blue);
}

.home-score__digits {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.home-score__num {
  font-family: var(--home-font-data);
  font-size: 28px;
  font-weight: 700;
  color: var(--home-white);
}

.home-score__colon {
  font-family: var(--home-font-data);
  font-size: 20px;
  color: var(--home-accent-soft);
}

.home-score__status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.home-score__live {
  font-size: 12px;
  font-weight: 700;
  color: var(--home-accent-soft);
  background: rgba(230,57,70,0.15);
  padding: 2px 8px;
  border-radius: 3px;
  font-family: var(--home-font-data);
}

.home-score__time {
  font-family: var(--home-font-data);
  font-size: 12px;
  color: var(--home-text);
}

.home-score__note {
  font-family: var(--home-font-data);
  font-size: 12px;
  color: var(--home-text);
  opacity: 0.7;
  margin: 10px 0 0;
}

.home-calendar {
  padding: clamp(48px, 8vw, 88px) 0;
  position: relative;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.home-calendar__idx {
  margin-bottom: 18px;
}

.home-calendar__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.home-calendar__title {
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 900;
  color: var(--home-white);
  margin: 0;
  font-family: var(--home-font-head);
  letter-spacing: -0.02em;
}

.home-calendar__desc {
  font-size: 15px;
  max-width: 620px;
  margin: 0;
}

.home-calendar__skew {
  position: relative;
  transform: skewY(-2deg);
  background: rgba(31,40,51,0.6);
  border: 1px solid rgba(230,57,70,0.2);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 32px);
  overflow: hidden;
}

.home-calendar__skew::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(230,57,70,0.06), transparent 40%, transparent 60%, rgba(0,229,255,0.06));
  z-index: 1;
  pointer-events: none;
}

.home-calendar__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  z-index: 0;
}

.home-calendar__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 1.5vw, 18px);
  transform: skewY(2deg);
}

.home-calendar__cell {
  background: rgba(11,12,16,0.75);
  border: 1px solid rgba(197,198,199,0.16);
  border-radius: 6px;
  padding: clamp(12px, 2vw, 20px);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.home-calendar__cell:hover {
  border-color: var(--home-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(230,57,70,0.15);
}

.home-calendar__cell--red {
  border-left: 3px solid var(--home-accent);
}

.home-calendar__cell--blue {
  border-left: 3px solid var(--home-data-blue);
}

.home-calendar__date {
  font-family: var(--home-font-data);
  font-size: 13px;
  color: var(--home-data-blue);
  font-weight: 500;
}

.home-calendar__match {
  font-size: 12px;
  color: var(--home-accent-soft);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.home-calendar__teams {
  color: var(--home-white);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  font-family: var(--home-font-head);
}

.home-calendar__time {
  font-family: var(--home-font-data);
  font-size: 13px;
  color: var(--home-text);
}

.home-calendar__more {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  color: var(--home-data-blue);
  font-family: var(--home-font-data);
  font-size: 14px;
  text-decoration: none;
  transform: skewY(2deg);
  font-weight: 500;
  transition: color 0.25s ease, transform 0.25s ease;
}

.home-calendar__more:hover {
  color: var(--home-white);
  transform: skewY(2deg) translateX(4px);
}

.home-leagues {
  padding: clamp(48px, 7vw, 80px) 0;
  background: rgba(31,40,51,0.35);
  position: relative;
}

.home-leagues::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(230,57,70,0.5), rgba(0,229,255,0.5), transparent);
}

.home-leagues > .section-index,
.home-leagues__head,
.home-leagues__grid,
.home-leagues > .btn {
  max-width: var(--shell-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.home-leagues__head {
  padding-bottom: 28px;
}

.home-leagues__title {
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 900;
  color: var(--home-white);
  margin: 0 0 8px;
  font-family: var(--home-font-head);
}

.home-leagues__desc {
  font-size: 15px;
  max-width: 600px;
  margin: 0;
}

.home-leagues__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2vw, 20px);
  padding-bottom: 32px;
}

.home-leagues__item {
  background: var(--home-night);
  border: 1px solid rgba(197,198,199,0.14);
  border-radius: 8px;
  padding: 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}

.home-leagues__item::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, transparent 50%, rgba(230,57,70,0.12) 50%, rgba(230,57,70,0.12) 52%, transparent 52%);
  transform: rotate(45deg);
}

.home-leagues__item:hover {
  border-color: rgba(230,57,70,0.5);
  background: rgba(230,57,70,0.05);
  transform: translateY(-3px);
}

.home-leagues__code {
  font-family: var(--home-font-data);
  font-size: 12px;
  color: var(--home-data-blue);
  letter-spacing: 0.08em;
}

.home-leagues__name {
  font-family: var(--home-font-head);
  font-size: 24px;
  font-weight: 900;
  color: var(--home-white);
  letter-spacing: -0.01em;
}

.home-leagues__meta {
  font-size: 13px;
  color: var(--home-text);
  opacity: 0.7;
}

.home-leagues > .btn {
  display: flex;
  width: fit-content;
  margin-top: 10px;
  text-decoration: none;
}

.home-teams {
  padding: clamp(48px, 7vw, 80px) 0;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

.home-teams__title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  color: var(--home-white);
  margin: 0 0 10px;
  font-family: var(--home-font-head);
}

.home-teams__desc {
  font-size: 15px;
  max-width: 560px;
  margin: 0 0 28px;
}

.home-teams__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.home-teams__tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(31,40,51,0.7);
  border: 1px solid rgba(197,198,199,0.15);
  border-radius: 999px;
  color: var(--home-text);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--home-font-head);
  font-size: 14px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.home-teams__tag:hover {
  background: var(--home-accent);
  border-color: var(--home-accent);
  color: var(--home-white);
  transform: scale(1.05);
}

.home-teams__tag--xl {
  font-size: 20px;
  padding: 8px 20px;
}

.home-teams__tag--lg {
  font-size: 17px;
  padding: 7px 17px;
}

.home-teams__tag--md {
  font-size: 15px;
}

.home-teams__tag--sm {
  font-size: 13px;
  padding: 5px 12px;
}

.home-teams__emoji {
  display: none;
}

.home-teams__img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.home-panels {
  padding: clamp(48px, 7vw, 80px) 0;
  background: rgba(11,12,16,0.7);
  position: relative;
}

.home-panels::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.4), transparent);
}

.home-panels > .section-index,
.home-panels__head,
.home-panels__body {
  max-width: var(--shell-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.home-panels__head {
  padding-bottom: 24px;
}

.home-panels__title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  color: var(--home-white);
  margin: 0 0 8px;
  font-family: var(--home-font-head);
}

.home-panels__desc {
  font-size: 15px;
  margin: 0;
}

.home-panels__tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(197,198,199,0.15);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.home-panels__tab {
  background: transparent;
  border: 1px solid rgba(197,198,199,0.2);
  color: var(--home-text);
  padding: 8px 20px;
  border-radius: 6px;
  font-family: var(--home-font-head);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.home-panels__tab.is-active {
  background: linear-gradient(135deg, #E63946 0%, #FF6B6B 100%);
  border-color: transparent;
  color: var(--home-white);
}

.home-panels__pane {
  display: none;
}

.home-panels__pane.is-active {
  display: block;
}

.home-data__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2vw, 20px);
  margin-bottom: 28px;
}

.home-data__card {
  background: var(--home-panel);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.home-data__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--home-data-blue);
}

.home-data__card:nth-child(3)::before {
  background: var(--home-accent);
}

.home-data__label {
  font-size: 13px;
  color: var(--home-text);
  opacity: 0.75;
}

.home-data__value {
  font-family: var(--home-font-data);
  font-size: 32px;
  font-weight: 700;
  color: var(--home-white);
  line-height: 1.2;
}

.home-data__value--blue {
  color: var(--home-data-blue);
}

.home-data__value--red {
  color: var(--home-accent-soft);
}

.home-data__trend {
  font-family: var(--home-font-data);
  font-size: 12px;
  color: var(--home-data-blue);
  opacity: 0.7;
}

.home-data__chart {
  background: var(--home-panel);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-data__bar-wrap {
  display: grid;
  grid-template-columns: 56px 1fr 64px;
  align-items: center;
  gap: 12px;
}

.home-data__bar-label {
  font-size: 13px;
  color: var(--home-white);
  font-weight: 700;
  font-family: var(--home-font-head);
}

.home-data__bar {
  height: 12px;
  background: rgba(11,12,16,0.6);
  border-radius: 6px;
  overflow: hidden;
}

.home-data__bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #E63946 0%, #FF6B6B 100%);
  border-radius: 6px;
}

.home-data__bar-val {
  font-family: var(--home-font-data);
  font-size: 14px;
  color: var(--home-data-blue);
  text-align: right;
}

.home-comments__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-comments__item {
  background: var(--home-panel);
  border-radius: 8px;
  padding: 20px 24px;
  border-left: 3px solid var(--home-data-blue);
}

.home-comments__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--home-font-data);
  color: var(--home-accent-soft);
  background: rgba(230,57,70,0.12);
  border-radius: 3px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.home-comments__text {
  font-size: 15px;
  color: var(--home-white);
  margin: 0 0 8px;
  line-height: 1.7;
}

.home-comments__meta {
  font-family: var(--home-font-data);
  font-size: 12px;
  color: var(--home-data-blue);
}

@media (min-width: 768px) {
  .home-hero__grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .home-hero__primary {
    min-height: 680px;
  }

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

  .home-teams__wrap {
    grid-template-columns: 1fr 200px;
  }

  .home-teams__emoji {
    display: block;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  .home-calendar__cell:hover {
    transform: none;
  }

  .home-leagues__item:hover {
    transform: none;
  }

  .home-teams__tag:hover {
    transform: none;
  }
}
