@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Marcellus&family=Nunito:wght@500;700&display=swap');

:root {
  --mx-glow: #ffb46d;
  --id-night: #6e8dff;
  --ink: #f7f8ff;
  --glass: rgba(8, 10, 30, 0.52);
  --glass-strong: rgba(8, 11, 33, 0.72);
  --line: rgba(255, 255, 255, 0.22);
  --dock: rgba(9, 12, 34, 0.82);
  --dock-line: rgba(173, 220, 255, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: 'Marcellus', serif;
  background: #060816;
}

body.modal-open {
  overflow: hidden;
}

.background-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.background-video,
.bg-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.background-video {
  display: block;
  filter: contrast(1.1) saturate(1.15);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.background-video.is-ready {
  opacity: 1;
}

.bg-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 44%, rgba(255, 169, 109, 0.5), transparent 45%),
    radial-gradient(circle at 84% 27%, rgba(99, 126, 255, 0.42), transparent 45%),
    linear-gradient(90deg, #f7984f 0%, #f16d4e 45%, #2a3f8e 55%, #0d1a3f 100%);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.bg-fallback.is-hidden {
  opacity: 0;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 4, 20, 0.25) 0%, rgba(2, 4, 20, 0.6) 72%, rgba(2, 4, 20, 0.78) 100%),
    linear-gradient(90deg, rgba(255, 176, 117, 0.19) 0%, rgba(255, 176, 117, 0.05) 50%, rgba(93, 120, 255, 0.21) 100%);
  pointer-events: none;
}

.content-wrap {
  position: relative;
  z-index: 2;
  width: min(1100px, 100% - 2.2rem);
  margin: 0 auto;
  padding: 1.4rem 0 9rem;
}

.section-block {
  min-height: 64vh;
  padding: clamp(1.3rem, 3.5vh, 2.6rem) 0;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.glass-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 18px 35px rgba(2, 5, 20, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: clamp(1rem, 3vw, 1.8rem);
}

.hero-heading {
  text-align: center;
  width: min(100%, var(--hero-heading-width, 620px));
}

.hero-heading--media {
  height: min(var(--hero-heading-height, 220px), 90vh);
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-heading--no-glass {
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding: 0;
}

.hero-heading-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: var(--hero-heading-media-fit, contain);
  border-radius: inherit;
}

.hero-heading--media.hero-heading--no-glass .hero-heading-media {
  border-radius: 0;
}

.hero-heading h1 {
  font-family: 'Cinzel', serif;
  margin: 0;
  line-height: 1;
  font-size: clamp(2.2rem, 7vw, 5rem);
  color: #ffe2bc;
  text-shadow:
    0 0 0.8rem rgba(255, 164, 101, 0.8),
    0 0 1.9rem rgba(255, 214, 163, 0.45);
}

.hero-heading p {
  margin: 0.7rem 0 0;
  font-size: clamp(1rem, 2.6vw, 1.7rem);
  letter-spacing: 0.06em;
}

.hero-characters {
  width: min(100%, 760px);
  height: clamp(220px, 42vh, 420px);
  position: relative;
  pointer-events: none;
}

.cross-name {
  position: absolute;
  top: 14%;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 2.9vw, 1.75rem);
  letter-spacing: 0.22em;
  color: rgba(255, 242, 227, 0.9);
  text-shadow: 0 0 14px rgba(255, 188, 133, 0.35);
  transform: translateX(-50%);
}

.cross-left {
  left: 26%;
}

.cross-right {
  left: 74%;
}

.center-media {
  position: absolute;
  left: 50%;
  top: 64%;
  transform: translate(-50%, -50%);
  width: var(--center-size, 130px);
  max-width: min(38vw, 520px);
  opacity: var(--center-opacity, 1);
  display: none;
  align-items: center;
  justify-content: center;
}

.center-media.is-active {
  display: flex;
}

.center-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 206, 153, 0.45));
}

.hero-characters.has-center-media .hands-link {
  opacity: 0.2;
}

.hands-link {
  position: absolute;
  left: 50%;
  top: 65%;
  transform: translate(-50%, -50%);
  width: 95px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(255, 212, 164, 0.95) 0%, rgba(255, 180, 108, 0.5) 50%, rgba(255, 180, 108, 0.1) 100%);
  box-shadow: 0 0 22px rgba(255, 195, 122, 0.6);
}

.hero-button {
  border: 1px solid rgba(245, 222, 198, 0.85);
  background: linear-gradient(90deg, rgba(88, 122, 235, 0.72) 0%, rgba(106, 146, 255, 0.52) 100%);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 2.8vw, 1.5rem);
  padding: 0.85rem 2.3rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 20px rgba(113, 170, 255, 0.5);
}

.hero-button:hover {
  transform: translateY(-1px);
}

h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.45rem, 3.1vw, 2.35rem);
  margin: 0 0 0.7rem;
}

