/* ==========================================================================
   HARMONY 2.0 — Concert Hall Editorial Design System
   Zero external CSS build needed — runs directly on any shared hosting.
   ========================================================================== */

:root {
  --bg: #09090d;
  --bg-elevated: #111218;
  --bg-card: #15161e;
  --bg-glass: rgba(9, 9, 13, 0.82);
  --surface-hover: #1d1f2a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-muted: #9b9da8;
  --text-subtle: #6b6e7b;
  --gold: #ef0051;
  --gold-hover: #ff246c;
  --gold-soft: rgba(239, 0, 81, 0.14);
  --on-accent: #ffffff;
  --crimson: #ef0051;
  --emerald: #22c55e;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.35);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-serif: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1320px;
  color-scheme: dark;
}

@view-transition {
  navigation: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

[data-theme="light"] {
  --bg: #f6f7f9;
  --bg-elevated: #eef0f4;
  --bg-card: #ffffff;
  --bg-glass: rgba(246, 247, 249, 0.88);
  --surface-hover: #eceef3;
  --border: rgba(15, 17, 23, 0.09);
  --border-strong: rgba(15, 17, 23, 0.18);
  --text: #111318;
  --text-muted: #555966;
  --text-subtle: #7c808f;
  --gold: #df004c;
  --gold-hover: #c40043;
  --gold-soft: rgba(223, 0, 76, 0.1);
  --on-accent: #ffffff;
  --shadow-lg: 0 24px 60px rgba(15, 17, 23, 0.11);
  --shadow-md: 0 10px 26px rgba(15, 17, 23, 0.06);
  color-scheme: light;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  flex: 1;
}

/* ---------- Typography ---------- */
.font-serif {
  font-family: var(--font-serif);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 92px;
}

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

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(239, 0, 81, 0.32);
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface-hover);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.search-trigger {
  min-width: 210px;
  justify-content: space-between;
  padding: 0 16px;
}

.kbd {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  color: var(--text-subtle);
}

.fav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
}

.fav-badge:empty {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--on-accent);
}

.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(239, 0, 81, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--surface-hover);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost {
  background: var(--gold-soft);
  color: var(--gold);
}

.btn-ghost:hover {
  background: var(--gold);
  color: var(--on-accent);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12.5px;
}

.btn-danger {
  background: rgba(200, 75, 97, 0.16);
  color: #ef6c82;
  border-color: rgba(200, 75, 97, 0.35);
}

.btn-danger:hover {
  background: var(--crimson);
  color: #fff;
}

/* ---------- Dynamic Split Hero & Featured Carousel ---------- */
.hero {
  padding: 28px 0 28px;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
  gap: 24px;
  align-items: stretch;
}

.hero-intro {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 36px 34px 32px;
  background: radial-gradient(circle at 0% 0%, rgba(239, 0, 81, 0.16), transparent 55%),
              var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(239, 0, 81, 0.28);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(239, 0, 81, 0.22);
}

.hero-headline {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 18px 0 14px;
}

.hero-headline span {
  color: var(--gold);
}

.hero-lead {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 22px;
  max-width: 48ch;
}

.hero-stats {
  display: flex;
  gap: 24px;
  padding: 14px 0 18px;
  margin-bottom: 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.hero-stat strong {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.hero-stat span {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.hero-quick-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-subtle);
  margin-right: 2px;
}

/* Right Column: Multi-Concert Interactive Deck */
.hero-deck {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.hero-stage-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 365px;
  flex: 1;
  background: #0d0f16;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 24px 26px;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(1.06);
  transform: scale(1.03);
  transition: transform 6s ease-out;
}

.hero-slide.is-active .hero-slide-img {
  transform: scale(1);
}

.hero-slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 13, 0.35) 0%, rgba(9, 9, 13, 0.25) 35%, rgba(9, 9, 13, 0.94) 100%);
}

.hero-slide-top,
.hero-slide-body {
  position: relative;
  z-index: 2;
}

.hero-slide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-slide-title {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 800;
  color: #fff;
  margin: 10px 0 6px;
  line-height: 1.22;
  max-width: 90%;
}

.hero-slide-title a:hover {
  color: #ff6996;
}

