/* ============================================
   云星传媒 - Global Styles
   Chinese Culture Export Enterprise Site
   ============================================ */

/* === CSS Variables === */
:root {
  --ink-black: #0a0a0a;
  --warm-ink: #1a1714;
  --rice-paper: #f5f0e8;
  --vermillion: #c23a2b;
  --antique-gold: #b8960c;
  --warm-gray: #8a8278;
  --warm-white: #e8e0d4;
  --dark-overlay: rgba(10, 10, 10, 0.7);
  --card-bg: #141210;
  --border-subtle: rgba(184, 150, 12, 0.15);
  --font-heading-en: Georgia, 'Playfair Display', 'Times New Roman', serif;
  --font-body-en: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-zh: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --font-ar: 'Geeza Pro', 'Traditional Arabic', 'Noto Naskh Arabic', serif;
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-base: 0.4s var(--ease-smooth);
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-body-en);
  background-color: var(--ink-black);
  color: var(--warm-white);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.lang-zh, body.lang-zh-hk {
  font-family: var(--font-zh);
}

body.lang-ar {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

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

a {
  color: var(--antique-gold);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-heading-en);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

body.lang-zh h1, body.lang-zh h2, body.lang-zh h3, body.lang-zh h4,
body.lang-zh-hk h1, body.lang-zh-hk h2, body.lang-zh-hk h3, body.lang-zh-hk h4 {
  font-family: var(--font-zh);
  font-weight: 600;
}

body.lang-ar h1, body.lang-ar h2, body.lang-ar h3, body.lang-ar h4 {
  font-family: var(--font-ar);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }

p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(232, 224, 212, 0.85);
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30000;
  padding: 1.5rem 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s var(--ease-smooth);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 4%;
  border-bottom: 1px solid var(--border-subtle);
}

.nav.menu-open {
  background: #0a0a0a;
  padding: 1rem 4%;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}

.nav-logos {
  /* width: 36px; */
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}

.nav-logo-text {
  font-family: var(--font-heading-en);
  font-size: 1.4rem;
  color: var(--warm-white);
  letter-spacing: 0.1em;
}

body.lang-zh .nav-logo-text,
body.lang-zh-hk .nav-logo-text {
  font-family: var(--font-zh);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  z-index: 1000;
}

.nav-links a {
  color: var(--warm-white);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--antique-gold);
  transition: width var(--transition-base);
}

.nav-links a:hover::after {
  width: 100%;
}

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

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  border: 1px solid rgba(184, 150, 12, 0.3);
  background: transparent;
  color: var(--warm-gray);
  cursor: pointer;
  transition: all var(--transition-base);
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.lang-dropdown-toggle:hover {
  border-color: var(--antique-gold);
  color: var(--antique-gold);
  background: rgba(184, 150, 12, 0.08);
}

.lang-icon {
  opacity: 0.8;
}

.lang-arrow {
  transition: transform 0.2s ease;
}

.lang-dropdown.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: #1a1714;
  border: 1px solid rgba(184, 150, 12, 0.2);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.lang-dropdown.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--warm-gray);
  text-decoration: none;
  transition: all 0.15s ease;
}

.lang-option:hover {
  background: rgba(184, 150, 12, 0.1);
  color: var(--antique-gold);
}

.lang-option.active {
  color: var(--antique-gold);
  font-weight: 500;
}

/* RTL support for dropdown */
[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 20001;
}

.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--warm-white);
  transition: all 0.3s ease;
  display: block;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

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

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 8s ease-out;
  pointer-events: none;
}

.hero.loaded .hero-bg-video {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(10, 10, 10, 0.2) 40%,
    rgba(10, 10, 10, 0.6) 80%,
    rgba(10, 10, 10, 0.95) 100%
  ); */
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  /* padding: 0 2rem; */
}

.hero-logo {
  width: 360px;
  height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(184, 150, 12, 0.5));
  animation: fadeUp 1s 0.3s var(--ease-smooth) forwards;
  opacity: 0;
  border-radius: 200px;
}

.hero-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  z-index: 1;
}

.orbit-ring {
  position: relative;
  width: 100%;
  height: 100%;
}

.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 98px;
  height: 98px;
  margin-top: -40px;
  margin-left: -40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--antique-gold);
  box-shadow: 0 4px 20px rgba(184, 150, 12, 0.4);
  animation: orbit 30s linear infinite;
  will-change: transform;
}

.orbit-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orbit-item-1 {
  animation-delay: 0s;
}

.orbit-item-2 {
  animation-delay: -3s;
}

.orbit-item-3 {
  animation-delay: -6s;
}

.orbit-item-4 {
  animation-delay: -9s;
}

.orbit-item-5 {
  animation-delay: -12s;
}

.orbit-item-6 {
  animation-delay: -15s;
}

.orbit-item-7 {
  animation-delay: -18s;
}

