﻿:root {
  --bg-1: #0b1020;
  --bg-2: #151a2f;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #f4f7ff;
  --text-dim: #a8b4d4;
  --accent-1: #44d1ff;
  --accent-2: #ff9e44;
  --banner-home-image: url("media/images/theme-home.png");
  --banner-session-image: url("media/images/theme-challenge.png");
  --banner-feedback-image: url("media/images/theme-home.png");
  --banner-community-image: url("media/images/theme-community.png");
  --banner-classement-image: url("media/images/theme-home.png");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at -10% -10%, rgba(68, 209, 255, 0.20), transparent 60%),
    radial-gradient(1000px 600px at 110% 110%, rgba(255, 158, 68, 0.18), transparent 55%),
    linear-gradient(150deg, var(--bg-1), var(--bg-2));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(14px, 3vw, 40px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(10, 14, 28, 0.72);
  backdrop-filter: blur(10px);
}

.logo {
  font-weight: 900;
  letter-spacing: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.nav-item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(219, 231, 255, 0.9);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 0;
  font-weight: 600;
  font-size: 13px;
  background: transparent;
}

.nav-item a:hover {
  background: transparent;
  text-decoration: underline;
}

.nav-item.active > a {
  position: relative;
}

.nav-item > a > span {
  position: relative;
  display: inline-block;
}

.nav-item.active > a > span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 4px;
  border-radius: 6px;
  background: linear-gradient(90deg, #ff2da6, #2ee7ff);
  box-shadow: 0 8px 30px rgba(46, 231, 255, 0.06);
}

.caret {
  margin-left: 6px;
  opacity: 0.8;
}

.btn-twitch {
  background: linear-gradient(90deg, rgba(255, 45, 166, 0.12), rgba(46, 231, 255, 0.12));
  color: #2ee7ff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 700;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.btn-twitch--logout {
  color: rgba(219, 231, 255, 0.75);
}

.btn-twitch--logout:hover {
  border-color: rgba(255, 45, 166, 0.4);
  color: #fff;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(46, 231, 255, 0.35);
  object-fit: cover;
  flex-shrink: 0;
}

.player-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-dropdown-parent {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: linear-gradient(180deg, rgba(11, 10, 16, 0.95), rgba(15, 14, 22, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 16px 50px rgba(5, 10, 30, 0.6);
  display: none;
  z-index: 60;
}

.nav-dropdown li {
  list-style: none;
}

.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  color: rgba(219, 231, 255, 0.92);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.nav-dropdown a:hover {
  background: linear-gradient(90deg, rgba(46, 231, 255, 0.03), rgba(255, 45, 166, 0.03));
  transform: translateX(4px);
}

.nav-dropdown-parent:hover .nav-dropdown {
  display: block;
}

.nav-dropdown-parent.open .nav-dropdown {
  display: block;
}

.page-shell {
  width: min(1720px, calc(100% - clamp(14px, 2.4vw, 42px)));
  margin: 24px auto 30px;
  min-height: calc(100vh - 130px);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(7, 11, 21, 0.84), rgba(7, 11, 21, 0.84));
}

.hero-banner {
  --banner-image: url("media/images/theme-home.png");
  position: relative;
  display: flex;
  gap: 26px;
  align-items: center;
  padding: clamp(20px, 4vw, 34px);
  min-height: 290px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(rgba(8, 12, 24, 0.38), rgba(8, 12, 24, 0.52)), var(--banner-image) center/cover no-repeat;
}

.hero-left {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 880px;
}

.kicker {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: #2ee7ff;
}

.hero-left h1 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.05;
}

.lead {
  margin: 0;
  color: rgba(219, 231, 255, 0.84);
  max-width: 640px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.feature-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  color: #e6f3ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
}

.feature-item .icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.feature-item.challenge {
  color: #ff6ec3;
}

.feature-item.remix {
  color: #4ce8ff;
}

.feature-item.community {
  color: #52e38f;
}

.feature-item.classement {
  color: #ffbf6b;
}

.feature-item.live {
  color: #9f8cff;
}

.hero-right {
  width: 240px;
  min-height: 140px;
}

