:root {
  color-scheme: dark;
  --bg: #08080a;
  --ink: #fffaf6;
  --muted: rgba(255, 250, 246, 0.7);
  --faint: rgba(255, 250, 246, 0.46);
  --line: rgba(255, 255, 255, 0.15);
  --panel: rgba(13, 14, 18, 0.78);
  --panel-strong: rgba(12, 13, 16, 0.92);
  --pink: #ff6f91;
  --green: #7ef0a0;
  --cyan: #6ee7f9;
  --amber: #ffd166;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  --radius: 8px;
  --range-fill: 0%;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

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

.app-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  transition: background 900ms ease;
  background:
    linear-gradient(125deg, rgba(48, 156, 176, 0.16), transparent 34%),
    linear-gradient(28deg, rgba(126, 240, 160, 0.08), transparent 48%),
    #08080a;
}

.app-shell[data-realm="surface"] {
  background:
    radial-gradient(circle at 22% 9%, rgba(255, 226, 174, 0.42), transparent 24%),
    linear-gradient(180deg, rgba(92, 190, 216, 0.28), transparent 42%),
    linear-gradient(125deg, rgba(255, 111, 145, 0.18), transparent 34%),
    #09090b;
}

.app-shell[data-realm="underwater"] {
  background:
    radial-gradient(ellipse at 50% -16%, rgba(198, 247, 246, 0.24), transparent 34%),
    radial-gradient(ellipse at 18% 16%, rgba(56, 157, 174, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(18, 74, 95, 0.38), rgba(3, 10, 18, 0.98)),
    #030a12;
}

.is-hidden {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.grain-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.075;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.13) 0 0.42px, transparent 0.9px),
    radial-gradient(circle at 70% 62%, rgba(255, 255, 255, 0.08) 0 0.38px, transparent 0.8px),
    radial-gradient(circle at 42% 18%, rgba(205, 250, 255, 0.07) 0 0.42px, transparent 0.85px);
  background-size: 7px 7px, 11px 11px, 16px 16px;
  mix-blend-mode: overlay;
}

.water-layer {
  position: absolute;
  inset: -16%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(205, 250, 255, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(205, 250, 255, 0.06), transparent 34%, rgba(3, 9, 18, 0.2)),
    url("../assets/generated/water-caustics.png");
  background-position: center;
  background-size: cover;
  filter: contrast(0.82) saturate(0.86) blur(0.4px);
  mix-blend-mode: soft-light;
  transform: scale(1.08);
  transition: opacity 900ms ease, filter 900ms ease;
  animation: causticDrift 18s ease-in-out infinite alternate;
}

.water-layer::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.12;
  background:
    linear-gradient(108deg, transparent 22%, rgba(255, 255, 255, 0.045) 45%, transparent 68%),
    radial-gradient(ellipse at 50% 12%, rgba(205, 250, 255, 0.08), transparent 42%);
  mix-blend-mode: screen;
  animation: underwaterNoise 9s ease-in-out infinite alternate;
}

.story-shell[data-realm="surface"] .water-layer {
  opacity: 0.045;
  filter: contrast(0.72) saturate(0.68) blur(1.2px);
}

.story-shell[data-realm="underwater"] .water-layer {
  opacity: 0.075;
}

.player-shell .water-layer {
  opacity: 0.11;
}

.image-wash,
.player-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.52;
  transform: scale(1.08);
  transition: background-image 720ms ease, filter 720ms ease, opacity 720ms ease;
}

.image-wash::after,
.player-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.82)),
    linear-gradient(115deg, rgba(8, 8, 10, 0.84), rgba(8, 8, 10, 0.22) 52%, rgba(8, 8, 10, 0.88));
  backdrop-filter: blur(16px) saturate(1.12);
}

.story-shell,
.player-shell {
  position: fixed;
  inset: 0;
  min-height: 100svh;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.story-shell {
  perspective: none;
}

.player-shell {
  overflow: hidden;
}

.story-shell .image-wash::after {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(2, 8, 13, 0.24), rgba(2, 8, 13, 0.66) 58%, rgba(2, 8, 13, 0.86)),
    linear-gradient(180deg, rgba(8, 8, 10, 0.18), rgba(8, 8, 10, 0.72));
  backdrop-filter: blur(14px) saturate(1.02);
}

.story-shell[data-realm="surface"] .image-wash {
  filter: saturate(1.12) brightness(1.04);
}

