.page-home {
  --accent-green: #00E373;
  --accent-flame: #FF5B35;
  --accent-cyan: #7DF9FF;
  --panel-deep: #081020;
  --panel-mid: #112A4A;
  --grid-line: #1E3A5F;
  --muted-blue: #5A7D9A;
  --paper: #F0F4F8;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  background:
    linear-gradient(rgba(30, 58, 95, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, 0.16) 1px, transparent 1px),
    var(--c-space);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--c-paper);
  font-family: var(--f-body);
  line-height: 1.7;
}
.page-home img {
  max-width: 100%;
  height: auto;
}

/* ================= HERO ================= */
.page-home .console-hero {
  position: relative;
  padding: 44px 0 56px;
  overflow: hidden;
}
.page-home .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  align-items: center;
}
.page-home .hero-stage-img {
  position: absolute;
  right: -8%;
  bottom: -24px;
  width: min(82vw, 540px);
  height: auto;
  opacity: 0.3;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  z-index: 0;
  pointer-events: none;
}
.page-home .hero-panel,
.page-home .hero-board {
  position: relative;
  z-index: 1;
}
.page-home .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 14px;
}
.page-home .hero-route {
  font-family: var(--f-index);
  font-size: 13px;
  color: var(--c-muted);
}
.page-home .hero-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: var(--f-index);
  color: var(--c-cyan);
}
.page-home .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-pitch);
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(0, 227, 115, 0.18);
  animation: homePulse 1.8s ease-in-out infinite;
}
@keyframes homePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.page-home .hero-title {
  font-family: var(--f-headline);
  font-size: clamp(32px, 7vw, 62px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  transform: skewX(-6deg);
  margin: 10px 0 16px;
  color: var(--c-paper);
}
.page-home .hero-lead {
  max-width: 540px;
  margin: 0;
  color: var(--c-muted);
  font-size: 16px;
}
.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 20px;
}
.page-home .btn-arrow {
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.2s ease;
}
.page-home .hero-actions a:hover .btn-arrow {
  transform: translateX(4px);
}
.page-home .hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--f-index);
}
.page-home .hero-facts li {
  display: flex;
  flex-direction: column;
  background: rgba(8, 16, 32, 0.6);
  border: 1px solid var(--c-grid);
  padding: 8px 14px;
}
.page-home .hero-facts strong {
  font-size: 22px;
  color: var(--c-pitch);
}
.page-home .hero-facts span {
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--c-muted);
}
.page-home .hero-board-inner {
  padding: 18px;
}
.page-home .hero-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--c-grid);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.page-home .index-tag {
  font-family: var(--f-index);
  font-size: 12px;
  color: var(--c-pitch);
  letter-spacing: 0.08em;
}
.page-home .board-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-index);
  font-size: 12px;
  color: var(--c-cyan);
}
.page-home .board-rows {
  display: grid;
  gap: 10px;
}
.page-home .board-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(30, 58, 95, 0.7);
  padding-bottom: 8px;
  font-family: var(--f-index);
}
.page-home .board-key {
  color: var(--c-muted);
  font-size: 13px;
}
.page-home .board-val {
  color: var(--c-pitch);
  font-size: 18px;
}
.page-home .board-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--c-muted);
  text-align: right;
}

/* ================= SECTIONS ================= */
.page-home .home-section {
  position: relative;
  padding: 48px 0;
  border-top: 1px solid var(--c-grid);
}
.page-home .section-head {
  margin-bottom: 22px;
}
.page-home .section-title {
  font-family: var(--f-headline);
  font-size: clamp(24px, 4.5vw, 40px);
  transform: skewX(-5deg);
  margin: 6px 0;
}
.page-home .section-desc {
  color: var(--c-muted);
  max-width: 640px;
  font-size: 15px;
  margin: 0;
}