.orbit-item-8 {
  animation-delay: -21s;
}

.orbit-item-9 {
  animation-delay: -24s;
}

.orbit-item-10 {
  animation-delay: -27s;
}

@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(300px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(300px) rotate(-360deg);
  }
}

.hero-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--antique-gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s 0.3s var(--ease-smooth) forwards;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--warm-white);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s 0.6s var(--ease-smooth) forwards;
  line-height: 1.15;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(232, 224, 212, 0.75);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s 0.9s var(--ease-smooth) forwards;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid var(--antique-gold);
  color: var(--antique-gold);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s 1.2s var(--ease-smooth) forwards;
}

.hero-cta:hover {
  background: var(--antique-gold);
  color: var(--ink-black);
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s 1.5s var(--ease-smooth) forwards;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--antique-gold), transparent);
  animation: scrollPulse 2s infinite;
}

/* === Section Common === */
.section {
  padding: 3rem 4%;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-label {
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--antique-gold);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  color: var(--warm-white);
  margin-bottom: 1.5rem;
}

.section-desc {
  max-width: 650px;
  margin: 0 auto;
  color: rgba(232, 224, 212, 0.7);
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--antique-gold);
  margin: 1.5rem auto 0;
}

/* === About Section === */
.about {
  background: var(--warm-ink);
  padding: 5rem 4%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-text h2 {
  margin-bottom: 2rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.business-matrix {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.business-matrix li {
  color: rgba(232, 224, 212, 0.85);
  padding: 0.6rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
}

.business-matrix li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--antique-gold);
  border-radius: 50%;
}

.about-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  aspect-ratio: 1;
  width: 100%;
}

.about-image-item {
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.about-image-item:hover {
  border-color: var(--antique-gold);
  box-shadow: 0 12px 32px rgba(184, 150, 12, 0.2);
  transform: scale(1.02);
}

.about-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-smooth);
}

.about-image-item:hover img {
  transform: scale(1.05);
}

.about-image-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0);
  transition: background 0.4s var(--ease-smooth);
  pointer-events: none;
}

.about-image-item:hover::after {
  background: rgba(10, 10, 10, 0.15);
}

/* === Heritage Section === */
.heritage {
  background: var(--ink-black);
}

.heritage-scroll-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.heritage-grid {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.heritage-grid::-webkit-scrollbar {
  display: none;
}

.heritage-grid .heritage-card {
  flex: 0 0 calc(33.333% - 1.34rem);
  min-width: 320px;
  scroll-snap-align: start;
}

.heritage-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
  padding: 0 0.5rem;
}

.heritage-nav-prev,
.heritage-nav-next {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-subtle);
  background: rgba(10, 10, 10, 0.85);
  color: var(--warm-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-base);
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
}

.heritage-nav-prev:hover,
.heritage-nav-next:hover {
  border-color: var(--antique-gold);
  color: var(--antique-gold);
  background: rgba(10, 10, 10, 0.95);
  transform: scale(1.1);
}

.heritage-card {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
  cursor: pointer;
}

.heritage-card:hover {
  border-color: var(--antique-gold);
  transform: translateY(-4px);
}

.heritage-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.8s var(--ease-smooth);
}

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

.heritage-card-body {
  padding: 2rem;
}

.heritage-card-title {
  font-size: 1.3rem;
  color: var(--warm-white);
  margin-bottom: 0.8rem;
}

.heritage-card-desc {
  font-size: 0.95rem;
  color: rgba(232, 224, 212, 0.65);
  line-height: 1.7;
}

.heritage-card-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--antique-gold);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.8rem;
}

/* === History Timeline === */
.history {
  background: var(--warm-ink);
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.history-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.history-bg-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.history-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.9) 0%,
    rgba(10, 22, 40, 0.75) 30%,
    rgba(10, 22, 40, 0.6) 50%,
    rgba(10, 22, 40, 0.75) 70%,
    rgba(10, 22, 40, 0.9) 100%
  );
  backdrop-filter: blur(2px);
}

.history .section-header,
.history .timeline {
  position: relative;
  z-index: 1;
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--antique-gold), transparent);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

body.lang-ar .timeline-item:nth-child(odd) {
  flex-direction: row;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border: 2px solid var(--antique-gold);
  border-radius: 50%;
  background: var(--warm-ink);
  z-index: 2;
}

.timeline-content {
  width: 45%;
  /* padding: 2rem; */
}

.timeline-year {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--antique-gold);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.3rem;
  color: var(--warm-white);
  margin-bottom: 0.8rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: rgba(232, 224, 212, 0.65);
}

/* === Video Showcase Section === */
.video-showcase {
  background: var(--ink-black);
  padding: 6rem 0;
}