.story-shell[data-realm="surface"] .image-wash::after {
  background:
    linear-gradient(180deg, rgba(255, 238, 198, 0.08), rgba(8, 8, 10, 0.62)),
    linear-gradient(90deg, rgba(65, 183, 210, 0.16), transparent 45%, rgba(255, 196, 132, 0.14));
  backdrop-filter: blur(9px) saturate(1.05);
}

.story-shell[data-realm="underwater"] .image-wash {
  opacity: 0.28;
  filter: saturate(0.84) brightness(0.62) hue-rotate(10deg);
}

.story-shell[data-realm="underwater"] .image-wash::after {
  background:
    radial-gradient(ellipse at 50% 36%, rgba(2, 10, 17, 0.2), rgba(2, 10, 17, 0.76) 66%, rgba(1, 5, 10, 0.92)),
    radial-gradient(ellipse at 50% 2%, rgba(205, 250, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(10, 55, 76, 0.2), rgba(3, 9, 18, 0.92));
  backdrop-filter: blur(18px) saturate(1.06);
}

.player-shell .player-backdrop::after {
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.42), rgba(8, 8, 10, 0.72) 48%, rgba(8, 8, 10, 0.9)),
    linear-gradient(180deg, rgba(8, 8, 10, 0.12), rgba(8, 8, 10, 0.78)),
    radial-gradient(ellipse at 30% 44%, rgba(255, 250, 246, 0.04), transparent 46%);
  backdrop-filter: blur(22px) saturate(1.16);
}

.story-atmosphere {
  position: absolute;
  inset: -14%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.smoke-ribbon,
.light-slit {
  position: absolute;
  display: block;
  pointer-events: none;
}

.smoke-ribbon {
  left: -18%;
  width: 136%;
  height: 24%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(205, 250, 255, 0.06) 24%, rgba(126, 240, 160, 0.035) 52%, transparent 76%);
  filter: blur(30px);
  mix-blend-mode: screen;
  opacity: 0.38;
  transform-origin: center;
  animation: smokeDrift 13s ease-in-out infinite alternate;
}

.smoke-ribbon-a {
  top: 8%;
  transform: rotate(-9deg) translateX(-3%);
}

.smoke-ribbon-b {
  top: 42%;
  opacity: 0.26;
  transform: rotate(7deg) translateX(7%);
  animation-duration: 17s;
}

.smoke-ribbon-c {
  bottom: 8%;
  opacity: 0.22;
  transform: rotate(-4deg) translateX(2%);
  animation-duration: 19s;
}

.light-slit {
  inset: -8% 46% -8% auto;
  width: 20%;
  background: linear-gradient(90deg, transparent, rgba(205, 250, 255, 0.08), transparent);
  filter: blur(26px);
  opacity: 0.28;
  transform: rotate(11deg);
  animation: lightSweep 9s ease-in-out infinite alternate;
}

.story-page {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100svh;
  grid-template-rows: 1fr auto;
  gap: 20px;
  padding: 22px;
  overflow: hidden;
  transform-style: flat;
}

.dive-curtain {
  position: absolute;
  inset: -22%;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(180deg, transparent 0 12%, rgba(205, 250, 255, 0.42) 34%, rgba(22, 116, 148, 0.34) 52%, transparent 76%),
    url("../assets/generated/water-caustics.png") center / cover;
  filter: blur(1px) contrast(0.9) saturate(0.86);
  mix-blend-mode: soft-light;
  transform: translateY(-115%) scale(1.06);
}

.story-page::before {
  position: absolute;
  inset: -20%;
  z-index: 2;
  content: "";
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(110deg, transparent 28%, rgba(205, 250, 255, 0.14) 46%, transparent 62%);
  filter: blur(1.6px);
  mix-blend-mode: screen;
  transform: translateX(-42%) skewX(-10deg);
}

.story-scene {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.world-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.horizon-line {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 29%;
  z-index: 1;
  height: 2px;
  opacity: 0.2;
  background: linear-gradient(90deg, transparent, rgba(205, 250, 255, 0.42), transparent);
  filter: blur(1px);
  transform: translateZ(8px);
}

.story-page[data-realm="surface"] .horizon-line {
  bottom: 32%;
  opacity: 0.32;
  background: linear-gradient(90deg, transparent, rgba(255, 238, 198, 0.58), transparent);
}

.story-page[data-realm="underwater"] .horizon-line {
  bottom: 38%;
  opacity: 0.12;
  background: linear-gradient(90deg, transparent, rgba(205, 250, 255, 0.34), transparent);
}

.story-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  top: clamp(238px, 39svh, 300px);
  z-index: 4;
  width: auto;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 10px 22px;
  isolation: isolate;
  text-align: center;
}

