/* Font and base */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #fff;
  background: linear-gradient(-45deg, #ff6ec4, #7873f5, #1dd1a1, #ff9f43);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Layout */
.main-layout {
  display: flex;
  flex: 1;
  padding: 1rem;
}

/* Sidebar */
nav {
  min-width: 200px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 16px 0 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Sidebar links */
nav a {
  text-decoration: none;
  color: #eee;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: #fff;
  font-weight: bold;
}

/* Content area */
section {
  flex: 1;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0 16px 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: -1px; /* connects border to nav */
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  margin: 1rem;
}

/* Theme toggle */
#theme-toggle {
  font-size: 1.25rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

body.dark #theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  color: #ccc;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  color: #ccc;
  font-size: 0.9rem;
}

/* Footer links */
footer a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s;
}

footer a:hover {
  color: #fff;
}

/* Dark theme overrides */
body.dark {
  background: #000 !important;
  background-image: none !important;
  color: #e0e0e0;
}

body.dark nav,
body.dark section,
body.dark header {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark nav a {
  color: #ccc;
}

body.dark nav a:hover,
body.dark nav a.active {
  color: #fff;
  font-weight: bold;
}

body.dark footer {
  color: #aaa;
}
.track-description {
  font-size: 0.95rem;
  color: var(--text-color, #ccc);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  font-style: italic;
}
