/* ========================================
   RealBytez — Global Styles
   ======================================== */

:root {
  /* Colors */
  --bg-primary: #0a0a1a;
  --bg-secondary: #0f0f2e;
  --bg-card: rgba(15, 15, 46, 0.7);
  --bg-card-border: rgba(100, 100, 255, 0.15);
  --bg-card-hover: rgba(20, 20, 60, 0.8);

  --cyan: #00e5ff;
  --magenta: #e040fb;
  --purple: #7c3aed;
  --deep-purple: #1e1b4b;
  --gold: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
  --pink: #ec4899;

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);

  /* Typography */
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --nav-height: 64px;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Glow effects */
  --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.3);
  --glow-magenta: 0 0 20px rgba(224, 64, 251, 0.3);
  --glow-purple: 0 0 20px rgba(124, 58, 237, 0.3);
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-card-border);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--cyan);
  border-bottom: 2px solid var(--cyan);
  border-radius: 0;
}

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

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar input {
  width: 180px;
  padding: 8px 36px 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--bg-card-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s, width 0.3s;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar input:focus {
  border-color: var(--cyan);
  width: 220px;
}

.search-icon {
  position: absolute;
  right: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.78rem;
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
  background: transparent;
  border-radius: var(--radius-sm);
}

.btn-outline-light:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.btn-gradient {
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-sm);
}

.btn-gradient:hover {
  box-shadow: var(--glow-magenta);
}

.btn-enter {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: var(--bg-primary);
  font-size: 0.95rem;
  padding: 14px 32px;
}

.btn-enter:hover {
  box-shadow: var(--glow-cyan);
}

.btn-vote {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
  background: transparent;
  font-size: 0.95rem;
  padding: 12px 32px;
}

.btn-vote:hover {
  border-color: var(--magenta);
  background: rgba(224, 64, 251, 0.1);
  box-shadow: var(--glow-magenta);
}

.btn-vote-sm {
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  color: white;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-vote-sm:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-magenta);
}

/* ========================================
   HERO
   ======================================== */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) 24px 40px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 10, 26, 0.92) 0%, rgba(10, 10, 26, 0.75) 35%, rgba(10, 10, 26, 0.3) 60%, rgba(10, 10, 26, 0.15) 100%),
    linear-gradient(180deg, rgba(10, 10, 26, 0.3) 0%, rgba(10, 10, 26, 0.1) 30%, rgba(10, 10, 26, 0.4) 70%, rgba(10, 10, 26, 0.95) 100%),
    url('/images/hero.jpg') center center / cover no-repeat;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float 4s ease-in-out infinite;
}

@keyframes particle-float {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  20% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-100px) scale(0); }
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  margin-bottom: 20px;
}

.hero-logo-img {
  max-width: clamp(280px, 40vw, 480px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.35)) drop-shadow(0 0 80px rgba(224, 64, 251, 0.2));
  animation: hero-logo-glow 3s ease-in-out infinite;
}

@keyframes hero-logo-glow {
  0%, 100% { filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.35)) drop-shadow(0 0 80px rgba(224, 64, 251, 0.2)); }
  50% { filter: drop-shadow(0 0 60px rgba(0, 229, 255, 0.5)) drop-shadow(0 0 100px rgba(224, 64, 251, 0.35)); }
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-characters {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  min-height: 300px;
}

.hero-characters-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

/* ========================================
   STATS BAR
   ======================================== */

.stats-bar {
  background: rgba(15, 15, 46, 0.9);
  border-top: 1px solid var(--bg-card-border);
  border-bottom: 1px solid var(--bg-card-border);
  padding: 0 24px;
}

.stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-icon-money {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green);
}

.stat-icon-time {
  background: rgba(224, 64, 251, 0.15);
  border: 1px solid rgba(224, 64, 251, 0.3);
  color: var(--magenta);
}

.stat-icon-votes {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--cyan);
}

.stat-icon-artists {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--gold);
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
}

