:root {
  --primary: #0097b2;
  --primary-hover: #008299;
  --primary-dark: #006b80;
  --primary-light: #e6f7fa;
  --bg-white: #ffffff;
  --bg-slate: #f8fafc;
  --bg-muted: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #edf2f7;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
  --radius-full: 9999px;
  --radius-xl: 20px;
  --radius-lg: 12px;
  --radius-md: 10px;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-white);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  height: 72px;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.left-nav {
  justify-content: flex-start;
}

.right-nav {
  justify-content: flex-end;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
  padding: 6px 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.header-brand-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.brand-icon {
  height: 38px;
  width: auto;
  display: block;
}

.brand-text {
  height: 32px;
  width: auto;
  display: block;
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary);
  color: #ffffff;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 151, 178, 0.25);
}

.btn-upload:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 151, 178, 0.35);
}

.hero-section {
  padding: 16px 24px 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-card {
  position: relative;
  min-height: 400px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  background-color: #0f172a;
}

.hero-bg-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.42) 0%, rgba(15, 23, 42, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  width: 100%;
  padding: 56px 24px;
  text-align: center;
  color: #ffffff;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 20px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
  max-width: 740px;
  margin: 0 auto;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.search-box:focus-within {
  box-shadow: 0 12px 38px rgba(0, 151, 178, 0.35);
  transform: translateY(-1px);
}

.search-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-main);
  background: transparent;
}

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

.search-submit-btn {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.search-submit-btn:hover {
  background-color: var(--primary-hover);
}

.section-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

.categories-section {
  padding: 40px 0 24px;
}

.section-header {
  margin-bottom: 22px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

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

.cat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.cat-card:hover {
  border-color: var(--primary);
  background: #fbfdff;
  box-shadow: 0 4px 16px rgba(0, 151, 178, 0.1);
  transform: translateY(-2px);
}

.cat-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.cat-card:hover .cat-name {
  color: var(--primary);
}

.cat-arrow {
  font-size: 1rem;
  color: var(--text-light);
  transition: transform 0.2s ease, color 0.2s ease;
}

.cat-card:hover .cat-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

.tracks-section {
  padding: 32px 0 56px;
}

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

.sort-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-muted);
  padding: 4px;
  border-radius: var(--radius-full);
}

.sort-tab {
  padding: 6px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.sort-tab.active,
.sort-tab:hover {
  background: var(--bg-white);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

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

.track-row {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.2s ease;
}

.track-row:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
  background: #fafcfe;
}

.track-row.is-playing {
  border-color: var(--primary);
  background: #f0faff;
}

.track-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.track-play-btn:hover,
.track-row.is-playing .track-play-btn {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

.track-meta {
  width: 260px;
  flex-shrink: 0;
}

.track-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.track-waveform {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 16px;
}

.wave-bar {
  flex: 1;
  background-color: #cbd5e1;
  border-radius: 2px;
  transition: height 0.2s ease, background-color 0.2s ease;
}

.track-row:hover .wave-bar {
  background-color: #93c5fd;
}

.track-row.is-playing .wave-bar {
  background-color: var(--primary);
  animation: wavePulse 1.2s infinite ease-in-out;
}

.track-row.is-playing .wave-bar:nth-child(2n) {
  animation-delay: 0.2s;
}

.track-row.is-playing .wave-bar:nth-child(3n) {
  animation-delay: 0.4s;
}

@keyframes wavePulse {
  0%, 100% {
    transform: scaleY(0.4);
  }
  50% {
    transform: scaleY(1);
  }
}

.track-badges {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-loop {
  background: #ecfdf5;
  color: #059669;
}

.badge-cc {
  background: var(--primary-light);
  color: var(--primary);
}

.track-time {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 45px;
  text-align: right;
  flex-shrink: 0;
}

.track-actions {
  flex-shrink: 0;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-muted);
  color: var(--text-main);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-download:hover {
  background: var(--primary);
  color: #ffffff;
}

.footer {
  background: var(--bg-slate);
  border-top: 1px solid var(--border);
  padding: 56px 0 44px;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 2.5fr;
  gap: 48px;
}

.footer-brand {
  max-width: 380px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-logo {
  height: 36px;
  width: auto;
}

.footer-text {
  height: 28px;
  width: auto;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.f-col h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.f-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.f-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.f-col a:hover {
  color: var(--primary);
}

@media (max-width: 992px) {
  .header-container {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }
  .left-nav {
    display: none;
  }
  .header-brand-center {
    justify-content: flex-start;
  }
  .hero-title {
    font-size: 2rem;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .track-waveform {
    display: none;
  }
}

@media (max-width: 640px) {
  .top-header {
    height: 64px;
  }
  .brand-icon {
    height: 30px;
  }
  .brand-text {
    height: 24px;
  }
  .hero-card {
    min-height: 340px;
    border-radius: 16px;
  }
  .hero-title {
    font-size: 1.6rem;
    margin-bottom: 24px;
  }
  .search-box {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 12px;
    gap: 10px;
  }
  .search-submit-btn {
    width: 100%;
  }
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .track-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .track-meta {
    width: calc(100% - 60px);
  }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
