:root {
  --black: #040404;
  --mist: #ddd4c9;
  --mist-soft: rgba(221, 212, 201, 0.78);
  --copper: #9b5a35;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--black);
  color: var(--mist);
  font-family: Georgia, "Times New Roman", serif;
}

body {
  overflow-x: hidden;
}

button,
audio,
video,
input {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 24px;
}

#bg-fallback {
  position: fixed;
  inset: 0;
  background:
    url("assets/bg-dark.jpg") center center / cover no-repeat,
    radial-gradient(circle at center, rgba(22, 22, 22, 0.16) 0%, rgba(0, 0, 0, 0.82) 72%),
    linear-gradient(to bottom, rgba(8, 8, 8, 0.64), rgba(0, 0, 0, 0.9));
  z-index: 0;
  transform-origin: center center;
  animation: breatheBg 10s ease-in-out infinite;
}

@keyframes breatheBg {
  0% {
    transform: scale(1);
    filter: brightness(0.82) contrast(1.02);
  }
  50% {
    transform: scale(1.04);
    filter: brightness(0.98) contrast(1.1);
  }
  100% {
    transform: scale(1);
    filter: brightness(0.82) contrast(1.02);
  }
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.74) 72%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.78));
  z-index: 1;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  z-index: 2;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.06) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.04) 0 1px, transparent 1px);
  background-size: 180px 180px, 220px 220px;
}

#symbols-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.symbol {
  position: absolute;
  color: rgba(255,255,255,0.14);
  text-shadow: 0 0 12px rgba(0,0,0,0.4);
  animation-name: floatSymbol, pulseSymbol;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  user-select: none;
}

.symbol.note {
  font-size: 18px;
}

@keyframes floatSymbol {
  0% {
    transform: translateY(105vh) translateX(0) rotate(0deg);
  }
  100% {
    transform: translateY(-15vh) translateX(18px) rotate(10deg);
  }
}

@keyframes pulseSymbol {
  0% {
    opacity: 0.06;
    scale: 0.92;
  }
  50% {
    opacity: 0.2;
    scale: 1.08;
  }
  100% {
    opacity: 0.06;
    scale: 0.92;
  }
}

.player-panel {
  position: relative;
  z-index: 5;
  width: min(920px, 100%);
  margin: auto;
  background: linear-gradient(to bottom, rgba(9, 9, 9, 0.58), rgba(5, 5, 5, 0.74));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  padding: 28px;
}

.hero {
  text-align: center;
  margin-bottom: 22px;
}

.band-logo {
  display: block;
  max-width: min(560px, 96%);
  max-height: 180px;
  margin: 0 auto 8px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.28));
  opacity: 0.98;
}

.project-title {
  margin: 0;
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  font-weight: 400;
  letter-spacing: 1px;
  color: #f2ebe2;
  text-shadow: 0 0 14px rgba(0,0,0,0.5);
  font-family: Georgia, "Times New Roman", serif;
}

.featured-media {
  margin: 24px 0 22px;
}

.cover-video-wrap {
  position: relative;
}

.cover-button {
  position: relative;
  display: block;
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.cover-button:hover {
  transform: translateY(-2px);
  border-color: rgba(155, 90, 53, 0.52);
  box-shadow: 0 22px 52px rgba(0,0,0,0.58);
}

.cover-button img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  filter: brightness(0.76) contrast(1.04);
}

.cover-caption {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f0e7dc;
  font-size: 0.85rem;
  letter-spacing: 1.8px;
  white-space: nowrap;
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px;
  z-index: 20;
}

.video-modal.hidden {
  display: none;
}

.video-box {
  position: relative;
  width: min(980px, 100%);
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 22px 70px rgba(0,0,0,0.6);
}

#official-video {
  display: block;
  width: 100%;
  max-height: 84vh;
  background: #000;
}

.close-video {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  color: #fff;
  background: rgba(0,0,0,0.55);
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.tab-button {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(20, 20, 20, 0.55);
  color: var(--mist);
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: 0.24s ease;
}

.tab-button:hover {
  border-color: rgba(155, 90, 53, 0.5);
  background: rgba(28, 28, 28, 0.7);
}

.tab-button.active {
  background: linear-gradient(to bottom, rgba(155, 90, 53, 0.28), rgba(20,20,20,0.8));
  border-color: rgba(155, 90, 53, 0.56);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.playlist-section {
  background: rgba(8, 8, 8, 0.36);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 16px;
}

.playlist {
  display: grid;
  gap: 10px;
}

.track-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(15, 15, 15, 0.62);
  color: var(--mist);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.track-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(155, 90, 53, 0.48);
  background: rgba(22, 22, 22, 0.82);
}

.track-btn.playing {
  border-color: rgba(155, 90, 53, 0.82);
  background: linear-gradient(to right, rgba(155,90,53,0.2), rgba(20,20,20,0.75));
}

.track-number {
  min-width: 44px;
  color: var(--mist-soft);
  font-size: 0.85rem;
}

.track-title {
  flex: 1;
  font-size: 0.98rem;
  color: #f1e8dd;
}

.track-icon {
  color: rgba(155, 90, 53, 0.9);
  font-size: 0.9rem;
}

.player-controls-section {
  margin-top: 16px;
  padding: 14px 16px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(8, 8, 8, 0.32);
}

.transport-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.transport-btn {
  min-width: 50px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  background: rgba(20, 20, 20, 0.6);
  color: #f1e8dd;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.22s ease;
}

.transport-btn:hover {
  border-color: rgba(155, 90, 53, 0.5);
  background: rgba(30, 30, 30, 0.78);
}

.transport-main {
  min-width: 62px;
  font-size: 1.1rem;
}

.progress-wrap {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 10px;
  align-items: center;
}

.time-label {
  color: var(--mist-soft);
  font-size: 0.85rem;
  text-align: center;
}

.progress-bar {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  outline: none;
}

.progress-bar::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d7c7b6;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.3);
}

.progress-bar::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d7c7b6;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.3);
}

.credits {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  color: var(--mist-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.credits p {
  margin: 4px 0;
}

.credits strong {
  color: #f1e8dd;
  font-weight: 600;
}

@media (max-width: 700px) {
  .app-shell {
    padding: 14px;
  }

  .player-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .band-logo {
    max-width: 92%;
    max-height: 140px;
  }

  .project-title {
    font-size: clamp(1.1rem, 4.5vw, 1.45rem);
    padding: 0 8px;
  }

  .cover-caption {
    font-size: 0.72rem;
    letter-spacing: 1.2px;
    padding: 8px 12px;
    bottom: 12px;
  }

  .track-btn {
    padding: 12px 12px;
  }

  .track-number {
    min-width: 36px;
  }

  .progress-wrap {
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
  }
}