.page-home {
  --home-gap: 64px;
  --home-gap-lg: 104px;
  --home-panel: #161616;
  background: linear-gradient(180deg, #0D0D0D 0%, #1A1A1A 100%);
  color: var(--text-primary);
  overflow-x: hidden;
}

.page-home [id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.page-home .section-head {
  margin-bottom: 32px;
}

.page-home .section-head.align-center {
  text-align: center;
}

.page-home .section-index {
  font-size: 13px;
  color: var(--color-gold);
  letter-spacing: .12em;
  margin-bottom: 10px;
}

.page-home h1,
.page-home h2 {
  font-family: var(--font-heading);
  font-style: italic;
  letter-spacing: .01em;
}

.page-home h2 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--color-white);
}

.page-home .section-desc {
  max-width: 720px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.9;
}

.page-home .align-center .section-desc {
  margin-inline: auto;
}

/* ========== HERO ========== */
.page-home .hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 112px 0 56px;
  background: radial-gradient(ellipse at 18% 22%, #3a1414 0%, #1A1A1A 52%, #0D0D0D 100%);
  overflow: hidden;
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  opacity: .32;
}

.page-home .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(102deg, rgba(13, 13, 13, .92) 0%, rgba(13, 13, 13, .66) 48%, rgba(200, 16, 46, .22) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 72px);
  pointer-events: none;
}

.page-home .hero-inner {
  position: relative;
  z-index: 2;
}

.page-home .breadcrumb {
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--text-muted);
}

.page-home .breadcrumb .breadcrumb-sep {
  margin: 0 8px;
  color: var(--color-red);
}

.page-home .hero-content {
  max-width: 880px;
}

.page-home h1 {
  font-size: clamp(1.9rem, 6vw, 4.4rem);
  line-height: 1.08;
  margin: 0 0 20px;
  color: var(--color-white);
  text-shadow: 0 6px 34px rgba(0, 0, 0, .55);
}

.page-home .hero-lead {
  position: relative;
  display: inline-block;
  margin: 0 0 18px;
  padding: 10px 22px 10px 18px;
  background: linear-gradient(135deg, var(--color-red) 0%, #7d0c1e 100%);
  color: var(--color-white);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  box-shadow: 0 8px 30px rgba(200, 16, 46, .28);
}

.page-home .hero-sub {
  margin: 0 0 28px;
  max-width: 640px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.9;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.page-home .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .04em;
}

.page-home .hero-meta-line {
  display: inline-flex;
  align-items: center;
}

.page-home .hero-meta-line::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: var(--color-gold);
  transform: rotate(45deg);
}

/* ========== FLOATING BALL ========== */
.page-home .hero-ball {
  position: absolute;
  right: 4.5%;
  bottom: 7%;
  z-index: 20;
}

.page-home .floating-ball {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--color-red) 0%, #1A1A1A 68%, #0D0D0D 100%);
  box-shadow:
    0 0 0 2px rgba(212, 175, 55, .32),
    0 0 42px rgba(200, 16, 46, .3),
    0 22px 46px rgba(0, 0, 0, .6);
  text-align: center;
  transition: width var(--speed) var(--ease), height var(--speed) var(--ease), transform var(--speed) var(--ease);
  outline: none;
}

.page-home .floating-ball:hover,
.page-home .floating-ball:focus-within {
  width: 154px;
  height: 154px;
}

.page-home .ball-core {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.page-home .ball-version {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  letter-spacing: .04em;
}

.page-home .ball-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, .9);
  line-height: 1.35;
}

.page-home .ball-menu {
  position: absolute;
  inset: -30%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(200, 16, 46, .18), transparent 70%);
  opacity: 0;
  transform: scale(.55);
  pointer-events: none;
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.page-home .floating-ball:hover .ball-menu,
.page-home .floating-ball:focus-within .ball-menu {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.page-home .ball-menu a {
  display: inline-block;
  padding: 6px 12px;
  margin: 2px;
  border-radius: 999px;
  background: rgba(13, 13, 13, .92);
  border: 1px solid rgba(212, 175, 55, .38);
  color: var(--color-white);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--speed), color var(--speed);
}

.page-home .ball-menu a:hover,
.page-home .ball-menu a:focus {
  border-color: var(--color-red);
  color: var(--color-gold);
}

