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

:root {
  --bg-obsidian: #070a12;
  --bg-surface: #0d1220;
  --bg-card: #111827;
  --bg-card-hover: #162036;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-glow: rgba(0, 240, 255, 0.35);
  --cyan: #00f0ff;
  --violet: #8b5cf6;
  --magenta: #ec4899;
  --emerald: #10b981;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(0, 240, 255, 0.08), transparent 36%),
    radial-gradient(circle at 88% 15%, rgba(139, 92, 246, 0.11), transparent 40%),
    radial-gradient(circle at 50% 92%, rgba(236, 72, 153, 0.07), transparent 45%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Brand */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 18, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.brand-logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-link {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

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

.nav-link.active {
  box-shadow: inset 0 -2px 0 var(--cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #050811;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.42);
}

.btn-primary.voted {
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

/* Badges & Platform Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.badge-cat {
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.35);
}

.badge-new {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.1);
}

.plat-spotify { color: #1DB954; border-color: rgba(29, 185, 84, 0.4); }
.plat-apple { color: #FA243C; border-color: rgba(250, 36, 60, 0.4); }
.plat-youtube { color: #FF4D4D; border-color: rgba(255, 0, 0, 0.4); }
.plat-amazon { color: #00A8E1; border-color: rgba(0, 168, 225, 0.4); }
.plat-tidal { color: #00FFFF; border-color: rgba(0, 255, 255, 0.4); }
.plat-deezer { color: #C084FC; border-color: rgba(162, 56, 255, 0.4); }
.plat-pandora { color: #60A5FA; border-color: rgba(54, 104, 255, 0.4); }
.plat-soundcloud { color: #FF7733; border-color: rgba(255, 85, 0, 0.4); }

.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.45);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

/* Pick of the Week Hero */
.hero-section {
  padding: 32px 0 20px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(11, 16, 29, 0.98));
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 0 36px rgba(0, 240, 255, 0.08);
}

.hero-stage {
  background: #080b12;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 290px;
}

.hero-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.creator-spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.creator-spotlight:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.07);
}

.artist-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: #050811;
  font-weight: 800;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-circle.avatar-sm {
  width: 26px;
  height: 26px;
  font-size: 0.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platforms-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 9px;
  border-radius: 6px;
}

.platform-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Offstage Music Stage */
.arena-section {
  padding: 26px 0 64px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-pill:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.filter-pill.active {
  background: rgba(0, 240, 255, 0.14);
  border-color: var(--cyan);
  color: var(--cyan);
}

.search-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.select-input,
.search-input,
.form-control {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
}

.select-input:focus,
.search-input:focus,
.form-control:focus {
  border-color: var(--cyan);
}

/* Track Grid & Cards */
.plays-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(305px, 1fr));
  gap: 20px;
}

.play-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.play-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.play-thumb {
  position: relative;
  height: 178px;
  background: #080b12;
  cursor: pointer;
  overflow: hidden;
}

.play-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.3s ease;
}

.play-card:hover .play-thumb img {
  transform: scale(1.04);
}

.platform-tag-top {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(7, 10, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.duration-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(7, 10, 18, 0.88);
  color: var(--text-primary);
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 18, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.92);
  color: #050811;
  font-size: 1.15rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.6);
}

.play-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.play-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

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

.play-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.play-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.artist-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.artist-chip:hover {
  color: var(--cyan);
}

.gg-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--cyan);
  cursor: pointer;
}

.gg-vote-btn:hover,
.gg-vote-btn.voted {
  background: var(--cyan);
  color: #050811;
}

/* Studio Equalizer Fallback */
.studio-cover {
  width: 100%;
  height: 100%;
  padding: 20px;
  background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.15), rgba(13, 18, 32, 0.96));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
  margin-bottom: 10px;
}

.eq-bars span {
  width: 4px;
  background: linear-gradient(to top, var(--cyan), var(--magenta));
  border-radius: 2px;
  animation: eqPulse 1s ease-in-out infinite alternate;
}

.eq-bars span:nth-child(2) { animation-delay: 0.2s; height: 22px; }
.eq-bars span:nth-child(3) { animation-delay: 0.4s; height: 28px; }
.eq-bars span:nth-child(4) { animation-delay: 0.15s; height: 18px; }
.eq-bars span:nth-child(5) { animation-delay: 0.35s; height: 25px; }

@keyframes eqPulse {
  0% { height: 8px; }
  100% { height: 28px; }
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(4, 6, 12, 0.84);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
}

/* Shared Cards, Forms, Tables & Alerts */
.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.alert-banner {
  display: none;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.alert-banner.show {
  display: block;
}

.alert-success {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.alert-error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0;
}

.podium-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
}

.podium-card.rank-1 { border-color: #facc15; }
.podium-card.rank-2 { border-color: #cbd5e1; }
.podium-card.rank-3 { border-color: #d97706; }

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 10, 18, 0.96);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
}

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

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

@media (max-width: 900px) {
  .hero-card,
  .form-grid,
  .podium-grid {
    grid-template-columns: 1fr;
  }
}
