/* ========================================
   Variables & Reset
   ======================================== */
:root {
  --bg: #111111;
  --bg-alt: #1a1a1a;
  --surface: #222222;
  --text: #e8e8e8;
  --text-muted: #bcbcbc;
  --accent: #c9a96e;
  --accent-hover: #dfc08a;
  --font-body: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1100px;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

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

/* ========================================
   Layout
   ======================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
}

/* Text Reveal Animation */
.reveal-text {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}

.reveal-text.revealed {
  animation: revealUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Stagger the intro text slightly after the title */
.section-intro.reveal-text.revealed {
  animation-delay: 0.15s;
}

/* Ensure section titles also animate properly */
.section-title.reveal-text.revealed {
  animation: revealUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

/* Fallback: show text if JS hasn't loaded or prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-text {
    opacity: 1;
    transform: none;
  }
  .reveal-text.revealed {
    animation: none;
  }
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -15% 0;
  background: url('../assets/images/hero-bg.jpg') center center / cover no-repeat;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}

.hero-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scroll-bob 2s ease-in-out infinite;
  opacity: 0.6;
  transition: opacity 0.3s;
  cursor: default;
}

.scroll-hint:hover {
  opacity: 1;
}

.scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-hint-arrow {
  color: #888888;
  transform: rotate(180deg);
}

.scroll-hint-text {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #888888;
}

@keyframes scroll-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   Parallax Banner
   ======================================== */
.parallax-banner {
  position: relative;
  height: 70vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-banner-img {
  position: absolute;
  inset: -20% 0;
  background: url('../assets/images/banner.jpg') center center / cover no-repeat;
  will-change: transform;
  transition: none;
}

/* Fallback gradient when no image is present */
.parallax-banner.no-image {
  background-image:
    linear-gradient(135deg, rgba(42, 58, 74, 0.9) 0%, rgba(58, 42, 42, 0.9) 50%, rgba(42, 42, 58, 0.9) 100%);
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.parallax-quote {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .parallax-banner {
    height: 50vh;
    min-height: 280px;
  }
}

/* ========================================
   Compositions
   ======================================== */
.compositions-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.composition-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto;
  overflow: hidden;
}

.composition-thumb {
  grid-row: 1 / -1;
  background-color: #2a2a3a;
  min-height: 200px;
  overflow: hidden;
  position: relative;
}

.composition-thumb-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 1s ease;
}

.composition-card:hover .composition-thumb-img {
  transform: scale(1.1);
}

.composition-info {
  padding: 28px 28px 0;
}

.composition-card .audio-player {
  padding: 0 28px;
}

.composition-card .btn-score {
  margin: 0 28px 24px;
}

.composition-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
}

.composition-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-top: 4px;
}

.composition-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* Audio Player */
.audio-player {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.play-btn:hover {
  background: rgba(201, 169, 110, 0.15);
}

.play-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

.play-btn .icon-pause {
  display: none;
}

.play-btn.playing .icon-play {
  display: none;
}

.play-btn.playing .icon-pause {
  display: block;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.audio-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ========================================
   Gallery
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  cursor: pointer;
}

.gallery-thumb {
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.gallery-placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0.6;
}

.gallery-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

/* ========================================
   News
   ======================================== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.news-item:first-child {
  padding-top: 0;
}

.news-date {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  min-width: 90px;
  flex-shrink: 0;
  padding-top: 3px;
}

.news-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 6px;
}

.news-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========================================
   Shop
   ======================================== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.shop-card {
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  padding-bottom: 24px;
}

.shop-image {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  padding: 20px 20px 4px;
}

.shop-price {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
  padding: 0 20px;
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

.btn-outline {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  margin: 0 20px;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ========================================
   Bio
   ======================================== */
.bio-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}

.bio-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--surface);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.bio-photo-img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  aspect-ratio: 3/4;
}

.bio-text .section-title {
  margin-bottom: 24px;
}

.bio-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}

/* ========================================
   CV
   ======================================== */
.cv-category {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cv-category:first-of-type {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 32px;
}

.cv-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

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

.cv-chevron {
  transition: transform 0.3s;
  flex-shrink: 0;
}

.cv-toggle[aria-expanded="true"] .cv-chevron {
  transform: rotate(180deg);
}

.cv-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0;
}

.cv-list.open {
  max-height: 2000px;
  padding-bottom: 24px;
}

.cv-list ul {
  list-style: none;
  padding: 0;
}

.cv-list li {
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.cv-list li:last-child {
  border-bottom: none;
}

.cv-year {
  display: inline-block;
  min-width: 48px;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.85rem;
  margin-right: 12px;
  font-variant-numeric: tabular-nums;
}

.cv-list em {
  font-style: italic;
  color: var(--text);
}

/* ========================================
   Contact
   ======================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.contact-email {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  display: inline-block;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .btn {
  align-self: flex-start;
  border-radius: 6px;
}

.contact-form .btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.form-status {
  font-size: 0.9rem;
  margin-top: 4px;
  min-height: 1.4em;
}

.form-status.success {
  color: #6ecf8e;
}

.form-status.error {
  color: #e06060;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ========================================
   Lightbox
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.lightbox-img {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 4px;
}

.lightbox-caption {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text);
  font-size: 3rem;
  cursor: pointer;
  padding: 16px;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--accent);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

/* ========================================
   Share Sidebar
   ======================================== */
.share-sidebar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  border: 1px solid rgba(255,255,255,0.06);
  border-left: none;
}

