.scores-panel.hidden {
  display: none;
}

.tab-active {
  background: rgba(88, 28, 135, 0.35);
  color: #fff;
  border-color: rgba(168, 85, 247, 0.55);
}

button.tab-active {
  font-weight: 600;
}

/* --- Layout: sidebar + konten --- */
.scores-layout__grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 1024px) {
  .scores-layout__grid {
    grid-template-columns: minmax(15.5rem, 17.5rem) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
}

.scores-sidebar__panel {
  border-radius: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background: linear-gradient(
    165deg,
    rgba(15, 23, 42, 0.72) 0%,
    rgba(0, 0, 0, 0.5) 45%,
    rgba(30, 27, 75, 0.38) 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 36px rgba(124, 58, 237, 0.12);
  padding: 1rem 0.9rem 1.1rem;
}

@media (min-width: 768px) {
  .scores-sidebar__panel {
    padding: 1.15rem 1.05rem 1.25rem;
  }
}

@media (min-width: 1024px) {
  .scores-sidebar {
    position: sticky;
    top: 5.5rem;
  }
}

/* Cari */
.scores-sidebar__search-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.scores-sidebar__search-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  opacity: 0.45;
  pointer-events: none;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.65)' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z'/%3E%3C/svg%3E");
}

.scores-sidebar__search {
  width: 100%;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.8125rem;
  padding: 0.55rem 0.65rem 0.55rem 2.25rem;
  outline: none;
}

.scores-sidebar__search::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.scores-sidebar__search:focus {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.2);
}

/* Section TIM / Kompetisi */
.scores-filter-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.65rem;
  margin-top: 0.65rem;
}

.scores-filter-section:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.scores-filter-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
  padding: 0.35rem 0;
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: rgba(255, 255, 255, 0.88);
}

.scores-filter-section__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scores-filter-chevron {
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid rgba(255, 255, 255, 0.45);
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-right: 0.2rem;
}

.scores-filter-section:not(.scores-filter-section--open) .scores-filter-chevron {
  transform: rotate(45deg);
}

.scores-filter-section:not(.scores-filter-section--open) .scores-filter-section__body {
  display: none;
}

.scores-filter-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.55rem;
  max-height: 16rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.scores-filter-list::-webkit-scrollbar {
  width: 4px;
}
.scores-filter-list::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.35);
  border-radius: 4px;
}

.scores-filter-empty {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.38);
  margin: 0.25rem 0;
}

.scores-filter-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.scores-filter-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(88, 28, 135, 0.12);
}

.scores-filter-card.is-active {
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(124, 58, 237, 0.18);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.15);
}

.scores-filter-card__logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.35rem;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.scores-filter-card__logo--round {
  border-radius: 999px;
}

.scores-filter-card__logo--ph {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.scores-filter-card__text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.scores-filter-card__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scores-filter-card__sub {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scores-sidebar__hint {
  margin: 0.75rem 0 0;
  font-size: 0.6875rem;
  color: rgba(34, 211, 238, 0.75);
  line-height: 1.35;
}

.scores-filter-card.scores-filter-card--hidden {
  display: none;
}