/* ========== DATA HUB ========== */
.page-home .data-hub {
  position: relative;
  background:
    radial-gradient(900px 420px at 90% 10%, rgba(200, 16, 46, .14), transparent 65%),
    #0D0D0D;
  padding: var(--home-gap) 0;
}

.page-home .data-hub::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 49px, rgba(255, 255, 255, .035) 49px 50px),
    repeating-linear-gradient(90deg, transparent 0 49px, rgba(255, 255, 255, .035) 49px 50px);
  pointer-events: none;
}

.page-home .data-hub .container {
  position: relative;
  z-index: 1;
}

.page-home .data-hub-layout {
  display: grid;
  gap: 20px;
}

.page-home .scorer-panel,
.page-home .upcoming-panel {
  position: relative;
  background: var(--home-panel);
  border: 1px solid var(--line-color);
  border-radius: var(--radius);
  padding: 24px;
  overflow: hidden;
}

.page-home .scorer-panel::before,
.page-home .upcoming-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-red) 0%, var(--color-gold) 100%);
}

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

.page-home .panel-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-white);
}

.page-home .data-tag {
  font-size: 12px;
  color: var(--color-gold);
  border: 1px solid rgba(212, 175, 55, .32);
  background: rgba(212, 175, 55, .08);
  border-radius: 999px;
  padding: 4px 12px;
}

.page-home .round-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.page-home .round-chip {
  flex: 0 0 auto;
  padding: 5px 14px;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid var(--line-color);
  background: rgba(255, 255, 255, .05);
  color: var(--text-secondary);
  letter-spacing: .03em;
}

.page-home .round-chip.active {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-red), #7d0c1e);
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(232, 0, 32, .36);
}

.page-home .scorer-tape {
  overflow-x: auto;
  margin: 0 -24px 14px;
  padding: 0 24px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-red) rgba(255, 255, 255, .08);
}

.page-home .scorer-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: page-home-tape 24s linear infinite;
}

.page-home .scorer-tape:hover .scorer-track,
.page-home .scorer-tape:focus-within .scorer-track {
  animation-play-state: paused;
}

.page-home .scorer-run {
  display: flex;
  gap: 10px;
  padding-right: 10px;
}

@keyframes page-home-tape {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.page-home .scorer-item {
  flex: 0 0 auto;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-left: 3px solid var(--color-red);
  background: rgba(255, 255, 255, .03);
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
}

.page-home .scorer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--line-color);
  padding-top: 14px;
}

.page-home .scorer-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-home .scorer-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--color-gold);
  transform: rotate(45deg);
}

.page-home .status-live {
  display: inline-flex;
  align-items: center;
  color: #b7f0cf;
  border-color: rgba(0, 140, 69, .35);
  background: rgba(0, 140, 69, .12);
}

.page-home .live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 8px rgba(0, 140, 69, .8);
}

.page-home .match-list {
  display: grid;
  gap: 12px;
}

.page-home .match-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-color);
  border-radius: 6px;
}

.page-home .match-competition {
  flex: 0 0 auto;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 3px;
  color: var(--color-white);
  background: #242424;
}

.page-home .match-info {
  flex: 1 1 auto;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.page-home .match-status {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--text-muted);
}

.page-home .has-dot {
  position: relative;
  padding-left: 14px;
}

.page-home .has-dot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  background: var(--color-green);
  border-radius: 50%;
}

.page-home .action-shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  background: #000;
}

.page-home .action-shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 280px;
}

.page-home .action-shot figcaption,
.page-home .fan-banner figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, .85);
  background: rgba(13, 13, 13, .7);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: .04em;
}

/* ========== MATCH CENTER ========== */
.page-home .match-center {
  background:
    linear-gradient(180deg, #141414 0%, #1A1A1A 100%);
  padding: var(--home-gap) 0;
}

.page-home .feature-grid {
  display: grid;
  gap: 18px;
}

.page-home .feature-card {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #181818, #0D0D0D);
  border: 1px solid var(--line-color);
  overflow: hidden;
  transition: border-color var(--speed), transform var(--speed);
}

.page-home .feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, .38);
}

.page-home .feature-card::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, rgba(200, 16, 46, .42), transparent 70%);
  transform: rotate(18deg);
  pointer-events: none;
}

.page-home .feature-index {
  font-size: 12px;
  color: var(--color-gold);
  letter-spacing: .1em;
}

