@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --ink: #05090b;
  --white: #f7fbff;
  --muted: rgba(235, 244, 248, 0.62);
  --line: rgba(255, 255, 255, 0.16);
  --coral: #c9ff3d;
  --aqua: #58e7f2;
  --panel: rgba(3, 14, 17, 0.78);
  --accent-line: rgba(88, 231, 242, 0.42);
}

* { box-sizing: border-box; }

html, body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--ink);
}

body {
  position: relative;
  color: var(--white);
  font-family: "Space Grotesk", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.genre-rap {
  --coral: #ff4fd8;
  --aqua: #c9ff3d;
  --panel: rgba(11, 7, 15, 0.86);
  --accent-line: rgba(255, 79, 216, 0.5);
}

.genre-rap::before {
  opacity: 0.12;
  background: repeating-linear-gradient(0deg, transparent 0 7px, rgba(255, 255, 255, 0.16) 8px);
  mix-blend-mode: overlay;
}

.genre-electronic {
  --coral: #58e7f2;
  --aqua: #58e7f2;
  --panel: rgba(3, 18, 23, 0.82);
  --accent-line: rgba(65, 217, 223, 0.48);
}

.genre-electronic::before {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(65, 217, 223, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 217, 223, 0.22) 1px, transparent 1px);
  background-size: 44px 44px;
}

.genre-edm {
  --coral: #c9ff3d;
  --aqua: #ff4fd8;
  --panel: rgba(8, 10, 12, 0.84);
  --accent-line: rgba(201, 255, 61, 0.48);
}

.genre-edm::before {
  opacity: 0.16;
  background: repeating-linear-gradient(115deg, transparent 0 62px, rgba(201, 255, 61, 0.22) 63px 64px);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(4, 19, 23, 0.98) 0%, rgba(4, 19, 23, 0.88) 45%, rgba(4, 19, 23, 0.95) 100%),
    url("../images/sunrise.jpg") center / cover;
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(24, 200, 192, 0.16) 80px);
}

.sally-page .ambient {
  background:
    linear-gradient(90deg, rgba(22, 10, 27, 0.97) 0%, rgba(13, 18, 28, 0.86) 48%, rgba(22, 10, 27, 0.95) 100%),
    url("../images/sallymushin.jpg") center / cover;
}

.sally-page .ambient::after {
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(88, 231, 242, 0.13) 80px);
}

.xuanlong-page .ambient {
  background:
    linear-gradient(90deg, rgba(4, 17, 27, 0.97) 0%, rgba(8, 28, 38, 0.86) 48%, rgba(4, 17, 27, 0.95) 100%),
    url("../images/xuanlong.jpg") center / cover;
}

.xuanlong-page .ambient::after {
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(94, 205, 222, 0.14) 80px);
}

.sally-pro-page .ambient {
  background:
    linear-gradient(90deg, rgba(15, 5, 24, 0.97) 0%, rgba(18, 8, 31, 0.86) 48%, rgba(15, 5, 24, 0.95) 100%),
    url("../images/sally-pro.jpg") center / cover;
}

.sally-pro-page .ambient::after {
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(105, 240, 151, 0.14) 80px);
}

.farsi-page .ambient {
  background:
    linear-gradient(90deg, rgba(24, 10, 7, 0.97) 0%, rgba(31, 13, 8, 0.86) 48%, rgba(24, 10, 7, 0.95) 100%),
    url("../images/farsi.jpg") center / cover;
}

.farsi-page .ambient::after {
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(231, 110, 54, 0.15) 80px);
}

.wave-page .ambient {
  background:
    linear-gradient(90deg, rgba(4, 25, 22, 0.97) 0%, rgba(7, 40, 35, 0.86) 48%, rgba(4, 25, 22, 0.95) 100%),
    url("../images/wave-1300.jpg") center / cover;
}

.wave-page .ambient::after {
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(91, 193, 166, 0.15) 80px);
}

.haft-rang-page .ambient {
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.98) 0%, rgba(8, 11, 9, 0.88) 48%, rgba(5, 7, 6, 0.96) 100%),
    url("../images/haft-rang.jpg") center / cover;
}

