@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --space-black: #020408;
  --deep-navy: #0a0f1d;
  --neon-cyan: #38bdf8;
  --neon-magenta: #ec4899;
  --solar-yellow: #facc15;
  --font-sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Outfit", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-sans);
  background-color: var(--space-black);
  color: #f1f5f9;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

::selection {
  background: rgba(56, 189, 248, 0.25);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0f1d;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0e7490;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(to bottom, #020408 0%, #04111f 38%, #130728 62%, #271033 82%, #4d2434 94%, #70531d 100%),
    radial-gradient(ellipse at 20% 62%, rgba(34, 211, 238, 0.13) 0%, transparent 36%),
    radial-gradient(ellipse at 58% 76%, rgba(236, 72, 153, 0.13) 0%, transparent 34%),
    radial-gradient(ellipse at 78% 92%, rgba(250, 204, 21, 0.13) 0%, transparent 34%);
}

.star-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 40px 40px;
}

.border-frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  border: 12px solid #020408;
}
.border-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.border-frame-dots {
  position: fixed;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 6px;
  z-index: 101;
  pointer-events: none;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-red { background: rgba(239, 68, 68, 0.8); box-shadow: 0 0 8px rgba(239, 68, 68, 0.45); }
.dot-yellow { background: rgba(250, 204, 21, 0.8); box-shadow: 0 0 8px rgba(250, 204, 21, 0.35); }
.dot-pink { background: rgba(236, 72, 153, 0.8); box-shadow: 0 0 8px rgba(236, 72, 153, 0.45); }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, #22d3ee, #ec4899, #facc15);
  z-index: 210;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
  transition: width 0.1s;
}

.brand-logo-img {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.4));
}

.hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #22d3ee;
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}
.hero-subtitle {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.year-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #a5f3fc;
}

.command-module {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(236, 72, 153, 0.05);
}
.command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.command-dots {
  display: flex;
  gap: 6px;
}
.command-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.category-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}
.category-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.category-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.category-btn {
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 13px;
  transition: all 0.2s;
}
.category-btn:hover {
  border-color: var(--neon-magenta);
  color: #fce7f3;
}
.category-btn.active {
  border-color: var(--neon-magenta);
  background: rgba(236, 72, 153, 0.2);
  color: #fce7f3;
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.15);
}

.winners-section {
  padding: 0 24px 40px;
}
.winners-grid {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding: 30px 20px 10px;
  min-height: 280px;
}
.winner-card {
  position: relative;
  padding: 20px 16px;
  border-radius: 12px 12px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: all 0.3s;
  text-align: center;
}
.winner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.winner-card[data-rank="2"] {
  order: 1;
  margin-bottom: 40px;
  min-height: 180px;
  flex: 1;
}
.winner-card[data-rank="2"]::before {
  background: linear-gradient(to right, #c0c0c0, #e5e5e5);
}
.winner-card[data-rank="1"] {
  order: 2;
  margin-bottom: 70px;
  min-height: 220px;
  flex: 1.2;
  border-color: rgba(250, 204, 21, 0.3);
  box-shadow: 0 0 40px rgba(250, 204, 21, 0.1);
}
.winner-card[data-rank="1"]::before {
  background: linear-gradient(to right, #ffd700, #ffec8b, #ffd700);
  height: 4px;
}
.winner-card[data-rank="3"] {
  order: 3;
  margin-bottom: 15px;
  min-height: 150px;
  flex: 1;
}
.winner-card[data-rank="3"]::before {
  background: linear-gradient(to right, #cd7f32, #daa520);
}
.trophy-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 8px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  animation: trophyFloat 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}
.winner-card:hover .trophy-img {
  transform: scale(1.05) translateY(-2px);
}
.winner-card[data-rank="1"] .trophy-img {
  width: 90px;
  height: 90px;
}
@keyframes trophyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.winner-card:hover .trophy-img {
  animation: none;
  transform: scale(1.05) translateY(-4px);
}

.winner-position {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  font-style: italic;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.winner-card[data-rank="1"] .winner-position {
  font-size: 28px;
  color: #ffd700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}
.winner-card[data-rank="2"] .winner-position { color: #e5e5e5; }
.winner-card[data-rank="3"] .winner-position { color: #cd853f; }
.winner-card:hover {
  transform: translateY(-4px);
}
.winner-card[data-rank="1"]:hover {
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: 0 8px 40px rgba(250, 204, 21, 0.2);
}
.winner-position {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  font-style: italic;
  margin-bottom: 8px;
}
.winner-card[data-rank="1"] .winner-position {
  font-size: 40px;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}
.winner-card[data-rank="2"] .winner-position { color: #c0c0c0; }
.winner-card[data-rank="3"] .winner-position { color: #cd7f32; }
.winner-name {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  word-break: break-word;
}
.winner-card[data-rank="1"] .winner-name {
  font-size: 16px;
}
.winner-org {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}
.winner-event {
  font-size: 10px;
  color: var(--neon-cyan);
  font-weight: 600;
}
.empty-winner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

.filters-row {
  display: flex;
  gap: 10px;
  padding: 20px 24px 16px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.filter-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-right: 4px;
}
.filter-btn {
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 13px;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: var(--neon-cyan);
  color: #e0f2fe;
}
.filter-btn.active {
  border-color: var(--neon-cyan);
  background: rgba(56, 189, 248, 0.15);
  color: #e0f2fe;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.15);
}

.search-row {
  display: flex;
  gap: 12px;
  padding: 0 24px 20px;
  align-items: center;
}
.search-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 16px;
  color: white;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}
.search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.search-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}
.count-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.data-table th {
  background: rgba(0, 0, 0, 0.4);
  padding: 14px 20px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
}
.data-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.data-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.05);
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  gap: 16px;
  flex-wrap: wrap;
}
.page-info {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}
.page-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--neon-cyan);
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.1);
}
.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.page-btn.active {
  border-color: var(--neon-cyan);
  background: rgba(56, 189, 248, 0.2);
  color: #e0f2fe;
}

.state-msg {
  padding: 60px 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}
.state-error {
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.4);
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #020408 0%, #0a0f1d 50%, #020408 100%);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px;
}
.splash-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(56, 189, 248, 0.5));
  animation: splashPulse 2s ease-in-out infinite;
}
@keyframes splashPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 30px rgba(56, 189, 248, 0.5)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 50px rgba(236, 72, 153, 0.6)); }
}
.splash-text-container {
  margin-bottom: 30px;
}
.splash-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 12px;
  animation: fadeSlideUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.splash-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeSlideUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}
