*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  color: #1e293b;
}

.bg-animated {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #0c1220;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.blob-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle at center, #1d4ed8, #0f172a);
  top: -15%; left: -10%;
  animation: blobDrift 22s ease-in-out infinite;
}

.blob-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle at center, #f97316, #dc2626);
  bottom: -12%; right: -8%;
  animation: blobDrift 28s ease-in-out infinite reverse;
  animation-delay: -6s;
}

.blob-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle at center, #7c3aed, #db2777);
  top: 45%; left: 55%;
  animation: blobDrift 24s ease-in-out infinite;
  animation-delay: -12s;
}

.blob-4 {
  width: 320px; height: 320px;
  background: radial-gradient(circle at center, #059669, #0891b2);
  bottom: 25%; left: 10%;
  animation: blobDrift 30s ease-in-out infinite reverse;
  animation-delay: -18s;
}

@keyframes blobDrift {
  0%,  100% { transform: translate(0px,   0px)  scale(1);    }
  20%        { transform: translate(35px, -40px) scale(1.06); }
  40%        { transform: translate(-25px, 55px) scale(0.94); }
  60%        { transform: translate(50px,  20px) scale(1.04); }
  80%        { transform: translate(-15px,-30px) scale(0.97); }
}

.glass-card {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.70);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.14),
    0 2px 8px  rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.input-field {
  width: 100%;
  background: rgba(241, 245, 249, 0.75);
  border: 1.5px solid rgba(203, 213, 225, 0.6);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-field:focus {
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-field::placeholder { color: #94a3b8; }

.btn-primary {
  display: block;
  width: 100%;
  background: #1e293b;
  color: #ffffff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary:hover:not(:disabled) {
  background: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.30);
}

.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-team {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 2px solid transparent;
  border-radius: 0.875rem;
  padding: 1.05rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  color: #ffffff;
}

.btn-team:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.btn-team:active:not(:disabled) { transform: translateY(0); }

.btn-team:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-subtle {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.5rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: #64748b;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-subtle:hover {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(100, 116, 139, 0.45);
  color: #475569;
}

.podium-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 0 8px;
  height: 186px;
}

.podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 190px;
}

.podium-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 7px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.20);
}