.story-copy::before {
  position: absolute;
  inset: -62px -24vw;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.82;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(1, 8, 14, 0.78), rgba(1, 8, 14, 0.32) 42%, transparent 72%);
  filter: blur(8px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.story-copy h1 {
  max-width: 12ch;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.9rem, 16vw, 5.4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0;
  text-wrap: balance;
  color: rgba(255, 252, 248, 0.98);
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.64),
    0 22px 72px rgba(0, 0, 0, 0.62);
}

.story-copy p:last-child {
  max-width: 30rem;
  margin: 20px auto 0;
  color: rgba(255, 250, 246, 0.82);
  font-size: 1.05rem;
  line-height: 1.45;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.66);
}

.story-figure {
  position: absolute;
  right: 18px;
  top: 24px;
  z-index: 6;
  width: min(32svh, 168px);
  margin: 0;
  filter: drop-shadow(0 22px 42px rgba(0, 0, 0, 0.46));
  transform: translateZ(210px) rotate(4deg);
}

.story-figure[hidden] {
  display: none;
}

.story-figure img {
  width: 100%;
  border-radius: var(--radius);
}

.story-footer {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 5;
  display: grid;
  gap: 18px;
}

.story-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.story-dot {
  width: 28px;
  height: 4px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  transition: width 250ms ease, background 250ms ease;
}

.story-dot.is-active {
  width: 52px;
  background: var(--ink);
}

.story-actions {
  display: grid;
  grid-template-columns: 52px minmax(148px, 188px);
  justify-content: end;
  gap: 10px;
}

.primary-button,
.ghost-button,
.icon-button,
.play-button {
  min-height: 48px;
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    opacity 180ms ease;
}

.primary-button,
.ghost-button {
  border-radius: 999px;
  font-weight: 900;
}

.primary-button {
  padding: 0 22px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #06100d;
  box-shadow: 0 16px 36px rgba(126, 240, 160, 0.2);
}

.ghost-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.38);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.primary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.play-button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.story-page.is-turning .story-copy {
  animation: copyReveal 760ms cubic-bezier(0.16, 0.92, 0.3, 1) both;
}

.story-page.is-turning .story-footer {
  animation: footerReveal 620ms cubic-bezier(0.16, 0.92, 0.3, 1) both;
}

.story-page.is-turning::before {
  animation: sceneWipe 920ms cubic-bezier(0.16, 0.92, 0.3, 1) both;
}

.story-page.is-diving .dive-curtain {
  animation: diveCurtain 1500ms cubic-bezier(0.16, 0.92, 0.3, 1) both;
}

.story-page.is-turning .story-figure {
  animation: headphonesPop 760ms cubic-bezier(0.16, 0.92, 0.3, 1) both;
}

.player-layout {
  position: relative;
  z-index: 2;
  display: grid;
  height: 100dvh;
  min-height: 100svh;
  place-items: start center;
  overflow-y: auto;
  padding: 74px 18px 28px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.player-back-button {
  position: absolute;
  left: 16px;
  top: max(16px, env(safe-area-inset-top));
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(8, 8, 10, 0.52);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 850;
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.player-back-button span {
  font-size: 1.12rem;
  line-height: 1;
}

.player-back-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.player-whale {
  position: absolute;
  left: -14%;
  bottom: -8%;
  z-index: 1;
  width: min(78vw, 760px);
  max-width: none;
  opacity: 0.12;
  pointer-events: none;
  filter: blur(0.4px) saturate(0.95);
  transform: rotate(-7deg);
  animation: playerWhaleGlide 28s ease-in-out infinite alternate;
}

.playback-panel {
  display: grid;
  width: min(100%, 1180px);
  gap: 22px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.album-column,
.controls-column {
  min-width: 0;
}

.player-art-stage {
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: min(68vw, 340px);
  margin: 0 auto;
  aspect-ratio: 1 / 1.08;
  border-radius: 34px;
  background:
    radial-gradient(ellipse at 32% 18%, rgba(205, 250, 255, 0.16), transparent 42%),
    radial-gradient(ellipse at 78% 76%, rgba(126, 240, 160, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(255, 250, 246, 0.08), rgba(6, 22, 33, 0.24));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 70px rgba(205, 250, 255, 0.08),
    0 22px 52px rgba(9, 36, 48, 0.28),
    0 42px 92px rgba(0, 0, 0, 0.46);
  isolation: isolate;
}

.player-art-stage::after {
  position: absolute;
  inset: -14px;
  z-index: 0;
  content: "";
  border-radius: 44px;
  background:
    radial-gradient(ellipse at 18% 8%, rgba(205, 250, 255, 0.34), transparent 34%),
    radial-gradient(ellipse at 86% 88%, rgba(126, 240, 160, 0.18), transparent 42%),
    conic-gradient(from 120deg, rgba(205, 250, 255, 0), rgba(205, 250, 255, 0.32), rgba(126, 240, 160, 0.12), rgba(205, 250, 255, 0));
  filter: blur(13px);
  opacity: 0.68;
  pointer-events: none;
  animation: coverWaterHalo 14s ease-in-out infinite alternate;
}

.player-art-stage::before {
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(116deg, rgba(255, 255, 255, 0.28), transparent 18% 72%, rgba(205, 250, 255, 0.12)),
    radial-gradient(ellipse at 24% 12%, rgba(255, 255, 255, 0.26), transparent 30%),
    radial-gradient(ellipse at 76% 90%, rgba(126, 240, 160, 0.12), transparent 42%),
    linear-gradient(180deg, transparent 54%, rgba(8, 8, 10, 0.34));
  content: "";
  z-index: 2;
  border-radius: 34px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 -28px 46px rgba(1, 10, 18, 0.36);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: coverLiquidSheen 16s ease-in-out infinite alternate;
}

.player-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.34));
}

.controls-column {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 22px;
  align-self: center;
  width: 100%;
  max-width: 620px;
  padding: 0;
  text-align: center;
  background: transparent;
  backdrop-filter: none;
}

.controls-column::before {
  display: none;
}

.track-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 11vw, 4.35rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
}