body.page-home .hero-banner {
  --banner-image: var(--banner-home-image);
}

body.page-challenge .hero-banner {
  --banner-image: var(--banner-session-image);
  justify-content: center;
}

body.page-challenge .hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: none;
}

body.page-challenge .hero-right {
  display: none;
}

.challenge-hero-kicker {
  margin: 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 900;
  background: linear-gradient(90deg, #ffffff 5%, #f3ecff 42%, #ff4fcf 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.challenge-hero-number {
  margin: 6px 0 12px;
  font-size: clamp(84px, 14vw, 176px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 900;
  background: linear-gradient(90deg, #ff2da6 0%, #b54bff 48%, #2f97ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(47, 151, 255, 0.32);
}

.challenge-hero-date {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 11, 21, 0.62);
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f5f7ff;
}

.challenge-center-content {
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.challenge-content-layout {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(280px, 350px);
  gap: 14px;
  align-items: start;
}

@media (max-width: 1240px) {
  .challenge-content-layout {
    grid-template-columns: 1fr;
  }

  .challenge-sidebar-left {
    order: 1;
  }

  .challenge-center-content {
    order: 2;
  }

  .challenge-sidebar-right {
    order: 3;
  }
}

.challenge-sidebar-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.challenge-side-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 45, 166, 0.36);
  background: linear-gradient(180deg, rgba(14, 10, 29, 0.94), rgba(8, 12, 24, 0.92));
  padding: 14px;
}

.sessions-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.session-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.session-item:first-child {
  border-top: 0;
}

.session-item a {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px 4px;
  text-decoration: none;
  color: #f4f7ff;
}

.session-id {
  font-size: 34px;
  font-weight: 800;
  color: #f3f7ff;
}

.session-date {
  font-size: 17px;
  letter-spacing: 0.03em;
  color: rgba(219, 231, 255, 0.78);
}

.session-arrow {
  font-size: 32px;
  line-height: 1;
  color: rgba(219, 231, 255, 0.64);
}

.session-item.active a {
  border-radius: 10px;
  border: 1px solid rgba(255, 45, 166, 0.72);
  padding-left: 10px;
  padding-right: 10px;
  background: linear-gradient(90deg, rgba(255, 45, 166, 0.28), rgba(255, 45, 166, 0.08));
  box-shadow: inset 0 0 20px rgba(255, 45, 166, 0.2), 0 0 18px rgba(255, 45, 166, 0.22);
}

.session-item.active .session-id {
  color: #ffd95f;
}

.sessions-all-btn {
  width: 100%;
  margin-top: 10px;
  justify-content: center;
  font-size: 13px;
}

.replay-card {
  border-color: rgba(160, 108, 255, 0.42);
}

.replay-thumb {
  height: 120px;
  border-radius: 10px;
  border: 1px solid rgba(46, 231, 255, 0.7);
  background:
    radial-gradient(120px 60px at 30% 30%, rgba(255, 45, 166, 0.5), transparent 70%),
    radial-gradient(120px 60px at 70% 65%, rgba(46, 231, 255, 0.42), transparent 70%),
    linear-gradient(160deg, rgba(21, 16, 45, 0.92), rgba(8, 13, 28, 0.92));
  box-shadow: inset 0 0 24px rgba(46, 231, 255, 0.14);
}

.replay-title {
  margin: 14px 0 8px;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: #ff8de5;
}

.replay-text {
  margin: 0;
  color: rgba(219, 231, 255, 0.78);
  font-size: 17px;
  line-height: 1.35;
}

.replay-btn {
  width: 100%;
  margin-top: 14px;
  justify-content: center;
  font-size: 13px;
}

.challenge-sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-list {
  margin: 0;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row dt,
.info-row dd {
  margin: 0;
  font-size: 15px;
  color: #e9f0ff;
}

.info-row dt {
  color: rgba(219, 231, 255, 0.78);
}

.side-action-btn {
  width: 100%;
  margin-top: 12px;
  justify-content: center;
  font-size: 13px;
}

.right-podium-card {
  border-color: rgba(255, 184, 66, 0.35);
}

.mini-podium {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 10px;
  align-items: end;
}

.mini-podium-item {
  border-radius: 10px;
  border: 1px solid rgba(100, 146, 255, 0.3);
  background: rgba(9, 14, 31, 0.92);
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-podium-item.first {
  border-color: rgba(255, 199, 70, 0.62);
  background: linear-gradient(180deg, rgba(255, 189, 58, 0.18), rgba(33, 25, 9, 0.74));
  min-height: 160px;
}

.mini-podium-item.second,
.mini-podium-item.third {
  min-height: 128px;
}

.mini-podium-item.third {
  border-color: rgba(255, 138, 64, 0.48);
}

.mini-crown {
  font-size: 20px;
  color: #ffd95f;
}

.mini-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 217, 95, 0.4);
  margin: 0 auto;
}

.mini-name {
  font-size: 20px;
  font-weight: 800;
  color: #f4f8ff;
}

.mini-sub {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffd95f;
  font-weight: 700;
}

.mini-points {
  font-size: 18px;
  font-weight: 800;
  color: #ffd95f;
}

.mini-podium-item.second .mini-name,
.mini-podium-item.third .mini-name {
  font-size: 24px;
}

.mini-podium-item.second .mini-points,
.mini-podium-item.third .mini-points {
  font-size: 15px;
}

.vote-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vote-title-row .challenge-card-title {
  margin: 0;
}

.vote-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff4da7;
  font-weight: 700;
}

