/* La fila di dischi */
:root {
  --carta: #EDEAE3;
  --inchiostro: #151412;
  --tenue: #6E6960;
  --margine: clamp(18px, 3.2vw, 44px);
  --alto: 100vh;
}
@supports (height: 100svh) {
  :root { --alto: 100svh; }
}

* { box-sizing: border-box; }
html,
body {
  margin: 0;
  background: var(--carta);
}
body {
  color: var(--inchiostro);
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
}

.galleria {
  position: relative;
  height: var(--alto);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.galleria__tela,
.galleria__segno {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.galleria__tela {
  cursor: grab;
}
.galleria__tela:active {
  cursor: grabbing;
}
.galleria__segno {
  pointer-events: none;
}
/* finché Three.js non è arrivato, una riga al posto dei dischi */
.attesa {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--tenue);
  font-size: 0.95rem;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.attesa.via {
  opacity: 0;
}

/* la scheda del film, in alto a sinistra */
.scheda {
  position: absolute;
  top: var(--margine);
  left: var(--margine);
  width: min(430px, calc(100% - var(--margine) * 2));
  pointer-events: none;
}
.maschera {
  display: block;
  overflow: hidden;
}
.maschera > span {
  display: block;
}
.scheda__titolo {
  margin: 0 0 12px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.6rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}
.crediti {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--inchiostro);
}
.crediti div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--inchiostro);
}
.crediti dt {
  font-size: 0.68rem;
  font-weight: 600;
  font-stretch: 110%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.crediti dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: right;
}

.nota {
  position: absolute;
  left: var(--margine);
  bottom: var(--margine);
  max-width: 34ch;
  margin: 0;
  color: var(--tenue);
  font-size: clamp(0.86rem, 0.8rem + 0.2vw, 0.98rem);
  line-height: 1.4;
  pointer-events: none;
}
.comandi {
  position: absolute;
  right: var(--margine);
  bottom: var(--margine);
  display: flex;
  gap: 10px;
}
.comandi__tasto {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--inchiostro);
  color: var(--inchiostro);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.16s ease-out;
}
.comandi__tasto svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (hover: hover) {
  .comandi__tasto:hover {
    background: var(--inchiostro);
    color: var(--carta);
  }
}
.comandi__tasto:active { transform: scale(0.94); }
.comandi__tasto:focus-visible {
  outline: 2px solid var(--inchiostro);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .scheda__titolo { font-size: clamp(2.1rem, 11vw, 3rem); }
  .nota { bottom: calc(var(--margine) + 62px); }
  .comandi { left: var(--margine); right: auto; }
}
