:root {
  --bg: #0b0614;
  --bg2: #12081f;
  --panel: #1a0f2e;
  --panel2: #24153d;
  --ink: #f2e9ff;
  --muted: #a894c4;
  --line: #3a2558;
  --purple: #9b5cff;
  --purple2: #c084ff;
  --neon: #d946ef;
  --neon2: #a855f7;
  --cyan: #67e8f9;
  --pink: #f472b6;
  --like: #fb7185;
  --tip: #fbbf24;
  --discord: #5865f2;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --player-h: 84px;
  --font: "Noto Sans", "gg sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: calc(var(--player-h) + 24px);
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(168, 85, 247, 0.28), transparent 55%),
    radial-gradient(700px 420px at 95% 8%, rgba(217, 70, 239, 0.18), transparent 50%),
    radial-gradient(600px 380px at 50% 110%, rgba(88, 101, 242, 0.16), transparent 45%),
    var(--bg);
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

.glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  opacity: 0.45;
}
.glow-a {
  width: 280px; height: 280px;
  top: 12%; left: -60px;
  background: var(--neon2);
  animation: floaty 9s ease-in-out infinite;
}
.glow-b {
  width: 320px; height: 320px;
  bottom: 18%; right: -80px;
  background: var(--discord);
  animation: floaty 11s ease-in-out infinite reverse;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-24px); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(11, 6, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(155, 92, 255, 0.25);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo {
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(217, 70, 239, 0.45);
}
.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff, var(--purple2), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav {
  display: flex;
  gap: 14px;
  margin-left: 8px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--ink); }
.btn-ghost {
  margin-left: auto;
  border: 1px solid rgba(155, 92, 255, 0.4);
  background: rgba(36, 21, 61, 0.7);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: var(--neon);
  box-shadow: 0 0 16px rgba(217, 70, 239, 0.35);
}

main { position: relative; z-index: 1; }

