:root {
  --home-bg: #ffffff;
  --music-bg: #f2f2f2;
  --live-bg: #000000;
  --info-bg: #d9d9d9;
  --deep-blue: #0a3cff;
  --black: #111111;
  --info-line: rgba(17, 17, 17, 0.3);
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--home-bg);
  overflow: hidden;
  transition: background-color 0.6s ease;
}

#molly-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 1;
}

#molly-logo {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  pointer-events: none;
}

.molly-link,
.music-link,
.live-link,
.info-link,
.shop-link,
.shop,
#shop,
[href="#shop"],
[href="shop"] {
  position: relative;
  display: inline-block;
  cursor: pointer;
  opacity: 0.4;
  padding-left: 1em;
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
  user-select: none;
}

.molly-link *,
.music-link *,
.live-link *,
.info-link *,
.shop-link *,
.shop *,
#shop *,
[href="#shop"] *,
[href="shop"] * {
  cursor: pointer !important;
  user-select: none;
}

.molly-link:hover,
.music-link:hover,
.live-link:hover,
.info-link:hover,
.shop-link:hover,
.shop:hover,
#shop:hover,
[href="#shop"]:hover,
[href="shop"]:hover {
  opacity: 0.7;
}

.molly-link::before,
.music-link::before,
.live-link::before,
.info-link::before,
.shop-link::before,
.shop::before,
#shop::before,
[href="#shop"]::before,
[href="shop"]::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.molly-link.is-active,
.music-link.is-active,
.live-link.is-active,
.info-link.is-active,
.shop-link.is-active,
.shop.is-active,
#shop.is-active,
[href="#shop"].is-active,
[href="shop"].is-active {
  opacity: 1;
  transform: translateY(-1px);
}

.molly-link.is-active::before,
.music-link.is-active::before,
.live-link.is-active::before,
.info-link.is-active::before,
.shop-link.is-active::before,
.shop.is-active::before,
#shop.is-active::before,
[href="#shop"].is-active::before,
[href="shop"].is-active::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.music-link.is-active,
.music-link.is-active * {
  color: var(--deep-blue);
}

#music-tray,
#info-tray,
#live-tray,
#shop-tray {
  position: fixed;
  top: 110px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: min(760px, 72vw);
  max-height: calc(100dvh - 180px);
  z-index: 12;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

#music-tray.is-open,
#info-tray.is-open,
#live-tray.is-open,
#shop-tray.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

#shop-tray[aria-hidden="true"] {
  display: none;
}

#shop-tray[aria-hidden="false"] {
  display: block;
}

.tray-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: transparent;
}

.tray-label {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  margin: 0 0 10px;
  cursor: pointer;
}

.tray-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2pt 6px;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  line-height: 1;
  border-radius: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tray-button:hover,
.tray-button:focus,
.tray-button:focus-visible {
  background: var(--black);
  color: #ffffff;
  outline: none;
}

.tray-line {
  width: 100%;
  height: 1px;
  background: var(--black);
  margin-bottom: 18px;
}

.tray-view {
  display: none;
  max-height: calc(100dvh - 240px);
  overflow-y: auto;
  padding-right: 4px;
}

.tray-view.is-visible {
  display: block;
}

.tray-view::-webkit-scrollbar {
  width: 8px;
}

.tray-view::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  padding-bottom: 24px;
}

.release-card {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, opacity 0.2s ease;
  border-radius: 0;
}

.release-card:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.release-card:focus,
.release-card:focus-visible {
  outline: 1px solid var(--deep-blue);
  outline-offset: 2px;
}

.release-card-inner {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.release-card-image,
.detail-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.release-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px solid var(--black);
}

.release-detail-wrap {
  padding-bottom: 36px;
}

.detail-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items: start;
}

.detail-cover-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.detail-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.detail-title {
  font-size: 1.5rem;
  line-height: 1.1;
}

.detail-subtitle,
.detail-date,
.detail-description,
.detail-mode,
.tracks-heading,
.track-text,
.loading-chip,
.tray-label,
.live-soon {
  font-size: 0.95rem;
  line-height: 1.2;
}

.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.stream-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
  padding: 1pt 4pt;
  min-width: auto;
  min-height: auto;
  border: 1px solid var(--deep-blue);
  background: var(--deep-blue);
  color: #ffffff;
  text-decoration: none;
  border-radius: 0;
  letter-spacing: 0.02em;
}

.stream-button.is-disabled {
  opacity: 0.75;
}

.tracks-section {
  margin-top: 16px;
}

.tracklist-placeholder {
  margin-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.22);
}

.track-row {
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
}

.track-text {
  line-height: 1.1;
}

.text-chip {
  display: inline-block;
  padding: 2pt 4pt;
}

