/* ============================================================
   GTL Frontend – Tier-List Anzeige
   ============================================================ */

.gtl-frontend {
  margin: 20px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gtl-loading,
.gtl-empty,
.gtl-error {
  text-align: center;
  padding: 40px;
  opacity: .7;
  font-size: 15px;
}

/* Tier-Tabelle */
.gtl-frontend-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 12px;
  overflow: hidden;
}

.gtl-frontend-row {
  display: flex;
  min-height: 100px;
}

/* Tier-Label */
.gtl-frontend-label {
  width: 160px;
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 10px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
}

/* Games im Tier */
.gtl-frontend-games {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0,0,0,.04);
  align-content: flex-start;
  min-height: 100px;
}

/* Game Card */
.gtl-frontend-card {
  width: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  transition: transform .15s, box-shadow .15s;
}
.gtl-frontend-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}
.gtl-frontend-card--unranked { opacity: .6; }

.gtl-frontend-thumb {
  width: 100%;
  height: 64px;
  object-fit: cover;
  display: block;
}
.gtl-frontend-thumb--placeholder {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: #eee;
}

.gtl-frontend-title {
  padding: 5px 6px 6px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
  color: #888;
}

/* Unranked */
.gtl-frontend-unranked {
  margin-top: 28px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.12);
}

.gtl-frontend-unranked-title {
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  background: rgba(0,0,0,.05);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* Responsive */
@media (max-width: 600px) {
  .gtl-frontend-label {
    width: 110px;
    min-width: 110px;
    font-size: 11px;
  }
  .gtl-frontend-card { width: 72px; }
  .gtl-frontend-thumb,
  .gtl-frontend-thumb--placeholder { height: 52px; }
  .gtl-frontend-title { font-size: 9.5px; }
}