.vote-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff2da6;
  box-shadow: 0 0 10px #ff2da6;
}

.vote-intro {
  margin: 10px 0 8px;
  font-size: 17px;
  color: rgba(219, 231, 255, 0.82);
}

.vote-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vote-head {
  display: grid;
  grid-template-columns: 30px 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.vote-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(174, 136, 255, 0.5);
  color: #f0e7ff;
  font-weight: 700;
}

.vote-name {
  font-size: 24px;
  font-weight: 700;
  color: #f4f8ff;
}

.vote-percent {
  font-size: 24px;
  color: #eaf1ff;
}

.vote-count {
  font-size: 20px;
  color: rgba(219, 231, 255, 0.68);
}

.vote-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.vote-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff2da6, #8c63ff, #2ee7ff);
  box-shadow: 0 0 16px rgba(255, 45, 166, 0.45);
}

.vote-note {
  margin: 10px 0 0;
  text-align: center;
  color: rgba(219, 231, 255, 0.66);
  font-size: 19px;
}

.challenge-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.sample-card {
  min-height: 230px;
}

.challenge-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 71, 213, 0.24);
  background: linear-gradient(180deg, rgba(18, 14, 36, 0.88), rgba(9, 13, 28, 0.88));
  padding: 14px;
}

.challenge-card-title {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 226, 255, 0.94);
  font-weight: 700;
}

.fake-waveform {
  height: 88px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 45, 166, 0.85), rgba(150, 97, 255, 0.78) 55%, rgba(46, 231, 255, 0.85)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 2px,
      transparent 2px,
      transparent 7px
    );
  mask-image: radial-gradient(circle at 50% 50%, #000 65%, transparent 100%);
  opacity: 0.9;
}

.sample-timebar {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(219, 231, 255, 0.78);
}