.haft-rang-page .ambient::after {
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(239, 54, 88, 0.14) 80px);
}

.hapali-page .ambient {
  background:
    linear-gradient(90deg, rgba(20, 9, 8, 0.97) 0%, rgba(31, 15, 13, 0.86) 48%, rgba(20, 9, 8, 0.95) 100%),
    url("../images/hapali.jpg") center / cover;
}

.hapali-page .ambient::after {
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(248, 80, 142, 0.15) 80px);
}

.entidsl-page .ambient {
  background:
    linear-gradient(90deg, rgba(7, 7, 9, 0.97) 0%, rgba(17, 12, 11, 0.86) 48%, rgba(7, 7, 9, 0.95) 100%),
    var(--cover-art) center / cover;
}

.entidsl-page .ambient::after {
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(255, 79, 216, 0.15) 80px);
}

.album-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(24px, env(safe-area-inset-top)) clamp(22px, 5vw, 76px) max(28px, env(safe-area-inset-bottom));
}

.album-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.album-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: "Archivo Black", sans-serif;
  text-decoration: none;
}

.back-link svg { width: 19px; }

.album-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(430px, 680px);
  align-items: center;
  justify-content: center;
  gap: clamp(36px, 7vw, 110px);
  max-width: 1380px;
  min-height: calc(100svh - 100px);
  margin: 0 auto;
  padding: 42px 0 26px;
}

.artwork-wrap {
  position: relative;
  width: min(100%, 300px);
  justify-self: center;
  animation: artwork-in 900ms cubic-bezier(.16, .8, .25, 1) both;
}

.artwork-wrap::before {
  content: "";
  position: absolute;
  inset: 4% -4% -4% 4%;
  z-index: -1;
  border: 1px solid var(--accent-line);
}

.artwork {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

.artwork-status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  padding: 9px 13px;
  background: var(--coral);
  color: #15100d;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.album-content {
  width: 100%;
  max-width: 680px;
  animation: content-in 850ms 180ms cubic-bezier(.16, .8, .25, 1) both;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(4rem, 8vw, 7.7rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h1.single-title {
  font-size: clamp(3.2rem, 5.7vw, 6.4rem);
}

.album-note {
  margin: 17px 0 28px;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
}

.track-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.track {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 5px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, padding 160ms ease;
}

.track:hover, .track:focus-visible, .track.is-active {
  padding-left: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--white);
}

.track.is-active { border-left: 2px solid var(--coral); }
.track-number, .track-duration { font-size: 0.68rem; }
.track-name { font-weight: 600; }

.player {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 10, 12, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 45px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(24px) saturate(115%);
}

.now-playing {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.now-playing span { color: var(--muted); font-size: 0.62rem; letter-spacing: 0.14em; }
.now-playing strong { color: var(--coral); font-size: 0.86rem; }

.timeline {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 10px;
  margin: 15px 0 12px;
  color: var(--muted);
  font-size: 0.67rem;
}

input[type="range"] {
  width: 100%;
  height: 3px;
  margin: 0;
  border-radius: 0;
  background: linear-gradient(90deg, var(--coral) var(--progress, 0%), rgba(255, 255, 255, 0.2) var(--progress, 0%));
  appearance: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--coral);
  appearance: none;
}

.transport, .transport__center {
  display: flex;
  align-items: center;
}

.transport { justify-content: space-between; }
.transport__center { gap: clamp(5px, 1.3vw, 14px); }

.icon-button, .play-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease;
}

.icon-button:hover, .icon-button:focus-visible { color: var(--coral); transform: translateY(-2px); }
.icon-button svg { width: 19px; }
.icon-button img { width: 25px; height: 25px; object-fit: contain; }
.icon-button small { position: absolute; font-size: 0.46rem; font-weight: 600; }

.play-button {
  width: 52px;
  height: 52px;
  border: 1px solid var(--coral);
  background: var(--coral);
  color: #12100f;
}

.play-button:hover, .play-button:focus-visible { transform: scale(1.05); }
.play-button svg { width: 23px; fill: currentColor; }

.transport__services {
  display: flex;
  align-items: center;
  gap: 4px;
}

