/* ============================================================
   NEON BEAT — SCREENS (Login / Hub / Songs / Leaderboard / Results)
   RTL Hebrew throughout
   ============================================================ */

html { direction: rtl; }
body { direction: rtl; }

.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(80, 30, 160, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 90% 50% at 50% 100%, rgba(190, 30, 110, 0.4) 0%, transparent 55%),
    radial-gradient(ellipse 100% 100% at 50% 50%, #1a0b3a 0%, #06030d 70%);
  color: #fff;
  font-family: 'Heebo', 'Inter', sans-serif;
  animation: screenFade 0.4s ease-out;
}
@keyframes screenFade {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(transparent 0%, transparent calc(100% - 1px), rgba(140, 90, 240, 0.15) 100%),
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(140, 90, 240, 0.07) 70px 71px);
  background-size: 100% 70px, 100% 100%;
  animation: gridscroll 6s linear infinite;
  pointer-events: none;
  opacity: 0.5;
}

/* ─────────────  ORG LOGO (Chabad)  ───────────── */
.org-logo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 18px rgba(255, 100, 200, 0.35));
  margin-inline: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.org-logo-lg { max-width: 380px; margin-bottom: -8px; }
.org-logo-md { max-width: 320px; margin-bottom: 4px; }

@media (min-width: 600px) {
  .org-logo-lg { max-width: 460px; }
  .org-logo-md { max-width: 380px; }
}
@media (max-height: 700px) {
  .org-logo-lg { max-width: 300px; }
  .org-logo-md { max-width: 240px; margin-bottom: 0; }
}

/* ─────────────  COMMON BRAND TYPE ───────────── */
.brand-mark { text-align: center; }
.brand-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(40px, 11vw, 64px);
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #fff 0%, #ffd9eb 50%, #ff6aa8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 80, 200, 0.7)) drop-shadow(0 0 36px rgba(255, 80, 200, 0.4));
}
.brand-title-xl {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(46px, 13vw, 88px);
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(180deg, #fff 0%, #ffd9eb 45%, #c44dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 80, 200, 0.7)) drop-shadow(0 0 48px rgba(180, 80, 255, 0.5));
}
.brand-sub {
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  letter-spacing: 0.4em;
  color: rgba(255, 200, 230, 0.7);
  text-shadow: 0 0 10px rgba(255, 100, 180, 0.5);
  margin-top: 4px;
}

/* ─────────────  LOGIN  ───────────── */
.login-screen { align-items: center; justify-content: center; padding: 24px; }
.login-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}
.login-form { display: flex; flex-direction: column; gap: 18px; }

.input-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.input-label > span {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  font-weight: 600;
}

.neon-input {
  width: 100%;
  padding: 18px 20px;
  background: rgba(20, 10, 40, 0.6);
  border: 2px solid rgba(255, 100, 180, 0.4);
  border-radius: 14px;
  color: #fff;
  font-family: 'Heebo', sans-serif;
  font-size: 22px;
  font-weight: 600;
  text-align: right;
  transition: all 0.25s;
  outline: none;
  box-shadow: 0 0 20px rgba(255, 60, 160, 0.15), inset 0 0 16px rgba(0,0,0,0.4);
}
.neon-input::placeholder { color: rgba(255,255,255,0.3); font-weight: 400; }
.neon-input:focus {
  border-color: #ff6aa8;
  box-shadow: 0 0 24px rgba(255, 80, 180, 0.5), inset 0 0 16px rgba(0,0,0,0.4);
  background: rgba(30, 15, 55, 0.7);
}