.page-home .feature-card h3 {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-white);
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 12px 0 10px;
}

.page-home .feature-card p {
  margin: 0 0 20px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 14px;
}

.page-home .feature-card .btn {
  margin-right: 8px;
}

/* ========== ARCHIVE ========== */
.page-home .archive-section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 620px;
  padding: var(--home-gap) 0;
  background: #0D0D0D;
  overflow: hidden;
}

.page-home .archive-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .3;
}

.page-home .archive-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(13, 13, 13, .92) 0%, rgba(13, 13, 13, .62) 55%, rgba(200, 16, 46, .22) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 56px);
  pointer-events: none;
}

.page-home .archive-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.page-home .archive-inner h2 {
  color: var(--color-white);
}

.page-home .archive-desc {
  max-width: 640px;
  margin: 0 0 32px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.9;
}

.page-home .stat-list {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .stat-item {
  padding: 18px 20px;
  background: rgba(13, 13, 13, .66);
  border: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 2px solid rgba(212, 175, 55, .45);
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.page-home .stat-num {
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--color-white);
  letter-spacing: .01em;
}

.page-home .stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== UPDATES ========== */
.page-home .updates-section {
  padding: var(--home-gap) 0;
  background: #101010;
}

.page-home .fan-banner {
  position: relative;
  margin: 0 0 44px;
  border-radius: var(--radius);
  overflow: hidden;
}

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

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

.page-home .updates-head p {
  margin-bottom: 14px;
}

.page-home .updates-head .btn {
  margin-top: 8px;
}

.page-home .updates-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-color);
}

.page-home .updates-list-item {
  position: relative;
  padding: 22px 0 22px 28px;
  border-bottom: 1px solid var(--line-color);
}

.page-home .updates-list-item::before {
  content: "◆";
  position: absolute;
  left: 4px;
  top: 24px;
  color: var(--color-red);
  font-size: 11px;
}

.page-home .update-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--color-gold);
  letter-spacing: .06em;
  margin-bottom: 8px;
  border: 1px solid rgba(212, 175, 55, .26);
  border-radius: 3px;
  padding: 3px 10px;
  background: rgba(212, 175, 55, .06);
}

.page-home .update-title {
  font-size: 18px;
  color: var(--color-white);
  line-height: 1.45;
  margin: 0 0 8px;
  font-weight: 600;
}

.page-home .update-note {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

/* ========== BRAND ========== */
.page-home .brand-section {
  position: relative;
  padding: var(--home-gap-lg) 0;
  background:
    radial-gradient(820px 400px at 88% 12%, rgba(200, 16, 46, .16), transparent 70%),
    linear-gradient(135deg, #161616 0%, #0D0D0D 60%);
  overflow: hidden;
}

.page-home .brand-block {
  max-width: 760px;
  position: relative;
  padding: 34px 0 34px 30px;
  border-left: 4px solid var(--color-gold);
}

.page-home .brand-block::before {
  content: "MILAN";
  position: absolute;
  right: 0;
  top: -26px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 55, .22);
  letter-spacing: .04em;
  pointer-events: none;
}

.page-home .brand-block p {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 15px;
  margin: 0 0 18px;
}

.page-home .brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  .page-home .hero-ball {
    display: none;
  }

  .page-home .hero-section {
    padding-top: 120px;
  }

  .page-home .hero-meta {
    font-size: 11px;
  }

  .page-home .action-shot img {
    min-height: 200px;
  }
}

@media (min-width: 768px) {
  .page-home .data-hub-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .page-home .action-shot {
    grid-column: 1 / -1;
  }

  .page-home .action-shot img {
    max-height: 460px;
    object-fit: cover;
  }

  .page-home .updates-layout {
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    gap: 48px;
  }

  .page-home .stat-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .page-home .data-hub-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr);
    align-items: stretch;
  }

  .page-home .action-shot {
    grid-column: auto;
  }

  .page-home .action-shot img {
    min-height: 100%;
    max-height: none;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
  }

  .page-home .action-shot {
    position: relative;
    min-height: 320px;
  }

  .page-home .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (min-width: 1200px) {
  .page-home .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
  }

  .page-home .hero-ball {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
  }

  .page-home .floating-ball {
    width: 132px;
    height: 132px;
  }

  .page-home .floating-ball:hover,
  .page-home .floating-ball:focus-within {
    width: 168px;
    height: 168px;
  }
}