.detail-chip,
#music-detail-view .text-chip {
  background: var(--music-bg);
  border: 1px solid var(--black);
}

#music-grid-view .text-chip,
.loading-chip {
  background: rgba(255, 255, 255, 0.82);
}

.content-type-chip {
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2pt 4pt;
}

.content-type-chip.is-ep {
  border-color: var(--black);
  background: var(--music-bg);
}

.content-type-chip.is-lp {
  border-color: var(--black);
  background: repeating-linear-gradient(
    90deg,
    var(--music-bg) 0,
    var(--music-bg) 6px,
    #e8e8e8 6px,
    #e8e8e8 7px
  );
}

.content-type-chip.is-single {
  border-color: var(--black);
  background: linear-gradient(180deg, var(--music-bg) 0%, #ebebeb 100%);
}

.info-view {
  display: block;
  max-height: calc(100dvh - 240px);
  overflow-y: auto;
  padding-right: 4px;
  padding-bottom: 24px;
}

.info-system {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  align-items: start;
}

.info-visual-column,
.info-text-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-panel-outline,
.info-mini-panel {
  border: 1px solid var(--black);
}

.info-figure-panel {
  width: 100%;
  background: transparent;
}

.info-figure-image,
.info-mini-image {
  display: block;
  width: 100%;
  height: auto;
}

.info-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-caption,
.info-footer-text,
.info-heading,
.info-body,
.info-node,
.info-label {
  background: var(--info-bg);
  border: 1px solid var(--black);
}

.info-label {
  display: inline-block;
  padding: 2pt 4pt;
}

.info-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.info-heading {
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-body {
  font-size: 0.92rem;
  line-height: 1.35;
}

.info-diagram-block {
  gap: 8px;
}

.info-diagram-row {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.42;
  transition: opacity 0.45s ease;
}

.info-diagram-row.is-active {
  opacity: 1;
}

.info-node {
  font-size: 0.82rem;
  line-height: 1;
}

.info-connector {
  flex: 1;
  height: 1px;
  background: var(--info-line);
  min-width: 20px;
  position: relative;
  overflow: hidden;
}

.info-connector::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(10, 60, 255, 0.18) 50%,
    transparent 100%
  );
  animation: infoSignalFlow 3.8s linear infinite;
  animation-play-state: paused;
}

.info-diagram-row.is-active .info-connector::after {
  animation-play-state: running;
}

.info-footer {
  padding-top: 4px;
}

.info-figure-image {
  animation: infoImageDrift 14s ease-in-out infinite;
  transform-origin: center center;
}

.info-mini-image {
  animation: infoMiniDrift 18s ease-in-out infinite;
  transform-origin: center center;
}

.info-mini-panel:nth-child(2) .info-mini-image {
  animation-delay: -7s;
}

.live-view {
  display: block;
  max-height: calc(100dvh - 240px);
  overflow-y: auto;
  padding-right: 4px;
  padding-bottom: 24px;
}

.shop-view {
  display: block;
  max-height: calc(100dvh - 240px);
  overflow-y: auto;
  padding-right: 4px;
  padding-bottom: 24px;
}

.live-wrap {
  min-height: 220px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.shop-wrap {
  min-height: 220px;
}

.live-chip {
  background: #ffffff;
  border: 1px solid var(--black);
  color: var(--black);
}

.live-soon {
  text-transform: lowercase;
}

.live-dots {
  display: inline-flex;
  width: 1.6em;
  justify-content: flex-start;
}

.live-dots span {
  opacity: 0.2;
  animation: liveDotPulse 1.4s infinite;
}

.live-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.live-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes liveDotPulse {
  0%,
  20% {
    opacity: 0.2;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.2;
  }
}

@keyframes infoSignalFlow {
  0% {
    left: -120%;
  }

  100% {
    left: 120%;
  }
}

@keyframes infoImageDrift {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }

  50% {
    transform: scale(1.02) translate3d(-2px, 2px, 0);
  }

  100% {
    transform: scale(1) translate3d(0, 0, 0);
  }
}

@keyframes infoMiniDrift {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }

  50% {
    transform: scale(1.015) translate3d(1px, -1px, 0);
  }

  100% {
    transform: scale(1) translate3d(0, 0, 0);
  }
}

@media (max-width: 900px) {
  #music-tray,
  #info-tray,
  #live-tray,
  #shop-tray {
    width: min(760px, 84vw);
  }

  .detail-top,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .detail-cover-wrap {
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  #music-tray,
  #info-tray,
  #live-tray,
  #shop-tray {
    top: 90px;
    width: 88vw;
    max-height: calc(100dvh - 150px);
  }

  .release-grid,
  .info-mini-grid {
    gap: 16px;
  }

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