.video-showcase .section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.carousel-section {
  background: linear-gradient(180deg, #0a1628 0%, #0d283a 50%, #0a1a2e 100%);
  padding: 4rem 0;
}

.carousel-section .section-header {
  text-align: center;
  margin-bottom:2rem;
}

.carousel-wrapper {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  perspective: 1500px;
}

.carousel-container {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.carousel-card {
  position: absolute;
  width: 280px;
  height: 480px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.carousel-card.card-prev-2 {
  transform: translateX(-420px) scale(0.65) translateY(20px);
  opacity: 0.35;
  z-index: 1;
}

.carousel-card.card-prev-1 {
  transform: translateX(-280px) scale(0.8) translateY(10px);
  opacity: 0.55;
  z-index: 2;
}

.carousel-card.card-active {
  transform: translateX(0) scale(1) translateY(0);
  opacity: 1;
  z-index: 3;
}

.carousel-card.card-next-1 {
  transform: translateX(280px) scale(0.8) translateY(10px);
  opacity: 0.55;
  z-index: 2;
}

.carousel-card.card-next-2 {
  transform: translateX(420px) scale(0.66) translateY(20px);
  opacity: 0.35;
  z-index: 1;
}

.carousel-card.card-hidden {
  transform: translateX(0) scale(0.5);
  opacity: 0;
  z-index: 0;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.card-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-card:hover .card-overlay {
  opacity: 1;
}

.card-active .card-overlay {
  opacity: 0.6;
}

.card-active:hover .card-overlay {
  opacity: 1;
}

.play-btn {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a1628;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.play-btn svg {
  width: 24px;
  height: 24px;
  margin-left: 4px;
}

.carousel-card:hover .play-btn {
  transform: scale(1);
}

.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--warm-white);
  margin-bottom: 0.3rem;
}

.card-subtitle {
  font-size: 0.85rem;
  color: rgba(232, 224, 212, 0.7);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--warm-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--antique-gold);
}

.carousel-nav svg {
  width: 20px;
  height: 20px;
}

.carousel-nav-prev {
  left: 20px;
}

.carousel-nav-next {
  right: 20px;
}

.carousel-info {
  text-align: center;
  margin-top: 2rem;
}

.carousel-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--warm-white);
  margin-bottom: 0.3rem;
}

.carousel-subtitle {
  font-size: 1rem;
  color: rgba(232, 224, 212, 0.6);
  margin-bottom: 0.8rem;
}

.carousel-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.carousel-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--antique-gold);
}

.carousel-total {
  font-size: 1rem;
  color: rgba(232, 224, 212, 0.5);
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal.active {
  display: flex;
  opacity: 1;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.video-modal-content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  backdrop-filter: blur(10px);
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.video-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(8px);
  color: var(--warm-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 10;
}

.video-nav:hover {
  background: var(--antique-gold);
  border-color: var(--antique-gold);
  color: var(--ink-black);
  transform: translateY(-50%) scale(1.1);
}

.video-nav svg {
  width: 20px;
  height: 20px;
}

.video-nav-prev {
  left: 0;
}

.video-nav-next {
  right: 0;
}

/* === Services Section === */
.services {
  width: 100%;
  min-height: 100vh;
  padding: 80px 20px;
  position: relative;
  text-align: center;
  overflow: hidden;
  background: #0a0a0a;
}

.section-title h1 {
  font-size: 48px;
  color: #d4af37;
  font-weight: normal;
}

.section-title p {
  font-size: 22px;
  color: #ccc;
  margin: 16px 0 32px;
}

.line {
  width: 60px;
  height: 1px;
  background: #d4af37;
  margin: 0 auto 60px;
}

.card-wrap {
  position: relative;
  height: 520px;
  max-width: 1600px;
  margin: 0 auto;
}

.card-item {
  width: 320px;
  height: 420px;
  border: 1px solid #b89848;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  position: absolute;
  transition: all 0.3s ease;
}

.card-item:hover {
  z-index: 99;
  transform: scale(1.03) rotate(0deg) !important;
}

.card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.card-text {
  padding: 16px 20px;
  text-align: left;
}

.card-text h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.card-text p {
  font-size: 13px;
  color: #aaa;
  line-height: 1.6;
}

.card1 {
  left: 8%;
  top: 40px;
  transform: rotate(-6deg);
}

.card2 {
  left: 22%;
  top: 70px;
  transform: rotate(-2deg);
}

.card3 {
  left: 38%;
  top: 0;
  transform: rotate(0deg);
  z-index: 10;
}

.card4 {
  left: 54%;
  top: 70px;
  transform: rotate(2deg);
}

.card5 {
  left: 68%;
  top: 40px;
  transform: rotate(6deg);
}

.btn-area {
  margin-top: 48px;
}

.listen-btn {
  display: inline-block;
  padding: 16px 48px;
  background: linear-gradient(90deg, #b89848, #d4af37);
  color: #000;
  border-radius: 99px;
  font-size: 20px;
  text-decoration: none;
}

.update-tip {
  color: #c9b279;
  margin-left: 20px;
}

/* === Contact Section === */
.contact {
  background: var(--warm-ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid var(--border-subtle);
  color: var(--warm-white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-base);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--antique-gold);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-submit {
  padding: 1rem 2.5rem;
  background: transparent;
  border: 1px solid var(--antique-gold);
  color: var(--antique-gold);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  align-self: flex-start;
}

.form-submit:hover {
  background: var(--antique-gold);
  color: var(--ink-black);
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  color: var(--antique-gold);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.contact-item-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 0.3rem;
}

.contact-item-value {
  color: var(--warm-white);
  font-size: 1rem;
}

/* === News Section === */
.news {
  background: var(--warm-ink);
  padding: 6rem 4%;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.news-card {
  background: var(--ink-black);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: var(--antique-gold);
  box-shadow: 0 16px 32px rgba(184, 150, 12, 0.15);
}

.news-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-image img {
  transform: scale(1.08);
}

.news-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(194, 58, 43, 0.9);
  color: var(--warm-white);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: 500;
}

.news-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-title {
  color: var(--warm-white);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  line-height: 1.4;
  transition: color var(--transition-base);
}

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

.news-subtitle {
  color: var(--warm-gray);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.news-date {
  color: rgba(138, 130, 120, 0.8);
  font-size: 0.75rem;
}

.news-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--antique-gold);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--antique-gold);
  border-radius: 20px;
  transition: all var(--transition-base);
  text-decoration: none;
}

.news-btn:hover {
  background: var(--antique-gold);
  color: var(--ink-black);
}

.news-btn svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-base);
}

