/* ============================================
   Music Page — Overall
   ============================================ */
.view-music {
  overflow-y: auto;
  height: 100vh;
}

.music-page {
  min-height: 100vh;
  background: transparent;
}

/* --- Hero Section --- */
.music-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 120px 24px 60px;
  overflow: hidden;
}

.music-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.music-hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.music-hero-title {
  font-size: 2.2rem;
  font-weight: 200;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.music-hero-sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
  margin-bottom: 48px;
}

.music-hero-sub strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

/* Stats counters */
.music-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
}

.music-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.music-stat-num {
  font-size: 2.6rem;
  font-weight: 200;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.88);
  font-variant-numeric: tabular-nums;
}

.music-stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
  letter-spacing: 0.1em;
}

/* --- Section --- */
.music-section {
  padding: 60px 24px 40px;
  max-width: 960px;
  margin: 0 auto;
}

.music-section-title {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: 8px;
}

.music-section-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  margin-bottom: 40px;
}

/* --- Annual Panorama Infographic --- */
.music-cards {
  margin-top: 32px;
}

/* Rings row — visual centerpiece */
.mc-rings {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 48px;
}

.mc-ring-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mc-ring-svg {
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 12px var(--ring-glow));
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mc-ring-col:hover .mc-ring-svg {
  transform: rotate(-90deg) scale(1.06);
}

.mc-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 6;
}

.mc-ring-fg {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mc-ring-year {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
}

.mc-ring-hours {
  font-size: 1.6rem;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.8);
  font-variant-numeric: tabular-nums;
}

.mc-ring-unit {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Comparison table */
.mc-table {
  width: 100%;
  border-collapse: collapse;
}

.mc-table th,
.mc-table td {
  padding: 14px 12px;
  text-align: center;
  vertical-align: top;
}

.mc-table thead th {
  font-size: 1.3rem;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.2);
  padding-bottom: 20px;
  letter-spacing: -0.02em;
}