.stat-value-green {
  color: var(--green);
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-label em {
  color: var(--green);
  font-style: italic;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--bg-card-border);
  flex-shrink: 0;
}

/* ========================================
   MAIN CONTENT — 3 COLUMN
   ======================================== */

.main-content {
  padding: 40px 24px 60px;
}

.main-content-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.card-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.card-link:hover {
  color: var(--cyan);
}

.card-link span {
  margin-left: 4px;
}

/* ========================================
   TOP CONTESTANTS
   ======================================== */

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

.contestant-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-card-border);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s, border-color 0.2s;
}

.contestant-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(124, 58, 237, 0.3);
}

.contestant-rank {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  width: 28px;
  text-align: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.rank-1 { color: var(--gold); }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }

.contestant-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.75rem;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.contestant-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.contestant-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.contestant-character {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.contestant-votes {
  text-align: right;
  flex-shrink: 0;
}

.vote-count {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--cyan);
}

.vote-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* ========================================
   MEET THE ARTISTS
   ======================================== */

.artists-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.artist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-card-border);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  text-align: center;
}

.artist-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

.artist-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.artist-avatar-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
}

.artist-name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.artist-genre {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--magenta);
  text-transform: uppercase;
}

/* ========================================
   LIVE LEADERBOARD
   ======================================== */

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.5px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-card-border);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s;
}

.leaderboard-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.lb-position {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.leaderboard-item:nth-child(1) .lb-position { color: var(--gold); }
.leaderboard-item:nth-child(2) .lb-position { color: #c0c0c0; }
.leaderboard-item:nth-child(3) .lb-position { color: #cd7f32; }

.lb-movement {
  width: 18px;
  font-size: 0.8rem;
  text-align: center;
  flex-shrink: 0;
  font-weight: 700;
}

.lb-up { color: var(--green); }
.lb-down { color: var(--red); }
.lb-same { color: var(--text-muted); }

.lb-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.65rem;
  color: white;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.lb-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.85rem;
}

.lb-votes {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--cyan);
  flex-shrink: 0;
}

.leaderboard-update {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 16px;
  font-style: italic;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-card-border);
  padding: 24px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.footer-logo-icon {
  color: var(--cyan);
}

.footer-copyright {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-youtube { background: rgba(255, 0, 0, 0.15); color: #ff0000; }
.social-discord { background: rgba(88, 101, 242, 0.15); color: #5865f2; }
.social-instagram { background: rgba(228, 64, 95, 0.15); color: #e4405f; }
.social-tiktok { background: rgba(255, 0, 80, 0.15); color: #ff0050; }

.social-link:hover {
  transform: translateY(-2px);
}

.social-youtube:hover { background: rgba(255, 0, 0, 0.25); }
.social-discord:hover { background: rgba(88, 101, 242, 0.25); }
.social-instagram:hover { background: rgba(228, 64, 95, 0.25); }
.social-tiktok:hover { background: rgba(255, 0, 80, 0.25); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.online-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
}

.online-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: live-pulse 1.5s ease-in-out infinite;
}

/* ========================================
   MUSIC PLAYER BAR
   ======================================== */

.music-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0a0a1a;
  border-top: 1px solid rgba(224, 64, 251, 0.25);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.music-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 16px;
}

.music-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.music-play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.music-play-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--glow-magenta);
}

.hidden {
  display: none !important;
}

.music-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.music-station {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--cyan);
}

.music-icon-note {
  color: var(--magenta);
}

.music-live-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: live-pulse 1.5s ease-in-out infinite;
  margin-left: 4px;
}

.music-live-text {
  font-size: 0.6rem;
  color: var(--red);
  letter-spacing: 1px;
}

.music-now-playing {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  min-width: 0;
}

.now-playing-label {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  flex-shrink: 0;
}

.now-playing-track {
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Visualizer bars */
.music-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  opacity: 0.3;
}

.music-visualizer.playing {
  opacity: 1;
}