.timebar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.timebar-progress {
  display: block;
  width: 22%;
  height: 100%;
  background: linear-gradient(90deg, #ff2da6, #2ee7ff);
}

.sample-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sample-actions .btn,
.participants-footer .btn {
  justify-content: center;
  font-size: 13px;
  padding: 10px 12px;
}

.timer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-color: rgba(46, 231, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(46, 231, 255, 0.12);
}

.timer-value {
  margin: 4px 0 8px;
  font-size: clamp(54px, 8vw, 86px);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #ff2da6, #7f69ff 52%, #2ee7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timer-status {
  margin: 0;
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f0e9ff;
}

.timer-end {
  margin: 8px 0 0;
  color: rgba(219, 231, 255, 0.76);
  font-size: 14px;
}

.challenge-meta-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.meta-item {
  border-radius: 10px;
  border: 1px solid rgba(170, 113, 255, 0.24);
  background: rgba(15, 17, 34, 0.84);
  padding: 10px;
  min-height: 84px;
}

.meta-label {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(219, 231, 255, 0.62);
}

.meta-value {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  color: #f6f8ff;
}

.challenge-table-wrapper {
  overflow-x: auto;
}

.challenge-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.challenge-table th {
  text-align: left;
  padding: 10px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(219, 231, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.challenge-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #edf4ff;
}

.challenge-table tr.rank-1 {
  background: linear-gradient(90deg, rgba(255, 185, 45, 0.16), rgba(255, 170, 56, 0.06));
}

.challenge-table tr.rank-2 {
  background: linear-gradient(90deg, rgba(197, 197, 214, 0.14), rgba(197, 197, 214, 0.04));
}

.challenge-table tr.rank-3 {
  background: linear-gradient(90deg, rgba(255, 136, 45, 0.16), rgba(255, 136, 45, 0.05));
}

.challenge-table .pts {
  color: #ffd950;
  font-weight: 800;
}

.participants-footer {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

body.page-feedback .hero-banner {
  --banner-image: var(--banner-feedback-image);
}

body.page-community .hero-banner {
  --banner-image: var(--banner-community-image);
}

body.page-classement .hero-banner {
  --banner-image: var(--banner-classement-image);
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.page-shell::before {
  width: 340px;
  height: 340px;
  top: -130px;
  left: -110px;
  background: rgba(68, 209, 255, 0.16);
}

.page-shell::after {
  width: 300px;
  height: 300px;
  right: -110px;
  bottom: -120px;
  background: rgba(255, 158, 68, 0.18);
}

.page-blank {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: calc(100vh - 180px);
  padding: clamp(20px, 3vw, 34px);
  display: flex;
  flex-direction: column;
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.content-header {
  text-align: center;
  position: relative;
  z-index: 2;
}

.content-title {
  margin: 0;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #2ee7ff, #ff2da6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.content-subtitle {
  margin: 12px 0 0;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(219, 231, 255, 0.72);
  font-weight: 600;
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: 200ms ease;
}

.btn-primary {
  background: linear-gradient(90deg, #ff2da6, #2ee7ff);
  color: #0e1526;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(46, 231, 255, 0.32);
}

.btn-secondary {
  background: transparent;
  color: #2ee7ff;
  border: 2px solid #2ee7ff;
}

.btn-secondary:hover {
  background: rgba(46, 231, 255, 0.08);
  transform: translateY(-2px);
}

.countdown-section {
  text-align: center;
}

.countdown-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(219, 231, 255, 0.6);
  margin-bottom: 16px;
}

.countdown-display {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(46, 231, 255, 0.28);
  background: linear-gradient(180deg, rgba(46, 231, 255, 0.08), rgba(255, 45, 166, 0.04));
  box-shadow: 0 8px 24px rgba(46, 231, 255, 0.08);
}

.countdown-value {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: #2ee7ff;
  line-height: 1;
}

.countdown-unit {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(219, 231, 255, 0.64);
  margin-top: 6px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.stat-card {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  text-align: center;
  transition: 200ms ease;
}

.stat-card:hover {
  border-color: rgba(46, 231, 255, 0.24);
  background: linear-gradient(180deg, rgba(46, 231, 255, 0.08), rgba(255, 45, 166, 0.03));
  transform: translateY(-4px);
}

.stat-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.stat-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(219, 231, 255, 0.68);
  font-weight: 600;
  margin-bottom: 6px;
}

.stat-value {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(90deg, #2ee7ff, #ff2da6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-meta {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(219, 231, 255, 0.52);
}

.podium-section {
  margin-top: 32px;
  text-align: center;
}

.podium-title {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(219, 231, 255, 0.88);
}

.podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  padding: 20px;
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 14px;
  border-radius: 12px;
  border: 1px solid rgba(46, 231, 255, 0.2);
  background: linear-gradient(180deg, rgba(46, 231, 255, 0.06), rgba(255, 45, 166, 0.03));
  min-width: 100px;
  transition: 200ms ease;
  position: relative;
}

.podium-item:hover {
  border-color: rgba(46, 231, 255, 0.4);
  background: linear-gradient(180deg, rgba(46, 231, 255, 0.12), rgba(255, 45, 166, 0.06));
  transform: translateY(-4px);
}

.podium-rank-1 {
  border: 2px solid rgba(255, 215, 0, 0.5);
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.12), rgba(255, 215, 0, 0.04));
  min-width: 120px;
  padding: 20px 14px;
}

.podium-rank-1:hover {
  border-color: rgba(255, 215, 0, 0.8);
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.08));
}

.podium-rank-2,
.podium-rank-3 {
  min-height: 160px;
  justify-content: space-around;
}

.podium-rank-1 {
  min-height: 200px;
  justify-content: space-around;
}

.podium-crown {
  position: absolute;
  top: -16px;
  font-size: 24px;
}

.podium-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}