.btn-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 14px;
  font-family: 'Heebo', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-neon-primary {
  background: linear-gradient(180deg, #ff5298, #ff2d6f);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 24px rgba(255, 60, 140, 0.6), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-neon-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 32px rgba(255, 60, 140, 0.8), inset 0 1px 0 rgba(255,255,255,0.6);
}
.btn-neon-primary:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn-neon-ghost {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-neon-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.login-hint {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

/* ─────────────  HUB  ───────────── */
.hub-screen { padding: 20px 24px 28px; }
.hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.hub-greet { display: flex; flex-direction: column; gap: 4px; }
.hub-name {
  font-family: 'Heebo', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,100,180,0.5);
}
.hud-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.btn-ghost-sm {
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
  font-family: 'Heebo', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost-sm:hover { background: rgba(255,255,255,0.1); color: #fff; }

.hub-brand {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 40px;
  z-index: 2;
}

.hub-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  z-index: 2;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

.menu-tile {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(20, 10, 40, 0.6);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  text-align: right;
  font-family: 'Heebo', sans-serif;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.menu-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 100, 180, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}
.menu-tile:hover {
  border-color: rgba(255, 100, 180, 0.5);
  transform: translateX(-4px);
  box-shadow: 0 0 28px rgba(255, 60, 140, 0.25);
}
.menu-tile:hover::before { opacity: 1; }

.menu-tile-primary {
  background: linear-gradient(135deg, rgba(255, 45, 110, 0.5), rgba(196, 77, 255, 0.4));
  border-color: rgba(255, 100, 180, 0.6);
  box-shadow: 0 0 32px rgba(255, 60, 140, 0.4);
}
.menu-tile-primary:hover {
  box-shadow: 0 0 44px rgba(255, 60, 140, 0.6);
  border-color: rgba(255, 150, 200, 0.9);
}

.menu-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  color: #ff6aa8;
}
.menu-tile-primary .menu-icon {
  background: rgba(0,0,0,0.35);
  color: #fff;
  box-shadow: inset 0 0 12px rgba(255,255,255,0.2);
}
.menu-text { flex: 1; }
.menu-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.menu-sub { font-size: 13px; color: rgba(255,255,255,0.55); }

.hub-footer {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255, 200, 230, 0.4);
  padding-top: 16px;
}

/* ─────────────  PAGE HEADER (shared) ───────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  z-index: 3;
}
.page-title {
  font-family: 'Heebo', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 100, 180, 0.5);
  letter-spacing: 0.05em;
}
.btn-back {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-family: 'Heebo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-back:hover { background: rgba(255,255,255,0.1); }
/* In RTL, "back" goes to the right — SVG already points right, no flip needed */

/* ─────────────  SONG CAROUSEL  ───────────── */
.songs-screen { perspective: 1200px; }
.songs-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, var(--current-color, #ff2d6f) 0%, transparent 60%);
  opacity: 0.25;
  filter: blur(60px);
  transition: background 0.5s;
  pointer-events: none;
}

.carousel {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  perspective: 1200px;
  z-index: 2;
}

.carousel-card {
  position: absolute;
  width: min(75vw, 320px);
  max-width: 320px;
  background: linear-gradient(180deg, rgba(30, 15, 55, 0.85), rgba(15, 8, 32, 0.95));
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
}
.carousel-card.is-current {
  border-color: var(--card-color);
  box-shadow:
    0 0 32px var(--card-color),
    0 0 64px color-mix(in oklab, var(--card-color) 50%, transparent),
    inset 0 0 24px color-mix(in oklab, var(--card-color) 30%, transparent);
  animation: cardPulse 2.4s ease-in-out infinite;
}
@keyframes cardPulse {
  0%, 100% { box-shadow: 0 0 32px var(--card-color), 0 0 64px color-mix(in oklab, var(--card-color) 40%, transparent); }
  50% { box-shadow: 0 0 44px var(--card-color), 0 0 88px color-mix(in oklab, var(--card-color) 60%, transparent); }
}

.card-art {
  position: relative;
  height: 180px;
  background:
    radial-gradient(ellipse at 50% 60%, color-mix(in oklab, var(--card-color) 80%, black 20%), color-mix(in oklab, var(--card-color) 30%, black 70%) 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-art-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at 50% 50%, var(--card-accent) 0%, transparent 50%);
  opacity: 0.6;
  filter: blur(20px);
}
.card-note-icon {
  position: relative;
  width: 80px;
  height: 80px;
  color: #fff;
  filter: drop-shadow(0 0 16px rgba(255,255,255,0.8)) drop-shadow(0 0 32px var(--card-accent));
  z-index: 2;
}
.card-stripes {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 12px;
  align-items: stretch;
  justify-content: center;
  padding: 12px;
  opacity: 0.3;
}
.card-stripes span {
  flex: 1;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.4), transparent);
  border-radius: 999px;
  max-width: 6px;
}