.music-visualizer span {
  width: 3px;
  background: var(--magenta);
  border-radius: 1px;
  height: 4px;
  transition: height 0.1s;
}

.music-visualizer.playing span {
  animation: visualizer-bar 0.8s ease-in-out infinite;
}

.music-visualizer.playing span:nth-child(1) { animation-delay: 0s; }
.music-visualizer.playing span:nth-child(2) { animation-delay: 0.15s; }
.music-visualizer.playing span:nth-child(3) { animation-delay: 0.3s; }
.music-visualizer.playing span:nth-child(4) { animation-delay: 0.1s; }
.music-visualizer.playing span:nth-child(5) { animation-delay: 0.25s; }

@keyframes visualizer-bar {
  0%, 100% { height: 4px; }
  50% { height: 18px; }
}

/* Volume */
.music-volume {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  transition: transform 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  border: none;
}

.music-external {
  color: var(--text-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.music-external:hover {
  color: var(--cyan);
}

/* Bottom margin so footer isn't hidden behind player */
.footer {
  margin-bottom: 62px;
}

@media (max-width: 480px) {
  .music-volume {
    display: none;
  }

  .music-visualizer {
    display: none;
  }

  .now-playing-label {
    display: none;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .main-content-inner {
    grid-template-columns: 1fr 1fr;
  }

  .main-content-inner .card:last-child {
    grid-column: 1 / -1;
  }

  .hero-characters {
    display: none;
  }

  .hero-content {
    justify-content: center;
  }

  .hero-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-bottom: 1px solid var(--bg-card-border);
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    width: 100%;
  }

  .nav-link.active {
    border-bottom: none;
    border-radius: var(--radius-sm);
    background: rgba(0, 229, 255, 0.1);
  }

  .search-bar {
    display: none;
  }

  .main-content-inner {
    grid-template-columns: 1fr;
  }

  .main-content-inner .card:last-child {
    grid-column: auto;
  }

  .stats-bar-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .stat-item {
    flex: 0 0 calc(50% - 12px);
    justify-content: flex-start;
    padding: 8px;
  }

  .stat-divider {
    display: none;
  }

  .stat-value {
    font-size: 1.2rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(10, 10, 26, 0.4) 0%, rgba(10, 10, 26, 0.2) 30%, rgba(10, 10, 26, 0.5) 70%, rgba(10, 10, 26, 0.95) 100%),
      url('/images/hero-m.jpg') center center / cover no-repeat;
  }

  .hero-logo-img {
    max-width: clamp(220px, 60vw, 360px);
  }
}

@media (max-width: 480px) {
  .nav-actions .btn-outline-light {
    display: none;
  }

  .btn-enter, .btn-vote {
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  .hero {
    min-height: 420px;
    padding-top: calc(var(--nav-height) + 24px);
  }

  .hero-tagline {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .contestant-item {
    padding: 10px;
    gap: 8px;
  }

  .contestant-avatar {
    width: 36px;
    height: 36px;
  }
}

/* ========================================
   FEATURED CONTEST SECTION
   ======================================== */
.featured-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.featured-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}

.featured-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  transition: border-color 0.3s;
}
.featured-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
}

.featured-artist {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--magenta);
  margin-bottom: 8px;
}

.featured-song {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.featured-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.featured-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.featured-meta-item {
  text-align: center;
}

.featured-meta-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cyan);
  display: block;
}

.featured-meta-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: var(--bg-primary);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.featured-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(224, 64, 251, 0.35);
}

@media (max-width: 640px) {
  .featured-section { padding: 40px 20px 60px; }
  .featured-card { padding: 28px 20px; }
  .featured-meta { gap: 20px; }
}

/* ========================================
   NAV AUTH STATE
   ======================================== */
.nav-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  white-space: nowrap;
}