.mc-table tbody tr {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.mc-table .mc-label {
  width: 100px;
  text-align: right;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.06em;
  padding-right: 20px;
  vertical-align: middle;
}

/* Artist row — hero text */
.mc-artist {
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
}

.mc-genre-tag {
  display: inline-block;
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* Songs count bar */
.mc-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mc-bar {
  height: 8px;
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 4px;
}

.mc-bar-num {
  font-size: 1.1rem;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}

.mc-bar-sub {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.25);
}

/* Text cells */
.mc-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.mc-keyword {
  display: inline-block;
  font-size: 0.72rem;
  padding: 4px 14px;
  border-radius: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Song list in table */
.mc-songs {
  text-align: left;
  display: inline-block;
}

.mc-song-item {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  padding: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.mc-song-item::before {
  content: '♪ ';
  opacity: 0.5;
}

/* Year column accent colors */
.mc-col-0 { --col-color: #a78bfa; --col-bg: rgba(139, 92, 246, 0.12); --ring-glow: rgba(139, 92, 246, 0.3); }
.mc-col-1 { --col-color: #fb7185; --col-bg: rgba(244, 63, 94, 0.12); --ring-glow: rgba(244, 63, 94, 0.3); }
.mc-col-2 { --col-color: #22d3ee; --col-bg: rgba(6, 182, 212, 0.12); --ring-glow: rgba(6, 182, 212, 0.3); }

.mc-col-0 .mc-ring-fg, .mc-col-0 .mc-bar { stroke: #a78bfa; background: #a78bfa; }
.mc-col-1 .mc-ring-fg, .mc-col-1 .mc-bar { stroke: #fb7185; background: #fb7185; }
.mc-col-2 .mc-ring-fg, .mc-col-2 .mc-bar { stroke: #22d3ee; background: #22d3ee; }

.mc-col-0 .mc-genre-tag { background: rgba(139, 92, 246, 0.12); color: #a78bfa; }
.mc-col-1 .mc-genre-tag { background: rgba(244, 63, 94, 0.12); color: #fb7185; }
.mc-col-2 .mc-genre-tag { background: rgba(6, 182, 212, 0.12); color: #22d3ee; }

.mc-col-0 .mc-keyword { background: rgba(139, 92, 246, 0.12); color: #a78bfa; }
.mc-col-1 .mc-keyword { background: rgba(244, 63, 94, 0.12); color: #fb7185; }
.mc-col-2 .mc-keyword { background: rgba(6, 182, 212, 0.12); color: #22d3ee; }

.mc-col-0 .mc-song-item::before { color: #a78bfa; }
.mc-col-1 .mc-song-item::before { color: #fb7185; }
.mc-col-2 .mc-song-item::before { color: #22d3ee; }

.mc-col-0 .mc-ring-hours { color: #c4b5fd; }
.mc-col-1 .mc-ring-hours { color: #fda4af; }
.mc-col-2 .mc-ring-hours { color: #67e8f9; }

/* --- Genre Evolution Chart --- */
.genre-chart {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.genre-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
}

.genre-label {
  width: 72px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}

.genre-bars {
  flex: 1;
  display: flex;
  gap: 4px;
  align-items: center;
  height: 100%;
}

.genre-bar-cell {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.genre-bar {
  width: 100%;
  border-radius: 4px;
  transition: height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s;
  opacity: 0;
  min-height: 2px;
}

.genre-bar.visible {
  opacity: 1;
}

.genre-years {
  display: flex;
  gap: 4px;
  margin-left: 84px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.genre-year-label {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.05em;
}

.genre-summary {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 24px;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

/* --- Music Footer --- */
.music-footer {
  text-align: center;
  padding: 40px 24px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.08em;
}

/* --- Music Responsive --- */
@media (max-width: 768px) {
  .music-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .music-stats {
    gap: 32px;
  }

  .music-stat-num {
    font-size: 2rem;
  }

  .music-hero-title {
    font-size: 1.6rem;
  }

  .dropdown-trigger {
    font-size: 0.65rem;
    padding: 3px 8px;
  }
}

@media (max-width: 480px) {
  .site-left {
    gap: 10px;
  }

  .music-stats {
    flex-direction: column;
    gap: 20px;
  }
}

/* ============================================
   Light Theme — Music Page Overrides
   ============================================ */
body.light-theme .music-hero-bg {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(236, 72, 153, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

body.light-theme .music-hero-title {
  color: rgba(0, 0, 0, 0.85);
}

body.light-theme .music-hero-sub {
  color: rgba(0, 0, 0, 0.45);
}

body.light-theme .music-hero-sub strong {
  color: rgba(0, 0, 0, 0.7);
}

body.light-theme .music-stat-num {
  color: rgba(0, 0, 0, 0.8);
}

body.light-theme .music-stat-label {
  color: rgba(0, 0, 0, 0.4);
}

body.light-theme .music-section-title {
  color: rgba(0, 0, 0, 0.7);
}

body.light-theme .music-section-sub {
  color: rgba(0, 0, 0, 0.35);
}

body.light-theme .mc-ring-bg {
  stroke: rgba(0, 0, 0, 0.06);
}

body.light-theme .mc-ring-year {
  color: rgba(0, 0, 0, 0.35);
}

body.light-theme .mc-ring-hours {
  color: rgba(0, 0, 0, 0.7) !important;
}

body.light-theme .mc-ring-unit {
  color: rgba(0, 0, 0, 0.35);
}

body.light-theme .mc-table thead th {
  color: rgba(0, 0, 0, 0.2);
}

body.light-theme .mc-table tbody tr {
  border-top-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .mc-label {
  color: rgba(0, 0, 0, 0.35);
}

body.light-theme .mc-artist {
  color: rgba(0, 0, 0, 0.8);
}

body.light-theme .mc-bar-num {
  color: rgba(0, 0, 0, 0.65);
}

body.light-theme .mc-bar-sub {
  color: rgba(0, 0, 0, 0.3);
}

body.light-theme .mc-text {
  color: rgba(0, 0, 0, 0.55);
}

body.light-theme .mc-song-item {
  color: rgba(0, 0, 0, 0.45);
}

body.light-theme .genre-label {
  color: rgba(0, 0, 0, 0.55);
}

body.light-theme .genre-year-label {
  color: rgba(0, 0, 0, 0.3);
}

body.light-theme .genre-summary {
  color: rgba(0, 0, 0, 0.45);
}

body.light-theme .music-footer {
  color: rgba(0, 0, 0, 0.25);
}

/* --- 中国非遗音乐 --- */
.music-section--heritage {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 72px;
}

body.light-theme .music-section--heritage {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.heritage-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.heritage-card {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.08) 0%, rgba(255, 255, 255, 0.03) 55%);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: 14px;
  padding: 28px 26px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.heritage-card:hover {
  border-color: rgba(251, 191, 36, 0.28);
  transform: translateY(-2px);
}

body.light-theme .heritage-card {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.06) 0%, rgba(0, 0, 0, 0.02) 55%);
  border-color: rgba(180, 83, 9, 0.18);
}

.heritage-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.heritage-card-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.heritage-card-name {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.heritage-card-meta {
  font-size: 0.72rem;
  color: rgba(251, 191, 36, 0.65);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.heritage-card-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.75;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.heritage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.heritage-tag {
  font-size: 0.62rem;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: rgba(251, 191, 36, 0.75);
  letter-spacing: 0.06em;
}

body.light-theme .heritage-card-name {
  color: rgba(0, 0, 0, 0.78);
}

body.light-theme .heritage-card-meta {
  color: rgba(180, 83, 9, 0.85);
}

body.light-theme .heritage-card-desc {
  color: rgba(0, 0, 0, 0.48);
}

body.light-theme .heritage-tag {
  border-color: rgba(180, 83, 9, 0.22);
  color: rgba(146, 64, 14, 0.85);
}