.news-btn:hover svg {
  transform: translateX(3px);
}

/* === Footer === */
.footer {
  background: var(--ink-black);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 4% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand-desc {
  color: rgba(232, 224, 212, 0.6);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-col-title {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--antique-gold);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: rgba(232, 224, 212, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition-base);
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--warm-gray);
}

.footer-lang {
  display: flex;
  gap: 1rem;
}

.footer-lang a {
  font-size: 0.8rem;
  color: var(--warm-gray);
  transition: color var(--transition-base);
}

.footer-lang a:hover, .footer-lang a.active {
  color: var(--antique-gold);
}

/* === Animations === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* === Responsive === */
@media (max-width: 1024px) {
  .heritage-grid .heritage-card {
    flex: 0 0 calc(50% - 1rem);
    min-width: 280px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding-top: 80px;
    z-index: 30001;
  }

  .nav-links.open {
    display: flex;
    height: 900px;
  }

  .nav-toggle {
    display: flex;
    z-index: 30003;
  }

  .lang-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .lang-dropdown-toggle {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    aspect-ratio: 1;
  }

  .business-matrix {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .business-matrix li {
    font-size: 0.9rem;
    padding-left: 1.2rem;
  }

  .hero-orbit {
    width: 400px;
    height: 400px;
  }

  .orbit-item {
    width: 50px;
    height: 50px;
    margin-top: -25px;
    margin-left: -25px;
    border-width: 1px;
  }

  @keyframes orbit {
    from {
      transform: rotate(0deg) translateX(170px) rotate(0deg);
    }
    to {
      transform: rotate(360deg) translateX(170px) rotate(-360deg);
    }
  }

  .heritage-grid .heritage-card {
    flex: 0 0 100%;
    min-width: 260px;
  }

  .video-card {
    flex: 0 0 85%;
    min-width: 260px;
  }

  .video-scroll-wrapper {
    padding: 0 3rem;
  }

  .carousel-card {
    width: 160px;
    height: 280px;
  }

  .carousel-card.card-prev-2 {
    transform: translateX(-220px) scale(0.65) translateY(12px);
  }

  .carousel-card.card-prev-1 {
    transform: translateX(-140px) scale(0.8) translateY(5px);
  }

  .carousel-card.card-next-1 {
    transform: translateX(140px) scale(0.8) translateY(5px);
  }

  .carousel-card.card-next-2 {
    transform: translateX(220px) scale(0.65) translateY(12px);
  }

  .carousel-container {
    height: 360px;
  }

  .services {
    padding: 60px 15px;
  }

  .section-title h1 {
    font-size: 32px;
  }

  .section-title p {
    font-size: 16px;
  }

  /* 星播客 services: keep PC fan layout, show only 3 cards (card2/card3/card4) on mobile */
  .card-wrap {
    height: clamp(190px, 66vw, 360px);
    max-width: 100%;
  }

  .card-item {
    width: clamp(108px, 40vw, 220px);
    height: clamp(142px, 53vw, 290px);
  }

  .card1,
  .card5 {
    display: none;
  }

  .card2 { left: 4%;  top: 10%; }
  .card3 { left: 30%; top: 0;   z-index: 10; }
  .card4 { left: 56%; top: 10%; }

  .card-img {
    height: clamp(88px, 33vw, 175px);
  }

  .card-text {
    padding: 10px 12px;
  }

  .card-text h3 {
    font-size: clamp(13px, 3.8vw, 20px);
    margin-bottom: 4px;
  }

  .card-text p {
    font-size: clamp(10px, 2.8vw, 13px);
    line-height: 1.4;
  }

  .btn-area {
    margin-top: 32px;
  }

  .listen-btn {
    padding: 12px 36px;
    font-size: 16px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: column;
    text-align: left;
    padding-left: 50px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content {
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .section {
    padding: 5rem 5%;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .news-image {
    height: 180px;
  }

  .news-title {
    font-size: 1rem;
  }

  .about-image-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 0.8rem;
    aspect-ratio: auto;
  }

  .about-image-item {
    aspect-ratio: 4/3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .hero-orbit {
    /* display: none; */
  }
}

@media (max-width: 480px) {
  .about-image-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 0.8rem;
    aspect-ratio: auto;
  }

  .about-image-item {
    aspect-ratio: 4/3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  .hero-logo {
    width: 230px;
    height: 230px;
  }
}

/* === Utility === */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

.text-gold { color: var(--antique-gold); }
.text-vermillion { color: var(--vermillion); }
.text-muted { color: var(--warm-gray); }

/* === Grain Texture Overlay === */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* === Heritage Detail Page === */
.detail-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.4) 50%,
    rgba(10, 10, 10, 0.9) 100%
  );
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 4%;
  max-width: 900px;
  width: 100%;
}

.detail-hero-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--antique-gold);
  border: 1px solid var(--antique-gold);
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
}

