
/* ─── MATCHDAY HEADER ──────────────────────────── */

.matchdayHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 18px 4px 8px;
  border-bottom: 1px solid #222;
  margin-bottom: 10px;
}

.badge-playoff {
  background: var(--gold);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}


/* ─── MATCH META (Datum + Zeit) ────────────────── */

.matchMeta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: var(--grey);
  font-size: 13px;
  margin-top: 6px;
}


/* ─── LIVE SCORE ───────────────────────────────── */

.liveScore {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 32px;
  font-weight: 700;
  margin: 14px 0 4px;
}

.liveScore.isLive span:not(.scoreDivider) {
  color: var(--gold);
}

.scoreDivider {
  color: var(--grey);
}


/* ─── LIVE / FT BADGES ─────────────────────────── */

.liveTag {
  background: #ff4d4f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  animation: pulse 1s ease-in-out infinite;
}

.doneTag {
  background: #333;
  color: var(--grey-light);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}


/* ─── LIVE MATCH CARD ──────────────────────────── */

.matchCard--live {
  border-color: rgba(255, 77, 79, 0.4);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6), 0 0 15px rgba(255,77,79,0.15);
}


/* ─── LOADING / ERROR / EMPTY STATES ──────────── */

.loadingSpinner {
  text-align: center;
  padding: 40px 20px;
  color: var(--grey);
  font-size: 15px;
  animation: pulse 1.4s ease-in-out infinite;
}

.errorState {
  background: rgba(255, 77, 79, 0.1);
  border: 1px solid rgba(255, 77, 79, 0.3);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  color: #ff6b6b;
  font-size: 14px;
}

.emptyState {
  text-align: center;
  padding: 40px 20px;
  color: var(--grey);
  font-size: 14px;
}


/* ─── SCORE INPUT – REDESIGN ───────────────────── */

/* Spinner-Pfeile (number input) komplett ausblenden */
.scoreInput input::-webkit-outer-spin-button,
.scoreInput input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.scoreInput input[type=number] {
  -moz-appearance: textfield;
}

/* Container */
.scoreInput {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

/* Die beiden Felder */
.scoreInput input {
  width: 64px;
  height: 64px;
  background: #111;
  border: 2px solid #2a2a2a;
  border-radius: 16px;
  color: #fff;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: text;
}

.scoreInput input::placeholder {
  color: #333;
  font-size: 22px;
}

.scoreInput input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
  background: #181818;
}

/* Trennzeichen */
.scoreInput span {
  font-size: 28px;
  font-weight: 300;
  color: #444;
  line-height: 1;
  user-select: none;
}

/* Save-Button – kompakter */
.saveBtn {
  width: 100%;
  height: 44px;
  margin-top: 12px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  color: #000;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.saveBtn:active {
  transform: scale(0.97);
  opacity: 0.85;
}