.card-body { padding: 18px 18px 22px; text-align: center; }
.card-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--card-accent);
  text-shadow: 0 0 8px var(--card-accent);
  margin-bottom: 4px;
}
.card-title {
  font-family: 'Heebo', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  text-shadow: 0 0 12px var(--card-accent);
}
.card-subtitle {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.card-meta {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
}
.chip b { color: #fff; font-weight: 700; }
.chip.difficulty { gap: 3px; padding: 5px 10px; }
.chip.difficulty i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: inline-block;
}
.chip.difficulty i.on {
  background: var(--card-color);
  box-shadow: 0 0 6px var(--card-color);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 22px 22px;
  z-index: 3;
}
.nav-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(20, 10, 40, 0.7);
  border: 2px solid rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.nav-btn:hover {
  border-color: var(--current-color, #ff6aa8);
  box-shadow: 0 0 20px var(--current-color, #ff6aa8);
}
.play-btn {
  min-width: 160px;
  background: linear-gradient(180deg, var(--current-accent, #ff5298), var(--current-color, #ff2d6f));
  box-shadow: 0 0 28px var(--current-color, #ff2d6f), inset 0 1px 0 rgba(255,255,255,0.5);
}

.carousel-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 20px;
  z-index: 3;
}
.carousel-pager span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.25s;
}
.carousel-pager span.on {
  background: var(--current-color, #ff6aa8);
  box-shadow: 0 0 8px var(--current-color, #ff6aa8);
  width: 24px;
  border-radius: 100px;
}

/* ─────────────  LEADERBOARD  ───────────── */
.leaderboard-screen { padding-bottom: 24px; }
.leaderboard-card {
  margin: 12px 22px 24px;
  background: rgba(15, 8, 32, 0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  z-index: 2;
  max-width: 540px;
  width: calc(100% - 44px);
  margin-inline: auto;
  box-shadow: 0 0 32px rgba(180, 80, 255, 0.15);
}

.lb-head {
  display: flex;
  padding: 14px 20px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.lb-col { display: flex; align-items: center; }
.lb-col.rank { width: 64px; }
.lb-col.score { flex: 1; }
.lb-col.acc { width: 80px; justify-content: flex-start; }

.lb-row {
  display: flex;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
  align-items: center;
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: rgba(255,255,255,0.03); }

.rank-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: rgba(255,255,255,0.8);
  font-variant-numeric: tabular-nums;
}
.lb-row.podium-1 .rank-num { color: #ffd700; text-shadow: 0 0 12px rgba(255, 215, 0, 0.7); }
.lb-row.podium-2 .rank-num { color: #c0c0c0; text-shadow: 0 0 10px rgba(220, 220, 220, 0.5); }
.lb-row.podium-3 .rank-num { color: #cd7f32; text-shadow: 0 0 10px rgba(220, 140, 60, 0.5); }

.lb-name {
  font-family: 'Heebo', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.lb-name em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: rgba(54, 226, 90, 0.2);
  color: #36e25a;
  padding: 2px 8px;
  border-radius: 100px;
  text-shadow: 0 0 6px rgba(54, 226, 90, 0.6);
}
.lb-row.is-me {
  background: linear-gradient(90deg, rgba(54, 226, 90, 0.08), transparent);
  border-right: 3px solid #36e25a;
}
.lb-score-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(255, 100, 180, 0.4);
  margin-top: 2px;
}
.acc-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #29b6ff;
  text-shadow: 0 0 8px rgba(41, 182, 255, 0.5);
  font-variant-numeric: tabular-nums;
}
.acc-num i { font-style: normal; font-size: 12px; opacity: 0.7; margin-right: 1px; }

.lb-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  text-align: center;
}
.lb-empty-icon {
  color: rgba(255, 100, 180, 0.4);
  filter: drop-shadow(0 0 16px rgba(255, 100, 180, 0.3));
}
.lb-empty-title {
  font-family: 'Heebo', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
}
.lb-empty-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
}

/* ─────────────  RESULTS  ───────────── */
.results-screen { align-items: center; justify-content: center; padding: 24px; }
.results-aura {
  position: absolute;
  top: 50%; left: 50%;
  width: 70%; height: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, var(--current-color, #ff2d6f) 0%, transparent 60%);
  opacity: 0.3;
  filter: blur(60px);
  pointer-events: none;
}

.results-card {
  width: 100%;
  max-width: 460px;
  background: rgba(15, 8, 32, 0.85);
  border: 2px solid var(--current-color, rgba(255,255,255,0.15));
  border-radius: 24px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 2;
  box-shadow: 0 0 48px var(--current-color, rgba(255, 100, 180, 0.4));
}

.results-banner { text-align: center; }
.results-song-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--current-accent);
  text-shadow: 0 0 8px var(--current-accent);
}
.results-song-title {
  font-family: 'Heebo', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 14px var(--current-accent);
  margin-top: 4px;
}

.grade-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.grade-letter {
  font-family: 'Orbitron', sans-serif;
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #fff, var(--current-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px var(--current-color));
  animation: gradePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes gradePop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.grade-stars { display: flex; gap: 4px; }
.grade-stars span {
  color: rgba(255,255,255,0.15);
  transition: all 0.3s;
}
.grade-stars span.on {
  color: #ffd700;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
  animation: starPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.grade-stars span.on:nth-child(1) { animation-delay: 0.6s; }
.grade-stars span.on:nth-child(2) { animation-delay: 0.75s; }
.grade-stars span.on:nth-child(3) { animation-delay: 0.9s; }
.grade-stars span.on:nth-child(4) { animation-delay: 1.05s; }
.grade-stars span.on:nth-child(5) { animation-delay: 1.2s; }
@keyframes starPop {
  0% { transform: scale(0.3); }
  60% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.results-score-block { text-align: center; }
.results-score {
  font-family: 'Orbitron', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 100, 180, 0.7);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.results-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}
.stat-tile {
  padding: 12px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  text-align: center;
}
.stat-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat-value i { font-style: normal; font-size: 12px; color: rgba(255,255,255,0.5); margin-inline-start: 2px; }

.results-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.results-actions .btn-neon {
  flex: 1;
  min-width: 110px;
  padding: 12px 16px;
  font-size: 14px;
}

.new-best-banner {
  width: 100%;
  text-align: center;
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 10px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.25), transparent);
  border-top: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  border-radius: 8px;
  animation: newBest 1.5s ease-in-out infinite alternate;
}
@keyframes newBest {
  from { opacity: 0.85; }
  to { opacity: 1; box-shadow: 0 0 16px rgba(255, 215, 0, 0.4); }
}

/* ─────────────  EMPTY STATES  ───────────── */
.menu-tile:disabled { opacity: 0.5; cursor: not-allowed; }
.menu-tile:disabled:hover { transform: none; box-shadow: none; border-color: rgba(255,255,255,0.1); }

.songs-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2;
}
.songs-empty-card {
  max-width: 420px;
  text-align: center;
  background: rgba(15, 8, 32, 0.7);
  border: 1px solid rgba(255, 100, 180, 0.3);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 0 32px rgba(255, 100, 180, 0.18);
}
.songs-empty-icon {
  color: rgba(255, 100, 180, 0.65);
  filter: drop-shadow(0 0 16px rgba(255, 100, 180, 0.4));
  margin-bottom: 14px;
}
.songs-empty-title {
  font-family: 'Heebo', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 0 12px rgba(255, 100, 180, 0.5);
}
.songs-empty-sub {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}
.songs-empty-sub code {
  font-family: 'Orbitron', 'Menlo', monospace;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 100, 180, 0.12);
  border: 1px solid rgba(255, 100, 180, 0.25);
  color: #ff6aa8;
  direction: ltr;
  display: inline-block;
}

/* ─────────────  RESPONSIVE  ───────────── */
@media (min-width: 600px) {
  .carousel-card { max-width: 360px; }
  .leaderboard-card { max-width: 560px; }
}

@media (max-height: 700px) {
  .hub-brand { margin-top: 12px; margin-bottom: 20px; }
  .brand-title-xl { font-size: clamp(40px, 9vw, 64px); }
  .menu-tile { padding: 14px 18px; }
  .menu-icon { width: 46px; height: 46px; }
  .menu-title { font-size: 17px; }
  .menu-sub { font-size: 12px; }
  .grade-letter { font-size: 72px; }
  .results-card { padding: 20px 18px; gap: 14px; }
  .results-score { font-size: 38px; }
  .card-art { height: 140px; }
  .card-note-icon { width: 60px; height: 60px; }
  .card-title { font-size: 26px; }
}