.detail-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--warm-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.detail-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(232, 224, 212, 0.7);
  max-width: 600px;
}

.detail-body {
  background: var(--ink-black);
  /* padding: 6rem 4%; */
}

.detail-content {
  max-width: 800px;
  margin: 0 auto;
}

.detail-content h2 {
  font-size: 1.8rem;
  color: var(--warm-white);
  margin-bottom: 1.5rem;
  margin-top: 3rem;
}

.detail-content h2:first-child {
  margin-top: 0;
}

.detail-content p {
  font-size: 1.05rem;
  line-height: 2;
  color: rgba(232, 224, 212, 0.8);
  margin-bottom: 1.5rem;
}

.detail-content .highlight-box {
  background: var(--warm-ink);
  border-left: 3px solid var(--antique-gold);
  padding: 2rem;
  margin: 2.5rem 0;
}

body.lang-ar .detail-content .highlight-box {
  border-left: none;
  border-right: 3px solid var(--antique-gold);
}

.detail-content .highlight-box p {
  margin-bottom: 0;
  color: rgba(232, 224, 212, 0.9);
  font-style: italic;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}

.detail-gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.detail-gallery img:hover {
  transform: scale(1.02);
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--border-subtle);
  color: var(--warm-gray);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: all var(--transition-base);
  margin-bottom: 2rem;
}

.detail-back:hover {
  border-color: var(--antique-gold);
  color: var(--antique-gold);
}

/* Heritage Detail Page Styles */
.heritage-detail-hero {
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.heritage-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.85) 100%);
  z-index: 1;
}

.heritage-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.hero-detail-title {
  position: absolute;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
}

.hero-detail-title h1 {
  font-size: 3.5rem;
  color: var(--warm-white);
  margin-bottom: 1rem;
  font-family: 'Noto Serif SC', serif;
  line-height: 1.2;
}

.hero-detail-title .detail-tag {
  display: inline-block;
  background: rgba(184, 96, 12, 0.9);
  color: var(--warm-white);
  padding: 0.4rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.heritage-detail-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.heritage-detail-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
  align-items: center;
}

.heritage-detail-section:nth-child(even) {
  direction: rtl;
}

.heritage-detail-section:nth-child(even) > * {
  direction: ltr;
}

.heritage-detail-image {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 16/10;
}

.heritage-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.heritage-detail-image:hover img {
  transform: scale(1.05);
}

.heritage-detail-text h2 {
  font-size: 1.8rem;
  color: var(--antique-gold);
  margin-bottom: 1.2rem;
  font-family: 'Noto Serif SC', serif;
}

.heritage-detail-text h2::before {
  content: '';
  display: inline-block;
  width: 2.5rem;
  height: 2px;
  background: var(--antique-gold);
  margin-right: 0.8rem;
  vertical-align: middle;
}

.heritage-detail-text p {
  color: var(--warm-gray);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 0.8rem;
}

.heritage-detail-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(184, 96, 12, 0.2);
  border-bottom: 1px solid rgba(184, 96, 12, 0.2);
  margin: 3rem 0;
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(184, 96, 12, 0.1);
  border: 1px solid rgba(184, 96, 12, 0.3);
  border-radius: 0.5rem;
  color: var(--warm-white);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.nav-link-btn:hover {
  background: rgba(184, 96, 12, 0.2);
  border-color: var(--antique-gold);
  transform: translateY(-2px);
}

