/* ─── screen-st.css – Statistik-Screen ───────────────────────────────────────── */

/* ─── Header ─────────────────────────────────────────────────────────────────── */
.st-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #0d0d0d;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 10;
}

.st-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFD700;
  margin: 0;
  flex: 1;
  letter-spacing: 0.04em;
}

.st-season-badge {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}

/* ─── Liga-Tabs ───────────────────────────────────────────────────────────────── */
.st-liga-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #333;
  overflow-x: auto;
  scrollbar-width: none;
}

.st-liga-tabs::-webkit-scrollbar { display: none; }

.st-liga-tab {
  background: transparent;
  color: #888;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -2px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.st-liga-tab:hover { color: #ccc; }

.st-liga-tab.active {
  color: #FFD700;
  border-bottom-color: #FFD700;
}

/* Punkt-Marker: zeigt welche Liga der Spieler ist */
.st-player-liga-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFD700;
  flex-shrink: 0;
}

/* ─── Ligatabelle ─────────────────────────────────────────────────────────────── */
.st-liga-content {
  padding: 12px 16px;
}

.st-sim-note {
  background: #1a1209;
  border: 1px solid #4a3800;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
  line-height: 1.5;
}

.st-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.st-table thead th {
  background: #1a1a1a;
  color: #888;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #333;
}

.st-table tbody tr {
  border-bottom: 1px solid #1e1e1e;
  transition: background 0.1s;
}

.st-table tbody tr:hover { background: #1a1a1a; }

.st-table td {
  padding: 9px 10px;
  color: #ccc;
  vertical-align: middle;
}

/* Spieler-Zeile */
.st-player-row {
  background: #151510 !important;
}

.st-player-row td { color: #FFD700 !important; }

/* Rang-Zelle */
.st-rank {
  width: 36px;
  text-align: center;
  font-size: 15px;
  color: #888;
}

.st-pts-h {
  text-align: right;
}

/* Punkte-Zelle */
.st-pts {
  text-align: right;
  font-weight: bold;
  color: #fff;
}

.st-player-row .st-pts { color: #FFD700; }

/* Flaggen-Zelle */
.st-team-nat {
  width: 30px;
  text-align: center;
}

.st-flag {
  width: 22px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
}

/* Team-Namen-Zelle */
.st-team-name {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ▶ Pfeil vor Spieler-Team */
.st-you-marker {
  color: #FFD700;
  font-size: 11px;
  flex-shrink: 0;
}

/* „Du"-Badge */
.st-you-tag {
  background: #FFD700;
  color: #000;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

/* ─── Saisonkalender ──────────────────────────────────────────────────────────── */
.st-calendar-section {
  padding: 16px;
  border-top: 1px solid #222;
}

.st-section-title {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.st-calendar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.st-cal-row {
  display: grid;
  grid-template-columns: 56px 1fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}

/* Abgeschlossene Events */
.st-cal-done {
  background: #111;
  color: #ccc;
}

/* Aktuelles Event */
.st-cal-current {
  background: #1a1a10;
  border: 1px solid #FFD700;
  color: #FFD700;
}

/* Zukünftige Events */
.st-cal-future {
  background: #0d0d0d;
  color: #444;
}

.st-cal-num {
  font-size: 11px;
  color: inherit;
  white-space: nowrap;
  opacity: 0.7;
}

.st-cal-current .st-cal-num { opacity: 1; }

.st-cal-location {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-cal-winner {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
  text-align: right;
}

.st-flag-sm {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 1px;
  flex-shrink: 0;
}

/* Sieger-Name, wenn Spieler gewonnen hat */
.st-cal-player-win {
  color: #FFD700;
  font-weight: bold;
}

/* Nächstes Event Hinweis */
.st-cal-next {
  color: #FFD700;
  font-size: 12px;
}

/* Pending-Platzhalter */
.st-cal-pending {
  color: #333;
}
