.match-date-input {
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.75rem;
  line-height: 1.25;
  min-height: 2.25rem;
  color-scheme: dark;
}
.match-date-input:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.25);
}

.date-scroller::-webkit-scrollbar {
  height: 4px;
}
.date-scroller::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.4);
  border-radius: 4px;
}

/* --- Sidebar Pilih Liga (Team Match) --- */
.league-picker-box {
  border-radius: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background: linear-gradient(
    165deg,
    rgba(15, 23, 42, 0.65) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(30, 27, 75, 0.35) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 8px 40px rgba(124, 58, 237, 0.12);
  padding: 1rem 1.1rem 1.15rem;
}

@media (min-width: 768px) {
  .league-picker-box {
    padding: 1.2rem 1.25rem 1.35rem;
  }
}

.league-picker-box__title {
  margin: 0 0 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Kotak panel (populer & jadwal) --- */
.tm-popular-section,
.tm-schedule-section {
  margin-bottom: 2.5rem;
}

.tm-popular-box,
.tm-schedule-box {
  border-radius: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background: linear-gradient(
    165deg,
    rgba(15, 23, 42, 0.65) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(30, 27, 75, 0.35) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 8px 40px rgba(124, 58, 237, 0.12);
  padding: 1.15rem 1.2rem 1.25rem;
}

@media (min-width: 768px) {
  .tm-popular-box,
  .tm-schedule-box {
    padding: 1.35rem 1.5rem 1.5rem;
  }
}

.tm-popular-box-head,
.tm-schedule-box-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tm-schedule-scroll {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

.tm-table-league-logo {
  width: 1.375rem;
  height: 1.375rem;
  object-fit: contain;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.tm-league-cell {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.tm-league-code {
  display: inline-block;
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.55rem;
  border-radius: 0.375rem;
  background: rgba(168, 85, 247, 0.12);
  color: rgba(233, 213, 255, 0.95);
  border: 1px solid rgba(168, 85, 247, 0.28);
  line-height: 1.2;
}

/* Jadwal: satu baris per pertandingan, logo + nama tidak wrap */
.tm-schedule-th-matchup,
.tm-schedule-td-matchup {
  min-width: 16rem;
}

@media (min-width: 1024px) {
  .tm-schedule-th-matchup,
  .tm-schedule-td-matchup {
    min-width: 20rem;
  }
}

.tm-schedule-matchup {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  min-width: 0;
  width: 100%;
  max-width: 28rem;
}

.tm-schedule-cluster {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1 1 0;
}

.tm-schedule-cluster--home {
  justify-content: flex-start;
}

.tm-schedule-cluster--away {
  justify-content: flex-end;
}

.tm-schedule-team-ic {
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 0.375rem;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.tm-schedule-team-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-schedule-vs {
  flex: 0 0 auto;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.38);
  padding: 0 0.1rem;
  line-height: 1;
  text-transform: lowercase;
}

.tm-schedule-tr td {
  vertical-align: middle;
}

.tm-schedule-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  padding: 1.75rem 1rem;
  text-align: center;
  border-radius: 0.75rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.tm-status-pill {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tm-status-pill--live {
  color: rgba(167, 243, 208, 0.95);
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}
.tm-status-pill--upcoming {
  color: rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.tm-status-pill--finished {
  color: rgba(199, 210, 254, 0.88);
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(129, 140, 248, 0.3);
}

.tm-popular-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  padding: 1.75rem 1rem;
  text-align: center;
  border-radius: 0.75rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

/* --- Pertandingan populer: daftar kartu di dalam kotak --- */
.tm-popular-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tm-pop-card {
  border-radius: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  padding: 1rem 1.1rem;
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.12);
}

.tm-pop-card-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}

.tm-pop-home {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1 1 220px;
  min-width: 0;
}

.tm-pop-home-logo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.tm-pop-home-logo--ph {
  display: block;
}

.tm-pop-home-text {
  min-width: 0;
  padding-top: 0.125rem;
}

.tm-pop-home-name {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.875rem;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .tm-pop-home-logo {
    width: 4rem;
    height: 4rem;
  }
  .tm-pop-home-name {
    font-size: 1rem;
  }
}

.tm-pop-home-meta {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

.tm-pop-home-time {
  margin-top: 0.2rem;
  font-family: ui-monospace, monospace;
  color: rgba(216, 180, 254, 0.95);
}

.tm-pop-meta {
  flex: 1 1 160px;
  min-width: 0;
  padding-left: 0;
  border-left: none;
}

.tm-pop-meta-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.25rem;
}

.tm-pop-meta-league {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tm-pop-league-logo {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  border-radius: 0.25rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.tm-pop-league-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-pop-meta-sublabel {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.2rem;
}

.tm-pop-meta-away {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tm-pop-away-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
}

.tm-pop-away-logo--ph {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.tm-pop-away-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-pop-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  flex: 1 1 200px;
  min-width: min(12rem, 100%);
}

.tm-pop-actions-time {
  text-align: left;
}

.tm-pop-kick-display {
  font-family: ui-monospace, monospace;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.tm-pop-live-line {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(52, 211, 153, 0.95);
}

.tm-pop-live-dot {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: rgb(52, 211, 153);
  margin-right: 0.35rem;
  vertical-align: middle;
  animation: tm-pulse 1.5s ease-in-out infinite;
}

@keyframes tm-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.tm-pop-score-live,
.tm-pop-score-fin {
  margin-top: 0.2rem;
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  font-weight: 700;
}

.tm-pop-score-fin {
  color: rgba(207, 250, 254, 0.92);
}

.tm-pop-score-live {
  color: rgba(255, 255, 255, 0.95);
}

.tm-pop-status-tag {
  margin-top: 0.25rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.tm-pop-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

@media (min-width: 640px) {
  .tm-pop-actions {
    align-items: flex-end;
  }
  .tm-pop-actions-time {
    text-align: right;
  }
  .tm-pop-btn-row {
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  .tm-pop-card-grid {
    flex-wrap: nowrap;
    gap: 1.5rem;
  }
  .tm-pop-meta {
    flex: 1 1 24%;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
  }
  .tm-pop-actions {
    flex: 0 1 auto;
    min-width: 11rem;
    max-width: 15rem;
  }
}

.tm-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.tm-pill-btn--pred {
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(34, 211, 238, 0.35);
  color: rgb(207, 250, 254);
}
.tm-pill-btn--pred:hover {
  background: rgba(6, 182, 212, 0.28);
}
.tm-pill-btn--live {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(59, 130, 246, 0.35));
  border-color: rgba(167, 139, 250, 0.5);
  color: #fff;
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.25);
  gap: 0.35rem;
}
.tm-pill-btn--live:hover {
  filter: brightness(1.06);
}

.tm-title-glow {
  text-shadow:
    0 0 24px rgba(34, 211, 238, 0.25),
    0 0 48px rgba(124, 58, 237, 0.15);
}

.tm-play-ic {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.92);
}
.tm-play-ic--sm {
  border-width: 4px 0 4px 6px;
}

.tm-schedule-table-min {
  min-width: 52rem;
}

@media (min-width: 1200px) {
  .tm-schedule-table-min {
    min-width: 56rem;
  }
}

.tm-schedule-table .tm-table-pred {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: rgb(207, 250, 254);
  text-decoration: none;
}
.tm-schedule-table .tm-table-pred:hover {
  background: rgba(6, 182, 212, 0.28);
}
.tm-schedule-table .tm-table-live {
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(167, 139, 250, 0.45);
  color: #fff;
  text-decoration: none;
}
.tm-schedule-table .tm-table-live:hover {
  background: rgba(124, 58, 237, 0.38);
}
