.page-home{
  --home-hero-glow:rgba(0,229,160,.08);
  --home-alert-glow:rgba(255,77,46,.12);
  --home-line:rgba(0,229,160,.16);
  position:relative;
  overflow:hidden;
  padding:32px 0 72px;
}

.page-home .breadcrumbs{
  margin-bottom:28px;
  font-size:13px;
}

/* ============ Hero ============ */
.page-home .home-hero{
  display:grid;
  gap:28px;
  align-items:start;
  position:relative;
}

.page-home .home-hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(to right,var(--line) 1px,transparent 1px),
    linear-gradient(to bottom,var(--line) 1px,transparent 1px);
  background-size:34px 34px;
  opacity:.18;
  mask-image:linear-gradient(to bottom,black,transparent 82%);
}

.page-home .hero-copy{
  position:relative;
  z-index:1;
}

.page-home .page-title{
  font-size:40px;
  line-height:1.15;
  margin-bottom:16px;
  text-wrap:balance;
}

.page-home .hero-lead{
  font-size:16px;
  line-height:1.9;
  color:var(--muted);
  max-width:54ch;
}

.page-home .countdown-board{
  margin:24px 0 20px;
  padding:20px;
  background:
    linear-gradient(135deg,rgba(0,229,160,.1),rgba(10,14,35,.42) 44%,rgba(255,77,46,.07)),
    var(--bg-panel);
  border:1px solid var(--line);
  border-left:3px solid var(--accent);
  clip-path:polygon(0 0,calc(100% - 18px) 0,100% 18px,100% 100%,0 100%);
  max-width:560px;
}

.page-home .cd-status{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:var(--accent);
  font-weight:600;
  letter-spacing:.05em;
}

.page-home .cd-live-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 4px var(--home-hero-glow),0 0 14px var(--accent);
  animation:pageHomePulse 1.8s infinite;
}

@keyframes pageHomePulse{
  0%,100%{opacity:1}
  50%{opacity:.45}
}

.page-home .cd-kickoff{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
}

.page-home .cd-label{
  font-family:var(--font-body);
  font-size:13px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.12em;
}

.page-home .cd-time{
  font-family:var(--font-mono);
  font-size:clamp(42px,8vw,64px);
  font-weight:800;
  line-height:1;
  color:var(--text);
  letter-spacing:.02em;
  background:linear-gradient(180deg,#fff,rgba(242,245,255,.62));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.page-home .cd-colon{
  color:var(--accent);
  -webkit-text-fill-color:var(--accent);
}

.page-home .cd-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  margin:14px 0;
  font-size:13px;
  color:var(--muted);
}

.page-home .hero-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  max-width:460px;
}

.page-home .stat-item{
  background:rgba(17,27,58,.72);
  border:1px solid var(--line);
  padding:14px 10px;
  text-align:center;
  position:relative;
  overflow:hidden;
}

.page-home .stat-item::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  background:var(--accent);
  opacity:.7;
}

.page-home .stat-num{
  display:block;
  font-size:26px;
  font-weight:800;
  color:var(--accent);
  line-height:1.2;
}

.page-home .stat-label{
  display:block;
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
  letter-spacing:.06em;
}

.page-home .hero-visual{
  position:relative;
  max-width:420px;
  width:100%;
  margin:0 auto;
}

.page-home .hero-img-shell{
  position:relative;
  clip-path:polygon(0 0,78% 0,100% 14%,100% 100%,0 100%);
  background:var(--bg-panel);
}

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

.page-home .hero-tag{
  position:absolute;
  left:14px;
  padding:8px 12px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.06em;
  background:rgba(10,14,35,.86);
  border:1px solid var(--line);
  color:var(--text);
  backdrop-filter:blur(4px);
}

.page-home .hero-tag--live{
  top:16px;
  color:var(--accent);
  display:flex;
  align-items:center;
  gap:8px;
}

.page-home .hero-tag-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 3px var(--home-hero-glow);
}

.page-home .hero-tag--meta{
  bottom:24px;
  color:var(--muted);
}

/* ============ Lineup Panel ============ */
.page-home .home-lineup{
  margin-top:72px;
  padding-top:32px;
  border-top:1px solid var(--line);
}

.page-home .lineup-heading{
  margin-bottom:22px;
}

.page-home .lineup-board{
  display:grid;
  gap:16px;
  position:relative;
  margin-top:18px;
}

.page-home .lineup-team{
  background:linear-gradient(160deg,rgba(17,27,58,.82),rgba(10,14,35,.6));
  border:1px solid var(--line);
  padding:14px 12px 18px;
  position:relative;
}

.page-home .lineup-team::before{
  content:"";
  display:block;
  height:2px;
  width:64px;
  margin-bottom:12px;
  background:linear-gradient(to right,var(--accent),transparent);
}