p {
  margin: 0.3rem 0 1rem;
  line-height: 1.64;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.carousel-controls button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.playlist-list {
  margin: 0;
  padding-left: 1.2rem;
}

.playlist-list li {
  margin: 0.45rem 0;
}

.playlist-button {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 0.72rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

.playlist-button.is-active {
  border-color: rgba(160, 219, 255, 0.72);
  background: rgba(103, 146, 255, 0.22);
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.media-card {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 10, 24, 0.5);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.media-card:hover,
.media-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(171, 218, 255, 0.72);
  outline: none;
}

.media-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.media-card figcaption {
  padding: 0.55rem 0.72rem;
  font-size: 0.94rem;
}

.videos-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 280px);
  gap: 0.7rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.3rem;
}

.video-thumb {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(6, 10, 24, 0.58);
  scroll-snap-align: start;
}

.video-thumb video {
  width: 100%;
  height: 152px;
  object-fit: cover;
  display: block;
}

.video-thumb span {
  display: block;
  padding: 0.52rem 0.7rem;
}

.songs-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.song-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: var(--glass-strong);
  overflow: hidden;
}

.song-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.song-body {
  padding: 0.8rem;
}

.song-body h3 {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
}

.song-body small {
  display: block;
  opacity: 0.85;
  margin: 0.2rem 0 0.7rem;
}

.song-lyrics {
  max-height: 190px;
  overflow: auto;
  white-space: pre-wrap;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 0.72rem;
}

.song-video-btn {
  margin-top: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(80, 116, 255, 0.32);
  color: #fff;
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
}

.player-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(0.55rem, env(safe-area-inset-bottom));
  width: min(980px, calc(100% - 1rem));
  background: var(--dock);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.58rem 0.74rem;
  z-index: 40;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
}

.dock-now {
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: center;
  gap: 0.7rem;
}

.dock-now img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.dock-meta strong {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: clamp(0.94rem, 2vw, 1.2rem);
}

.dock-meta p {
  margin: 0;
  opacity: 0.82;
  font-size: 0.9rem;
}

.dock-progressline {
  margin-top: 0.34rem;
}

.dock-progressline input {
  width: 100%;
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #86dcff;
  box-shadow: 0 0 10px rgba(134, 220, 255, 0.7);
}

input[type='range']::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

input[type='range']::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #86dcff;
  box-shadow: 0 0 10px rgba(134, 220, 255, 0.7);
}

.dock-timings {
  margin-top: 0.15rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.84rem;
  opacity: 0.88;
}

.dock-actions {
  display: flex;
  align-items: center;
  gap: 0.36rem;
}

.dock-actions button {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.15rem;
  cursor: pointer;
}

.dock-actions #playBtn {
  background: rgba(131, 177, 255, 0.33);
  border-color: rgba(177, 216, 255, 0.76);
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(1, 3, 16, 0.92);
  display: none;
  z-index: 60;
}

.video-modal.is-open {
  display: flex;
  justify-content: center;
  align-items: center;
}

#modalVideo {
  width: min(1100px, 95vw);
  max-height: 88vh;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #000;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(1, 3, 16, 0.95);
  display: none;
  z-index: 70;
}

.image-modal.is-open {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-modal-view {
  width: min(1280px, 94vw);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
}

.image-modal-caption {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(1rem, env(safe-area-inset-bottom));
  margin: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(6, 10, 24, 0.62);
  font-size: 0.95rem;
}

.image-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(10, 15, 40, 0.65);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
}

.image-modal-prev {
  left: 1rem;
}

.image-modal-next {
  right: 1rem;
}

.empty-state {
  opacity: 0.78;
  font-style: italic;
  margin: 0.5rem 0;
}

@media (max-width: 900px) {
  .content-wrap {
    width: min(100%, calc(100% - 0.9rem));
    padding-bottom: 10.4rem;
  }

  .hero-characters {
    width: 100%;
    height: clamp(150px, 28vh, 240px);
  }

  .hands-link {
    top: 63%;
    width: 72px;
    height: 18px;
  }

  .center-media {
    top: 62%;
    max-width: min(45vw, 260px);
  }

  .cross-name {
    top: 15%;
    font-size: clamp(1rem, 5vw, 1.3rem);
    letter-spacing: 0.15em;
  }

  .cross-left {
    left: 24%;
  }

  .cross-right {
    left: 76%;
  }

  .image-modal-nav {
    width: 42px;
    height: 42px;
  }

  .image-modal-prev {
    left: 0.45rem;
  }

  .image-modal-next {
    right: 0.45rem;
  }

  .image-modal-caption {
    width: calc(100% - 1rem);
    text-align: center;
    font-size: 0.88rem;
  }

  .player-dock {
    border-radius: 20px;
    width: calc(100% - 0.6rem);
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.55rem;
  }

  .dock-now {
    grid-template-columns: 56px 1fr;
    gap: 0.55rem;
  }

  .dock-now img {
    width: 56px;
    height: 56px;
  }

  .dock-actions {
    justify-content: flex-end;
  }

  .dock-actions button {
    width: 42px;
    height: 42px;
  }
}