/* ─── FILTER TABS ──────────────────────────────── */
.filterTabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.filterTab {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #333;
  background: #111;
  color: #aaa;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}
.filterTab.active {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  color: #000;
  border-color: transparent;
  font-weight: 700;
}


/* ─── LIVE TICKER ──────────────────────────────── */
.tickerMin {
  font-size: 13px;
  color: #ff4d4f;
  font-weight: 700;
  margin-left: 8px;
  animation: pulse 1s ease-in-out infinite;
}
.tickerInfo {
  font-size: 13px;
  color: #ff4d4f;
  font-weight: 700;
  text-align: center;
  margin-top: 4px;
  animation: pulse 1s ease-in-out infinite;
}


/* ─── MODAL ────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  padding: 20px;
}
.modal.open {
  display: flex;
}
.modalBox {
  background: linear-gradient(160deg, #1a1a1a, #0d0d0d);
  border-radius: 24px;
  padding: 24px 20px 32px;
  width: 100%;
  max-width: 500px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid #2a2a2a;
}
.modalClose {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #222;
  border: none;
  color: #aaa;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
}
.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.modalTeam {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  flex: 1;
}
.modalTeam img { width: 36px; height: 26px; border-radius: 4px; object-fit: cover; }
.modalTeamAway { align-items: center; }
.modalScore {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  min-width: 90px;
}
.modalScore.isLive { color: var(--gold); }
.modalDate {
  text-align: center;
  color: var(--grey);
  font-size: 13px;
  margin-bottom: 20px;
}
.modalSection {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 18px 0 10px;
  border-bottom: 1px solid #222;
  padding-bottom: 6px;
}


/* ─── EVENTS ───────────────────────────────────── */
.eventsGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.eventsCol { display: flex; flex-direction: column; gap: 4px; }
.eventsRight { align-items: flex-end; text-align: right; }
.eventRow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.eventsRight .eventRow { flex-direction: row-reverse; }
.evtMin { color: var(--grey); font-size: 11px; min-width: 24px; }
.evtIcon { font-size: 14px; }


/* ─── STATISTIKEN ──────────────────────────────── */
.statRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
}
.statBar {
  flex: 1;
  height: 6px;
  background: #222;
  border-radius: 4px;
  display: flex;
  overflow: hidden;
}
.statFillHome { background: var(--gold); height: 100%; }
.statFillAway { background: #555;        height: 100%; }
.statLabel {
  text-align: center;
  font-size: 11px;
  color: var(--grey);
  margin-bottom: 8px;
}


/* ─── GRUPPENSTAND ─────────────────────────────── */
.groupCard {
  background: linear-gradient(145deg,rgba(40,40,40,0.9),rgba(20,20,20,0.9));
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}
.groupTitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.groupTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.groupTable th {
  color: var(--grey);
  font-weight: 500;
  padding: 4px 4px;
  text-align: center;
}
.groupTable td {
  padding: 6px 4px;
  text-align: center;
  border-bottom: 1px solid #1a1a1a;
}
.groupTable tr:last-child td { border-bottom: none; }
.groupTable .teamCol { text-align: left; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.groupTable .rankNum { color: var(--gold); font-weight: 700; }

/* ─── GRUPPENSTAND FALLBACK ────────────────────── */
.groupsInfo {
  text-align: center;
  font-size: 12px;
  color: var(--grey);
  margin-bottom: 16px;
  padding: 10px;
  background: #111;
  border-radius: 10px;
  border: 1px solid #222;
}
.groupFlag {
  width: 26px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  display: block;
}
.groupTable { table-layout: fixed; width: 100%; }
.groupTable th:nth-child(1),
.groupTable td:nth-child(1) { width: 28px; text-align: center; padding-left: 0; }
.groupTable th:nth-child(2),
.groupTable td:nth-child(2) { width: 32px; text-align: center; padding: 4px 4px; }
.groupTable th:nth-child(3),
.groupTable td:nth-child(3) { text-align: left; padding-left: 6px; }
.flagCell { width: 32px; text-align: center; }
.rowTop td { background: rgba(212,175,55,0.06); }
.rowTop .rankNum { color: var(--gold); }


/* ─── TEAM MODAL ───────────────────────────────── */
.teamModalHeader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  text-align: center;
}
.teamModalLogo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
}
.teamModalFlag {
  width: 60px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
}
.teamModalName {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}
.teamModalSub {
  color: var(--grey);
  font-size: 13px;
  margin: 0;
}