.podium-rank-1 .podium-rank {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #0e1526;
}

.podium-rank-2 .podium-rank {
  background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
  color: #0e1526;
}

.podium-rank-3 .podium-rank {
  background: linear-gradient(135deg, #cd7f32, #e6b373);
  color: #0e1526;
}

.podium-avatar {
  font-size: 32px;
}

.podium-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.podium-score {
  font-size: 12px;
  font-weight: 600;
  color: #2ee7ff;
}

.leaderboard-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.season-filter-wrapper {
  position: relative;
  min-width: 140px;
}

.season-filter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(46, 231, 255, 0.24);
  background: rgba(46, 231, 255, 0.04);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
  gap: 8px;
}

.season-filter-toggle:hover {
  border-color: rgba(46, 231, 255, 0.48);
  background: rgba(46, 231, 255, 0.08);
}

.season-filter-toggle:focus {
  outline: none;
  border-color: rgba(46, 231, 255, 0.48);
  background: rgba(46, 231, 255, 0.08);
}

.season-filter-toggle.open .season-filter-arrow {
  transform: scaleY(-1);
}

.season-filter-label {
  flex: 1;
  text-align: left;
}

.season-filter-arrow {
  flex-shrink: 0;
  color: #2ee7ff;
  transition: transform 200ms ease;
}

.season-filter-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  min-width: 140px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border-radius: 8px;
  border: 1px solid rgba(46, 231, 255, 0.6);
  background: 
    linear-gradient(180deg, rgba(46, 231, 255, 0.5), rgba(255, 45, 166, 0.4)),
    rgba(11, 16, 32, 0.85);
  backdrop-filter: blur(50px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 200ms ease, visibility 200ms ease, transform 200ms ease;
  z-index: 1000;
}

.season-filter-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.season-filter-menu li {
  margin: 0;
}

.season-filter-menu li a {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  transition: 150ms ease;
}

.season-filter-menu li a:hover {
  background: rgba(46, 231, 255, 0.12);
  color: #2ee7ff;
}

.player-search {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(46, 231, 255, 0.24);
  background: rgba(46, 231, 255, 0.04);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.player-search:hover,
.player-search:focus {
  border-color: rgba(46, 231, 255, 0.48);
  background: rgba(46, 231, 255, 0.08);
  outline: none;
}

.player-search::placeholder {
  color: rgba(219, 231, 255, 0.48);
}


.leaderboard-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(46, 231, 255, 0.2);
  background: linear-gradient(180deg, rgba(46, 231, 255, 0.04), rgba(255, 45, 166, 0.02));
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.leaderboard-table thead {
  background: linear-gradient(90deg, rgba(46, 231, 255, 0.12), rgba(255, 45, 166, 0.08));
  border-bottom: 1px solid rgba(46, 231, 255, 0.2);
}

.leaderboard-table th {
  padding: 14px;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(219, 231, 255, 0.8);
}

.leaderboard-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: 200ms ease;
}

.leaderboard-table tbody tr:hover {
  background: rgba(46, 231, 255, 0.06);
}

.leaderboard-table tr.rank-1 {
  background: rgba(255, 215, 0, 0.08);
}

.leaderboard-table tr.rank-1:hover {
  background: rgba(255, 215, 0, 0.12);
}