.page-home .lineup-role{
  display:block;
  font-size:13px;
  font-weight:600;
  color:var(--text);
  letter-spacing:.04em;
  margin-bottom:4px;
}

.page-home .lineup-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:6px;
}

.page-home .lineup-list li{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 8px;
  background:rgba(10,14,35,.5);
  border:1px solid var(--line);
  font-size:13px;
  color:var(--muted);
}

.page-home .jersey{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  background:var(--accent);
  color:var(--bg);
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:800;
}

.page-home .lineup-vs{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  width:52px;
  height:52px;
  margin:0 auto;
  border-radius:50%;
  background:var(--accent);
  color:var(--bg);
  font-family:var(--font-display);
  font-size:18px;
  font-weight:800;
  line-height:1;
  box-shadow:0 0 0 6px rgba(0,229,160,.12),0 6px 22px rgba(0,229,160,.24);
}

.page-home .lineup-vs-sub{
  font-size:10px;
  font-family:var(--font-mono);
  font-weight:600;
  letter-spacing:.06em;
}

.page-home .lineup-note{
  margin:18px 0 0;
  font-size:13px;
  color:var(--muted);
  padding-left:14px;
  border-left:2px solid var(--accent);
}

/* ============ Archive / Timeline ============ */
.page-home .home-archive{
  margin-top:72px;
}

.page-home .archive-head{
  display:grid;
  gap:18px;
  margin-bottom:28px;
}

.page-home .archive-heading .text-secondary{
  margin:10px 0 0;
  max-width:64ch;
}

.page-home .archive-filter{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.page-home .archive-filter-input{
  width:100%;
  max-width:420px;
  padding:12px 14px 12px 44px;
  background:var(--bg-panel);
  border:1px solid var(--line);
  color:var(--text);
  font-family:var(--font-body);
  font-size:14px;
  transition:border-color .25s ease,box-shadow .25s ease;
}

.page-home .archive-filter-input:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--home-hero-glow);
}

.page-home .archive-filter::before{
  content:"";
  position:absolute;
  left:15px;
  top:26px;
  transform:translateY(-50%);
  width:14px;
  height:14px;
  border:2px solid var(--accent);
  border-radius:50%;
  pointer-events:none;
}

.page-home .archive-filter::after{
  content:"";
  position:absolute;
  left:27px;
  top:38px;
  width:8px;
  height:2px;
  background:var(--accent);
  transform:rotate(45deg);
  pointer-events:none;
}

.page-home .archive-filter-hint{
  font-size:12px;
  color:var(--muted);
  padding-left:6px;
}

.page-home .archive-feature{
  display:grid;
  gap:18px;
  background:linear-gradient(150deg,rgba(17,27,58,.9),rgba(10,14,35,.8));
  border:1px solid var(--line);
  margin-bottom:26px;
  clip-path:polygon(0 0,calc(100% - 22px) 0,100% 22px,100% 100%,0 100%);
  padding:16px;
}

.page-home .feature-media{
  overflow:hidden;
  background:var(--bg-panel);
  clip-path:polygon(0 0,calc(100% - 12px) 0,100% 12px,100% 100%,0 100%);
}

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

.page-home .feature-body{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  justify-content:center;
}

.page-home .feature-body h3{
  font-family:var(--font-display);
  font-size:24px;
  line-height:1.3;
  margin:0;
  letter-spacing:.02em;
}

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

.page-home .timeline{
  position:relative;
  display:grid;
  gap:16px;
}

.page-home .timeline::before{
  content:"";
  position:absolute;
  top:18px;
  bottom:18px;
  left:23px;
  width:2px;
  background:linear-gradient(to bottom,var(--accent) 0%,rgba(0,229,160,.28) 34%,var(--line) 62%,var(--accent-2) 100%);
  opacity:.55;
}

.page-home .match-card{
  position:relative;
  display:grid;
  grid-template-columns:48px 1fr;
  gap:12px;
  padding:16px 14px 14px;
  background:linear-gradient(160deg,rgba(17,27,58,.88),rgba(10,14,35,.76));
  border:1px solid var(--line);
  clip-path:polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,0 100%);
  transition:transform .25s ease,border-color .25s ease;
}

.page-home .match-card:hover{
  transform:translateY(-2px);
  border-color:var(--home-line);
}