.track-header p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
  text-align: center;
}

.transport-row {
  display: grid;
  grid-template-columns: 52px 72px 52px;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.icon-button,
.play-button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.24);
  color: var(--ink);
  font-weight: 900;
  backdrop-filter: blur(16px) saturate(1.2);
}

.icon-button {
  width: 52px;
  height: 52px;
  font-size: 0.72rem;
}

.play-button {
  width: 72px;
  height: 72px;
  background: rgba(255, 250, 246, 0.92);
  color: #08080a;
  font-size: 1.55rem;
  box-shadow: 0 16px 36px rgba(255, 250, 246, 0.16);
}

.progress-area,
.volume-area {
  display: grid;
  gap: 10px;
}

.progress-area {
  width: min(100%, 560px);
  justify-self: center;
}

.time-row,
.volume-area {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.time-row {
  display: flex;
  justify-content: space-between;
}

.volume-area {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  width: min(100%, 560px);
  justify-self: center;
  text-align: left;
}

.range-control {
  --thumb-size: 32px;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}

.range-control::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--green) 0 var(--range-fill), rgba(255, 255, 255, 0.18) var(--range-fill) 100%);
}

.range-control::-webkit-slider-thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  margin-top: -12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  appearance: none;
  background: #ffffff url("../assets/cara_tierna.png") center / cover no-repeat;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.range-control::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.range-control::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--green);
}

.range-control::-moz-range-thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #ffffff url("../assets/cara_tierna.png") center / cover no-repeat;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.volume-control {
  --thumb-size: 34px;
}

.volume-control::-webkit-slider-runnable-track {
  background:
    linear-gradient(90deg, var(--amber) 0 var(--range-fill), rgba(255, 255, 255, 0.2) var(--range-fill) 100%);
}

.volume-control::-webkit-slider-thumb {
  background-image: url("../assets/perro.png");
}

.volume-control::-moz-range-progress {
  background: var(--amber);
}

.volume-control::-moz-range-thumb {
  background-image: url("../assets/perro.png");
}

.lyrics-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 560px);
  height: clamp(230px, 34dvh, 340px);
  min-height: 0;
  gap: 12px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
}

.lyrics-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lyrics-header .eyebrow {
  margin: 0;
}

