/* A record sleeve and the actual Tuitify interface share the hero stage. */
.listening-scene {
  --sleeve: #c2cbb8;
  --sleeve-ink: #253128;
  --record: #171d19;
  --groove: #323b32;
  --groove-light: #535e4b;
  --preview: #171b1a;
  --preview-ink: #bdc6bb;
  --preview-hover: #212922;
  --artwork-ease: cubic-bezier(.22, 1, .36, 1);
  isolation: isolate;
  margin: 0;
}

.listening-scene::before { content: none; }
/* A paused entrance must never leave the hero frozen on its invisible first frame. */
.motion-paused :is(.hero-copy, .hero-visual, .hero-bottom) {
  animation: none;
  opacity: 1;
  transform: none;
}
.listening-artwork {
  position: absolute;
  inset: 0 0 auto;
  height: 79%;
  max-width: 660px;
  margin-inline: auto;
  pointer-events: none;
}

.record-sleeve {
  position: absolute;
  inset: 68px auto auto 4%;
  width: 53%;
  aspect-ratio: 1;
  padding: 7%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--sleeve-ink);
  background: var(--sleeve);
  transform: rotate(-8deg);
  border-radius: 2px;
}
.sleeve-wordmark {
  font-size: clamp(17px, 1.8vw, 25px);
  letter-spacing: -.065em;
  font-weight: 600;
}
.sleeve-title {
  position: absolute;
  top: 27%;
  left: 13.2%;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.02;
  letter-spacing: -.065em;
  font-weight: 500;
}
.sleeve-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.sleeve-bottom svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.vinyl-record {
  position: absolute;
  width: 54%;
  aspect-ratio: 1;
  right: 2%;
  top: 8px;
  border-radius: 50%;
  background: var(--record);
}
.record-grooves, .record-label {
  animation: record-turn 36s linear infinite;
  animation-play-state: paused;
}
.record-grooves { width: 100%; height: 100%; stroke: var(--groove); stroke-width: 1; }
.record-grooves .groove-reflection { stroke: var(--groove-light); stroke-width: 1.5; opacity: .55; }
.record-label {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: var(--lime);
  color: var(--sleeve-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8%;
}
.record-label > span:first-child { font-size: clamp(12px, 1.5vw, 21px); font-weight: 600; letter-spacing: -.06em; }
.record-label > span:last-child { font-size: clamp(5px, .63vw, 9px); }
.record-label svg { width: 36%; height: 36%; fill: currentColor; stroke: none; }
.record-spindle { position: absolute; width: 2.1%; aspect-ratio: 1; top: 48.95%; left: 48.95%; background: var(--record); border-radius: 50%; }
.session-preview {
  position: absolute;
  z-index: 1;
  inset: auto 0 74px 7%;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--preview);
  transition: transform .5s var(--artwork-ease), background-color .25s;
}
.session-preview:hover { transform: translateY(-5px); background: var(--preview-hover); }
.session-preview:active { transform: translateY(-1px); }
.session-preview:focus-visible { outline-offset: 6px; }
.session-titlebar {
  height: 42px;
  padding-inline: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--preview-ink);
  font-size: 11px;
}
.session-titlebar > span:first-child { display: flex; align-items: center; gap: 9px; color: var(--text); }
.session-titlebar > span:first-child svg { width: 17px; height: 17px; color: var(--lime); }
.session-open { width: 15px; height: 15px; }
.session-screen { margin-inline: 8px; aspect-ratio: 3.1; overflow: hidden; background: var(--bg); }
.session-screen img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.session-footer {
  min-height: 48px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--preview-ink);
}
.session-footer > span:first-child { display: flex; align-items: center; gap: 8px; }
.session-footer i { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--lime); }
.session-footer > span:last-child { color: var(--text); white-space: nowrap; }
.session-footer > span:last-child > span { margin-left: 8px; color: var(--lime); }
.scene-caption {
  position: absolute;
  inset: auto 0 15px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}
.record-motion {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 0 10px 10px;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.record-motion[hidden] { display: none; }
.record-motion svg { width: 16px; height: 16px; stroke-width: 1.8; }
.record-play-symbol { display: none; }
.record-motion[aria-pressed="true"] .record-pause-symbol { display: none; }
.record-motion[aria-pressed="true"] .record-play-symbol { display: block; }
.record-motion:hover { color: var(--lime); }
.record-motion:active { transform: scale(.97); }
.motion-enabled .listening-scene.is-visible:not(.record-paused) :is(.record-grooves, .record-label) { animation-play-state: running; }
.motion-paused .listening-scene :is(.record-grooves, .record-label) { animation-play-state: paused; }
@keyframes record-turn { to { transform: rotate(360deg); } }

@media (min-width: 1600px) {
  .listening-artwork { inset-inline: 0 20px; }
  .session-preview { left: 10%; right: 2%; }
  .scene-caption { left: 10%; right: 2%; }
}
@media (max-width: 1100px) and (min-width: 781px) {
  .record-sleeve { top: 54px; }
  .sleeve-title { font-size: 27px; }
  .session-titlebar { height: 36px; padding-inline: 12px; font-size: 10px; }
  .session-footer { padding-inline: 12px; font-size: 10px; min-height: 43px; }
  .scene-caption { font-size: 10px; }
  .record-motion { font-size: 10px; }
}
@media (max-width: 780px) {
  .hero-visual.listening-scene { height: clamp(390px, 91vw, 620px); margin-top: 36px; }
  .listening-artwork { max-width: 600px; inset-inline: 0; }
  .record-sleeve { top: 54px; width: 52%; left: 4%; padding: 6%; }
  .sleeve-wordmark { font-size: clamp(17px, 3.5vw, 24px); }
  .sleeve-title { font-size: clamp(23px, 5.8vw, 40px); }
  .sleeve-bottom { font-size: clamp(7px, 1.7vw, 11px); }
  .sleeve-bottom svg { width: 18px; height: 18px; }
  .vinyl-record { width: 55%; right: 1%; }
  .session-screen { aspect-ratio: 3.1; }
  .record-label > span:first-child { font-size: clamp(12px, 2.6vw, 20px); }
  .record-label > span:last-child { font-size: clamp(5px, 1.15vw, 9px); }
  .session-preview { left: 3%; right: 0; bottom: 59px; }
  .session-titlebar { height: 36px; padding-inline: 12px; font-size: 10px; }
  .session-screen { margin-inline: 6px; }
  .session-footer { min-height: 43px; padding: 10px 12px; font-size: 10px; }
  .scene-caption { left: 3%; bottom: 3px; font-size: 11px; }
  .record-motion { font-size: 11px; }
}
@media (max-width: 420px) {
  .record-sleeve { top: 42px; }
  .sleeve-title { font-size: 23px; }
  .session-titlebar > span:nth-child(2) { font-size: 9px; }
  .session-footer { font-size: 9px; gap: 8px; }
  .session-footer > span:last-child > span { margin-left: 3px; }
  .scene-caption { font-size: 10px; }
  .record-motion { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-override) .listening-scene :is(.record-grooves, .record-label) { animation: none; }
  html:not(.motion-override) .session-preview:hover { transform: none; }
}