.detail-related-title h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--antique-gold);
  margin-bottom: 3rem;
  font-family: 'Noto Serif SC', serif;
}

.detail-related {
  background: var(--warm-ink);
  padding: 5rem 4%;
}

.detail-related-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.detail-related-grid {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.5rem;
}

.detail-related-grid::-webkit-scrollbar {
  display: none;
}

.detail-related-grid .heritage-card {
  flex: 0 0 calc(25% - 1.5rem);
  min-width: 250px;
  scroll-snap-align: start;
}

.detail-related-wrapper .heritage-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.detail-related-wrapper #related-prev {
  left: 0.5rem;
}

.detail-related-wrapper #related-next {
  right: 0.5rem;
}

@media (max-width: 768px) {
  .detail-hero {
    height: 50vh;
    min-height: 400px;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .detail-related-grid .heritage-card {
    flex: 0 0 70%;
    min-width: 220px;
  }

  .heritage-grid .heritage-card {
    flex: 0 0 80%;
    min-width: 280px;
  }
}

/* === Section More Button === */
.section-more {
  text-align: center;
  padding: 2rem 0;
}

.section-more-btn {
  display: inline-block;
  padding: 12px 32px;
  background: transparent;
  border: 1px solid var(--antique-gold);
  color: var(--antique-gold);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: var(--transition-base);
  cursor: pointer;
}

.section-more-btn:hover {
  background: var(--antique-gold);
  color: var(--ink-black);
}

/* === List Pages Styles === */
.list-hero {
  height: 50vh;
  min-height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.list-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  object-position: bottom  center;
  opacity: 0.3;
}

.list-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(to bottom, var(--ink-black) 0%, rgba(10,10,10,0.8) 50%, var(--ink-black) 100%); */
}

.list-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}

.list-hero-title {
  font-family: var(--font-heading-en);
  font-size: 3rem;
  font-weight: 400;
  color: var(--warm-white);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.list-hero-desc {
  font-size: 1.1rem;
  color: var(--warm-gray);
  line-height: 1.8;
}

.list-intro {
  padding: 3rem 0;
  text-align: center;
}

.list-intro-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--warm-white);
  line-height: 2;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 0 4rem;
}

@media (max-width: 1024px) {
  .list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .list-grid {
    grid-template-columns: 1fr;
  }
  
  .list-hero-title {
    font-size: 2rem;
  }
}

.list-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-base);
  border: 1px solid transparent;
}

.list-card:hover {
  border-color: var(--antique-gold);
  transform: translateY(-5px);
}

.list-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.list-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.list-card:hover .list-card-image img {
  transform: scale(1.05);
}

.list-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 4px 12px;
  background: rgba(184, 150, 12, 0.9);
  color: var(--ink-black);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 2px;
}

.list-card-body {
  padding: 1.5rem;
}

.list-card-title {
  font-family: var(--font-heading-en);
  font-size: 1.2rem;
  color: var(--warm-white);
  margin-bottom: 0.5rem;
}

.list-card-desc {
  font-size: 0.9rem;
  color: var(--warm-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.list-card-link {
  display: inline-block;
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--antique-gold);
  color: var(--antique-gold);
  font-size: 0.85rem;
  transition: var(--transition-base);
}

.list-card-link:hover {
  background: var(--antique-gold);
  color: var(--ink-black);
}

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 3rem 0;
}

.pagination-btn {
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  color: var(--warm-gray);
  font-size: 0.9rem;
  transition: var(--transition-base);
  cursor: pointer;
}

.pagination-btn:hover,
.pagination-btn.active {
  border-color: var(--antique-gold);
  color: var(--antique-gold);
  background: rgba(184, 150, 12, 0.1);
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.9rem;
  color: var(--warm-gray);
  margin: 0 1rem;
}

/* === Video Bubbles in Hero === */
.hero-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
}

/* Bubble Areas - Fixed positioning areas */
.bubble-area {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  pointer-events: auto;
}

.bubble-area-left {
  width: 150px;
  height: 300px;
  justify-content: center;
}

.bubble-area-right {
  width: 150px;
  height: 300px;
  justify-content: center;
  align-items: flex-end;
}

