/* ========== LEADERBOARD APP THEME ========== */
:root {
  --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --card-bg: #1f2937;
  --card-border: rgba(255,255,255,0.1);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-gradient: linear-gradient(90deg, #06b6d4, #8b5cf6);
  --btn-gradient: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  --table-header-bg: rgba(255,255,255,0.05);
  --table-border: rgba(255,255,255,0.05);
  --input-bg: #111827;
  --input-border: rgba(255,255,255,0.15);
  --hover-bg: rgba(255,255,255,0.08);
  --ui-scale: 1.25;
  color-scheme: dark;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 20px;
  background: var(--bg-gradient);
  min-height: 100vh;
  color: var(--text-primary);
  zoom: var(--ui-scale);
  overflow-x: hidden;
}

@supports not (zoom: 1) {
  body {
    transform: scale(var(--ui-scale));
    transform-origin: top center;
    width: calc(100% / var(--ui-scale));
  }
}

* { box-sizing: border-box; }

.container { max-width: 1100px; margin: 0 auto; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

h1, h2 > span:first-child, h3 {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 { margin: 0 0 16px; font-size: 20px; color: var(--text-primary); }

table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--table-border); padding: 10px 8px; text-align: left; vertical-align: top; }
th { background: var(--table-header-bg); position: sticky; top: 0; color: var(--text-secondary); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }

button {
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.2s ease;
}
button:hover { background: rgba(255,255,255,0.15); transform: translateY(-1px); }
button.primary { background: var(--btn-gradient); color: white; font-weight: 600; }
button.primary:hover { filter: brightness(1.1); transform: scale(1.02); }

select, input[type=text] {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  width: 100%;
}
select:focus, input[type=text]:focus { outline: none; border-color: #06b6d4; box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2); }

label { color: var(--text-secondary); font-size: 13px; font-weight: 500; margin-bottom: 4px; display: block; }

.muted { color: var(--text-muted); font-size: 12px; }
.delta-pos { color: #34d399; font-weight: bold; }
.delta-neg { color: #f87171; font-weight: bold; }
.small { font-size: 12px; color: var(--text-secondary); }
.no-scroll { overflow: hidden; height: 100vh; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); display: none; z-index: 2000; }
.modal { position: fixed; top: 8vh; left: 50%; transform: translateX(-50%); width: min(900px, 92vw); background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.4); display: none; z-index: 2001; }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--table-border); }
.modal header h3 { margin: 0; font-size: 16px; }
.modal .content { padding: 14px 18px; }
.close-btn { border: none; background: rgba(255,255,255,0.1); border-radius: 8px; padding: 8px 14px; cursor: pointer; color: var(--text-primary); transition: all 0.2s; }
.close-btn:hover { background: rgba(255,255,255,0.15); }

.icon-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  width: 28px; height: 28px;
  padding: 0;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1;
  transition: all 0.2s ease;
}
.icon-btn:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.25); transform: scale(1.05); }

/* Avatars */
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; border: 2px solid rgba(6, 182, 212, 0.3); box-shadow: 0 0 8px rgba(139, 92, 246, 0.2); }
.avatar.small { width: 22px; height: 22px; font-size: 11px; border: 1px solid rgba(6, 182, 212, 0.2); vertical-align: -3px; margin-right: 4px; }
.avatar.emoji { background: transparent !important; border: 0 !important; color: inherit; font-size: 20px; width: auto !important; height: auto !important; padding: 0; line-height: 1; display: inline-block; vertical-align: middle; }
.avatar.emoji.small { background: transparent !important; border: 0 !important; font-size: 16px; width: auto !important; height: auto !important; padding: 0; line-height: 1; }