.hero-slide-desc {
  font-size: 13.5px;
  color: rgba(245, 245, 247, 0.78);
  margin: 0;
  max-width: 56ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slide-counter {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-left: 4px;
}

.hero-controls {
  position: absolute;
  right: 20px;
  bottom: 24px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(9, 9, 13, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.18s ease;
}

.hero-nav-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.hero-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  z-index: 5;
}

.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
}

/* Interactive Queue Thumbs Strip */
.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.hero-thumb {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  overflow: hidden;
}

.hero-thumb:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.hero-thumb.is-active {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.hero-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px;
}

.hero-thumb-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 2px 2px;
}

.hero-thumb-composer {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-thumb-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Era Ribbon ---------- */
.era-ribbon {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.era-card {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 18px;
  min-height: 158px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 95% 95%, color-mix(in srgb, var(--era-accent, var(--gold)) 22%, transparent), transparent 65%),
              var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.era-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--era-accent, var(--gold));
  opacity: 0.72;
  transition: opacity 0.24s ease;
}

.era-svg {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 112px;
  height: 112px;
  color: var(--era-accent, var(--gold));
  opacity: 0.16;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.era-card:hover,
.era-card.active {
  border-color: var(--era-accent, var(--gold));
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.era-card:hover::before {
  opacity: 1;
}

.era-card:hover .era-svg {
  opacity: 0.32;
  transform: scale(1.08) rotate(-3deg);
}

.era-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.era-years {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--era-accent, var(--gold));
  font-weight: 700;
}

.era-arrow {
  font-size: 14px;
  color: var(--text-subtle);
  transition: transform 0.2s ease, color 0.2s ease;
}

.era-card:hover .era-arrow {
  color: var(--era-accent, var(--gold));
  transform: translateX(3px);
}

.era-name {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.era-masters {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

.era-count {
  position: relative;
  z-index: 1;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-subtle);
  margin-top: auto;
  padding-top: 8px;
}

[data-theme="light"] .era-svg {
  opacity: 0.14;
}

[data-theme="light"] .era-card:hover .era-svg {
  opacity: 0.26;
}

.era-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
}

.era-count {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------- Section Headings ---------- */
.section {
  padding: 28px 0 44px;
}

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

.section-title {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  margin-top: 6px;
}

.section-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-link:hover {
  color: var(--gold-hover);
}

/* ---------- Video Card Grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

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

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d0f16;
}

.card-media > a {
  display: block;
  width: 100%;
  height: 100%;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.video-card:hover .card-media img {
  transform: scale(1.05);
}

.play-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(11, 12, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--gold);
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.video-card:hover .play-pill {
  background: var(--gold);
  color: #ffffff;
  transform: scale(1.08);
}

.card-era-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 12, 16, 0.78);
  backdrop-filter: blur(8px);
  color: #f4f1ea;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(11, 12, 16, 0.72);
  color: #f4f1ea;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.18s ease;
}

.card-fav-btn:hover,
.card-fav-btn.is-saved {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}

.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-composer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.composer-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
}

.composer-chip:hover {
  color: var(--gold-hover);
}

.avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.avatar-monogram {
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #272936, #15161e);
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 11px;
  border: 1px solid rgba(239, 0, 81, 0.35);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-muted);
  transition: all 0.16s ease;
}

.tag-pill:hover,
.tag-pill.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

/* ---------- Composer Cards ---------- */
.composer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

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

.composer-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.composer-portrait {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
}

.composer-portrait.avatar-monogram {
  font-size: 22px;
}

.composer-info {
  min-width: 0;
}

.composer-info h3 {
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.composer-meta-line {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ---------- Watch / Video Detail Page ---------- */
.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  padding: 28px 0 60px;
  align-items: start;
}

.player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.player-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.watch-header {
  margin-top: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.watch-title {
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  margin: 10px 0 16px;
}

.watch-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.watch-composer-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.watch-composer-box .composer-portrait {
  width: 48px;
  height: 48px;
}

.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.program-notes {
  margin-top: 24px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.program-notes h3 {
  font-size: 22px;
  margin-bottom: 14px;
  color: var(--gold);
}

.prose {
  color: var(--text-muted);
  line-height: 1.75;
}

.prose p {
  margin: 0 0 12px;
}

.prose strong {
  color: var(--text);
}

.prose a {
  color: var(--gold);
  text-decoration: underline;
}

/* Movement Chapters Box */
.chapters-card {
  margin-top: 24px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.chapters-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.chapter-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: all 0.16s ease;
}

.chapter-btn:hover,
.chapter-btn.active {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.chapter-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  min-width: 54px;
}

/* Related Sidebar */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.related-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.related-item {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.related-thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0d0f16;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item:hover .related-title {
  color: var(--gold);
}

.related-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Composer Spotlight Banner ---------- */
.spotlight-banner {
  margin: 28px 0 32px;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 28px;
}

.spotlight-portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}

.spotlight-portrait.avatar-monogram {
  font-size: 40px;
}

/* ---------- Filter Bar & Pagination ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.select-input,
.text-input,
.textarea-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.16s ease;
}

.select-input:focus,
.text-input:focus,
.textarea-input:focus {
  border-color: var(--gold);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-link {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.page-link:hover,
.page-link.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

/* ---------- Search Modal Dialog ---------- */
dialog.search-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: 80dvh;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

dialog.search-dialog::backdrop {
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(6px);
}

.search-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.search-modal-head input {
  flex: 1;
  background: transparent;
  border: 0;
  font-size: 16px;
  outline: none;
}

.search-modal-results {
  padding: 16px 20px 22px;
  overflow-y: auto;
  max-height: 58dvh;
}

/* ---------- Comments & Alerts ---------- */
.flash {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-size: 14px;
  border: 1px solid transparent;
}

.flash-success {
  background: rgba(63, 185, 132, 0.14);
  border-color: rgba(63, 185, 132, 0.35);
  color: #5ee2a8;
}

.flash-error {
  background: rgba(200, 75, 97, 0.14);
  border-color: rgba(200, 75, 97, 0.35);
  color: #f38ba0;
}

[data-theme="light"] .flash-success { color: #166534; }
[data-theme="light"] .flash-error { color: #991b1b; }

.comment-card {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 44px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}

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

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-subtle);
}

/* ---------- Mobile Bottom App Navigation (PWA feel) ---------- */
.mobile-nav {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
  .hero-stage-wrap {
    min-height: 360px;
  }
  .video-grid-4,
  .composer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .watch-layout {
    grid-template-columns: 1fr;
  }
  .era-ribbon {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .header-inner {
    height: 74px;
    gap: 14px;
  }
  .brand-logo {
    width: 44px;
    height: 44px;
  }
  .brand-name {
    font-size: 20px;
  }
  .nav-links,
  .search-trigger span.search-label,
  .search-trigger .kbd {
    display: none;
  }
  .search-trigger {
    min-width: 42px;
    padding: 0;
    justify-content: center;
  }
  .video-grid,
  .video-grid-4,
  .composer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .hero-intro {
    padding: 26px 20px;
  }
  .hero-stage-wrap {
    min-height: 330px;
  }
  .hero-thumbs {
    grid-template-columns: repeat(5, minmax(126px, 1fr));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .hero-thumbs::-webkit-scrollbar {
    display: none;
  }
  .hero-thumb {
    scroll-snap-align: start;
  }
  .spotlight-banner {
    flex-direction: column;
    text-align: center;
    padding: 26px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 70;
    min-height: 64px;
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    color: var(--text-muted);
    border-radius: 10px;
  }
  .mobile-nav a.active {
    color: var(--gold);
  }
  .select-input,
  .text-input,
  .textarea-input {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }
  .header-inner {
    height: 68px;
    gap: 10px;
  }
  .brand {
    gap: 10px;
  }
  .brand-logo {
    width: 40px;
    height: 40px;
  }
  .brand-name {
    font-size: 18px;
  }
  .brand-sub {
    font-size: 9.5px;
  }
  .icon-btn {
    height: 40px;
    padding: 0 11px;
  }
  .hero {
    padding: 18px 0 20px;
  }
  .hero-headline {
    font-size: 1.7rem;
  }
  .hero-stats {
    gap: 16px;
    justify-content: space-between;
  }
  .hero-stat strong {
    font-size: 20px;
  }
  .hero-cta-row .btn {
    flex: 1 1 auto;
    padding: 10px 16px;
    font-size: 13.5px;
  }
  .hero-stage-wrap {
    min-height: 360px;
  }
  .hero-slide {
    padding: 16px 16px 22px;
  }
  .hero-slide-title {
    max-width: 100%;
    font-size: 1.2rem;
  }
  .hero-controls {
    top: 16px;
    right: 60px;
    bottom: auto;
  }
  .hero-nav-btn {
    width: 34px;
    height: 34px;
  }
  .era-ribbon {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 10px;
    margin: 6px 0 28px;
    padding-bottom: 4px;
  }
  .era-ribbon::-webkit-scrollbar {
    display: none;
  }
  .era-card {
    flex: 0 0 225px;
    min-height: 148px;
    scroll-snap-align: start;
    padding: 16px 16px;
  }
  .video-grid,
  .video-grid-4,
  .composer-grid,
  .comment-form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .program-notes {
    padding: 18px 16px;
  }
  .watch-layout {
    padding: 18px 0 40px;
    gap: 22px;
  }
}

@media (max-width: 380px) {
  .brand-sub {
    display: none;
  }
}

/* ---------- v3 Features: Lite Player, Theater Mode, COTD, Collections, Timeline, Skeletons ---------- */
.lite-yt {
  cursor: pointer;
}

.lite-yt-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.lite-yt:hover .lite-yt-poster {
  transform: scale(1.02);
}

.lite-yt-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(9, 9, 13, 0.25) 0%, rgba(9, 9, 13, 0.65) 100%);
}

.lite-yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: var(--gold);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(239, 0, 81, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 3;
}

.lite-yt:hover .lite-yt-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--gold-hover);
}

.lite-yt-resume {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 4;
}

.autoplay-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: rgba(9, 9, 13, 0.88);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: #fff;
}

.autoplay-overlay[hidden] {
  display: none;
}

.watch-layout.is-theater {
  grid-template-columns: 1fr;
}

.watch-layout.is-theater .watch-sidebar {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Concert of the Day Banner */
.cotd-banner {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.cotd-thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
}

.cotd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 780px) {
  .cotd-banner {
    grid-template-columns: 1fr;
  }
}

/* Curated Collections */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1080px) {
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .collection-grid { grid-template-columns: 1fr; }
}

.collection-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  border: 1px solid var(--border);
  background: #111218;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.collection-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.collection-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transition: transform 0.45s ease;
}