.splash-loader {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.splash-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta), var(--solar-yellow));
  border-radius: 2px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--neon-cyan);
}
.splash-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  animation: fadeIn 0.5s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}
.splash-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  animation: scanlineMove 2s linear infinite;
  opacity: 0.5;
}
@keyframes scanlineMove {
  0% { top: 0; opacity: 0.5; }
  50% { opacity: 0.8; }
  100% { top: 100%; opacity: 0.5; }
}

.footer {
  padding: 40px 24px 60px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}
.footer-text code {
  color: var(--neon-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .border-frame {
    border-width: 8px;
  }
  .hero {
    padding: 40px 16px 30px;
    min-height: auto;
  }
  .brand-logo-img {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
  }
  .hero-eyebrow {
    font-size: 9px;
    letter-spacing: 0.3em;
  }
  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }
  .hero-subtitle {
    font-size: 13px;
    padding: 0 10px;
  }
  .year-badge {
    font-size: 11px;
    padding: 8px 14px;
  }
  .winners-grid {
    padding: 20px 12px;
    gap: 8px;
    min-height: auto;
    flex-direction: column;
    align-items: center;
  }
  .winner-card {
    width: 100%;
    max-width: 300px;
    margin-bottom: 0 !important;
  }
  .trophy-img {
    width: 60px;
    height: 60px;
  }
  .winner-card[data-rank="1"] .trophy-img {
    width: 70px;
    height: 70px;
  }
  .winner-position {
    font-size: 20px;
  }
  .winner-card[data-rank="1"] .winner-position {
    font-size: 24px;
  }
  .winner-name {
    font-size: 13px;
  }
  .winner-org, .winner-event {
    font-size: 10px;
  }
  .category-row {
    padding: 12px 16px;
    gap: 8px;
  }
  .category-label {
    font-size: 9px;
    width: 100%;
  }
  .category-list {
    width: 100%;
  }
  .category-btn {
    font-size: 12px;
    padding: 6px 12px;
  }
  .filters-row {
    padding: 16px;
    gap: 8px;
  }
  .filter-label {
    font-size: 9px;
    width: 100%;
  }
  .filter-btn {
    font-size: 12px;
    padding: 6px 12px;
  }
  .search-row {
    padding: 0 16px 16px;
    flex-direction: column;
  }
  .search-input {
    font-size: 14px;
    padding: 10px 14px;
  }
  .data-table {
    font-size: 12px;
  }
  .data-table th, .data-table td {
    padding: 10px 12px;
  }
  .pagination {
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
  }
  .page-btn {
    min-width: 32px;
    height: 32px;
    font-size: 11px;
  }
  .command-module {
    border-radius: 8px;
  }
  .command-bar {
    padding: 10px 14px;
  }
  .footer {
    padding: 30px 20px 40px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 30px 12px 24px;
  }
  .brand-logo-img {
    width: 50px;
    height: 50px;
  }
  .winners-grid {
    padding: 16px 8px;
  }
  .winner-card {
    max-width: 100%;
    padding: 16px 12px;
  }
  .trophy-img {
    width: 50px;
    height: 50px;
  }
  .winner-card[data-rank="1"] .trophy-img {
    width: 60px;
    height: 60px;
  }
  .category-btn {
    font-size: 11px;
    padding: 5px 10px;
  }
  .filter-btn {
    font-size: 11px;
    padding: 5px 10px;
  }
}
