/* ===== CSS Custom Properties ===== */
:root {
  --rl-primary: #dc0000;
  --rl-primary-soft: rgba(220, 0, 0, 0.08);
  --rl-primary-light: #fff0f0;
}

/* ===== Utility ===== */
.boldClass {
  font-weight: bold;
}
.bottomSpacing {
  margin-bottom: 10px;
}

/* ===== Page Container ===== */
.schedulePageWrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.35;
  padding-top: 65px;
}

/* ===== Header Row ===== */
.scheduleHeaderRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.schedulePageTitle {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #111;
  text-align: left;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.scheduleControls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.scheduleSelect,
.scheduleSearchInput {
  height: 44px;
  padding: 0 12px;
  font-size: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #333;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
.scheduleSelect {
  min-width: 160px;
  padding-right: 36px;
  cursor: pointer;
  font-weight: 600;
  color: #111;
  border-color: #bbb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.scheduleSelect:hover {
  border-color: var(--rl-primary);
  color: var(--rl-primary);
}
.scheduleSearchInput {
  min-width: 200px;
}
.scheduleSelect:focus,
.scheduleSearchInput:focus {
  border-color: var(--rl-primary);
}

/* ========================================
   STATUS BADGES
   ======================================== */
.statusBadge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 20px;
  line-height: 1.4;
}
.statusFinal {
  background: var(--rl-primary-light);
  color: var(--rl-primary);
}
.statusToday {
  background: #e6f4ea;
  color: #1a7f37;
}
.statusUpcoming {
  background: #f0f0f0;
  color: #888;
  border: 1px solid #e0e0e0;
}
.statusBye {
  background: #f5f5f5;
  color: #999;
}

/* ========================================
   DESKTOP TABLE
   ======================================== */
.scheduleTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #333;
}
.scheduleTable thead th {
  text-align: left;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  border-bottom: 2px solid #e8e8e8;
}
.scheduleTable tbody td {
  text-align: left;
  padding: 16px 16px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.scheduleTable .gameRow {
  transition: background 0.12s, box-shadow 0.12s;
}
.scheduleTable .gameRow:hover {
  background: #fafafa;
  box-shadow: inset 3px 0 0 var(--rl-primary);
}
.scheduleTable a {
  color: inherit;
  text-decoration: none;
}

/* Team cells (desktop) */
.scheduleTable .teamCell {
  font-weight: 600;
  color: #222;
}
.scheduleTable .teamCell a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Team names — default (upcoming / no score) */
.scheduleTable .teamName {
  font-weight: 600;
  font-size: 14px;
  color: #222;
}

/* In a scored game: loser is muted by default */
.scheduleTable .gameRow.hasScore .teamName {
  color: #999;
  font-weight: 500;
}
/* Winner name: dark and bold */
.scheduleTable .gameRow.hasScore .teamName.winnerScore {
  color: #111;
  font-weight: 700;
}

/* Score — default muted */
.scheduleTable .teamScore {
  font-weight: 600;
  font-size: 17px;
  color: #aaa;
  min-width: 24px;
  text-align: right;
  letter-spacing: -0.02em;
}
/* Winning score: red + bold */
.scheduleTable .teamScore.winnerScore {
  font-weight: 800;
  font-size: 18px;
  color: var(--rl-primary);
}

/* Date and Time cells (desktop) */
.scheduleTable .gameRow td[data-label="Date"],
.scheduleTable .gameRow td[data-label="Time"] {
  font-weight: 600;
  color: #444;
}

/* VS column (desktop) */
.vsColHeader {
  width: 32px;
}
.vsCell {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 32px;
}

/* Week header rows (desktop) */
.weekHeaderCell {
  background: #f4f4f4;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  padding: 12px 16px !important;
  border-bottom: 1px solid #e8e8e8;
  border-top: none;
}
.scheduleTable .weekRow td {
  padding-top: 32px;
}
.scheduleTable tbody tr.weekRow:first-child td {
  padding-top: 8px;
}

/* ========================================
   MOBILE — NBA-STYLE GAME BLOCKS
   ======================================== */
.scheduleMobileWrap {
  display: none;
}

/* Week headers (mobile) */
.mobileWeekHeader {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  background: #f4f4f4;
  padding: 12px 16px;
  margin-top: 28px;
  margin-bottom: 10px;
  border-radius: 8px;
}
.mobileWeekHeader:first-child {
  margin-top: 0;
}

/* Game block shell */
.gameBlock {
  border: 1px solid #ebebeb;
  border-left: 3px solid var(--rl-primary);
  border-radius: 12px;
  padding: 0;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gameBlock:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Game block link wrapper */
.gameBlockLink {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 16px 20px 10px 20px;
}
.gameBlockLink:hover {
  background: #fafafa;
}
.gameBlockLink:active {
  background: #f5f5f5;
}

/* Each team line */
.gameBlockLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
}
.gameBlock > .gameBlockLine {
  padding: 5px 20px;
}
.gameBlock > .gameBlockLine:first-child {
  padding-top: 16px;
}

/* Team name — default muted (loser in scored game) */
.gbTeam {
  font-weight: 600;
  font-size: 15px;
  color: #bbb;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
/* Upcoming game: no winner, all teams normal */
.gameBlock:not(.hasScore) .gbTeam {
  color: #222;
  font-weight: 600;
}
/* Winner name */
.gbTeam.winnerScore {
  font-weight: 700;
  color: #111;
}

/* Score — default muted */
.gbScore {
  font-weight: 600;
  font-size: 26px;
  color: #ccc;
  letter-spacing: -0.02em;
  line-height: 1;
  min-width: 38px;
  text-align: right;
}
/* Winning score: red + bold */
.gbScore.winnerScore {
  font-weight: 800;
  color: var(--rl-primary);
}

/* VS divider for upcoming games */
.gameBlockVs {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #ccc;
  letter-spacing: 0.12em;
  padding: 2px 20px;
}

/* Footer: status badge + meta */
.gameBlockFooter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 16px 20px;
}
.gameBlockMeta {
  font-size: 12px;
  font-weight: 500;
  color: #888;
  letter-spacing: 0.02em;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (min-width: 768px) {
  .scheduleTableWrap {
    display: block;
  }
  .scheduleMobileWrap {
    display: none !important;
  }
}
@media (max-width: 767px) {
  .scheduleTableWrap {
    display: none;
  }
  .scheduleMobileWrap {
    display: block !important;
  }

  .scheduleHeaderRow {
    flex-direction: column;
    align-items: stretch;
  }
  .schedulePageTitle {
    font-size: 22px;
  }
  .scheduleControls {
    flex-direction: column;
  }
  .scheduleSelect,
  .scheduleSearchInput {
    width: 100%;
  }
}
