/* ============================= */
/*  AIO GAME – API ADDITIONS CSS  */
/* ============================= */

/* ─── SPIELTAG ACCORDION ───────────────────────── */
.spieltag-accordion {
  margin-bottom: 10px;
  border: 1px solid rgba(0,200,255,0.1);
  border-radius: 14px;
  overflow: hidden;
}
.spieltag-accordion.open {
  border-color: rgba(0,200,255,0.3);
  box-shadow: 0 0 16px rgba(0,200,255,0.07);
}
.spieltag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  background: rgba(17,34,64,0.8);
  transition: background 0.15s;
  user-select: none;
}
.spieltag-header:hover { background: rgba(0,200,255,0.07); }
.spieltag-accordion.open .spieltag-header {
  background: rgba(0,200,255,0.06);
  border-bottom: 1px solid rgba(0,200,255,0.12);
}
.spieltag-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.spieltag-chevron {
  font-size: 14px;
  color: var(--aio-neon);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.spieltag-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--aio-neon);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-display);
}
.spieltag-count {
  font-size: 11px;
  color: var(--grey);
}
.spieltag-body {
  padding: 10px 0 4px;
  background: rgba(10,20,35,0.5);
}
.spieltag-body .matchCard { margin: 0 10px 10px; }

.matchdayHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--aio-neon);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 18px 4px 8px;
  border-bottom: 1px solid rgba(0,200,255,0.12);
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.badge-playoff {
  background: linear-gradient(90deg, #0088cc, var(--aio-neon));
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  font-family: var(--font-display);
}


/* ─── MATCH META ────────────────────────────────── */
.matchMeta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: var(--grey);
  font-size: 12px;
  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;
  font-family: var(--font-display);
}
.liveScore.isLive span:not(.scoreDivider) {
  color: var(--aio-neon);
  text-shadow: 0 0 12px rgba(0,200,255,0.5);
}
.scoreDivider { color: rgba(0,200,255,0.3); }


/* ─── LIVE / FT BADGES ─────────────────────────── */
.liveTag {
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  animation: pulse 1s ease-in-out infinite;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}
.doneTag {
  background: rgba(0,200,255,0.1);
  color: var(--grey-light);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  font-family: var(--font-display);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}


/* ─── LIVE MATCH CARD ──────────────────────────── */
.matchCard--live {
  border-color: rgba(255,61,87,0.4) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 20px rgba(255,61,87,0.12) !important;
}


/* ─── LOADING / ERROR / EMPTY ───────────────────── */
.loadingSpinner {
  text-align: center;
  padding: 40px 20px;
  color: var(--grey);
  font-size: 14px;
  animation: pulse 1.4s ease-in-out infinite;
}
.errorState {
  background: rgba(255,61,87,0.08);
  border: 1px solid rgba(255,61,87,0.25);
  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;
}


/* ─── 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 rgba(0,200,255,0.15);
  background: rgba(0,200,255,0.04);
  color: var(--grey);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: 0.2s;
}
.filterTab.active {
  background: linear-gradient(90deg, #0088cc, var(--aio-neon));
  color: #000;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(0,200,255,0.25);
}


/* ─── LIVE TICKER ──────────────────────────────── */
.tickerMin {
  font-size: 13px;
  color: var(--danger);
  font-weight: 700;
  margin-left: 8px;
  animation: pulse 1s ease-in-out infinite;
}
.tickerInfo {
  font-size: 13px;
  color: var(--danger);
  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.8);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  padding: 20px;
}
.modal.open { display: flex; }
.modalBox {
  background: linear-gradient(160deg, rgba(17,34,64,0.98), rgba(6,14,23,0.98));
  border-radius: 22px;
  padding: 24px 20px 32px;
  width: 100%;
  max-width: 500px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid rgba(0,200,255,0.2);
  box-shadow: 0 0 60px rgba(0,200,255,0.1), 0 20px 60px rgba(0,0,0,0.7);
}
.modalClose {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(0,200,255,0.08);
  border: 1px solid rgba(0,200,255,0.15);
  color: var(--grey);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}
.modalClose:hover { background: rgba(0,200,255,0.15); color: var(--white); }
.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;
  font-family: var(--font-display);
  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;
  font-family: var(--font-display);
}
.modalScore.isLive { color: var(--aio-neon); text-shadow: 0 0 14px rgba(0,200,255,0.4); }
.modalDate {
  text-align: center;
  color: var(--grey);
  font-size: 13px;
  margin-bottom: 20px;
}
.modalSection {
  font-size: 11px;
  font-weight: 700;
  color: var(--aio-neon);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 18px 0 10px;
  border-bottom: 1px solid rgba(0,200,255,0.12);
  padding-bottom: 6px;
  font-family: var(--font-display);
}