.page-home .match-rail{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.page-home .match-node{
  width:10px;
  height:10px;
  margin-top:20px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 4px var(--home-hero-glow),0 0 18px rgba(0,229,160,.5);
}

.page-home .match-no{
  font-size:12px;
  font-weight:700;
  color:var(--accent);
  letter-spacing:.1em;
  margin-top:8px;
}

.page-home .match-day{
  font-size:11px;
  color:var(--muted);
  line-height:1.4;
  margin-top:4px;
  letter-spacing:.04em;
}

.page-home .match-body{
  min-width:0;
}

.page-home .match-score-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.page-home .match-team{
  flex:1 1 0;
  font-weight:600;
  font-size:15px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.page-home .match-team:last-child{
  text-align:right;
}

.page-home .match-score{
  flex:0 0 auto;
  font-size:21px;
  font-weight:800;
  padding:6px 12px;
  min-width:72px;
  text-align:center;
  background:var(--bg);
  border:1px solid var(--line);
  color:var(--text);
  letter-spacing:.06em;
}

.page-home .match-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 12px;
  margin-top:12px;
}

.page-home .match-state{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:var(--accent);
}

.page-home .match-detail{
  margin-top:10px;
  border-top:1px dashed var(--line);
}

.page-home .match-detail summary{
  cursor:pointer;
  font-size:13px;
  color:var(--accent);
  padding:10px 0 6px;
  list-style:none;
  user-select:none;
}

.page-home .match-detail summary::-webkit-details-marker{
  display:none;
}

.page-home .match-detail summary::before{
  content:"＋";
  display:inline-block;
  margin-right:8px;
  font-family:var(--font-mono);
  font-size:12px;
}

.page-home .match-detail[open] summary::before{
  content:"－";
}

.page-home .detail-grid{
  display:grid;
  gap:8px;
  padding-bottom:8px;
}

.page-home .detail-block{
  margin:0;
  font-size:13px;
  line-height:1.75;
  color:var(--muted);
}

.page-home .detail-block strong{
  color:var(--text);
  font-weight:600;
}

.page-home .detail-data{
  padding:8px 12px;
  background:rgba(0,229,160,.05);
  border:1px solid rgba(0,229,160,.16);
}

.page-home .match-link{
  grid-column:1 / -1;
  justify-self:stretch;
  text-align:center;
}

.page-home .archive-foot{
  margin-top:28px;
  display:grid;
  gap:12px;
  justify-items:start;
}

/* ============ Services ============ */
.page-home .home-services{
  margin-top:76px;
  padding-top:8px;
}

.page-home .section-heading .text-secondary{
  margin:10px 0 0;
  max-width:58ch;
}

.page-home .service-grid{
  display:grid;
  gap:18px;
  margin-top:26px;
}

.page-home .service-card{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  padding:22px 18px 18px;
  background:linear-gradient(160deg,rgba(17,27,58,.86),rgba(10,14,35,.86));
  border:1px solid var(--line);
  clip-path:polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,0 100%);
  transition:transform .25s ease;
}

.page-home .service-card:hover{
  transform:translateY(-2px);
}

.page-home .service-card::after{
  content:"";
  position:absolute;
  top:0;
  right:16px;
  width:42px;
  height:3px;
  background:var(--accent);
  opacity:.9;
}

.page-home .service-card--alert::after{
  background:var(--accent-2);
}

.page-home .service-card .card-code{
  color:var(--muted);
  font-size:12px;
  letter-spacing:.08em;
}

.page-home .service-card h3{
  font-family:var(--font-display);
  font-size:22px;
  line-height:1.3;
  margin:0;
  letter-spacing:.02em;
}

.page-home .service-card p{
  margin:0;
  font-size:14px;
  line-height:1.75;
  color:var(--muted);
}

.page-home .service-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:8px;
  width:100%;
}

.page-home .service-list li{
  position:relative;
  padding-left:18px;
  font-size:13px;
  color:var(--text);
}

.page-home .service-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:.55em;
  width:8px;
  height:8px;
  background:var(--accent);
  clip-path:polygon(0 0,100% 0,100% 100%,0 100%);
  opacity:.85;
}

.page-home .service-card--alert .service-list li::before{
  background:var(--accent-2);
}

/* ============ Search ============ */
.page-home .home-search{
  margin-top:76px;
  padding:34px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:linear-gradient(90deg,rgba(0,229,160,.04),transparent 36%,transparent 68%,rgba(255,77,46,.05));
}

.page-home .search-copy .text-secondary{
  margin-top:10px;
  max-width:54ch;
}

.page-home .search-actions{
  display:grid;
  gap:14px;
  margin-top:24px;
}

.page-home .search-action{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:4px 12px;
  align-items:center;
  padding:16px;
  text-decoration:none;
  background:rgba(17,27,58,.72);
  border:1px solid var(--line);
  clip-path:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,0 100%);
  transition:border-color .25s ease,transform .25s ease;
}

.page-home .search-action:hover{
  border-color:var(--home-line);
  transform:translateY(-2px);
}

.page-home .search-action-num{
  grid-row:1 / span 2;
  font-size:14px;
  font-weight:700;
  color:var(--accent);
  background:rgba(0,229,160,.08);
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(0,229,160,.24);
}

.page-home .search-action-title{
  font-weight:700;
  font-size:16px;
  color:var(--text);
}