.video-bubble {
  position: relative;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-bubble.exploding {
  pointer-events: none;
}

.video-bubble.hidden {
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Click animation - ripple effect */
.video-bubble.clicked .bubble-container {
  animation: bubbleClick 0.5s ease-out forwards;
}

@keyframes bubbleClick {
  0% { transform: scale(1); }
  30% { transform: scale(0.85); box-shadow: 0 0 80px rgba(184, 150, 12, 0.7), 0 0 100px rgba(184, 150, 12, 0.4); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 0; }
}

.bubble-container {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(184, 150, 12, 0.12), rgba(184, 150, 12, 0.04));
  box-shadow: 
    0 0 40px rgba(184, 150, 12, 0.35),
    0 0 80px rgba(184, 150, 12, 0.15),
    inset 0 0 30px rgba(184, 150, 12, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  border: 2px solid rgba(184, 150, 12, 0.25);
  backdrop-filter: blur(2px);
}

.bubble-ring {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  border-radius: 50%;
  border: 1px solid rgba(184, 150, 12, 0.15);
  animation: ringPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.5; }
}

.bubble-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(184, 150, 12, 0.15), transparent 60%);
  animation: bubbleGlow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bubbleGlow {
  0%, 100% { opacity: 0.2; transform: scale(0.9); }
  50% { opacity: 0.4; transform: scale(1.15); }
}

.bubble-inner {
  position: absolute;
  top: 12%;
  left: 12%;
  width: 76%;
  height: 76%;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(184, 150, 12, 0.2);
  background: rgba(0, 0, 0, 0.3);
}

.bubble-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.85;
}

.bubble-ink-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(184, 150, 12, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(184, 150, 12, 0.05) 0%, transparent 30%);
  pointer-events: none;
}

/* Bubble floating animation - slow movement within area */
.video-bubble.float-1 {
  animation: bubbleFloat1 8s ease-in-out infinite;
}

.video-bubble.float-2 {
  animation: bubbleFloat2 9s ease-in-out infinite;
}

.video-bubble.float-3 {
  animation: bubbleFloat3 7s ease-in-out infinite;
}

@keyframes bubbleFloat1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(5px, -8px); }
  50% { transform: translate(-3px, -12px); }
  75% { transform: translate(-5px, -5px); }
}

@keyframes bubbleFloat2 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-4px, -10px); }
  50% { transform: translate(3px, -15px); }
  75% { transform: translate(-2px, -7px); }
}

@keyframes bubbleFloat3 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(6px, -9px); }
  50% { transform: translate(-4px, -11px); }
  75% { transform: translate(5px, -4px); }
}

