:root {
  --bg: #0c0c10;
  --card: #16161e;
  --card-hover: #1e1e28;
  --text: #e8e8ed;
  --muted: #9a9aab;
  --accent: #a78bfa;
  --accent2: #f472b6;
  --border: #2a2a35;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding: 2rem 1rem 3rem;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.container-sm {
  max-width: 640px;
  margin: 0 auto;
}

.container-md {
  max-width: 680px;
  margin: 0 auto;
}

.container-lg {
  max-width: 720px;
  margin: 0 auto;
}

/* ========== Header / Back ========== */
header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}

header p {
  color: var(--muted);
  font-size: 0.95rem;
}

.back {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.back:hover {
  color: var(--accent);
}

/* ========== Song List (index) ========== */
.song-list {
  display: grid;
  gap: 0.75rem;
}

.song-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.song-card:hover {
  background: var(--card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(167, 139, 250, 0.15);
}

.song-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
}

.song-info {
  flex: 1;
  min-width: 0;
}

.song-title {
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.arrow {
  color: var(--muted);
  font-size: 1.2rem;
  transition: transform 0.2s;
}

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

/* ========== Player Card ========== */
.player-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.player-card.center {
  text-align: center;
}

.player-card .song-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  white-space: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.player-card .song-artist {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  margin-top: 0;
}

.song-date {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

audio {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  outline: none;
}

.track-label {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 0.75rem;
}

.extra {
  margin-top: 1rem;
}

.extra a,
.extra-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.extra a:hover,
.extra-link:hover {
  text-decoration: underline;
}

/* ========== Lyrics / Section ========== */
.lyrics,
.section,
.note {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.lyrics h2,
.section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.lyrics p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
  line-height: 1.7;
}

.section p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--border);
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.credit {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
  font-style: italic;
}

/* ========== Play Button (special pages) ========== */
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.play-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(167, 139, 250, 0.4);
}

.play-btn:active {
  transform: scale(0.98);
}

.links {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
}

.links a:hover {
  border-color: var(--accent);
  background: rgba(167, 139, 250, 0.1);
}

/* ========== Gallery ========== */
.gallery {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.gallery img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* ========== Footer ========== */
footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 0.35rem;
}

footer a:hover {
  text-decoration: underline;
}

.footer-links {
  margin-top: 0.5rem;
}