.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 22px 36px;
  text-align: center;
}
.hero-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(103, 232, 249, 0.35);
  background: rgba(103, 232, 249, 0.08);
}
.neon-tagline {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow:
    0 0 8px rgba(217, 70, 239, 0.9),
    0 0 24px rgba(168, 85, 247, 0.75),
    0 0 48px rgba(88, 101, 242, 0.55),
    0 0 80px rgba(217, 70, 239, 0.35);
  animation: neonPulse 2.8s ease-in-out infinite;
}
@keyframes neonPulse {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(217, 70, 239, 0.9),
      0 0 24px rgba(168, 85, 247, 0.75),
      0 0 48px rgba(88, 101, 242, 0.55);
  }
  50% {
    text-shadow:
      0 0 12px rgba(244, 114, 182, 1),
      0 0 32px rgba(217, 70, 239, 0.95),
      0 0 64px rgba(103, 232, 249, 0.5);
  }
}
.hero-sub {
  margin: 18px auto 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn-neon, .btn-outline, .btn-tip, .btn-like, .btn-play-card {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-neon {
  padding: 12px 22px;
  color: #1a0628;
  border: none;
  background: linear-gradient(120deg, var(--cyan), var(--purple2), var(--neon));
  box-shadow: 0 0 24px rgba(217, 70, 239, 0.45);
}
.btn-neon:hover { filter: brightness(1.08); }
.btn-outline {
  padding: 11px 20px;
  color: var(--ink);
  border: 1px solid rgba(192, 132, 255, 0.55);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.25);
}

.tracks {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 22px 48px;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}
.section-head h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.track-card {
  background: linear-gradient(160deg, rgba(36, 21, 61, 0.95), rgba(18, 8, 31, 0.95));
  border: 1px solid rgba(155, 92, 255, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.track-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 70, 239, 0.55);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.28);
}
.cover {
  position: relative;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 40%),
    linear-gradient(135deg, var(--c1, #7c3aed), var(--c2, #db2777));
  display: grid;
  place-items: center;
}
.cover-glyph {
  font-size: 3rem;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35));
  user-select: none;
}
.btn-play-card {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 46px;
  height: 46px;
  border: none;
  color: #1a0628;
  background: linear-gradient(135deg, var(--cyan), var(--purple2));
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(6px);
  transition: 0.18s ease;
}
.track-card:hover .btn-play-card,
.track-card:focus-within .btn-play-card {
  opacity: 1;
  transform: translateY(0);
}
.track-body { padding: 14px; }
.track-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.track-artist {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}
.track-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-like {
  border: 1px solid rgba(251, 113, 133, 0.35);
  background: rgba(251, 113, 133, 0.08);
  color: var(--like);
  padding: 7px 10px;
  font-size: 0.85rem;
}
.btn-like.liked {
  background: rgba(251, 113, 133, 0.22);
  box-shadow: 0 0 12px rgba(251, 113, 133, 0.35);
}
.btn-tip {
  border: none;
  padding: 8px 12px;
  color: #1a1200;
  background: linear-gradient(120deg, #fbbf24, #f97316);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.35);
  font-size: 0.85rem;
}
.btn-tip:hover { filter: brightness(1.06); }

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(155, 92, 255, 0.25);
  background: rgba(10, 5, 18, 0.9);
  padding: 28px 22px 36px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.tip-box {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(251, 191, 36, 0.28);
  background:
    linear-gradient(120deg, rgba(251, 191, 36, 0.08), rgba(168, 85, 247, 0.12));
}
.tip-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.tip-brand strong { display: block; font-size: 1.05rem; }
.tip-brand p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.tip-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tip-row input {
  width: 88px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(155, 92, 255, 0.4);
  background: var(--bg2);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}
.coin {
  font-weight: 800;
  color: var(--tip);
}
.tip-msg {
  width: 100%;
  margin: 0;
  color: var(--cyan);
  font-weight: 600;
}
.footer-note {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  height: var(--player-h);
  display: grid;
  grid-template-columns: auto 1fr auto minmax(160px, 1.2fr);
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: rgba(14, 8, 26, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(217, 70, 239, 0.35);
  box-shadow: 0 -10px 40px rgba(88, 101, 242, 0.18);
}
.player-cover {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  box-shadow: 0 0 16px rgba(217, 70, 239, 0.35);
}
.player-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.player-meta strong,
.player-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-meta span { color: var(--muted); font-size: 0.85rem; }
.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ctrl {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(155, 92, 255, 0.35);
  background: rgba(36, 21, 61, 0.8);
  color: var(--ink);
  font-size: 0.95rem;
  cursor: pointer;
}
.ctrl-main {
  width: 48px;
  height: 48px;
  border: none;
  background: linear-gradient(135deg, var(--purple2), var(--neon));
  box-shadow: 0 0 18px rgba(217, 70, 239, 0.45);
  color: #1a0628;
  font-weight: 800;
}
.player-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.player-progress input[type="range"] {
  flex: 1;
  accent-color: var(--neon);
  cursor: pointer;
}

@media (max-width: 820px) {
  .player {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    height: auto;
    min-height: var(--player-h);
    padding-bottom: 12px;
  }
  .player-progress {
    grid-column: 1 / -1;
  }
  .nav { display: none; }
}
@media (max-width: 520px) {
  .hero { padding-top: 40px; }
  .tip-box { flex-direction: column; align-items: stretch; }
  .tip-row { width: 100%; }
  .tip-row input { flex: 1; }
  .btn-play-card { opacity: 1; transform: none; }
}

.upload-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 22px 28px;
}
.upload-card {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(155, 92, 255, 0.35);
  background:
    linear-gradient(165deg, rgba(36, 21, 61, 0.96), rgba(14, 8, 26, 0.98));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.upload-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.upload-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.88rem;
}
.upload-fields input[type="text"] {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(155, 92, 255, 0.4);
  background: rgba(11, 6, 20, 0.85);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.upload-fields input[type="text"]:focus {
  outline: none;
  border-color: var(--purple2);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.22);
}

.dropzone {
  position: relative;
  margin-top: 18px;
  border-radius: 16px;
  border: 2px dashed rgba(168, 85, 247, 0.45);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(168, 85, 247, 0.14), transparent 60%),
    rgba(18, 8, 31, 0.65);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  overflow: hidden;
}
.dropzone:hover,
.dropzone:focus-visible {
  border-color: rgba(217, 70, 239, 0.75);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.22);
  outline: none;
}
.dropzone.dragover {
  border-color: var(--cyan);
  border-style: solid;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(103, 232, 249, 0.16), transparent 55%),
    rgba(36, 21, 61, 0.85);
  box-shadow: 0 0 32px rgba(103, 232, 249, 0.25);
  transform: scale(1.01);
}
.dropzone.has-file {
  border-style: solid;
  border-color: rgba(192, 132, 255, 0.65);
}
.dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.dropzone-inner {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 36px 20px;
  text-align: center;
}
.dropzone-icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 12px rgba(217, 70, 239, 0.45));
}
.dropzone-title {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.dropzone-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.dropzone-file {
  margin: 10px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(103, 232, 249, 0.1);
  border: 1px solid rgba(103, 232, 249, 0.3);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.btn-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: #1a0628;
  cursor: pointer;
  background: linear-gradient(120deg, var(--cyan), var(--purple2) 45%, var(--neon));
  background-size: 160% 100%;
  box-shadow:
    0 0 24px rgba(217, 70, 239, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.25);
  transition: filter 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease, background-position 0.3s ease;
}
.btn-upload:hover:not(:disabled) {
  filter: brightness(1.08);
  background-position: 100% 0;
  transform: translateY(-1px);
  box-shadow:
    0 0 32px rgba(217, 70, 239, 0.55),
    0 10px 24px rgba(0, 0, 0, 0.3);
}
.btn-upload:active:not(:disabled) {
  transform: translateY(0);
}
.btn-upload:disabled {
  opacity: 0.55;
  cursor: wait;
  filter: grayscale(0.2);
}
.btn-upload-ico {
  font-size: 1.05rem;
  line-height: 1;
}

.format-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.format-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple2);
  background: rgba(155, 92, 255, 0.14);
  border: 1px solid rgba(155, 92, 255, 0.4);
}