/* ========================================
   AUTH PAGES (LOGIN / SIGNUP)
   ======================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
    var(--bg-primary);
}

.auth-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.auth-logo {
  height: 80px;
  margin-bottom: 28px;
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.3));
}

.auth-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.auth-field {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.auth-field::placeholder { color: var(--text-muted); }
.auth-field:focus { border-color: var(--cyan); }

.auth-role-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.auth-role-option {
  flex: 1;
  padding: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-align: center;
}
.auth-role-option.selected {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}

.auth-btn {
  width: 100%;
  padding: 14px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: var(--bg-primary);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 4px;
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 0 20px rgba(224, 64, 251, 0.3); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-error {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--red);
  min-height: 20px;
}

.auth-switch {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.auth-switch a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .auth-box { padding: 36px 24px; }
  .auth-role-selector { flex-direction: column; }
}

/* ========================================
   WIZARD
   ======================================== */
.wizard-page {
  min-height: 100vh;
  padding-top: var(--nav-height);
  padding-bottom: 100px;
}

.wizard-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px;
}

.wizard-header {
  text-align: center;
  margin-bottom: 40px;
}

.wizard-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.wizard-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Progress bar */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}

.wizard-step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
}

.wizard-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s;
  flex-shrink: 0;
}
.wizard-dot.active {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}
.wizard-dot.completed {
  border-color: var(--green);
  background: var(--green);
  color: var(--bg-primary);
}

.wizard-line {
  width: 40px;
  height: 2px;
  background: var(--border-card);
  transition: background 0.3s;
}
.wizard-line.completed {
  background: var(--green);
}

/* Step content */
.wizard-step {
  display: none;
}
.wizard-step.active {
  display: block;
}

.wizard-step-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 32px;
}

.wizard-field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: block;
}

.wizard-input {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}
.wizard-input:focus { border-color: var(--cyan); }
.wizard-input::placeholder { color: var(--text-muted); }

.wizard-textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  outline: none;
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
  transition: border-color 0.2s;
}
.wizard-textarea:focus { border-color: var(--cyan); }
.wizard-textarea::placeholder { color: var(--text-muted); }

.wizard-char-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  gap: 16px;
}

.wizard-btn-back {
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.wizard-btn-back:hover { border-color: var(--cyan); color: var(--cyan); }

.wizard-btn-next {
  padding: 12px 36px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: var(--bg-primary);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-left: auto;
}
.wizard-btn-next:hover { transform: translateY(-1px); box-shadow: 0 0 20px rgba(224, 64, 251, 0.3); }
.wizard-btn-next:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* YouTube preview */
.yt-preview {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-card);
}
.yt-preview img {
  width: 100%;
  display: block;
}
.yt-preview-title {
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

/* License terms */
.license-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 8px;
}

.license-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-primary);
  cursor: pointer;
}
.license-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
  cursor: pointer;
}

/* Contest select cards */
.contest-select-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contest-select-card {
  padding: 20px;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.contest-select-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.03);
}
.contest-select-card.selected {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
}

.contest-asset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.06);
  color: var(--cyan);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.contest-asset-btn:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--cyan);
}

/* Review summary */
.review-item {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(100, 100, 255, 0.07);
  font-size: 0.88rem;
}
.review-label { color: var(--text-muted); font-weight: 600; }
.review-value { color: var(--text-primary); text-align: right; max-width: 60%; }

/* Wizard success */
.wizard-success {
  text-align: center;
  padding: 48px 24px;
}
.wizard-success-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 12px;
}

/* ========================================
   DASHBOARD
   ======================================== */
.dashboard-page {
  min-height: 100vh;
  padding-top: var(--nav-height);
  padding-bottom: 100px;
}

.dashboard-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px;
}

.dashboard-welcome {
  margin-bottom: 40px;
}

.dashboard-welcome h1 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dashboard-welcome .role-badge {
  display: inline-block;
  padding: 3px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 20px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
}

.dashboard-section {
  margin-bottom: 40px;
}

.dashboard-section-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s;
}
.dashboard-card:hover { border-color: rgba(0, 229, 255, 0.2); }

.dashboard-card-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dashboard-card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.dashboard-card-actions {
  display: flex;
  gap: 8px;
}