.collection-card:hover .collection-bg {
  transform: scale(1.06);
}

.collection-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 13, 0.15) 0%, rgba(9, 9, 13, 0.92) 100%);
}

.collection-inner {
  position: relative;
  z-index: 2;
  color: #fff;
}

.collection-inner h3 {
  font-size: 18px;
  margin: 4px 0;
}

.collection-inner p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* Composer Timeline */
.timeline-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 24px 4px 28px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.timeline-node {
  flex: 0 0 200px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline-node::before {
  content: "";
  position: absolute;
  top: 34px;
  left: -18px;
  right: -18px;
  height: 2px;
  background: var(--border-strong);
  z-index: 0;
}

.timeline-year {
  font-size: 13px;
  font-weight: 800;
  color: var(--era-color, var(--gold));
  margin-bottom: 8px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--era-color, var(--gold));
  border: 3px solid var(--bg);
  z-index: 1;
  margin-bottom: 14px;
}

.timeline-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.timeline-node:hover .timeline-card {
  transform: translateY(-3px);
  border-color: var(--era-color, var(--gold));
}

/* Starter Works & Newsletter */
.starter-works-box {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.starter-works-box ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  display: grid;
  gap: 4px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.newsletter-form .text-input {
  flex: 1;
  min-width: 190px;
  padding: 8px 12px;
  font-size: 13px;
}

/* Skeleton Loader */
.skeleton-card {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  height: 270px;
  position: relative;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

[data-theme="light"] .hero-intro {
  background: radial-gradient(circle at 0% 0%, rgba(223, 0, 76, 0.09), transparent 55%), var(--bg-card);
}

[data-theme="light"] .skeleton-card::after {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.04), transparent);
}

/* ---------- Guide Card & Hero SVG Covers ---------- */
.guide-cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  aspect-ratio: 16 / 9;
  padding: 14px 16px;
  overflow: hidden;
  background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--guide-accent, var(--gold)) 28%, transparent), transparent 65%),
              linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  border-bottom: 1px solid var(--border);
}

.guide-cover-hero {
  aspect-ratio: 21 / 8;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.guide-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--guide-accent, var(--gold));
  opacity: 0.34;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.guide-card:hover .guide-svg {
  transform: scale(1.04);
  opacity: 0.5;
}

.guide-cover-badges {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.guide-read-time {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(9, 9, 13, 0.72);
  color: #f5f5f7;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