.page-home .search-action-desc{
  font-size:13px;
  color:var(--muted);
  line-height:1.6;
}

.page-home .search-action .btn{
  grid-column:1 / -1;
  justify-self:start;
  margin-top:6px;
}

.page-home .search-cap{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  margin-top:20px;
  font-size:13px;
  color:var(--muted);
}

.page-home .search-cap .mono{
  color:var(--accent);
  font-weight:700;
}

/* ============ Local ============ */
.page-home .home-local{
  display:grid;
  gap:24px;
  margin-top:72px;
  align-items:center;
}

.page-home .local-media{
  position:relative;
  clip-path:polygon(0 0,calc(100% - 22px) 0,100% 22px,100% 100%,0 100%);
  background:var(--bg-panel);
}

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

.page-home .local-media-tag{
  position:absolute;
  left:14px;
  bottom:14px;
  padding:8px 12px;
  background:rgba(10,14,35,.85);
  border:1px solid var(--line);
  color:var(--accent);
  font-size:12px;
  letter-spacing:.06em;
}

.page-home .local-body .section-title{
  margin-top:10px;
}

.page-home .local-body > p:not(.kicker):not(.section-title){
  font-size:15px;
  line-height:1.85;
  color:var(--muted);
  max-width:56ch;
}

.page-home .local-list{
  list-style:none;
  margin:22px 0 0;
  padding:0;
  display:grid;
  gap:10px;
}

.page-home .local-list li{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  background:rgba(17,27,58,.65);
  border:1px solid var(--line);
  font-size:14px;
  color:var(--text);
}

.page-home .local-list-no{
  flex:0 0 auto;
  color:var(--accent);
  font-weight:700;
  font-size:13px;
}

.page-home .local-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:22px;
}

/* ============ Outro ============ */
.page-home .home-outro{
  position:relative;
  min-height:300px;
  display:flex;
  align-items:center;
  margin-top:72px;
  overflow:hidden;
}

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

.page-home .outro-visual img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  clip-path:polygon(0 12%,100% 0,100% 100%,0 100%);
  opacity:.5;
}

.page-home .outro-card{
  position:relative;
  z-index:1;
  margin:0 auto;
  max-width:680px;
  padding:36px 24px;
  text-align:center;
  background:rgba(10,14,35,.86);
  border:1px solid var(--line);
  backdrop-filter:blur(2px);
}

.page-home .outro-card .card-code{
  color:var(--accent);
  font-size:13px;
  letter-spacing:.18em;
}

.page-home .outro-card .section-title{
  font-size:28px;
  margin-top:8px;
}

.page-home .outro-card p{
  font-size:15px;
  line-height:1.85;
  color:var(--muted);
  max-width:54ch;
  margin:14px auto 0;
}

.page-home .outro-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
  margin-top:20px;
}

/* ============ Desktop Layout ============ */
@media (min-width: 860px){
  .page-home .home-hero{
    grid-template-columns:1fr minmax(300px,380px);
    gap:32px;
    align-items:center;
  }

  .page-home .home-lineup{
    margin-top:84px;
  }

  .page-home .lineup-board{
    grid-template-columns:1fr auto 1fr;
    align-items:stretch;
  }

  .page-home .lineup-vs{
    margin:auto;
  }

  .page-home .archive-head{
    grid-template-columns:1fr 320px;
    align-items:end;
    gap:24px;
  }

  .page-home .archive-feature{
    grid-template-columns:minmax(0,380px) 1fr;
    padding:20px;
  }

  .page-home .timeline{
    gap:18px;
  }

  .page-home .match-card{
    grid-template-columns:56px 1fr 130px;
    align-items:center;
    gap:16px 18px;
    padding:18px 18px;
  }

  .page-home .match-link{
    grid-column:auto;
    justify-self:end;
  }

  .page-home .archive-foot{
    grid-template-columns:auto 1fr;
    align-items:center;
  }

  .page-home .service-grid{
    grid-template-columns:repeat(3,1fr);
    gap:20px;
  }

  .page-home .search-actions{
    grid-template-columns:repeat(2,1fr);
    gap:18px;
  }

  .page-home .search-action{
    padding:20px;
  }

  .page-home .home-local{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:44px;
  }
}

@media (min-width: 1200px){
  .page-home .page-title{
    font-size:46px;
  }

  .page-home .home-hero{
    grid-template-columns:minmax(0,1fr) 420px;
  }

  .page-home .detail-grid{
    grid-template-columns:repeat(2,1fr);
    align-items:center;
  }

  .page-home .detail-data{
    grid-column:1 / -1;
  }

  .page-home .match-team{
    font-size:16px;
  }

  .page-home .match-score{
    font-size:24px;
    padding:8px 14px;
    min-width:80px;
  }

  .page-home .local-body{
    padding-left:8px;
  }
}
