/* =========================================================
   HKBetNet Football Schedule Cluster v1.0
   /football-schedule/ + /football-schedule/premier-league/
   Visual: HKBetNet Matchday Ledger
========================================================= */

.hkbn-schedule-hub{
  --paper:#f1eee5;
  --paper-soft:#f7f4ec;
  --ink:#171b18;
  --green:#244c3b;
  --green-dark:#17382b;
  --mustard:#c89b3c;
  --border:#cfc9bb;
  --muted:#657067;
  --white:#fff;
  background:var(--paper-soft);
  color:var(--ink);
  font-family:inherit;
}

.hkbn-schedule-hub *{box-sizing:border-box}

.hkbn-schedule-shell{
  width:min(1180px,calc(100% - 40px));
  margin:0 auto;
}

.hkbn-schedule-hero{
  padding:54px 0 34px;
  border-bottom:1px solid var(--border);
  background:
    linear-gradient(90deg,rgba(200,155,60,.07),transparent 34%),
    var(--paper-soft);
}

.hkbn-schedule-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
  color:var(--green);
  font-size:13px;
  font-weight:900;
  letter-spacing:.05em;
}

.hkbn-schedule-kicker:before{
  content:"";
  width:28px;
  height:2px;
  background:var(--mustard);
}

.hkbn-schedule-hub h1{
  max-width:920px;
  margin:0;
  color:var(--green-dark);
  font-size:clamp(38px,6vw,64px);
  line-height:1.02;
  letter-spacing:-.035em;
}

.hkbn-schedule-lead{
  max-width:880px;
  margin:18px 0 0;
  color:#39463d;
  font-size:18px;
  line-height:1.8;
}

.hkbn-schedule-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}

.hkbn-schedule-meta span{
  padding:7px 10px;
  border:1px solid var(--border);
  border-radius:3px;
  background:#fff;
  color:#48534b;
  font-size:13px;
  font-weight:800;
}

.hkbn-schedule-nav{
  position:sticky;
  top:0;
  z-index:10;
  border-bottom:1px solid var(--border);
  background:rgba(247,244,236,.96);
  backdrop-filter:blur(8px);
}

.hkbn-schedule-nav-inner{
  display:flex;
  gap:18px;
  overflow-x:auto;
  padding:12px 0;
  scrollbar-width:none;
}

.hkbn-schedule-nav-inner::-webkit-scrollbar{display:none}

.hkbn-schedule-nav a{
  flex:0 0 auto;
  color:var(--green-dark);
  font-size:13px;
  font-weight:850;
  text-decoration:none;
}

.hkbn-schedule-section{
  padding:44px 0;
  border-bottom:1px solid var(--border);
}

.hkbn-schedule-section-head{
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  gap:16px;
  margin-bottom:22px;
}

.hkbn-schedule-no{
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border:1px solid var(--mustard);
  color:var(--green-dark);
  font-weight:950;
}

.hkbn-schedule-section h2{
  margin:0;
  color:var(--green-dark);
  font-size:clamp(28px,4vw,40px);
  line-height:1.15;
}

.hkbn-schedule-section-head p{
  max-width:850px;
  margin:8px 0 0;
  color:#4c584f;
  line-height:1.75;
}

.hkbn-schedule-controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:16px;
}