.transport > a.icon-button,
.transport__services .icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.transport > a.icon-button:hover,
.transport > a.icon-button:focus-visible,
.transport__services .icon-button:hover,
.transport__services .icon-button:focus-visible {
  border-color: var(--accent-line);
  background: rgba(255, 255, 255, 0.08);
}

.stream-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 15px;
}

.stream-links a {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.stream-links a:hover { color: var(--white); }

.stream-links a[target="_blank"] { display: none; }

.stream-links .release-nav {
  margin-right: auto;
  color: var(--coral);
}

#soundcloud-player {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  opacity: 0;
  pointer-events: none;
}

@keyframes artwork-in {
  from { opacity: 0; transform: translateX(-28px) scale(0.97); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes content-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .album-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 28px;
  }

  .artwork-wrap { width: min(72vw, 300px); }
  .artwork-wrap::before { right: 0; }
  .album-content { max-width: 600px; margin: 0 auto; }
  h1 { font-size: clamp(3.6rem, 18vw, 6.3rem); }
  h1.single-title { font-size: clamp(2.3rem, 11vw, 5.4rem); }
}

@media (max-width: 520px) {
  .album-shell { padding-left: 16px; padding-right: 16px; }
  .album-header p { font-size: 0.58rem; }
  .artwork-wrap { width: min(70vw, 280px); }
  .album-layout { gap: 30px; }
  .player { padding: 16px 12px; }
  .transport__center { gap: 2px; }
  .icon-button { width: 32px; height: 36px; }
  .play-button { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* Reactive music system */
.ambient { overflow: hidden; }
.ambient::before { content: ""; position: absolute; inset: -35%; opacity: .18; background: repeating-conic-gradient(from 0deg at 50% 50%,transparent 0 10deg,var(--accent-line) 10deg 11deg); animation: audio-orbit 65s linear infinite; }
.album-header { position: relative; backdrop-filter: blur(12px); }
.artwork-wrap { isolation: isolate; overflow: clip; overflow-clip-margin: 48px; }
.artwork-wrap::after { content: ""; position: absolute; inset: -10%; z-index: -2; border-radius: 50%; opacity: .22; background: conic-gradient(from 0deg,transparent,var(--coral),var(--aqua),transparent 62%); filter: blur(18px); animation: audio-orbit 9s linear infinite; transition: opacity 300ms ease,transform 300ms ease; }
.is-playing .artwork-wrap::after { opacity: .62; animation-duration: 3.8s; }
.is-playing .artwork { animation: artwork-breathe 2.4s ease-in-out infinite; }
.is-playing .artwork-wrap::before { box-shadow: 0 0 34px var(--accent-line); animation: frame-pulse 1.2s ease-in-out infinite; }
.artwork-status { box-shadow: 0 0 22px color-mix(in srgb,var(--coral) 34%,transparent); }
.is-playing .artwork-status { animation: status-pulse 1s steps(2,end) infinite; }
.album-content h1 { color: transparent; background: linear-gradient(100deg,#fff,var(--aqua),var(--coral),#fff); background-size: 230%; background-clip: text; -webkit-background-clip: text; animation: album-title-flow 8s linear infinite; }
.player { position: relative; overflow: hidden; border-color: color-mix(in srgb,var(--coral) 24%,rgba(255,255,255,.1)); transition: border-color 300ms ease,box-shadow 300ms ease,background 300ms ease; }
.player::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--audio-progress,0%); pointer-events: none; opacity: .08; background: linear-gradient(90deg,var(--coral),transparent); transition: width 150ms linear; }
.is-playing .player { border-color: color-mix(in srgb,var(--coral) 55%,transparent); background: color-mix(in srgb,var(--coral) 6%,rgba(6,10,12,.55)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 18px 55px rgba(0,0,0,.25),0 0 32px color-mix(in srgb,var(--coral) 10%,transparent); }
.player-visualizer { position: relative; z-index: 1; display: flex; align-items: end; gap: 3px; height: 42px; margin: -4px 0 14px; padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.player-visualizer::after { content: "LIVE AUDIO"; position: absolute; right: 0; top: 0; color: var(--muted); font-size: .46rem; letter-spacing: .16em; }
.player-visualizer i { flex: 1; min-width: 2px; height: 10%; background: linear-gradient(0deg,var(--coral),var(--aqua)); box-shadow: 0 0 8px color-mix(in srgb,var(--coral) 28%,transparent); transform-origin: bottom; opacity: .38; }
.is-playing .player-visualizer i { opacity: .9; animation: equalize var(--speed) var(--delay) ease-in-out infinite alternate; }
.play-button { overflow: visible; box-shadow: 0 0 20px color-mix(in srgb,var(--coral) 18%,transparent); }
.play-button::before,.play-button::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--coral); opacity: 0; pointer-events: none; }
.is-playing .play-button::before { animation: play-wave 1.6s ease-out infinite; }
.is-playing .play-button::after { animation: play-wave 1.6s .8s ease-out infinite; }
.track { position: relative; overflow: hidden; }
.track::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: linear-gradient(90deg,var(--coral),var(--aqua)); transition: width 300ms ease; }
.track:hover::after,.track.is-active::after { width: 100%; }
.track.is-active .track-number { color: var(--coral); text-shadow: 0 0 10px currentColor; }
@keyframes audio-orbit { to { transform: rotate(360deg); } }
@keyframes artwork-breathe { 50% { transform: scale(1.018); filter: saturate(1.16) contrast(1.04); } }
@keyframes frame-pulse { 50% { transform: translate(5px,-5px); } }
@keyframes status-pulse { 50% { filter: brightness(1.45); } }
@keyframes album-title-flow { to { background-position: -130% 50%; } }
@keyframes equalize { 0% { height: 12%; } 35% { height: var(--middle); } 100% { height: var(--peak); } }
@keyframes play-wave { to { inset: -24px; opacity: 0; } 15% { opacity: .65; } }
@media (max-width: 520px) {
  .player-visualizer { height: 32px; gap: 2px; }
  .album-content h1 { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { .ambient::before,.artwork-wrap::after,.is-playing .artwork,.is-playing .artwork-wrap::before,.is-playing .artwork-status,.is-playing .player-visualizer i,.is-playing .play-button::before,.is-playing .play-button::after { animation: none !important; } }

/* Shared gray theme */
:root[data-theme="light"] {
  color-scheme:light;
  --ink:#454a47;
  --white:#f7fbff;
  --muted:rgba(247,251,255,.66);
  --line:rgba(255,255,255,.2);
  --panel:rgba(80,86,82,.86);
  --accent-line:rgba(88,231,242,.44);
}
:root[data-theme="light"] .genre-rap { --panel:rgba(84,79,85,.86); }
:root[data-theme="light"] .genre-electronic { --panel:rgba(75,86,87,.86); }
:root[data-theme="light"] .genre-edm { --panel:rgba(84,86,75,.86); }
:root[data-theme="light"] html,
:root[data-theme="light"] body { background:#454a47; }
:root[data-theme="light"] .ambient { opacity:.3;filter:grayscale(.1) brightness(1.15); }
:root[data-theme="light"] .album-shell { position:relative;z-index:2; }
:root[data-theme="light"] .album-header { border-color:rgba(255,255,255,.2);background:rgba(69,74,71,.56); }
:root[data-theme="light"] .album-content h1 { background:linear-gradient(100deg,#f7fbff,var(--aqua),var(--coral),#f7fbff);background-size:230%;background-clip:text;-webkit-background-clip:text; }
:root[data-theme="light"] .player { border-color:color-mix(in srgb,var(--coral) 32%,rgba(255,255,255,.14));background:rgba(80,86,82,.78);box-shadow:0 20px 65px rgba(5,8,10,.18); }
:root[data-theme="light"] .is-playing .player { background:color-mix(in srgb,var(--coral) 7%,rgba(80,86,82,.84));box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 18px 55px rgba(5,8,10,.2),0 0 32px color-mix(in srgb,var(--coral) 12%,transparent); }
:root[data-theme="light"] .track:hover,
:root[data-theme="light"] .track:focus-visible { background:rgba(255,255,255,.06); }
:root[data-theme="light"] .play-button { color:#11161a; }
:root[data-theme="light"] .stream-links a { background:rgba(80,86,82,.76); }