/* ================= FIXTURES ================= */
.page-home .fixtures-zone {
  background: rgba(8, 16, 32, 0.35);
}
.page-home .fixtures-wrap {
  position: relative;
}
.page-home .league-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.page-home .league-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}
.page-home .league-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  cursor: pointer;
  background: var(--c-panel);
  border: 1px solid var(--c-grid);
  color: var(--c-muted);
  font-family: var(--f-index);
  font-size: 13px;
  border-radius: 3px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  user-select: none;
}
.page-home .league-tab:hover {
  border-color: rgba(0, 227, 115, 0.5);
  color: var(--c-paper);
}
.page-home .league-radio--prem:checked ~ .league-tabs label[for="lg-prem"],
.page-home .league-radio--liga:checked ~ .league-tabs label[for="lg-liga"],
.page-home .league-radio--bund:checked ~ .league-tabs label[for="lg-bund"],
.page-home .league-radio--italy:checked ~ .league-tabs label[for="lg-italy"],
.page-home .league-radio--csl:checked ~ .league-tabs label[for="lg-csl"] {
  background: var(--c-pitch);
  color: var(--c-ink);
  border-color: var(--c-pitch);
}
.page-home .league-panels .league-panel {
  display: none;
}
.page-home .league-radio--prem:checked ~ .league-panels .league-panel--prem,
.page-home .league-radio--liga:checked ~ .league-panels .league-panel--liga,
.page-home .league-radio--bund:checked ~ .league-panels .league-panel--bund,
.page-home .league-radio--italy:checked ~ .league-panels .league-panel--italy,
.page-home .league-radio--csl:checked ~ .league-panels .league-panel--csl {
  display: block;
  animation: homeFadeSlide 0.35s ease;
}
@keyframes homeFadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-home .fixture-list {
  display: grid;
  gap: 10px;
}
.page-home .fixture-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 8px 14px;
  align-items: center;
  background: var(--c-panel);
  border-left: 3px solid var(--c-pitch);
  padding: 12px 16px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.page-home .fixture-item:hover {
  transform: translateX(4px);
  background: #163450;
}
.page-home .fixture-round {
  grid-column: 1 / -1;
  font-family: var(--f-index);
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.08em;
}
.page-home .fixture-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-home .team-name {
  font-weight: 700;
  font-size: 15px;
}
.page-home .team-score {
  font-family: var(--f-index);
  color: var(--c-pitch);
  padding: 0 8px;
  font-size: 18px;
  border-left: 1px solid rgba(30, 58, 95, 0.8);
  border-right: 1px solid rgba(30, 58, 95, 0.8);
}
.page-home .fixture-time {
  font-family: var(--f-index);
  color: var(--c-muted);
  font-size: 12px;
  text-align: left;
}

/* ================= DASHBOARD ================= */
.page-home .dashboard-zone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-flame), transparent);
}
.page-home .dash-cards {
  display: grid;
  gap: 18px;
}
.page-home .dash-card {
  display: flex;
  flex-direction: column;
  background: var(--c-panel);
  border: 1px solid var(--c-grid);
  position: relative;
  padding: 20px;
}
.page-home .dash-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--c-pitch);
}
.page-home .dash-card--table::before {
  background: var(--c-flame);
}
.page-home .dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.page-home .status-chip {
  font-family: var(--f-index);
  font-size: 11px;
  color: var(--c-cyan);
  border: 1px solid rgba(125, 249, 255, 0.3);
  padding: 2px 8px;
  border-radius: 2px;
}
.page-home .dash-card-title {
  font-size: 20px;
  margin: 6px 0 4px;
}
.page-home .dash-card-copy {
  color: var(--c-muted);
  font-size: 14px;
  margin: 0;
}
.page-home .dash-card-img {
  margin-top: 16px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--c-grid);
}
.page-home .dash-card-img--shot {
  margin-top: auto;
  padding-top: 16px;
}
.page-home .mini-h2h {
  margin-top: 14px;
  font-family: var(--f-index);
  font-size: 13px;
}
.page-home .h2h-line {
  display: grid;
  grid-template-columns: 60px 1fr 70px;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.page-home .h2h-line > span {
  color: var(--c-muted);
}
.page-home .h2h-line i {
  height: 6px;
  background: var(--c-pitch);
  border-radius: 2px;
  display: block;
}
.page-home .h2h-line em {
  font-style: normal;
  color: var(--c-paper);
}
.page-home .mini-shot {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  font-family: var(--f-index);
  font-size: 14px;
}
.page-home .shot-row {
  display: flex;
  justify-content: space-between;
  border-left: 2px solid var(--c-flame);
  padding-left: 10px;
}
.page-home .shot-row span {
  color: var(--c-muted);
}
.page-home .shot-row b {
  color: var(--c-paper);
}
.page-home .mini-table {
  margin-top: 14px;
  display: grid;
  gap: 6px;
  font-family: var(--f-index);
  font-size: 14px;
  list-style: none;
  padding: 0;
}
.page-home .mini-table li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(8, 16, 32, 0.4);
}
.page-home .mini-table li span {
  color: var(--c-flame);
}
.page-home .mini-table li em {
  font-style: normal;
  color: var(--c-paper);
}
.page-home .mini-table li b {
  color: var(--c-pitch);
  font-weight: 700;
}