/* Team Info Grid */
.teamInfoGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}
.teamInfoItem {
  background: #111;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.teamInfoItem:last-child {
  grid-column: 1 / -1;
}
.teamInfoLabel {
  font-size: 11px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.teamInfoVal {
  font-size: 14px;
  font-weight: 600;
}

/* Letzte / Nächste Spiele */
.matchResultRow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border-bottom: 1px solid #1a1a1a;
  font-size: 13px;
}
.matchResultRow:last-child { border-bottom: none; }
.matchResultTeams { flex: 1; color: #ccc; }
.matchResultScore { font-weight: 600; min-width: 36px; text-align: center; }
.matchResultBadge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 24px;
  text-align: center;
}
.resW { background: rgba(40,199,111,0.2); color: #28c76f; }
.resD { background: rgba(136,136,136,0.2); color: #aaa; }
.resL { background: rgba(255,77,79,0.2);  color: #ff4d4f; }

/* Hover auf Gruppenzeilen */
.groupTable tbody tr:hover { background: rgba(255,255,255,0.04); }


/* ─── INFO BUTTON & KLICKBARE ZEILEN ───────────── */
.teamRow-clickable {
  cursor: pointer;
  transition: background 0.15s;
}
.teamRow-clickable:hover {
  background: rgba(212,175,55,0.1) !important;
}
.infoCell {
  width: 28px;
  text-align: center;
}
.infoBtn {
  font-size: 14px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.teamRow-clickable:hover .infoBtn {
  opacity: 1;
}


/* ─── AUTH / LOGIN ─────────────────────────────── */
.authTabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.authTab {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #333;
  background: #111;
  color: #aaa;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}
.authTab.active {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  color: #000;
  border-color: transparent;
  font-weight: 700;
}
.authError {
  background: rgba(255,77,79,0.12);
  border: 1px solid rgba(255,77,79,0.3);
  border-radius: 10px;
  padding: 12px;
  color: #ff6b6b;
  font-size: 14px;
  margin-bottom: 14px;
}
.authDivider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: #444;
  font-size: 13px;
}
.authDivider::before,
.authDivider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #2a2a2a;
}
.btn-google {
  width: 100%;
  height: 48px;
  background: #fff;
  border: none;
  border-radius: 14px;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: 0.2s;
}
.btn-google:hover { background: #f0f0f0; }


/* ─── PROFIL ───────────────────────────────────── */
.profileHeader {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: #111;
  border-radius: 18px;
  border: 1px solid #222;
}
.profileAvatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.profileAvatarPlaceholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #000;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profileName  { font-size: 18px; font-weight: 700; }
.profileEmail { font-size: 13px; color: var(--grey); margin-top: 2px; }
.profilePoints { font-size: 20px; font-weight: 700; color: var(--gold); }


/* ─── START & LOGIN EXTRAS ─────────────────────── */
.startGuest {
  text-align: center;
  color: var(--grey);
  font-size: 14px;
  margin-top: 16px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.startGuest:hover { color: #ccc; }

.authHeader { margin-bottom: 8px; }

.authGuest {
  text-align: center;
  color: var(--grey);
  font-size: 13px;
  margin-top: 20px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.authGuest:hover { color: #ccc; }


/* ─── RANGLISTE ────────────────────────────────── */
.rankRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #111;
  border-radius: 14px;
  margin-bottom: 8px;
  border: 1px solid #1a1a1a;
}
.rankRow--me {
  border-color: var(--gold);
  background: rgba(212,175,55,0.08);
}
.rankMedal {
  font-size: 18px;
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  color: var(--grey);
}
.rankAvatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.rankAvatarPlaceholder {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #000;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rankName  { flex: 1; font-size: 15px; font-weight: 500; }
.rankPoints { font-size: 15px; font-weight: 700; color: var(--gold); }

/* Punktesystem-Info */
.pointsInfo {
  margin-top: 24px;
  background: #0d0d0d;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #1a1a1a;
}
.pointsInfoTitle {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.pointsInfoRow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #ccc;
  margin-bottom: 8px;
}
.ptsBadge {
  width: 26px; height: 26px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pts4 { background: rgba(40,199,111,0.2);  color: #28c76f; }
.pts3 { background: rgba(212,175,55,0.2);  color: var(--gold); }
.pts2 { background: rgba(0,149,255,0.2);   color: #0095ff; }
.pts0 { background: rgba(136,136,136,0.2); color: #888; }


/* ─── MEIN TIPP BADGE (nach Auswertung) ───────── */
.myTipBadge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 8px;
  text-align: center;
  width: 100%;
}
.myTipBadge.pts4 { background: rgba(40,199,111,0.15); color: #28c76f; }
.myTipBadge.pts3 { background: rgba(212,175,55,0.15);  color: var(--gold); }
.myTipBadge.pts2 { background: rgba(0,149,255,0.15);   color: #0095ff; }
.myTipBadge.pts0 { background: rgba(136,136,136,0.15); color: #888; }

/* ─── LOGIN HINWEIS AUF SPIELE-SEITE ──────────── */
.loginHint {
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--grey);
  text-align: center;
  margin-bottom: 16px;
  cursor: pointer;
}
.loginHint strong { color: var(--gold); }


/* ─── PROFIL SECTION ───────────────────────────── */
.profileSection {
  background: #111;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #222;
  margin-bottom: 8px;
}
.profileSectionTitle {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.btn-secondary {
  width: 100%;
  height: 48px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  color: #ccc;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  display: block;
}
.btn-secondary:hover { background: #222; }
.btn-secondary.logout { color: #ff6b6b; border-color: rgba(255,77,79,0.3); }


/* ─── AVATAR WRAPPER ───────────────────────────── */
.avatarWrapper {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.avatarOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.2s;
}
.avatarWrapper:hover .avatarOverlay,
.avatarWrapper:active .avatarOverlay {
  opacity: 1;
}