.hkbn-schedule-tabs,
.hkbn-schedule-leagues{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.hkbn-schedule-tab,
.hkbn-schedule-league{
  appearance:none;
  border:1px solid var(--green);
  border-radius:3px;
  padding:9px 13px;
  background:transparent;
  color:var(--green-dark);
  font:inherit;
  font-size:13px;
  font-weight:850;
  cursor:pointer;
}

.hkbn-schedule-tab[aria-pressed="true"],
.hkbn-schedule-league[aria-pressed="true"]{
  border-color:var(--green-dark);
  background:var(--green-dark);
  color:#fff;
}

.hkbn-schedule-table{
  overflow:hidden;
  border:1px solid var(--border);
  background:#fff;
}

.hkbn-schedule-table-top{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  padding:13px 15px;
  background:#eee7d6;
  border-bottom:1px solid var(--border);
}

.hkbn-schedule-table-top strong{
  color:var(--green-dark);
  font-size:18px;
}

.hkbn-schedule-table-top span{
  color:#5a655d;
  font-size:13px;
  font-weight:800;
}

.hkbn-schedule-grid-head,
.hkbn-schedule-row{
  display:grid;
  grid-template-columns:118px 96px minmax(0,1fr) 110px 120px;
}

.hkbn-schedule-grid-head{
  background:var(--green-dark);
  color:#fff;
  font-size:13px;
  font-weight:900;
}

.hkbn-schedule-grid-head span,
.hkbn-schedule-row > *{
  padding:12px 14px;
  border-right:1px solid var(--border);
}

.hkbn-schedule-grid-head span{
  border-right-color:rgba(255,255,255,.18);
}

.hkbn-schedule-grid-head span:last-child,
.hkbn-schedule-row > *:last-child{border-right:0}

.hkbn-schedule-row{
  min-height:56px;
  border-bottom:1px solid var(--border);
}

.hkbn-schedule-row:last-child{border-bottom:0}

.hkbn-schedule-row > *{
  display:flex;
  align-items:center;
  min-width:0;
  color:var(--ink);
  font-size:14px;
  line-height:1.45;
}

.hkbn-schedule-time{
  font-variant-numeric:tabular-nums;
  font-weight:900;
  white-space:nowrap;
}

.hkbn-schedule-comp{
  color:var(--green-dark)!important;
  font-weight:900;
}

.hkbn-schedule-match{
  overflow-wrap:anywhere;
}

.hkbn-schedule-round{
  color:#677168!important;
  font-size:13px!important;
}

.hkbn-schedule-status{
  font-weight:800;
  white-space:nowrap;
}

.hkbn-schedule-empty{
  grid-column:1/-1;
  justify-content:center;
  min-height:80px;
  color:#5d685f!important;
  border-right:0!important;
}

.hkbn-schedule-table-foot{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding:13px 15px;
  background:var(--paper-soft);
  border-top:1px solid var(--border);
  color:#69736b;
  font-size:13px;
}

.hkbn-schedule-link{
  color:#0f5a43!important;
  font-weight:850!important;
  text-decoration:underline!important;
  text-decoration-color:#c89b3c!important;
  text-decoration-thickness:2px!important;
  text-underline-offset:4px!important;
}

.hkbn-schedule-cards{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}

.hkbn-schedule-card{
  padding:18px;
  border:1px solid var(--border);
  background:#fff;
}

.hkbn-schedule-card strong{
  display:block;
  margin-bottom:8px;
  color:var(--green-dark);
  font-size:20px;
}

.hkbn-schedule-card p{
  margin:0 0 12px;
  color:#58625a;
  font-size:14px;
  line-height:1.6;
}

.hkbn-schedule-card--muted{
  background:#f6f3eb;
}

.hkbn-schedule-card--muted small{
  color:#7a837c;
  font-weight:750;
}

.hkbn-schedule-split{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  gap:28px;
  align-items:start;
}

.hkbn-schedule-copy p{
  margin:0 0 14px;
  color:#465149;
  line-height:1.8;
}

.hkbn-schedule-facts{
  border:1px solid var(--border);
  background:#fff;
}

.hkbn-schedule-fact{
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  border-bottom:1px solid var(--border);
}

.hkbn-schedule-fact:last-child{border-bottom:0}

.hkbn-schedule-fact strong,
.hkbn-schedule-fact span{
  padding:12px 14px;
}

.hkbn-schedule-fact strong{
  background:#eee7d6;
  color:var(--green-dark);
}

.hkbn-schedule-faq{
  display:grid;
  gap:10px;
}

.hkbn-schedule-faq details{
  border:1px solid var(--border);
  background:#fff;
}

.hkbn-schedule-faq summary{
  cursor:pointer;
  padding:14px 16px;
  color:var(--green-dark);
  font-weight:900;
}

.hkbn-schedule-faq details p{
  margin:0;
  padding:0 16px 16px;
  color:#4b564e;
  line-height:1.75;
}

@media(max-width:960px){
  .hkbn-schedule-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hkbn-schedule-split{grid-template-columns:1fr}
}

@media(max-width:760px){
  .hkbn-schedule-shell{width:min(100% - 28px,1180px)}
  .hkbn-schedule-hero{padding-top:40px}
  .hkbn-schedule-section{padding:34px 0}
  .hkbn-schedule-section-head{grid-template-columns:1fr}
  .hkbn-schedule-no{width:38px;height:38px}

  .hkbn-schedule-grid-head{display:none}

  .hkbn-schedule-table{
    overflow:visible;
  }

  .hkbn-schedule-row{
    grid-template-columns:78px minmax(0,1fr) 78px;
    min-height:0;
  }

  .hkbn-schedule-row > *{
    border-right:0;
    padding:9px 11px;
  }

  /* 日期與時間在手機端上下排列，避免和聯賽黏在同一行 */
  .hkbn-schedule-time{
    grid-column:1;
    grid-row:1 / span 3;
    display:flex!important;
    align-items:flex-start!important;
    justify-content:flex-start;
    flex-direction:column;
    border-right:1px solid var(--border)!important;
    background:#faf8f2;
    white-space:pre-line;
    line-height:1.45!important;
    font-size:13px!important;
  }

  .hkbn-schedule-comp{
    grid-column:2;
    grid-row:1;
    padding-bottom:2px!important;
    font-size:13px!important;
  }

  .hkbn-schedule-match{
    grid-column:2;
    grid-row:2;
    padding-top:3px!important;
    line-height:1.5!important;
  }

  .hkbn-schedule-round{
    grid-column:2;
    grid-row:3;
    padding-top:0!important;
    color:#6c756e!important;
  }

  .hkbn-schedule-status{
    grid-column:3;
    grid-row:1 / span 3;
    justify-content:flex-end;
    align-items:flex-start!important;
    border-left:1px solid var(--border);
    font-size:13px!important;
  }

  .hkbn-schedule-empty{
    grid-column:1/-1!important;
    grid-row:auto!important;
    border:0!important;
    background:#fff!important;
    white-space:normal!important;
  }
}

@media(max-width:520px){
  .hkbn-schedule-hub h1{font-size:40px}
  .hkbn-schedule-lead{font-size:16px}
  .hkbn-schedule-cards{grid-template-columns:1fr}
  .hkbn-schedule-tab,
  .hkbn-schedule-league{flex:1 1 auto}
  .hkbn-schedule-table-top{align-items:flex-start;flex-direction:column}

  .hkbn-schedule-row{
    grid-template-columns:72px minmax(0,1fr);
  }

  .hkbn-schedule-time{
    grid-column:1;
    grid-row:1 / span 4;
    white-space:pre-line;
  }

  .hkbn-schedule-comp{
    grid-column:2;
    grid-row:1;
  }

  .hkbn-schedule-match{
    grid-column:2;
    grid-row:2;
  }

  .hkbn-schedule-round{
    grid-column:2;
    grid-row:3;
  }

  .hkbn-schedule-status{
    grid-column:2;
    grid-row:4;
    justify-content:flex-start;
    align-items:center!important;
    border-left:0;
    padding-top:0!important;
  }
}
