/* ============================================================
   Schedule page — schedule.css  (multi-column day blocks)
   ============================================================ */

.sch-shell {
  width: min(1300px, calc(100% - 48px));
  margin: 40px auto 72px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #142942;
}

/* ── Controls panel ── */
.sch-controls {
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px 18px;
  box-shadow: 0 4px 20px rgba(20,41,66,.09);
  border: 1px solid rgba(20,41,66,.07);
  margin-bottom: 24px;
}

/* Timezone row */
.sch-tz-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8ecf2;
}
.sch-tz-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sch-tz-select-wrap { position: relative; }
.sch-tz-select {
  appearance: none;
  -webkit-appearance: none;
  background: #f4f6fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 9px center;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  padding: 6px 28px 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #142942;
  cursor: pointer;
  min-width: 200px;
  transition: border-color .15s;
}
.sch-tz-select:focus {
  outline: none;
  border-color: #9c824a;
  box-shadow: 0 0 0 3px rgba(156,130,74,.14);
}
.sch-tz-current {
  font-size: 12px;
  color: #9c824a;
  font-weight: 700;
  font-style: italic;
}

/* Filter row */
.sch-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: flex-start;
}
.sch-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sch-filter-label {
  font-size: 10px;
  font-weight: 800;
  color: #9b9ea6;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.sch-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.sch-btn {
  background: #f0f2f5;
  border: 1.5px solid transparent;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
  line-height: 1.3;
}
.sch-btn:hover { background: #e4e8f0; color: #142942; }
.sch-btn--active { background: #202552; border-color: #202552; color: #fff; }
.sch-btn--active:hover { background: #1a1f44; color: #fff; }

.sch-count {
  margin: 12px 0 0 !important;
  font-size: 12px !important;
  color: #9b9ea6 !important;
  font-weight: 600 !important;
}

/* ── Match list — 3-column grid of day blocks ── */
.sch-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;  /* each col aligns to top so blocks stack independently */
}

/* ── Day block ── */
.sch-day-block {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e0e5ef;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(20,41,66,.06);
  break-inside: avoid;
}

/* Day header */
.sch-day-header {
  background: #202552;
  color: #fff;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.sch-day-header--knockout {
  background: #9c824a;
}
.sch-day-header-right {
  font-size: 10px;
  font-weight: 600;
  opacity: .75;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

/* Matches inside a day block */
.sch-day-matches {
  padding: 2px 0;
}

/* Each match row */
.sch-row {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  align-items: center;
  gap: 0 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #f0f3f8;
  transition: background .1s;
  box-sizing: border-box;
}
.sch-row:last-child { border-bottom: none; }
.sch-row:hover { background: #f7f9fc; }
.sch-row--live { background: #fff8f8 !important; }

/* Time */
.sch-row-time {
  font-size: 13px;
  font-weight: 900;
  color: #202552;
  white-space: nowrap;
  letter-spacing: -.01em;
  line-height: 1;
}
.sch-row-time--live {
  color: #dc2626;
  display: flex;
  align-items: center;
  gap: 3px;
}
.sch-live-dot {
  width: 6px;
  height: 6px;
  background: #dc2626;
  border-radius: 50%;
  flex-shrink: 0;
  animation: sch-pulse 1.2s infinite;
}
@keyframes sch-pulse {
  0%,100%{opacity:1} 50%{opacity:.3}
}

/* Teams */
.sch-row-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0 8px;
  min-width: 0;
}
.sch-row-team {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.sch-row-team:last-child {
  justify-content: flex-start;
}
.sch-row-name {
  font-size: 12px;
  font-weight: 700;
  color: #142942;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sch-row-name--tbd {
  color: #9b9ea6;
  font-weight: 500;
  font-size: 11px;
}
.sch-row-vs {
  font-size: 10px;
  font-weight: 700;
  color: #c0c4cc;
  text-align: center;
}
.sch-row--finished { background: #f9fafb; }
.sch-row-score {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
}
.sch-score-num { min-width: 16px; text-align: center; }
.sch-score-num.sch-score--winner { color: #166534; }
.sch-score-sep { color: #94a3b8; font-size: 13px; }
.sch-row-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.sch-row-flag-ph {
  width: 20px;
  height: 14px;
  background: #e8ecf3;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Right meta (badge + city) */
.sch-row-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.sch-row-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 5px;
  border-radius: 3px;
  line-height: 1.4;
  white-space: nowrap;
}
.sch-row-badge--group {
  background: rgba(156,130,74,.12);
  color: #7a6438;
}
.sch-row-badge--ko {
  background: rgba(32,37,82,.10);
  color: #202552;
}
.sch-row-venue {
  font-size: 10px;
  color: #9b9ea6;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

/* Empty */
.sch-empty {
  grid-column: 1 / -1;
  text-align: center !important;
  padding: 40px 0 !important;
  color: #9b9ea6 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .sch-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .sch-list { grid-template-columns: 1fr; }
  .sch-shell { width: calc(100% - 24px); margin: 24px auto 48px; }
  .sch-controls { padding: 14px 14px 12px; }
  .sch-btn { font-size: 11px; padding: 3px 7px; }
  .sch-tz-select { min-width: 160px; }
}
@media (max-width: 420px) {
  .sch-row { grid-template-columns: 60px 1fr; }
  .sch-row-meta { display: none; }
  .sch-row-flag { width: 18px; height: 12px; }
}