.lyrics-list {
  display: grid;
  gap: 2px;
  max-height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scroll-padding-block: 90px;
  scrollbar-gutter: stable;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.lyrics-list:focus {
  outline: 1px solid rgba(126, 240, 160, 0.32);
  outline-offset: 4px;
}

.lyrics-list::-webkit-scrollbar {
  width: 6px;
}

.lyrics-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.lyrics-list::-webkit-scrollbar-thumb {
  background: rgba(255, 250, 246, 0.32);
  border-radius: 999px;
}

.lyric-line {
  margin: 0;
  min-height: auto;
  border-radius: 0;
  padding: 8px 0;
  background: transparent;
  color: rgba(255, 250, 246, 0.64);
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.24;
}

@keyframes copyReveal {
  from {
    opacity: 0;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes footerReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes smokeDrift {
  from {
    translate: -4% 0;
    scale: 1 0.92;
  }
  to {
    translate: 5% -8%;
    scale: 1.04 1.08;
  }
}

@keyframes lightSweep {
  from {
    opacity: 0.28;
    translate: -22% 0;
  }
  to {
    opacity: 0.6;
    translate: 18% 0;
  }
}

@keyframes headphonesPop {
  from {
    opacity: 0;
    transform: translate3d(18px, -12px, 40px) rotate(-6deg) scale(0.82);
  }
  to {
    opacity: 1;
    transform: translateZ(210px) rotate(4deg) scale(1);
  }
}

@keyframes causticDrift {
  from {
    background-position: 48% 45%, 50% 50%;
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
  to {
    background-position: 52% 54%, 58% 47%;
    transform: scale(1.14) translate3d(1.5%, 1.5%, 0);
  }
}

@keyframes underwaterNoise {
  0% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(-1.5%, 1%, 0);
  }
  50% {
    transform: translate3d(1%, -1.5%, 0);
  }
  75% {
    transform: translate3d(1.5%, 1.5%, 0);
  }
  100% {
    transform: translate3d(-1%, 0, 0);
  }
}

@keyframes diveCurtain {
  0% {
    opacity: 0;
    transform: translateY(-115%) scale(1.06);
  }
  18% {
    opacity: 0.86;
  }
  64% {
    opacity: 0.68;
  }
  100% {
    opacity: 0;
    transform: translateY(84%) scale(1.12);
  }
}

@keyframes playerWhaleGlide {
  from {
    translate: -2% 3%;
    opacity: 0.09;
  }
  to {
    translate: 10% -4%;
    opacity: 0.16;
  }
}

@keyframes coverWaterHalo {
  from {
    opacity: 0.5;
    transform: rotate(-3deg) scale(0.985);
  }
  to {
    opacity: 0.78;
    transform: rotate(4deg) scale(1.025);
  }
}

@keyframes coverLiquidSheen {
  from {
    background-position: 0% 42%, 44% 0%, 52% 100%, 0% 0%;
    opacity: 0.82;
  }
  to {
    background-position: 100% 58%, 30% 6%, 62% 92%, 0% 0%;
    opacity: 0.96;
  }
}

@keyframes sceneWipe {
  0% {
    opacity: 0;
    transform: translateX(-52%) skewX(-10deg);
  }
  18% {
    opacity: 0.78;
  }
  100% {
    opacity: 0;
    transform: translateX(52%) skewX(-10deg);
  }
}

@media (min-width: 760px) {
  body {
    overflow: hidden;
  }

  .story-page {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    align-items: center;
    gap: 34px;
    padding: 56px;
  }

  .story-copy h1 {
    max-width: 13ch;
    font-size: clamp(5.6rem, 8.4vw, 7.3rem);
  }

  .story-copy p:last-child {
    font-size: 1.28rem;
  }

  .story-figure {
    right: 52px;
    top: 52px;
    width: 260px;
  }

  .story-footer {
    left: 56px;
    right: 56px;
    bottom: 42px;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .story-actions {
    width: 330px;
  }

  .player-layout {
    place-items: center;
    overflow-y: auto;
    padding: 34px 48px;
  }

  .playback-panel {
    grid-template-columns: minmax(360px, 500px) minmax(420px, 1fr);
    align-items: center;
    gap: clamp(34px, 5vw, 72px);
    max-height: none;
    padding: 0;
  }

  .player-art-stage {
    max-width: min(36vw, 430px);
  }

  .controls-column {
    max-height: calc(100dvh - 88px);
  }

  .track-header h2 {
    font-size: clamp(3.9rem, 5.2vw, 5rem);
  }

  .lyrics-panel {
    height: clamp(220px, 30dvh, 310px);
  }
}

@media (max-width: 390px) {
  .story-page {
    grid-template-rows: 1fr auto;
    padding: 18px;
  }

  .story-copy h1 {
    font-size: 3.7rem;
  }

  .playback-panel {
    padding: 12px;
  }

  .player-art-stage {
    max-width: min(62vw, 250px);
  }

  .player-whale {
    left: -48%;
    bottom: 20%;
    width: 132vw;
    opacity: 0.1;
  }

  .controls-column {
    gap: 16px;
  }

  .track-header h2 {
    font-size: 3.1rem;
  }

  .transport-row {
    grid-template-columns: 48px 64px 48px;
    gap: 12px;
  }

  .icon-button {
    width: 48px;
    height: 48px;
  }

  .play-button {
    width: 64px;
    height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
