:root {
  --bg-deep: #060109;
  --bg-card: rgba(20, 6, 25, 0.82);
  --bg-card-hover: rgba(30, 9, 36, 0.92);
  --pink-neon: #ff1493;
  --pink-bright: #ff47ad;
  --pink-soft: #ff9ed2;
  --chrome-light: #ffffff;
  --chrome-mid: #d6d6de;
  --chrome-dark: #8c8899;
  --border-subtle: rgba(255, 71, 173, 0.24);
  --border-bright: rgba(255, 20, 147, 0.85);
  --text-main: #ffffff;
  --text-muted: #c4adc9;
  --radius-lg: 22px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Фоновые неоновые лучи, диско-атмосфера и фоновое изображение GLAM FIT 00s */
.stage-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 20, 147, 0.28) 0%, rgba(120, 0, 70, 0.14) 48%, transparent 78%),
    radial-gradient(circle at 12% 35%, rgba(255, 20, 147, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 88% 40%, rgba(255, 20, 147, 0.14) 0%, transparent 42%),
    #060109;
}

.stage-photo-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: min(68vh, 560px);
  z-index: -2;
  pointer-events: none;
  background-image: url('/static/glam-logo.jpg');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  opacity: 0.22;
  filter: saturate(1.1) blur(2px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.55) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.55) 55%, transparent 100%);
}

.stage-rays {
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.2;
  background: repeating-conic-gradient(
    from 0deg at 50% 18%,
    rgba(255, 20, 147, 0.28) 0deg 3deg,
    transparent 3deg 15deg
  );
  mask-image: radial-gradient(circle at 50% 20%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.2) 55%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.2) 55%, transparent 80%);
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 18px 56px;
  position: relative;
}

/* Шапка с красивой неоново-хромированной надписью */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
}

.glam-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  margin-bottom: 6px;
}

.glam-word-top {
  font-size: clamp(26px, 4.8vw, 44px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #ffd4ec 38%, #ff47ad 72%, #c80070 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 20, 147, 0.65));
}

.glam-word-mid-row {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 2px;
}

.glam-word-mid {
  font-size: clamp(28px, 5.4vw, 50px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #e4e4e7 46%, #8e8b99 54%, #f4f4f5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(255, 255, 255, 0.25));
}

.glam-word-00s {
  font-size: clamp(13px, 2vw, 18px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.06em;
  color: #ff6ec0;
  text-shadow: 0 0 12px rgba(255, 20, 147, 0.9);
  padding-bottom: 4px;
}

.glam-word-bottom {
  font-size: clamp(18px, 3.2vw, 28px);
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ff70c0 0%, #ffffff 50%, #ff1493 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(255, 20, 147, 0.75));
  padding-bottom: 3px;
  border-bottom: 2px solid rgba(255, 71, 173, 0.65);
}

.hero-title-fallback {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 8px 0 4px;
  background: linear-gradient(180deg, #ffffff 0%, #f5c6e6 45%, #ff2e9b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 28px rgba(255, 20, 147, 0.45);
}

.hero-sub {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 20, 147, 0.14);
  border: 1px solid rgba(255, 71, 173, 0.45);
  color: #ffd1eb;
  box-shadow: 0 0 18px rgba(255, 20, 147, 0.25);
}

.status-pill.voted {
  background: linear-gradient(90deg, rgba(255, 20, 147, 0.35), rgba(214, 0, 127, 0.35));
  border-color: #ff47ad;
  color: #ffffff;
  box-shadow: 0 0 24px rgba(255, 20, 147, 0.45);
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-bright);
  box-shadow: 0 0 10px var(--pink-neon);
  animation: pulseDot 1.6s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.65; }
}

/* Баннеры */
.banner {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.banner.ok {
  border-color: rgba(255, 71, 173, 0.6);
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.18), rgba(20, 6, 25, 0.88));
}

.banner.err {
  border-color: rgba(255, 77, 109, 0.7);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(20, 6, 25, 0.9));
}

/* Сетка карточек голосования */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, filter 0.35s ease, opacity 0.35s ease;
}