.leaderboard-table tr.rank-2 {
  background: rgba(192, 192, 192, 0.06);
}

.leaderboard-table tr.rank-2:hover {
  background: rgba(192, 192, 192, 0.1);
}

.leaderboard-table tr.rank-3 {
  background: rgba(205, 127, 50, 0.06);
}

.leaderboard-table tr.rank-3:hover {
  background: rgba(205, 127, 50, 0.1);
}

.leaderboard-table td {
  padding: 14px;
  color: var(--text);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 14px;
}

.rank-1 .rank-badge {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #0e1526;
}

.rank-2 .rank-badge {
  background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
  color: #0e1526;
}

.rank-3 .rank-badge {
  background: linear-gradient(135deg, #cd7f32, #e6b373);
  color: #0e1526;
}

.player {
  font-weight: 700;
}

.points {
  color: #ff2da6;
  font-weight: 700;
}

.participations {
  color: #2ee7ff;
}

.victories {
  color: #52e38f;
}

.cups {
  color: #ffbf6b;
}

.leaderboard-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(219, 231, 255, 0.52);
}

/* Layout 3 colonnes */
.leaderboard-layout {
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 20px;
  grid-template-areas: "sidebar-left main sidebar-right";
}

.leaderboard-sidebar-left {
  grid-area: sidebar-left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.leaderboard-main {
  grid-area: main;
}

.leaderboard-sidebar-right {
  grid-area: sidebar-right;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-section {
  border-radius: 12px;
  border: 1px solid rgba(46, 231, 255, 0.2);
  background: linear-gradient(180deg, rgba(46, 231, 255, 0.04), rgba(255, 45, 166, 0.02));
  padding: 16px;
}

.sidebar-title {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(219, 231, 255, 0.88);
  border-bottom: 1px solid rgba(46, 231, 255, 0.12);
  padding-bottom: 8px;
}

.sidebar-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-stat-item {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(46, 231, 255, 0.12);
  background: rgba(46, 231, 255, 0.04);
  text-align: center;
  transition: 150ms ease;
}

.sidebar-stat-item:hover {
  border-color: rgba(46, 231, 255, 0.24);
  background: rgba(46, 231, 255, 0.08);
}

.sidebar-stat-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.sidebar-stat-value {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: #2ee7ff;
}

.sidebar-stat-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(219, 231, 255, 0.6);
  margin-top: 2px;
}

.sidebar-competition {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 45, 166, 0.12), rgba(46, 231, 255, 0.08));
  border: 1px solid rgba(255, 45, 166, 0.24);
}

.competition-trophy {
  text-align: center;
  font-size: 48px;
  margin-bottom: 8px;
}

.competition-text {
  margin: 0 0 12px;
  font-size: 12px;
  color: rgba(219, 231, 255, 0.8);
  line-height: 1.4;
}

.btn-participate-live {
  width: 100%;
  padding: 10px 12px;
  font-size: 12px;
}

.btn-participate-live.registered {
  background: rgba(46, 231, 255, 0.15);
  color: #2ee7ff;
  border: 1px solid #2ee7ff;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.track-url-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(219, 231, 255, 0.6);
  margin-bottom: 6px;
}

.track-url-input {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 10px;
  background: rgba(14, 21, 38, 0.6);
  border: 1px solid rgba(46, 231, 255, 0.3);
  border-radius: 8px;
  color: #dbe7ff;
  font-size: 13px;
  font-family: 'Space Grotesk', sans-serif;
  outline: none;
  transition: border-color 200ms ease;
}

.track-url-input:focus {
  border-color: #2ee7ff;
}

.track-url-note {
  font-size: 12px;
  color: #2ee7ff;
  margin-top: 8px;
}

.track-link {
  color: #2ee7ff;
  text-decoration: none;
  border-bottom: 1px dotted #2ee7ff;
}

.track-link:hover {
  text-decoration: underline;
  border-bottom-style: solid;
}