.dashboard-empty {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 1px dashed var(--border-card);
  border-radius: 12px;
}

/* ========================================
   CONTEST / VOTING PAGE
   ======================================== */
.contest-hero {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(124, 58, 237, 0.2) 0%, transparent 60%),
    var(--bg-secondary);
  border-bottom: 1px solid var(--border-card);
  padding: calc(var(--nav-height) + 40px) 24px 40px;
}

.contest-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.contest-hero-artist {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--magenta);
  margin-bottom: 4px;
}

.contest-hero-song {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contest-hero-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.6;
}

.contest-hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.contest-stat {
  text-align: center;
  min-width: 80px;
}

.contest-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.contest-stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

/* Content layout */
.contest-content {
  padding: 32px 24px 100px;
}

.contest-content-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}

.contest-main { min-width: 0; }

/* Sort bar */
.contest-sort-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.sort-btn {
  padding: 8px 20px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid var(--border-card);
  border-radius: 20px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.sort-btn.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}
.sort-btn:hover { border-color: rgba(0, 229, 255, 0.3); color: var(--text-secondary); }

/* Submissions grid */
.submissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.submission-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.submission-card:hover {
  border-color: rgba(0, 229, 255, 0.2);
  transform: translateY(-2px);
}

.submission-video {
  position: relative;
  cursor: pointer;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  overflow: hidden;
}

.submission-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.submission-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s;
}
.submission-video:hover .submission-play-overlay { opacity: 1; }

.submission-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--cyan);
  backdrop-filter: blur(4px);
}

.submission-body {
  padding: 16px;
}

.submission-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.submission-commentary {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.submission-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.submission-votes {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--magenta);
  font-weight: 600;
  font-size: 0.88rem;
}

.vote-btn {
  padding: 8px 24px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: var(--bg-primary);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.vote-btn:hover { transform: translateY(-1px); box-shadow: 0 0 16px rgba(224, 64, 251, 0.3); }
.vote-btn:disabled { cursor: not-allowed; transform: none; box-shadow: none; }
.vote-btn.voted {
  background: var(--green);
  opacity: 0.8;
}

.contest-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
  font-size: 0.92rem;
  grid-column: 1 / -1;
}

/* Sidebar */
.contest-sidebar { position: sticky; top: calc(var(--nav-height) + 20px); align-self: start; }

.sidebar-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* Leaderboard */
.lb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(100, 100, 255, 0.07);
  font-size: 0.85rem;
}
.lb-item:last-child { border-bottom: none; }

.lb-pos {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cyan);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.lb-name {
  flex: 1;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-votes {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.82rem;
  flex-shrink: 0;
}

.sidebar-rules p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Lyrics */
.lyrics-content {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
  white-space: pre-wrap;
  max-height: 400px;
  overflow-y: auto;
  padding: 12px 0;
  border-top: 1px solid var(--border-card);
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .contest-content-inner {
    grid-template-columns: 1fr;
  }
  .contest-sidebar { position: static; }
}

/* Vote confirmation modal */
.vote-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.vote-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.vote-modal-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan);
  margin-bottom: 16px;
}

.vote-modal-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.vote-modal-entry {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.4;
}

.vote-modal-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
  padding: 12px;
  background: rgba(0, 229, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, 0.1);
}

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

.vote-modal-cancel {
  flex: 1;
  padding: 12px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.vote-modal-cancel:hover { border-color: var(--text-secondary); color: var(--text-secondary); }

.vote-modal-confirm {
  flex: 1;
  padding: 12px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: var(--bg-primary);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.vote-modal-confirm:hover { transform: translateY(-1px); box-shadow: 0 0 16px rgba(224, 64, 251, 0.3); }

@media (max-width: 640px) {
  .contest-hero { padding: calc(var(--nav-height) + 24px) 20px 24px; }
  .contest-hero-inner { flex-direction: column; align-items: flex-start; }
  .submissions-grid { grid-template-columns: 1fr; }
  .vote-modal { padding: 28px 20px; }
}