/* ─── 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: 4px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
}
.statBar {
  flex: 1;
  height: 6px;
  background: rgba(0,200,255,0.08);
  border-radius: 4px;
  display: flex;
  overflow: hidden;
}
.statFillHome { background: var(--aio-neon); height: 100%; }
.statFillAway { background: rgba(0,200,255,0.3); height: 100%; }
.statLabel {
  text-align: center;
  font-size: 11px;
  color: var(--grey);
  margin-bottom: 8px;
}


/* ─── GRUPPENSTAND ─────────────────────────────── */
.groupCard {
  background: linear-gradient(145deg, rgba(17,34,64,0.95), rgba(10,20,35,0.9));
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(0,200,255,0.1);
}
.groupTitle {
  font-size: 13px;
  font-weight: 700;
  color: var(--aio-neon);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.groupTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}
.groupTable th {
  color: var(--grey);
  font-weight: 600;
  padding: 4px;
  text-align: center;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.5px;
}
.groupTable td {
  padding: 6px 4px;
  text-align: center;
  border-bottom: 1px solid rgba(0,200,255,0.06);
}
.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(--aio-neon); font-weight: 700; font-family: var(--font-display); }
.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; }
.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(0,200,255,0.05); }
.rowTop .rankNum { color: var(--aio-neon); }
.groupTable tbody tr:hover { background: rgba(0,200,255,0.05); }
.groupFlag { width: 26px; height: 18px; border-radius: 3px; object-fit: cover; display: block; }
.groupsInfo {
  text-align: center;
  font-size: 12px;
  color: var(--grey);
  margin-bottom: 16px;
  padding: 10px;
  background: rgba(0,200,255,0.04);
  border-radius: 10px;
  border: 1px solid rgba(0,200,255,0.1);
}


/* ─── 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: 800; margin: 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; }
.teamModalSub { color: var(--grey); font-size: 13px; margin: 0; }
.teamInfoGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.teamInfoItem {
  background: rgba(0,200,255,0.04);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(0,200,255,0.08);
}
.teamInfoItem:last-child { grid-column: 1 / -1; }
.teamInfoLabel { font-size: 10px; color: var(--grey); text-transform: uppercase; letter-spacing: 0.5px; font-family: var(--font-display); font-weight: 700; }
.teamInfoVal { font-size: 14px; font-weight: 600; font-family: var(--font-display); }
.matchResultRow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(0,200,255,0.07);
  font-size: 13px;
}
.matchResultRow:last-child { border-bottom: none; }
.matchResultTeams { flex: 1; color: var(--grey-light); }
.matchResultScore { font-weight: 600; min-width: 36px; text-align: center; font-family: var(--font-display); }
.matchResultBadge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 24px;
  text-align: center;
  font-family: var(--font-display);
}
.resW { background: rgba(0,230,118,0.15); color: #00e676; }
.resD { background: rgba(122,153,187,0.15); color: var(--grey-light); }
.resL { background: rgba(255,61,87,0.15);  color: #ff4d4f; }


/* ─── CLICKABLE ROWS ───────────────────────────── */
.teamRow-clickable {
  cursor: pointer;
  transition: background 0.15s;
}
.teamRow-clickable:hover { background: rgba(0,200,255,0.07) !important; }
.infoCell { width: 28px; text-align: center; }
.infoBtn { font-size: 14px; opacity: 0.4; transition: opacity 0.2s; }
.teamRow-clickable:hover .infoBtn { opacity: 1; }


/* ─── AUTH TABS ────────────────────────────────── */
.authTabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid rgba(0,200,255,0.12);
}
.authTab {
  flex: 1;
  padding: 12px;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--grey);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.2s;
  margin-bottom: -2px;
}
.authTab.active {
  color: var(--aio-neon);
  border-bottom-color: var(--aio-neon);
  text-shadow: 0 0 12px rgba(0,200,255,0.4);
}
.btn-google {
  width: 100%;
  height: 48px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: 0.2s;
}
.btn-google:hover { background: rgba(255,255,255,0.1); }


/* ─── RANGLISTE EXTRA ──────────────────────────── */
.rankRow:not(.rankRow--me) {
  border: 1px solid rgba(0,200,255,0.06);
}
.rankTop {
  background: rgba(0,200,255,0.06);
  border-color: rgba(0,200,255,0.15) !important;
}
.rankNumber {
  color: var(--aio-neon);
  font-weight: 700;
  font-family: var(--font-display);
}


/* ─── CHAMPION WIDGET ──────────────────────────── */
.championCard {
  background: linear-gradient(135deg, rgba(0,136,204,0.15), rgba(0,200,255,0.06));
  border: 1px solid rgba(0,200,255,0.25);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 0 24px rgba(0,200,255,0.08);
}
.championTitle {
  font-size: 11px;
  font-weight: 700;
  color: var(--aio-neon);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  font-family: var(--font-display);
}

/* ─── LIVE PUNKTE BADGE (während Spiel läuft) ──── */
.livePtsBadge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 10px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 12px;
  animation: fadeIn 0.4s ease;
}
.livePtsTip {
  color: #666;
  font-size: 11px;
}
.livePtsVal {
  font-weight: 700;
  font-size: 13px;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* ─── LIVE PUNKTE IN RANGLISTE ─────────────────── */
.rankLivePts {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.7;
  margin-left: 6px;
  vertical-align: 1px;
}