.vote-list-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.vote-form-item {
  border: 1px solid rgba(46, 231, 255, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(14, 21, 38, 0.4);
  cursor: pointer;
  transition: 200ms ease;
}

.vote-form-item:hover {
  border-color: #2ee7ff;
  background: rgba(14, 21, 38, 0.6);
}

.vote-radio {
  display: none;
}

.vote-form-item.selected {
  border-color: #ff2da6;
  background: rgba(255, 45, 167, 0.1);
}

.vote-form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.vote-form-name {
  font-weight: 700;
  color: #dbe7ff;
}

.vote-form-track {
  margin-left: auto;
  font-size: 12px;
  color: rgba(219, 231, 255, 0.5);
}

.vote-note {
  font-size: 12px;
  color: #2ee7ff;
  margin-top: 8px;
}

.leaderboard-header {
  text-align: center;
  margin-bottom: 24px;
}

.leaderboard-title {
  margin: 0;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #2ee7ff, #ff2da6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.leaderboard-subtitle {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(219, 231, 255, 0.64);
}

.player-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-avatar {
  font-size: 16px;
}

.leaderboard-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid rgba(46, 231, 255, 0.2);
  background: transparent;
  color: rgba(219, 231, 255, 0.8);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: 150ms ease;
}

.pagination-btn:hover {
  border-color: rgba(46, 231, 255, 0.4);
  background: rgba(46, 231, 255, 0.08);
}

.pagination-btn.active {
  background: #ff2da6;
  border-color: #ff2da6;
  color: #0e1526;
}

.pagination-dots {
  color: rgba(219, 231, 255, 0.52);
}

.top-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.top-item {
  display: grid;
  grid-template-columns: 24px 24px 1fr 32px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(46, 231, 255, 0.12);
  background: rgba(46, 231, 255, 0.04);
  transition: 150ms ease;
}

.top-item:hover {
  border-color: rgba(46, 231, 255, 0.24);
  background: rgba(46, 231, 255, 0.08);
}

.top-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  background: #ff2da6;
  color: #0e1526;
}

.top-avatar {
  font-size: 14px;
}

.top-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-value {
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: #2ee7ff;
}

.btn-view-all {
  width: 100%;
  padding: 10px;
  font-size: 12px;
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .nav-list {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero-banner {
    min-height: 260px;
    padding: 18px;
  }

  .feature-item {
    min-width: 140px;
    font-size: 13px;
  }

  .hero-right {
    display: none;
  }

  .page-shell {
    min-height: calc(100vh - 190px);
  }

  .page-blank {
    min-height: 340px;
  }

  .challenge-content-layout {
    grid-template-columns: 1fr;
  }

  .challenge-sidebar-right {
    order: 3;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

   .mini-podium {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .mini-podium-item.first,
  .mini-podium-item.second,
  .mini-podium-item.third {
    min-height: auto;
  }

  .mini-podium-item {
    padding: 8px 6px;
  }

  .mini-podium-item.first .mini-name,
  .mini-podium-item.second .mini-name,
  .mini-podium-item.third .mini-name {
    font-size: 16px;
  }

  .mini-podium-item.first .mini-points,
  .mini-podium-item.second .mini-points,
  .mini-podium-item.third .mini-points {
    font-size: 12px;
  }

  .mini-crown {
    font-size: 14px;
  }

  .mini-avatar {
    width: 40px;
    height: 40px;
  }

  .vote-head {
    grid-template-columns: 26px 1fr auto;
  }

  .vote-count {
    grid-column: 2 / -1;
    font-size: 13px;
  }

  .vote-name,
  .vote-percent {
    font-size: 16px;
  }

  .vote-live {
    font-size: 12px;
  }

  .vote-intro,
  .vote-note {
    font-size: 13px;
  }

  .session-item a {
    grid-template-columns: 42px 1fr auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .session-id {
    font-size: 24px;
  }

  .session-date {
    font-size: 13px;
  }

  .replay-title {
    font-size: 18px;
  }

  .replay-text {
    font-size: 14px;
  }

  .challenge-top-grid {
    grid-template-columns: 1fr;
  }

  .sample-actions {
    grid-template-columns: 1fr;
  }

  .challenge-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .challenge-table {
    min-width: 740px;
  }

  .timer-card {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