#avatarChoices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.avatar-choice { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: rgba(255,255,255,0.05); transition: all 0.2s; }
.avatar-choice:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); }
.avatar-choice.selected { outline: 2px solid #06b6d4; border-color: #06b6d4; }

/* Touch-friendly selects */
.big-select { font-size: 18px; padding: 14px 16px; min-height: 48px; line-height: 1.3; background: var(--input-bg); border: 1px solid var(--input-border); color: var(--text-primary); border-radius: 12px; }
.big-select:focus { border-color: #06b6d4; box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2); outline: none; }

/* Radio & Checkbox */
input[type="radio"] { accent-color: #06b6d4; transform: scale(1.1); }
input[type="checkbox"] { accent-color: #06b6d4; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ===== PAGE HEADER ===== */
.page-header { text-align: center; margin-bottom: 20px; }
.page-header h1 { margin: 0 0 4px 0; font-size: 32px; background: none; -webkit-text-fill-color: var(--text-primary); color: var(--text-primary); }
.location-subtitle { color: var(--text-secondary); font-size: 14px; font-weight: 600; margin-top: 2px; }

/* ===== TOP BAR ===== */
.top-bar { display: flex; justify-content: center; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; max-width: 480px; margin-left: auto; margin-right: auto; }
.mode-pills { display: flex; background: rgba(255,255,255,0.05); border-radius: 10px; padding: 3px; }
.mode-pills button { padding: 6px 12px; border: none; background: transparent; color: var(--text-secondary); -webkit-text-fill-color: var(--text-secondary); border-radius: 8px; font-size: 12px; cursor: pointer; transition: all 0.2s; }
.mode-pills button:hover { background: rgba(255,255,255,0.05); }
.mode-pills button.on { background: var(--btn-gradient); color: white; -webkit-text-fill-color: white; font-weight: 600; }

.action-btns { display: flex; gap: 6px; }
.action-btns button { padding: 8px 12px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); color: var(--text-primary); border-radius: 10px; font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.action-btns button:hover { background: rgba(255,255,255,0.12); }
.action-btns button.primary { background: var(--btn-gradient); border-color: transparent; font-weight: 600; }

.settings-btn { width: 34px; height: 34px; padding: 0; border-radius: 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: var(--text-primary); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.settings-btn:hover { background: rgba(255,255,255,0.12); }

/* ===== LEADERBOARD CARD ===== */
.leaderboard-main { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 24px; overflow: hidden; box-shadow: 0 0 60px rgba(6, 182, 212, 0.1), 0 8px 32px rgba(0,0,0,0.4); max-width: 480px; margin: 0 auto; }

/* Podium */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 12px; padding: 30px 30px 20px; background: linear-gradient(180deg, rgba(6,182,212,0.1) 0%, transparent 100%); }
.podium-spot { text-align: center; padding: 16px 12px; border-radius: 16px; background: rgba(255,255,255,0.05); min-width: 90px; cursor: pointer; transition: transform 0.2s, background 0.2s; }
.podium-spot:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.podium-spot.first { order: 2; transform: scale(1.1); background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,215,0,0.05)); border: 1px solid rgba(255,215,0,0.3); min-width: 110px; }
.podium-spot.first:hover { transform: scale(1.12) translateY(-2px); }
.podium-spot.second { order: 1; background: linear-gradient(135deg, rgba(192,192,192,0.15), rgba(192,192,192,0.05)); border: 1px solid rgba(192,192,192,0.2); }
.podium-spot.third { order: 3; background: linear-gradient(135deg, rgba(205,127,50,0.15), rgba(205,127,50,0.05)); border: 1px solid rgba(205,127,50,0.2); }
.podium-medal { font-size: 32px; }
.podium-avatar { margin: 4px 0; font-size: 24px; }
.podium-name { font-weight: 700; font-size: 14px; margin: 6px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-rating { color: var(--text-secondary); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Rest list */
.rest-list { padding: 8px 20px 20px; }
.rest-item { display: grid; grid-template-columns: 32px 28px 1fr auto; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; margin-bottom: 2px; cursor: pointer; transition: background 0.2s; background: rgba(255,255,255,0.02); }
.rest-item:hover { background: rgba(255,255,255,0.06); }
.rest-rank { text-align: center; color: var(--text-muted); font-weight: 600; font-size: 14px; }
.rest-avatar { font-size: 20px; line-height: 1; text-align: center; }
.rest-player { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rest-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rest-rating { color: var(--text-secondary); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; text-align: right; min-width: 45px; }

.rest-item.qualifying-item { opacity: 0.7; }
.rest-item.qualifying-item .rest-rating { color: var(--text-muted); }
.rest-item.inactive-item { opacity: 0.5; }
.rest-item.inactive-item .rest-rating { color: var(--text-muted); }

.qual-badge { font-size: 10px; color: var(--text-muted); background: rgba(6, 182, 212, 0.15); padding: 2px 6px; border-radius: 8px; margin-left: 6px; }
.rest-separator { padding: 12px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.rest-separator span { background: rgba(139, 92, 246, 0.15); padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(139, 92, 246, 0.2); }

.inactive-toggle-wrap { display: flex; justify-content: center; padding: 16px 0 8px; }
.inactive-toggle-btn { display: flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 12px; color: var(--text-muted); background: transparent; border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; cursor: pointer; transition: all 0.2s; }
.inactive-toggle-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-secondary); }
.inactive-toggle-arrow { font-size: 10px; transition: transform 0.2s; }
.inactive-toggle-btn.open .inactive-toggle-arrow { transform: rotate(180deg); }

/* Loading */
.leaderboard-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: var(--text-muted); }
.leaderboard-loading .spinner { width: 32px; height: 32px; border: 3px solid rgba(255,255,255,0.1); border-top-color: #06b6d4; border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== DRAWER ===== */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 2000; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; right: -420px; top: 0; bottom: 0; width: 400px; max-width: 92vw; background: var(--card-bg); border-left: 1px solid var(--card-border); box-shadow: -10px 0 40px rgba(0,0,0,0.4); transition: right 0.3s ease; z-index: 2001; display: flex; flex-direction: column; }
.drawer.open { right: 0; }

.drawer-tabs { display: flex; border-bottom: 1px solid var(--card-border); background: rgba(255,255,255,0.02); }
.drawer-tab { flex: 1; padding: 14px; border: none; background: none; color: var(--text-secondary); -webkit-text-fill-color: var(--text-secondary); font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; }
.drawer-tab:hover { background: rgba(255,255,255,0.03); }
.drawer-tab.active { color: #06b6d4; -webkit-text-fill-color: #06b6d4; border-bottom-color: #06b6d4; font-weight: 600; }

.drawer-header { display: flex; justify-content: flex-end; padding: 8px 12px; border-bottom: 1px solid var(--card-border); }
.drawer-close { background: rgba(255,255,255,0.08); border: none; color: var(--text-secondary); font-size: 18px; cursor: pointer; padding: 6px 12px; border-radius: 8px; }
.drawer-close:hover { background: rgba(255,255,255,0.12); }

.drawer-content { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-panel { display: none; }
.drawer-panel.active { display: block; }

.drawer-form-group { margin-bottom: 16px; }
.drawer-form-group label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.drawer-form-group select, .drawer-form-group input { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--input-border); background: var(--input-bg); color: var(--text-primary); font-size: 15px; }

.drawer-submit-btn { width: 100%; padding: 14px; border-radius: 12px; border: none; background: var(--btn-gradient); color: white; font-weight: 600; font-size: 15px; cursor: pointer; margin-top: 8px; }
.drawer-submit-btn:hover { filter: brightness(1.1); }

.drawer-mode-toggle { display: flex; gap: 6px; margin-bottom: 16px; }
.drawer-mode-toggle label { flex: 1; text-align: center; padding: 8px; border-radius: 8px; background: rgba(255,255,255,0.05); cursor: pointer; font-size: 13px; transition: all 0.2s; }
.drawer-mode-toggle input { display: none; }
.drawer-mode-toggle input:checked + span { display: block; background: var(--btn-gradient); margin: -8px; padding: 8px; border-radius: 8px; color: white; font-weight: 600; }

/* Match items in drawer */
.drawer-match-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: 10px; margin-bottom: 8px; background: rgba(255,255,255,0.03); border: 1px solid var(--table-border); transition: all 0.2s; }
.drawer-match-item:hover { background: rgba(255,255,255,0.05); }
.drawer-match-item.deletable { cursor: pointer; }
.drawer-match-item.show-delete { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.25); }
.drawer-match-info { display: flex; align-items: center; gap: 10px; }
.drawer-match-players { font-size: 14px; }
.drawer-match-players .win { color: #34d399; font-weight: 600; }
.drawer-match-players .loss { color: #f87171; }
.drawer-match-time { font-size: 12px; color: var(--text-muted); }

.match-delete-btn { display: none; padding: 4px 8px; background: rgba(248, 113, 113, 0.2); border: 1px solid rgba(248, 113, 113, 0.4); border-radius: 6px; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.match-delete-btn:hover { background: rgba(248, 113, 113, 0.35); }
.drawer-match-item.show-delete .match-delete-btn { display: inline-flex; }

.drawer-match-item.new-match { animation: highlightNew 2s ease-out; }
@keyframes highlightNew { 0% { background: rgba(52, 211, 153, 0.3); } 100% { background: transparent; } }

/* Day headers & summaries */
.drawer-day-header { font-size: 14px; font-weight: 700; color: var(--text-primary); padding: 14px 0 8px; margin-top: 20px; }
.drawer-day-header:first-child { margin-top: 0; }
.drawer-day-summary { font-size: 13px; font-weight: 600; padding: 12px 14px; margin: 0 0 12px; background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%); border-radius: 12px; border: 1px solid rgba(6, 182, 212, 0.2); color: var(--text-primary); }
.drawer-day-summary-title { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.summary-row { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 4px 0; align-items: center; }
.summary-icon { font-size: 16px; margin-right: 4px; flex-shrink: 0; }
.winners-row { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; margin-bottom: 6px; }
.summary-player { display: inline-flex; align-items: center; }
.summary-player .history-avatar { margin-right: 4px; }
.summary-player.winner { color: #34d399; }
.summary-player.loser { color: #f87171; }

.history-avatar { display: inline-block; vertical-align: middle; margin-right: 3px; font-size: 14px; line-height: 1; }
.history-team { display: block; line-height: 1.5; }
.history-vs { font-size: 11px; color: var(--text-muted); margin: 1px 0; }

/* Pending matches */
.pending-team { display: block; line-height: 1.6; }
.pending-team.winners { color: #4ade80; }
.pending-team.losers { color: #f87171; }
.pending-vs { font-size: 12px; color: var(--text-muted); margin: 2px 0; }
#pendingCard .remove-btn { font-size: 15px; padding: 10px 14px; min-height: 40px; border-radius: 10px; background: rgba(248, 113, 113, 0.15); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.3); }
#pendingCard .remove-btn:hover { background: rgba(248, 113, 113, 0.25); }

/* Show more button */
.show-more-btn, .peek-load-more { font-size: 12px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(6, 182, 212, 0.3); background: rgba(6, 182, 212, 0.1); color: #06b6d4; cursor: pointer; line-height: 1.2; transition: all 0.2s; }
.show-more-btn:hover, .peek-load-more:hover { background: rgba(6, 182, 212, 0.2); border-color: rgba(6, 182, 212, 0.5); }

/* ===== PLAYER PEEK MODAL ===== */
.peek-modal { position: fixed; top: 10vh; left: 50%; transform: translateX(-50%); width: min(540px, 92vw); background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.4); z-index: 2001; max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; }
.peek-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--table-border); }
.peek-header h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.peek-header h3 .avatar { -webkit-background-clip: border-box !important; -webkit-text-fill-color: initial !important; background-clip: border-box !important; background: none !important; }
.peek-header h3 .avatar.emoji { background: none !important; }
.peek-mode-label { font-size: 13px; font-weight: 500; color: #06b6d4; -webkit-text-fill-color: #06b6d4; margin-left: 4px; }
.peek-title-actions { display: inline-flex; gap: 6px; margin-left: auto; }
.peek-title-actions .icon-btn { width: 36px; height: 36px; font-size: 18px; background: rgba(255,255,255,0.08) !important; border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; -webkit-background-clip: border-box !important; -webkit-text-fill-color: initial !important; background-clip: border-box !important; color: inherit; }
.peek-content { padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.peek-load-more { align-self: flex-start; }
.peek-stats-row { font-weight: 600; display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--table-border); border-radius: 12px; }
.peek-list { display: grid; gap: 8px; }
.peek-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--table-border); border-radius: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background 0.2s; }
.peek-match:hover { background: rgba(255,255,255,0.06); }
.peek-vs { opacity: 0.5; color: var(--text-muted); }
.opp-win { color: #34d399; font-weight: 600; }
.opp-loss { color: #f87171; font-weight: 600; }

/* ===== LEADERBOARD MENU ===== */
.lb-menu-panel { position: fixed; left: 16px; top: 60px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.5); padding: 14px; display: none; width: 340px; max-width: 92vw; max-height: 70vh; overflow: auto; z-index: 2002; }
.lb-menu-panel.avatar-only #lbAddWrap { display: none; }

/* Not found state */
.not-found { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; text-align: center; }
.not-found h2 { font-size: 24px; margin-bottom: 12px; }
.not-found p { color: var(--text-secondary); margin-bottom: 20px; }
.not-found a { color: #06b6d4; text-decoration: none; }
.not-found a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  :root { --ui-scale: 1; }
  body { padding: 12px; }
  .top-bar { max-width: 100%; }
  .leaderboard-main { max-width: 100%; }
  .rest-list { padding: 8px 12px 16px; }
  .podium { padding: 24px 16px 16px; }
  .podium-spot { min-width: 80px; }
  .podium-spot.first { min-width: 96px; }
}

@media (max-width: 500px) {
  .top-bar { flex-direction: column; gap: 8px; }
  .action-btns { justify-content: center; width: 100%; }
  .action-btns button { flex: 1; justify-content: center; }
  .podium { gap: 8px; padding: 20px 12px 16px; }
  .podium-spot { min-width: 80px; padding: 12px 8px; }
  .podium-spot.first { min-width: 95px; }
  .podium-name { font-size: 13px; }
}

@media (max-width: 1024px) {
  .big-select { font-size: 19px; padding: 16px 18px; }
}