.card-appear {
  animation: revealPop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 71, 173, 0.65);
  box-shadow: 0 14px 36px rgba(255, 20, 147, 0.22);
}

/* Подсветка выбранной карточки */
.card.is-voted {
  border: 2px solid #ff2e9b;
  background: linear-gradient(180deg, rgba(55, 10, 52, 0.92) 0%, rgba(22, 5, 26, 0.96) 100%);
  box-shadow:
    0 0 28px rgba(255, 20, 147, 0.55),
    0 0 60px rgba(255, 20, 147, 0.22);
  transform: translateY(-4px);
}

.card.is-voted:hover {
  transform: translateY(-6px);
}

/* Затемнение остальных карточек после голосования */
.card.is-dimmed {
  filter: grayscale(82%) brightness(0.58);
  opacity: 0.72;
  border-color: rgba(255, 255, 255, 0.08);
}

.card.is-dimmed:hover {
  transform: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.14);
}

.voted-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #ff1493, #ff5db1);
  box-shadow: 0 0 16px rgba(255, 20, 147, 0.85);
}

.card-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a0920;
  cursor: zoom-in;
}

.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--img-ox, 50%) var(--img-oy, 50%);
  transform: scale(var(--img-zoom, 1));
  transform-origin: var(--img-ox, 50%) var(--img-oy, 50%);
  display: block;
  transition: transform 0.35s ease;
}

.card:hover .card-photo {
  transform: scale(calc(var(--img-zoom, 1) * 1.03));
}

.card.is-dimmed:hover .card-photo {
  transform: scale(var(--img-zoom, 1));
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
  gap: 14px;
}

.card-name {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  word-break: break-word;
}

/* Кнопка «Проголосовать» */
.vote-form {
  margin-top: auto;
}

.btn-vote {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, #ff1493 0%, #d40078 100%);
  box-shadow: 0 4px 18px rgba(255, 20, 147, 0.42);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-vote:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 20, 147, 0.72);
  filter: brightness(1.08);
}

.btn-vote:active {
  transform: translateY(1px);
}