/* Bubble hover effect */
.video-bubble:hover .bubble-container {
  box-shadow: 
    0 0 60px rgba(184, 150, 12, 0.5),
    0 0 100px rgba(184, 150, 12, 0.25),
    inset 0 0 40px rgba(184, 150, 12, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(184, 150, 12, 0.4);
  transform: scale(1.08);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-bubble:hover .bubble-ring {
  border-color: rgba(184, 150, 12, 0.3);
  animation: ringHover 1.5s ease-in-out infinite;
}

@keyframes ringHover {
  0%, 100% { transform: scale(1.1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

/* Particle explosion */
.bubble-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.ink-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(184, 150, 12, 0.8), rgba(184, 150, 12, 0.3) 50%, transparent);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.ink-particle.active {
  animation: particleExplode 1.5s ease-out forwards;
}

.ink-particle.return {
  animation: particleReturn 0.8s ease-in forwards;
}

@keyframes particleExplode {
  0% {
    opacity: 1;
    transform: scale(1) translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: scale(0.5) translate(var(--tx), var(--ty));
  }
}

@keyframes particleReturn {
  0% {
    opacity: 0.8;
    transform: scale(0.5) translate(var(--tx), var(--ty));
  }
  100% {
    opacity: 0;
    transform: scale(1) translate(0, 0);
  }
}

/* === Video Modal === */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.video-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.video-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
}

.video-modal-container {
  position: relative;
  z-index: 1;
}

.video-modal-frame {
  position: relative;
  padding: 4px;
  background: linear-gradient(135deg, rgba(184, 150, 12, 0.3), rgba(184, 150, 12, 0.1));
  border: 1px solid rgba(184, 150, 12, 0.5);
  border-radius: 8px;
  box-shadow: 
    0 0 60px rgba(184, 150, 12, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalAppear 0.5s ease-out;
}

@keyframes modalAppear {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.video-modal-frame.closing {
  animation: modalDisappear 0.5s ease-in forwards;
}

@keyframes modalDisappear {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.5);
    opacity: 0;
  }
}

.video-modal-player {
  width: 80vw;
  max-width: 900px;
  height: auto;
  border-radius: 4px;
  display: block;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  background: rgba(184, 150, 12, 0.2);
  border: 1px solid rgba(184, 150, 12, 0.5);
  border-radius: 50%;
  color: var(--warm-white);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.video-modal-close:hover {
  background: rgba(184, 150, 12, 0.4);
  border-color: var(--antique-gold);
}

/* Responsive */
@media (max-width: 768px) {
  .bubble-container {
    width: 80px;
    height: 80px;
  }
  
  .video-modal-player {
    width: 90vw;
    max-width: none;
  }
  
  .video-modal-close {
    top: -30px;
    width: 30px;
    height: 30px;
  }
}

/* === Services Modal Styles === */
.services-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.services-modal-overlay.show {
  display: flex;
}

.services-modal {
  background: #0d1b2a;
  border: 1px solid #d4af37;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.services-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: 1px solid #d4af37;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  color: #d4af37;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.services-modal-close:hover {
  background: #d4af37;
  color: #0d1b2a;
}

.services-modal-video {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  background: #000;
}

.services-modal-audio-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.services-modal-body {
  padding: 1.5rem;
}

.services-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #d4af37;
  margin-bottom: 0.5rem;
}

.services-modal-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.services-modal-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.services-modal-audio-player {
  width: 100%;
  margin-bottom: 1rem;
}

.services-modal-restriction {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid #d4af37;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.services-modal-restriction-title {
  font-size: 1rem;
  font-weight: 600;
  color: #d4af37;
  margin-bottom: 0.5rem;
}

.services-modal-restriction-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.services-modal-restriction-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #d4af37;
  color: #0d1b2a;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.services-modal-restriction-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.video-ended-toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(212, 175, 55, 0.95);
  color: #0d1b2a;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  display: none;
  z-index: 20;
  text-align: center;
  cursor: pointer;
}

.video-ended-toast.show {
  display: block;
}

/* === Nav Logo Styles === */
.nav-logos {
  height: 40px;
  width: auto;
}

/* === Music Section Styles === */
.music-section {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1714 50%, #0a0a0a 100%);
  padding: 4rem 0;
}

.music-player-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.music-player {
  background: rgba(26, 23, 20, 0.8);
  border: 1px solid rgba(184, 150, 12, 0.2);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.music-main-image {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(184, 150, 12, 0.3);
  background: #0a0a0a;
}

.zhuti-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.heijiao-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.5s ease;
}

.heijiao-img.clicked {
  opacity: 1;
}

.canpi-img {
  width: 200px;
  height: auto;
  position: absolute;
  top: 50px;
  right: -38px;
  z-index: 3;
  opacity: 0;
  transform: rotate(-30deg) translateY(-20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

.canpi-img.visible {
  opacity: 1;
  transform: rotate(-1deg) translateY(0);
}

.music-main-image .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(184, 150, 12, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.music-main-image .play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 30px rgba(184, 150, 12, 0.6);
}

.music-main-image .play-overlay svg {
  width: 32px;
  height: 32px;
  color: #0a0a0a;
  margin-left: 4px;
}

.music-main-image .play-overlay.playing svg {
  width: 26px;
  height: 26px;
  margin-left: 0;
}

.music-main-image.playing .play-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.music-main-image:hover .play-overlay {
  opacity: 1;
  pointer-events: auto;
}

.music-main-image.playing:hover .play-overlay {
  opacity: 0.7;
  pointer-events: auto;
}

.music-controls {
  text-align: center;
}

.music-title {
  font-size: 1.5rem;
  color: #f5f0e8;
  margin-bottom: 1.5rem;
}

body.lang-zh .music-title {
  font-family: 'Noto Serif SC', serif;
}

.music-artist {
  font-size: 0.95rem;
  color: rgba(232, 224, 212, 0.6);
  margin-bottom: 1.5rem;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(232, 224, 212, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #b8960c, #d4af37);
  width: 0%;
  transition: width 0.3s ease;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(232, 224, 212, 0.5);
  margin-bottom: 1.5rem;
}

.music-player .play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #b8960c;
  border: none;
  color: #0a0a0a;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.music-player .play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(184, 150, 12, 0.5);
}

.music-player .play-btn svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.music-player .play-btn.playing svg {
  width: 20px;
  height: 20px;
  margin-left: 0;
}

.music-content-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.music-gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
  max-width: 732px;
  margin-top: 85px;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-left: -60px;
}

.gallery-item:nth-child(1) {
  margin-left: 0;
}

.gallery-item:hover {
  transform: translateY(-12px) scale(1.2);
  z-index: 10;
}

.gallery-item.extracting {
  animation: extractLeft 0.4s ease-out;
}

.gallery-item.appearing {
  animation: appearRight 0.4s ease-out;
}

@keyframes extractLeft {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-100px) scale(0.8);
  }
}

@keyframes appearRight {
  0% {
    opacity: 0;
    transform: translateX(-100px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.gallery-image-wrapper {
  position: relative;
  width: 160px;
  border-radius: 4px;
  overflow: hidden;
}

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

.gallery-text {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: #b8960c;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-text {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .music-content-container {
    flex-direction: column;
    align-items: center;
  }
  .music-gallery {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    margin-top: 0px;
  }
  .gallery-image-wrapper {
    width: 100px;
  }
}

@media (max-width: 768px) {
  .music-player {
    padding: 2rem 1.5rem;
  }
  .music-main-image {
    width: 250px;
    height: 250px;
  }
  .canpi-img {
    width: 150px;
    top: 30px;
        right: -30px;
  }
}

