/* =========================================
   GALERI 20 LOGO TIM
========================================= */

.filter-container,
.team-filter,
.group-filter,
.filter-row,
.filter-tabs,
.team-tabs {
  display: none !important;
}

.team-logo-grid {
  width: min(1200px, calc(100% - 24px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.tg-team-card {
  position: relative;
  min-width: 0;
  padding: 15px 15px 17px;
  overflow: hidden;

  border: 1px solid #285381;
  border-radius: 20px;

  color: #ffffff;
  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(52, 219, 255, 0.13),
      transparent 38%
    ),
    linear-gradient(
      150deg,
      #122747,
      #09172e
    );

  box-shadow:
    0 15px 28px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  cursor: pointer;
  appearance: none;
  text-align: center;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.tg-team-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;

  border-radius: inherit;

  background:
    linear-gradient(
      115deg,
      transparent 20%,
      rgba(67, 226, 255, 0.15) 42%,
      transparent 64%
    );

  transform: translateX(-120%);
  transition: transform 0.65s ease;
}

.tg-team-card:hover {
  transform: translateY(-6px);
  border-color: #42ddff;

  box-shadow:
    0 18px 35px rgba(0, 0, 0, 0.32),
    0 0 22px rgba(52, 213, 255, 0.18);
}

.tg-team-card:hover::before {
  transform: translateX(120%);
}

.tg-logo-frame {
  position: relative;
  z-index: 1;

  width: 100%;
  aspect-ratio: 1 / 1;

  margin-bottom: 14px;
  padding: 14px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #2a77a5;
  border-radius: 17px;

  background:
    radial-gradient(
      circle at center,
      rgba(44, 203, 255, 0.12),
      transparent 58%
    ),
    #07162b;

  box-shadow:
    inset 0 0 25px rgba(34, 184, 255, 0.06),
    0 0 14px rgba(34, 184, 255, 0.06);
}

.tg-logo-frame img {
  width: 100%;
  height: 100%;
  display: block;

  object-fit: contain;
  object-position: center;

  filter:
    drop-shadow(0 8px 12px rgba(0, 0, 0, 0.32));
}

.tg-logo-fallback {
  width: 88px;
  height: 88px;

  display: grid;
  place-items: center;

  border: 2px solid #42ddff;
  border-radius: 50%;

  color: #ffffff;
  background:
    radial-gradient(
      circle at 35% 28%,
      #284d84,
      #0c1b36 68%
    );

  font-size: 23px;
  font-weight: 1000;

  text-shadow:
    0 0 8px rgba(65, 221, 255, 0.65);

  box-shadow:
    0 0 18px rgba(65, 221, 255, 0.22),
    inset 0 0 14px rgba(65, 221, 255, 0.08);
}

.tg-logo-fallback[hidden] {
  display: none !important;
}

.tg-team-name {
  position: relative;
  z-index: 1;

  margin: 0;
  overflow: hidden;

  color: #ffffff;

  font-size: 16px;
  line-height: 1.25;
  font-weight: 1000;

  white-space: nowrap;
  text-overflow: ellipsis;

  text-shadow:
    0 0 7px rgba(57, 220, 255, 0.22);
}

.tg-team-hint {
  position: relative;
  z-index: 1;

  display: block;
  margin-top: 7px;

  color: #47ddff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.65px;
}

/* =========================================
   POPUP PEMAIN
========================================= */

.tg-modal {
  position: fixed;
  inset: 0;
  z-index: 30000;

  display: none;
  place-items: center;

  padding: 18px;

  background: rgba(1, 6, 18, 0.86);
  backdrop-filter: blur(9px);
}

.tg-modal.open {
  display: grid;
}

.tg-modal-card {
  position: relative;

  width: min(820px, 100%);
  max-height: calc(100vh - 34px);

  padding: 25px;
  overflow: auto;

  border: 1px solid #2d638e;
  border-radius: 24px;

  color: #ffffff;

  background:
    radial-gradient(
      circle at 80% 0%,
      rgba(56, 218, 255, 0.13),
      transparent 36%
    ),
    linear-gradient(
      145deg,
      #112542,
      #071326
    );

  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.62),
    0 0 25px rgba(48, 203, 255, 0.12);
}

.tg-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;

  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 1px solid #35658c;
  border-radius: 12px;

  color: #ffffff;
  background: #142a49;

  font-size: 25px;
  cursor: pointer;
}

.tg-modal-header {
  display: flex;
  align-items: center;
  gap: 18px;

  padding-right: 46px;
  padding-bottom: 20px;
  margin-bottom: 18px;

  border-bottom: 1px solid rgba(65, 188, 255, 0.20);
}

.tg-modal-logo {
  width: 105px;
  height: 105px;
  min-width: 105px;

  padding: 10px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #2a77a5;
  border-radius: 18px;

  background: #07162b;
}

.tg-modal-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tg-modal-logo .tg-logo-fallback {
  width: 70px;
  height: 70px;
  font-size: 19px;
}

.tg-modal-copy span {
  color: #43dfff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.tg-modal-copy h2 {
  margin: 6px 0 0;

  color: #ffffff;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.1;
  font-weight: 1000;

  text-shadow:
    0 0 10px rgba(57, 220, 255, 0.24);
}

.tg-player-list {
  display: grid;
  gap: 10px;
}

.tg-player-row {
  display: grid;
  grid-template-columns:
    42px
    minmax(140px, 1.2fr)
    minmax(130px, 1fr)
    minmax(100px, 0.8fr);

  align-items: center;
  gap: 12px;

  padding: 12px 14px;

  border: 1px solid rgba(52, 126, 182, 0.42);
  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      rgba(13, 34, 63, 0.96),
      rgba(8, 23, 45, 0.98)
    );
}

.tg-player-number {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border: 1px solid #2b8ab2;
  border-radius: 10px;

  color: #48e1ff;
  background: #07182e;

  font-size: 12px;
  font-weight: 1000;
}

.tg-player-field small {
  display: block;
  margin-bottom: 3px;

  color: #7f9ab9;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.tg-player-field strong {
  display: block;

  overflow: hidden;

  color: #ffffff;
  font-size: 13px;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.tg-role {
  min-height: 34px;
  padding: 0 11px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #2a759c;
  border-radius: 999px;

  color: #43e1ff;
  background: rgba(9, 41, 68, 0.86);

  font-size: 10px;
  font-weight: 1000;
  text-align: center;
}

@media (max-width: 1000px) {
  .team-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .team-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .tg-team-card {
    padding: 11px 11px 14px;
  }

  .tg-player-row {
    grid-template-columns:
      38px
      minmax(0, 1fr)
      minmax(0, 1fr);
  }

  .tg-role {
    grid-column: 2 / 4;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .team-logo-grid {
    width: calc(100% - 18px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .tg-team-name {
    font-size: 13px;
  }

  .tg-team-hint {
    font-size: 8px;
  }

  .tg-modal-card {
    padding: 20px 13px 15px;
    border-radius: 19px;
  }

  .tg-modal-header {
    gap: 12px;
    padding-right: 36px;
  }

  .tg-modal-logo {
    width: 78px;
    height: 78px;
    min-width: 78px;
  }

  .tg-player-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
  }

  .tg-player-field:nth-child(3),
  .tg-role {
    grid-column: 2;
  }
}
/* ===== HAPUS PETUNJUK KLIK ===== */

.tg-team-hint {
  display: none !important;
}

.tg-team-name {
  margin-bottom: 3px !important;
}

/* ===== END HAPUS PETUNJUK KLIK ===== */