.share-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.share-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.share-link:hover {
  color: var(--accent);
  background: rgba(201, 169, 110, 0.1);
}

.share-link.copied {
  color: #6ecf8e;
}

@media (max-width: 768px) {
  .share-sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    justify-content: center;
    border-radius: 8px 8px 0 0;
    border: 1px solid rgba(255,255,255,0.06);
    border-bottom: none;
    padding: 10px 16px;
    gap: 12px;
  }

  .share-label {
    margin-bottom: 0;
    margin-right: 4px;
  }
}

/* ========================================
   Compositions Filter
   ======================================== */
.compositions-filter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.compositions-search {
  flex: 1;
  min-width: 180px;
  max-width: 320px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.compositions-search:focus {
  outline: none;
  border-color: var(--accent);
}

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

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

.filter-tag {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tag:hover {
  border-color: var(--accent);
  color: var(--text);
}

.filter-tag.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
  font-weight: 500;
}

.composition-card.hidden-filter {
  display: none;
}

.compositions-no-results {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 24px 0;
  text-align: center;
}

/* ========================================
   Composition Detail Panel
   ======================================== */
.composition-learn-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--accent);
  transition: color 0.2s;
}

.composition-learn-more:hover {
  color: var(--accent-hover);
}

.composition-detail {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  overflow-y: auto;
}

.composition-detail.open {
  opacity: 1;
  visibility: visible;
}

.composition-detail-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
}

.detail-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}

.detail-content {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  margin-top: 36px;
}

.detail-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  background-color: #2a2a3a;
  background-size: cover;
  background-position: center;
}

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.detail-section h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--text);
}

.detail-tech-table {
  width: 100%;
  border-collapse: collapse;
}

.detail-tech-table td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.detail-tech-table td:first-child {
  color: var(--text);
  font-weight: 400;
  width: 140px;
}

.detail-program-notes {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Volume Control */
.volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.volume-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.volume-btn:hover {
  color: var(--text);
}

.volume-btn .icon-volume-off {
  display: none;
}

.volume-btn.muted .icon-volume-on {
  display: none;
}

.volume-btn.muted .icon-volume-off {
  display: block;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: transform 0.15s;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

@media (max-width: 480px) {
  .volume-slider {
    width: 50px;
  }
}

.detail-actions {
  display: flex;
  gap: 16px;
}

.detail-view-score {
  border-radius: 4px;
}

.detail-form-intro {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.detail-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-form input,
.detail-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.detail-form input:focus,
.detail-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.detail-form input::placeholder,
.detail-form textarea::placeholder {
  color: var(--text-muted);
}

.detail-form textarea {
  resize: vertical;
}

.detail-form .btn {
  align-self: flex-start;
  border-radius: 6px;
}

.detail-form .btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.detail-form-status {
  font-size: 0.85rem;
  min-height: 1.2em;
}

@media (max-width: 768px) {
  .detail-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .detail-image {
    max-width: 280px;
    aspect-ratio: 4/3;
  }

  .detail-title {
    font-size: 1.3rem;
  }
}

/* ========================================
   Score Viewer
   ======================================== */
.btn-score {
  margin: 8px 0 0 0;
  align-self: flex-start;
  border-radius: 4px;
}

.score-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.score-viewer.open {
  opacity: 1;
  visibility: visible;
}

.score-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.score-viewer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.score-viewer-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.score-viewer-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px;
  -webkit-user-select: none;
  user-select: none;
}

.score-viewer-body canvas {
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.score-viewer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.score-prev,
.score-next {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.score-prev:hover,
.score-next:hover {
  background: var(--accent);
  color: var(--bg);
}

.score-zoom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,0.12);
}

.score-zoom-in,
.score-zoom-out {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.score-zoom-in:hover,
.score-zoom-out:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.score-zoom-level {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 45px;
  text-align: center;
}

@media (max-width: 600px) {
  .score-viewer-controls {
    flex-wrap: wrap;
    gap: 12px;
  }
  .score-zoom-controls {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    width: 100%;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
}

.score-prev:disabled,
.score-next:disabled {
  opacity: 0.3;
  cursor: default;
}

.score-prev:disabled:hover,
.score-next:disabled:hover {
  background: none;
  color: var(--accent);
}

.score-page-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ========================================
   Smart Prompts
   ======================================== */
.smart-prompt {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 800;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 20px 44px 20px 20px;
  max-width: 340px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition: opacity 0.4s, transform 0.4s, visibility 0.4s;
}

.smart-prompt.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.smart-prompt-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.smart-prompt-close:hover {
  color: var(--text);
}

.smart-prompt-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 12px;
}

.smart-prompt-link {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.smart-prompt-link:hover {
  color: var(--accent-hover);
}

@media (max-width: 768px) {
  .smart-prompt {
    bottom: 64px; /* above mobile share bar */
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

/* ========================================
   Fade-in Animation
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(17, 17, 17, 0.97);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .shop-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .bio-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bio-photo-placeholder {
    max-width: 240px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .news-item {
    flex-direction: column;
    gap: 8px;
  }

  .composition-card {
    grid-template-columns: 1fr;
  }

  .composition-thumb {
    min-height: 180px;
    grid-row: auto;
  }

  .composition-info {
    padding: 20px 20px 0;
  }

  .composition-card .audio-player {
    padding: 0 20px;
  }

  .composition-card .btn-score {
    margin: 0 20px 20px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
  }
}

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

  .hero-title {
    font-size: 2.4rem;
  }
}