.upload-confirm {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  animation: confirmIn 0.28s ease;
}
@keyframes confirmIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.upload-confirm.ok {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.15);
}
.upload-confirm.err {
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.4);
}
.upload-confirm.pending {
  color: var(--cyan);
  background: rgba(103, 232, 249, 0.1);
  border: 1px solid rgba(103, 232, 249, 0.3);
}

/* legacy class kept for safety */
.upload-status {
  margin: 0;
  font-weight: 700;
  color: var(--cyan);
}
.upload-status.err { color: #fb7185; }
.upload-status.ok { color: #67e8f9; }

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 28px 12px;
  border: 1px dashed rgba(155, 92, 255, 0.35);
  border-radius: var(--radius);
}
.track-card.playing {
  border-color: rgba(103, 232, 249, 0.65);
  box-shadow: 0 0 28px rgba(103, 232, 249, 0.22);
}
.btn-outline {
  cursor: pointer;
}

@media (max-width: 520px) {
  .upload-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-upload { width: 100%; }
  .format-badges { justify-content: center; }
}

.track-meta {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 0.8rem;
}
.btn-com {
  padding: 6px 10px;
  font-size: 0.9rem;
}
.comments-section {
  max-width: 960px;
  margin: 0 auto 120px;
  padding: 0 20px;
}
.comments-card {
  background: rgba(24, 12, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
}
.comment-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  max-height: 280px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comment-list li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  line-height: 1.4;
}
.comment-list .muted { color: var(--muted); }
.comment-form {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 10px;
}
.comment-form input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 6, 22, 0.8);
  color: var(--ink);
  padding: 10px 12px;
}
.tip-row-stack {
  flex-wrap: wrap;
}
.tip-row-stack input[type="text"] {
  min-width: 160px;
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 6, 22, 0.8);
  color: var(--ink);
  padding: 10px 12px;
}
@media (max-width: 640px) {
  .comment-form { grid-template-columns: 1fr; }
}