.btn-vote.btn-voted {
  cursor: default;
  background: linear-gradient(135deg, #ff3ca6 0%, #ff1493 50%, #c80070 100%);
  box-shadow: 0 0 24px rgba(255, 20, 147, 0.85), inset 0 0 12px rgba(255, 255, 255, 0.35);
}

.btn-vote.btn-voted:hover {
  transform: none;
  filter: none;
}

.btn-vote.btn-disabled {
  cursor: default;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.btn-vote.btn-disabled:hover {
  transform: none;
  filter: none;
}

.unvote-form {
  margin-top: 8px;
}

.btn-unvote {
  width: 100%;
  border: 1px solid rgba(255, 158, 210, 0.45);
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  color: #ffd6ee;
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-unvote:hover {
  background: rgba(255, 20, 147, 0.22);
  border-color: #ff47ad;
  color: #ffffff;
}

/* =================== ПОШАГОВОЕ ОТКРЫТИЕ РЕЗУЛЬТАТОВ =================== */
.reveal-stage {
  max-width: min(92vw, 600px);
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.reveal-stage.is-active {
  min-height: calc(100dvh - 72px);
  margin: 0 auto;
}

.reveal-stage .podium-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: 56dvh;
  background: #1a0920;
}

.reveal-stage .podium-rank-bar {
  padding: 13px 18px;
  font-size: 16px;
}

.reveal-stage .podium-info {
  padding: 16px 20px 18px;
}

.reveal-stage .podium-name {
  font-size: clamp(20px, 3vw, 26px);
  margin-bottom: 10px;
}

.reveal-stage .podium-votes {
  font-size: 16px;
  padding: 8px 20px;
}

.reveal-next-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.reveal-intro-card {
  background: linear-gradient(160deg, rgba(44, 10, 48, 0.88) 0%, rgba(16, 4, 20, 0.94) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 71, 173, 0.55);
  border-radius: 26px;
  padding: 36px 24px;
  box-shadow: 0 0 42px rgba(255, 20, 147, 0.28), 0 18px 42px rgba(0, 0, 0, 0.65);
  animation: revealPop 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-intro-title {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  background: linear-gradient(180deg, #ffffff 0%, #ffd2ec 55%, #ff2e9b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reveal-intro-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 26px;
}

.btn-reveal-big {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 16px 24px;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, #ff1493 0%, #ff47ad 50%, #c80070 100%);
  box-shadow: 0 0 28px rgba(255, 20, 147, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-reveal-big:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 38px rgba(255, 20, 147, 0.9);
  filter: brightness(1.08);
}

.btn-reveal-big:active {
  transform: translateY(1px);
}

.reveal-step-card {
  animation: revealSlideIn 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-reveal-next {
  border: 1px solid rgba(255, 71, 173, 0.7);
  border-radius: 14px;
  padding: 14px 28px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.85), rgba(168, 0, 107, 0.9));
  box-shadow: 0 0 24px rgba(255, 20, 147, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-reveal-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(255, 20, 147, 0.8);
}

@keyframes revealPop {
  0% { opacity: 0; transform: scale(0.92) translateY(14px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes revealSlideIn {
  0% { opacity: 0; transform: scale(0.84) translateY(34px); filter: brightness(1.5); }
  60% { opacity: 1; transform: scale(1.03) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: brightness(1); }
}

/* =================== ЭКРАН РЕЗУЛЬТАТОВ (ПОДИУМ) =================== */
.results-header {
  text-align: center;
  margin-bottom: 26px;
}

.results-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 6px;
  background: linear-gradient(180deg, #ffffff 0%, #ffd2ec 55%, #ff2e9b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.results-sub {
  color: var(--text-muted);
  font-size: 14px;
}

/* Топ-3 подиум на первом экране */
.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 44px;
}

.podium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.podium-card.place-1 {
  order: 2;
  border: 2px solid #ff2e9b;
  box-shadow:
    0 0 38px rgba(255, 20, 147, 0.55),
    0 18px 44px rgba(0, 0, 0, 0.7);
  transform: translateY(-12px);
}

.podium-card.place-2 {
  order: 1;
  border: 2px solid rgba(226, 232, 240, 0.72);
  box-shadow: 0 0 26px rgba(226, 232, 240, 0.22), 0 14px 36px rgba(0, 0, 0, 0.6);
}

.podium-card.place-3 {
  order: 3;
  border: 2px solid rgba(244, 162, 198, 0.58);
  box-shadow: 0 0 22px rgba(244, 114, 182, 0.22), 0 14px 36px rgba(0, 0, 0, 0.6);
}

.podium-rank-bar {
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.place-1 .podium-rank-bar {
  background: linear-gradient(90deg, #ff1493, #ff70c0, #ff1493);
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.place-2 .podium-rank-bar {
  background: linear-gradient(90deg, #94a3b8, #f1f5f9, #94a3b8);
  color: #14081a;
}

.place-3 .podium-rank-bar {
  background: linear-gradient(90deg, #a8557c, #f3b2cf, #a8557c);
  color: #1a0614;
}

.podium-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a0920;
  cursor: zoom-in;
}

.podium-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--img-ox, 50%) var(--img-oy, 50%);
  transform: scale(var(--img-zoom, 1));
  transform-origin: var(--img-ox, 50%) var(--img-oy, 50%);
  display: block;
}

.podium-info {
  padding: 16px 18px 20px;
  text-align: center;
}

.podium-name {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  word-break: break-word;
}

.podium-votes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  background: rgba(255, 20, 147, 0.22);
  border: 1px solid rgba(255, 71, 173, 0.55);
  color: #ffd6ee;
}

.place-1 .podium-votes {
  background: rgba(255, 20, 147, 0.38);
  border-color: #ff47ad;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 20, 147, 0.5);
}

/* Остальные участники (ниже подиума) */
.rest-section {
  margin-top: 12px;
}

.rest-heading {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f3d0e6;
  margin: 0 0 16px;
  text-align: center;
}

.rest-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.rest-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: border-color 0.2s ease;
}

.rest-card:hover {
  border-color: rgba(255, 71, 173, 0.5);
}

.rest-rank {
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #ff9ed2;
  background: rgba(255, 20, 147, 0.14);
  border: 1px solid rgba(255, 71, 173, 0.28);
}

.rest-photo {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a0920;
  cursor: zoom-in;
}

.rest-meta {
  min-width: 0;
  flex: 1;
}

.rest-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rest-votes {
  font-size: 13px;
  font-weight: 600;
  color: var(--pink-soft);
  margin-top: 2px;
}

/* Модальные окна (подтверждение голоса и просмотр фото) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 1, 9, 0.84);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 390px;
  background: linear-gradient(180deg, #210929 0%, #110416 100%);
  border: 1px solid rgba(255, 71, 173, 0.55);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 20, 147, 0.38);
}

.modal-thumb {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
  border: 2px solid rgba(255, 71, 173, 0.65);
}

.modal-title {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 6px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.btn-modal-cancel {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn-modal-confirm {
  flex: 1.4;
  border: 0;
  background: linear-gradient(135deg, #ff1493, #d40078);
  color: #fff;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 20, 147, 0.5);
}

.lightbox-img {
  max-width: min(92vw, 760px);
  max-height: 84vh;
  border-radius: 18px;
  border: 2px solid rgba(255, 71, 173, 0.6);
  box-shadow: 0 0 42px rgba(255, 20, 147, 0.45);
  object-fit: contain;
}

/* Адаптив для мобильных */
@media (max-width: 780px) {
  .wrap {
    padding: 14px 12px 56px;
  }
  .hero {
    margin-bottom: 18px;
  }
  .podium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 28px;
  }
  .podium-card.place-1 {
    grid-column: 1 / -1;
    order: 1;
    transform: none;
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
  }
  .podium-card.place-1 .podium-photo-wrap,
  .podium-card.place-2 .podium-photo-wrap,
  .podium-card.place-3 .podium-photo-wrap {
    aspect-ratio: 4 / 3;
    height: auto;
  }
  .podium-card.place-2 {
    order: 2;
    transform: none;
  }
  .podium-card.place-3 {
    order: 3;
    transform: none;
  }
  .podium-rank-bar {
    padding: 8px 10px;
    font-size: 12px;
  }
  .podium-info {
    padding: 10px 10px 14px;
  }
  .podium-name {
    font-size: 15px;
    margin-bottom: 6px;
  }
  .podium-votes {
    padding: 5px 10px;
    font-size: 12px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card {
    border-radius: 16px;
  }
  .voted-badge {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 9.5px;
  }
  .card-body {
    padding: 10px;
    gap: 8px;
  }
  .card-name {
    font-size: 13.5px;
  }
  .btn-vote {
    padding: 9px 6px;
    font-size: 11px;
    border-radius: 10px;
  }
  .btn-unvote {
    padding: 7px 6px;
    font-size: 10.5px;
    border-radius: 8px;
  }
}

/* =================== СТИЛИ АДМИНКИ =================== */
.admin-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.admin-h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(90deg, #ffffff, #ff85c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.admin-stats {
  color: var(--text-muted);
  font-size: 14px;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.btn {
  border: 0;
  border-radius: 11px;
  padding: 10px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #ff1493, #c80070);
  box-shadow: 0 4px 16px rgba(255, 20, 147, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn.gray {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn.red {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn.glow {
  background: linear-gradient(135deg, #ff2e9b, #9333ea);
  box-shadow: 0 0 22px rgba(255, 20, 147, 0.6);
}

input[type=text],
input[type=file] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255, 71, 173, 0.32);
  border-radius: 11px;
  font: inherit;
  color: #fff;
  background: rgba(10, 3, 14, 0.75);
}

input[type=text]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.tbl-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
}

.tbl th,
.tbl td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 14px;
}

.tbl th {
  background: rgba(255, 20, 147, 0.12);
  font-weight: 700;
  color: #ffd1eb;
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
}
