/* ===============================
   FIXTURE PAGE LAYOUT — 2Babak.com
   Struktur body utama (judul, filter, sidebar, match list)
=============================== */

main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 25px;
}

/* ===============================
   SECTION JUDUL
=============================== */
section.content h2 {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* ===============================
   FILTER BAR
=============================== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111720;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.filter-bar label {
  color: #ccc;
  font-size: 14px;
  font-weight: 500;
}

.filter-bar input[type="text"] {
  background: #0c1018;
  border: 1px solid #1e2432;
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  outline: none;
  min-width: 160px;
  font-size: 14px;
}

.filter-bar input::placeholder {
  color: #666;
}

.filter-bar button {
  background: #00ff88;
  border: none;
  color: #0b0f17;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-bar button:hover {
  background: #48ffb3;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

/* ===============================
   WRAPPER FIXTURES
=============================== */
.fixtures-wrapper {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* ===============================
   SIDEBAR LIGA (KIRI)
=============================== */
.sidebar-leagues {
  width: 260px;
  background: #0f141d;
  border: 1px solid #1e2432;
  border-radius: 10px;
  padding: 12px;
  overflow-y: auto;
  max-height: 75vh;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
}

.sidebar-leagues::-webkit-scrollbar {
  width: 6px;
}
.sidebar-leagues::-webkit-scrollbar-thumb {
  background: #222b38;
  border-radius: 5px;
}

.league-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.league-item:hover {
  background: #1a222f;
}

.league-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #161d27;
  border-radius: 10px;
  padding: 6px;
}

.league-item span {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.league-item small {
  color: #aaa;
  font-size: 12px;
}

/* ===============================
   MATCH CONTAINER (KANAN)
=============================== */
.match-container {
  flex: 1;
  background: #0f141d;
  border: 1px solid #1e2432;
  border-radius: 10px;
  padding: 6px 10px;
  overflow-y: auto;
  max-height: 75vh;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.35);
}

/* ===============================
   SETIAP BARIS PERTANDINGAN
=============================== */
.fixture {
  display: grid;
  grid-template-columns: 1fr 60px 1fr 80px; /* kiri | skor | kanan | status */
  align-items: center;
  gap: 10px;
  background: #161b25;
  border: 1px solid #1f2634;
  border-radius: 8px;
  padding: 5px 12px;
  margin-bottom: 5px;
  transition: all 0.2s ease;
}
.fixture:hover {
  background: #1a2030;
  transform: scale(1.01);
}

/* ===============================
   TIM KIRI & KANAN
=============================== */
.fixture .team {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}
.fixture .team img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  flex-shrink: 0;
}
.fixture .team span {
  font-size: 13px;
  font-weight: 500;
  color: #e6edf3;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* ===============================
   SKOR
=============================== */
.fixture .score {
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: #00ff88;
  letter-spacing: 0.5px;
}

/* ===============================
   STATUS
=============================== */
.fixture .status {
  text-align: right;
  font-size: 12px;
  font-weight: 500;
  color: #8b949e;
}
.fixture .status .live {
  color: #f85149;
  font-weight: 600;
}

/* ===============================
   SCROLLBAR
=============================== */
.match-container::-webkit-scrollbar {
  width: 5px;
}
.match-container::-webkit-scrollbar-thumb {
  background: #232a38;
  border-radius: 4px;
}
.match-container::-webkit-scrollbar-thumb:hover {
  background: #2d3546;
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 960px) {
  .fixtures-wrapper {
    flex-direction: column;
  }

  .sidebar-leagues {
    width: 100%;
    max-height: 260px;
    display: flex;
    flex-wrap: wrap;
    overflow-x: auto;
  }

  .league-item {
    width: 48%;
    margin-bottom: 10px;
  }

  .match-container {
    max-height: unset;
  }
}
