﻿:root {
  --bg: #05070c;
  --panel: rgba(15,18,24,0.96);
  --panel-strong: rgba(255,255,255,0.08);
  --accent: #22d9a1;
  --accent-strong: #29b981;
  --accent-soft: #3bb9c2;
  --gold: #f3c249;
  --text: #f4f5f8;
  --muted: #a9b0c2;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(34,217,161,0.12), transparent 30%), #05070c;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 12, 0.88);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topbar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  display: block;
  width: 56px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.32);
}

.brand-text {
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: auto;
}

.search-wrap {
  position: relative;
  width: min(100%, 260px);
}

.search-wrap input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(21, 26, 34, 0.92);
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-wrap input:focus {
  outline: none;
  border-color: rgba(34, 217, 161, 0.55);
  box-shadow: 0 0 0 8px rgba(34, 217, 161, 0.08);
}

.search-wrap::before {
  content: '⌕';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--gold);
}

.hero {
  padding: 100px 0 80px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(34,217,161,0.18), transparent 20%), radial-gradient(circle at 80% 25%, rgba(243,194,73,0.14), transparent 18%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.8rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero h1 span {
  color: var(--accent);
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #051112;
  box-shadow: 0 18px 40px rgba(34,217,161,0.22);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.hero-visual {
  display: grid;
  place-items: center;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 1.1rem;
}

.hero-card {
  width: min(420px, 100%);
  border-radius: 32px;
  overflow: hidden;
  background: rgba(15, 18, 24, 0.95);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 40%);
  pointer-events: none;
}

.badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(243,194,73,0.16);
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-card img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.card-info {
  position: relative;
  padding: 24px;
  background: rgba(5, 7, 12, 0.98);
}

.card-info strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card-info span {
  color: var(--muted);
  font-size: 0.95rem;
}

.marquee-wrap {
  overflow: hidden;
  padding: 22px 0;
  margin: 0 auto;
}

.marquee {
  display: inline-flex;
  gap: 42px;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: clamp(1rem, 2vw, 1.4rem);
}

.marquee span {
  color: var(--text);
  opacity: 0.8;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  padding: 68px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.section-link {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.music-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid {
  display: grid;
  gap: 22px;
}

.card {
  background: rgba(15,18,24,0.9);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 18px 36px rgba(0,0,0,0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(34,217,161,0.45);
  box-shadow: 0 30px 55px rgba(0,0,0,0.24);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.music-card {
  position: relative;
}

.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(34,217,161,0.95), rgba(8,23,32,0.9));
  color: #051112;
  border: none;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.card:hover .play-btn,
.music-card:focus-within .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.03);
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
}

.top-ten {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.top-ten li {
  display: grid;
  grid-template-columns: 56px auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(15,18,24,0.92);
  border: 1px solid var(--border);
}

.rank {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #d08a1e);
  color: #0f1318;
  font-weight: 800;
}

.track-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
}

.track-info strong {
  display: block;
  font-size: 1rem;
}

.track-info small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.meta {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-artists .artist-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.artist-card img {
  aspect-ratio: 1 / 1;
}

.promo {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 28px;
  padding: 34px;
  border-radius: 28px;
  background: rgba(12, 15, 20, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 28px 60px rgba(0,0,0,0.2);
}

.promo p,
.promo strong {
  margin: 0;
}

.upload-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  padding: 28px;
  border-radius: 28px;
  background: rgba(10, 13, 18, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 22px 48px rgba(0,0,0,0.18);
}

.upload-form,
.download-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.file-field {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.14);
  color: var(--text);
}

.file-field span {
  font-size: 0.95rem;
  color: var(--muted);
}

.file-field input {
  width: 100%;
  background: transparent;
  color: var(--text);
}

.thumb-preview {
  display: none;
  width: 120px;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-top: 8px;
}

.input-text {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(21, 26, 34, 0.92);
  color: var(--text);
}

.download-label {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.download-link {
  display: block;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.download-link:hover {
  transform: translateX(4px);
  border-color: var(--accent);
}

.upload-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  min-height: 1.5em;
}

.promo p {
  margin-top: 14px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
  align-items: center;
}

.footer {
  padding: 32px 0 48px;
  text-align: center;
  color: var(--muted);
}

.search-empty {
  display: none;
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}

.search-empty.visible {
  display: block;
}

.social-floating {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 14px;
  z-index: 25;
}

.social-floating a { /* keep but slightly smaller */
  width: 48px;
  height: 48px;
}

.social-floating a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34,217,161,0.95), rgba(8,23,32,0.92));
  color: #fff;
  box-shadow: 0 18px 30px rgba(0,0,0,0.24);
  transition: transform 0.2s ease;
}

.social-floating a:hover {
  transform: translateX(-4px) scale(1.05);
}

@media (max-width: 1024px) {
  .topbar-actions {
    justify-content: flex-start;
  }

  .menu-toggle { display: inline-flex; }

  .nav { display: none; }

  .nav.open { display: flex; flex-direction: column; gap: 10px; background: rgba(5,7,12,0.96); padding: 12px; border-radius: 12px; position: absolute; top: 72px; right: 18px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero {
    padding-top: 80px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .promo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    justify-content: stretch;
  }

  .nav {
    justify-content: space-between;
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(3rem, 10vw, 4.5rem);
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .grid,
  .top-ten,
  .artist-grid {
    grid-template-columns: 1fr;
  }

  .marquee {
    animation-duration: 18s;
  }

  .social-floating {
    display: none;
  }
}

/* Small accessibility focus states */
.nav a:focus,
.btn:focus,
.menu-toggle:focus,
.play-btn:focus {
  outline: 3px solid rgba(34,217,161,0.18);
  outline-offset: 2px;
}