/* ================= TIMELINE ================= */
.page-home .timeline-zone {
  background: rgba(8, 16, 32, 0.55);
  overflow: hidden;
}
.page-home .timeline-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 320px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 8px 4px 20px;
  scrollbar-width: thin;
}
.page-home .timeline-card {
  scroll-snap-align: start;
  background: linear-gradient(135deg, var(--c-panel), var(--c-space));
  border-top: 3px solid var(--c-flame);
  padding: 22px 20px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
}
.page-home .timeline-card--featured {
  border-top-color: var(--c-pitch);
}
.page-home .round-tag {
  align-self: flex-start;
  font-family: var(--f-index);
  font-size: 12px;
  color: var(--c-flame);
  background: rgba(255, 91, 53, 0.12);
  padding: 2px 10px;
}
.page-home .timeline-card--featured .round-tag {
  color: var(--c-pitch);
  background: rgba(0, 227, 115, 0.12);
}
.page-home .timeline-card h3 {
  margin: 10px 0 6px;
  font-size: 18px;
  line-height: 1.4;
}
.page-home .timeline-card p {
  color: var(--c-muted);
  font-size: 14px;
  margin: 0;
}
.page-home .timeline-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
}
.page-home .timeline-bg-img {
  display: block;
  width: 100%;
  max-height: 160px;
  height: auto;
  object-fit: cover;
  opacity: 0.55;
  margin-top: 20px;
}

/* ================= CHANNEL ================= */
.page-home .channel-grid {
  display: grid;
  gap: 14px;
}
.page-home .channel-card {
  position: relative;
  display: block;
  padding: 22px 20px;
  background: var(--c-panel);
  border: 1px solid var(--c-grid);
  color: var(--c-paper);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.page-home .channel-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-pitch);
  background: #163450;
}
.page-home .channel-index {
  font-family: var(--f-index);
  font-size: 12px;
  color: var(--c-pitch);
}
.page-home .channel-title {
  font-size: 20px;
  margin: 8px 0 4px;
}
.page-home .channel-card p {
  color: var(--c-muted);
  font-size: 14px;
  margin: 0;
}
.page-home .channel-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-pitch);
  font-size: 28px;
  transition: transform 0.2s ease;
}
.page-home .channel-card:hover .channel-arrow {
  transform: translate(4px, -50%);
}

/* ================= TRUST ================= */
.page-home .trust-band {
  background: var(--c-deep);
  border-top: 1px solid var(--c-grid);
  padding: 28px 0;
}
.page-home .trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.page-home .trust-band p {
  color: var(--c-muted);
  max-width: 640px;
  font-size: 14px;
  margin: 0;
}
.page-home .trust-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-family: var(--f-index);
  font-size: 12px;
  color: var(--c-cyan);
}
.page-home .trust-metrics span {
  background: rgba(0, 227, 115, 0.08);
  border: 1px solid rgba(0, 227, 115, 0.2);
  padding: 4px 10px;
}

/* ================= MEDIA QUERIES ================= */
@media (min-width: 720px) {
  .page-home .fixture-item {
    grid-template-columns: 76px 1fr auto;
  }
  .page-home .fixture-round {
    grid-column: auto;
  }
  .page-home .fixture-time {
    text-align: right;
  }
  .page-home .dash-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-home .dash-card--table {
    grid-column: 1 / -1;
  }
  .page-home .channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-home .console-hero {
    padding: 68px 0 88px;
  }
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 44px;
  }
  .page-home .hero-stage-img {
    width: min(44vw, 620px);
    opacity: 0.4;
    right: -4%;
  }
  .page-home .dash-cards {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
  .page-home .dash-card--table {
    grid-column: auto;
  }
  .page-home .channel-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1200px) {
  .page-home .home-section {
    padding: 64px 0;
  }
  .page-home .timeline-bg-img {
    max-height: 200px;
  }
}