.podium-badge-1 { background: linear-gradient(135deg, #fbbf24, #d97706); }
.podium-badge-2 { background: linear-gradient(135deg, #94a3b8, #64748b); }
.podium-badge-3 { background: linear-gradient(135deg, #c2935c, #92400e); }

.podium-block {
  width: 100%;
  border-radius: 0.75rem 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px;

  transition: box-shadow 0.3s ease;
}

.podium-block:hover {
  box-shadow: 0 -6px 20px rgba(0,0,0,0.22);
}

.podium-h-1st { height: 148px; }
.podium-h-2nd { height: 104px; }
.podium-h-3rd { height: 72px;  }

.podium-team-name {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
}

.podium-pts {
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 0.625rem;
  background: rgba(241, 245, 249, 0.60);
  border: 1px solid rgba(203, 213, 225, 0.20);
  transition: background 0.2s ease;
}

.player-row:hover { background: rgba(241, 245, 249, 0.90); }

.player-rank {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  min-width: 22px;
  text-align: center;
}

.player-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-team-pill {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
}

.player-pts {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  min-width: 52px;
  text-align: right;
}

.match-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 0.875rem;
  background: rgba(241, 245, 249, 0.55);
  border: 1px solid rgba(203, 213, 225, 0.28);
  transition: background 0.18s ease;
}

.match-row:hover { background: rgba(241, 245, 249, 0.88); }

.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.match-team-right { flex-direction: column; }

.match-team-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  white-space: normal;
  word-break: break-word;
  line-height: 1.2;
}

.match-flag {
  width: 40px;
  height: 26px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.14);
  flex-shrink: 0;
  background: #e2e8f0;
}

.match-odds {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.btn-odd {
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(203, 213, 225, 0.50);
  border-radius: 0.5rem;
  padding: 5px 9px;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: #475569;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
  min-width: 34px;
  text-align: center;
  letter-spacing: 0.02em;
}

.btn-odd:hover:not(:disabled):not(.active) {
  background: rgba(51, 65, 85, 0.09);
  border-color: rgba(100, 116, 139, 0.45);
  color: #1e293b;
  transform: scale(1.05);
}

.btn-odd.active {
  background: #1e293b;
  border-color: #1e293b;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.30);
}

.btn-odd:disabled {
  cursor: not-allowed;
}

.btn-odd:disabled:not(.active) {
  opacity: 0.45;
}

.match-status { position: absolute; top: -10px; right: -10px; z-index: 20; }

.status-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  border: 1.5px solid #ffffff;
}

.status-open   { background: rgba(16, 185, 129, 0.10); color: #059669; border: 1px solid rgba(16, 185, 129, 0.25); }
.status-soon   { background: rgba(245, 158, 11, 0.12); color: #b45309; border: 1px solid rgba(245, 158, 11, 0.28); }
.status-closed { background: rgba(239, 68, 68, 0.09);  color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.22); }

.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 9px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.footer-item  { display: flex; align-items: center; gap: 6px; }
.footer-label { font-size: 0.60rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(148, 163, 184, 0.65); }
.footer-value { font-size: 0.73rem; font-weight: 600; color: rgba(255, 255, 255, 0.88); }
.footer-divider { color: rgba(148, 163, 184, 0.28); font-size: 0.75rem; }

.fade-in  { animation: fadeIn  0.35s ease forwards; }
.slide-up { animation: slideUp 0.35s ease forwards; }

@keyframes fadeIn  { from { opacity: 0; }                         to { opacity: 1; }            }
@keyframes slideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

@media (max-width: 480px) {
  .glass-card { border-radius: 1.125rem; }

  .podium-wrapper { gap: 5px; }
  .podium-h-1st  { height: 124px; }
  .podium-h-2nd  { height: 88px;  }
  .podium-h-3rd  { height: 60px;  }
  .podium-team-name { font-size: 0.56rem; }

  .match-row { gap: 6px; padding: 8px 8px; }
  .match-team-name { font-size: 0.70rem; }
  .btn-odd { padding: 4px 7px; font-size: 0.64rem; min-width: 28px; }
  .match-flag { width: 20px; height: 14px; }

  .footer-bar { gap: 10px; }
}

.admin-day-group { margin-bottom: 2rem; }

.admin-day-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(203, 213, 225, 0.35);
}

.admin-match-row {
  background: rgba(241, 245, 249, 0.55);
  border: 1px solid rgba(203, 213, 225, 0.28);
  border-radius: 0.875rem;
  padding: 1rem;
  margin-bottom: 0.625rem;
  transition: background 0.2s ease;
}

.admin-match-row:hover { background: rgba(241, 245, 249, 0.88); }

.admin-match-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.admin-team {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-team-right { flex-direction: row-reverse; justify-content: flex-start; }

.admin-flag {
  width: 24px;
  height: 17px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  flex-shrink: 0;
  background: #e2e8f0;
}

.admin-vs {
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.admin-match-time {
  font-size: 0.64rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.admin-controls { display: flex; flex-direction: column; gap: 0.55rem; }

.admin-result-btns { display: flex; gap: 5px; }

.admin-odd-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(203, 213, 225, 0.5);
  border-radius: 0.5rem;
  padding: 6px 10px;
  font-size: 0.70rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: #475569;
  cursor: pointer;
  transition: all 0.14s ease;
  text-align: center;
}

.admin-odd-btn:hover:not(:disabled) {
  background: rgba(51,65,85,0.08);
  color: #1e293b;
}

.admin-odd-selected {
  background: #1e293b !important;
  border-color: #1e293b !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.28);
}

.admin-odd-btn:disabled { cursor: not-allowed; opacity: 0.45; }

.admin-pts-row { display: flex; align-items: center; gap: 10px; }

.admin-pts-label {
  font-size: 0.67rem;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

.admin-pts-input {
  width: 54px;
  background: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(203,213,225,0.5);
  border-radius: 0.5rem;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}

.admin-pts-input:focus { border-color: #3b82f6; }
.admin-pts-input:disabled { opacity: 0.45; cursor: not-allowed; }

.admin-btn-valider {
  width: 100%;
  background: #1e293b;
  color: white;
  border: none;
  border-radius: 0.625rem;
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-btn-valider:hover:not(:disabled) {
  background: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15,23,42,0.28);
}

.admin-btn-valider:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.admin-status { text-align: center; margin-top: 2px; }

.admin-badge-done {
  display: inline-block;
  font-size: 0.60rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(16,185,129,0.12); color: #059669;
  border: 1px solid rgba(16,185,129,0.25);
  letter-spacing: 0.04em;
}

.admin-badge-pending {
  display: inline-block;
  font-size: 0.60rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(245,158,11,0.12); color: #b45309;
  border: 1px solid rgba(245,158,11,0.28);
}

.admin-badge-empty {
  display: inline-block;
  font-size: 0.60rem; font-weight: 500;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(148,163,184,0.10); color: #94a3b8;
  border: 1px solid rgba(148,163,184,0.20);
}

.team-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 7px;
  font-weight: 800;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  cursor: help;
}

.team-bubble:hover {
  transform: scale(1.2) translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.btn-stats-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid #ffffff;
  color: #475569;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-right: 4px;
  flex-shrink: 0;
}

.btn-stats-trigger:hover {
  transform: scale(1.15) translateY(-1px);
  color: #1e293b;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.btn-stats-trigger svg {
  pointer-events: none;
}
