/* Singerhaus Plattenspieler: Platte, Etikett, Tonarm als fotorealistische Freisteller.
   Die Größe kommt vom Elternlayout (Breite setzen, Rest folgt).
   Die Platte besteht aus zwei Bildern: Rillen und Etikett drehen sich,
   der Lichtreflex steht still, wie bei einer echten Platte unter einer Lampe. */

.tt {
  --tt-label: #A14B35;
  --tt-ink: #F5F1E8;
  position: relative;
  aspect-ratio: 1;
  container-type: inline-size;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.tt-plate {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #0b0b0a;
  box-shadow: 0 3cqw 7cqw rgba(0, 0, 0, .42);
}

.tt-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  will-change: transform;
  isolation: isolate;
}
.tt-vinyl, .tt-shine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 50%;
  pointer-events: none;
}

/* Etikett: Farbe multipliziert sich mit dem Papier des Fotos (0,342 des Radius).
   Die Fläche darf größer sein als das Papier, auf Schwarz bleibt sie unsichtbar. */
.tt-label {
  position: absolute;
  inset: 32.4%;
  border-radius: 50%;
  background: var(--tt-label);
  color: var(--tt-ink);
  mix-blend-mode: multiply;
  transition: background-color .7s var(--ease, ease), color .7s var(--ease, ease);
}
.tt-label svg { width: 100%; height: 100%; overflow: visible; }
.tt-label text { fill: currentColor; }
.tt-l-name { font-family: var(--display); font-size: 17px; letter-spacing: .04em; }
.tt-l-sub { font-family: var(--sans); font-size: 7.5px; font-weight: 600; letter-spacing: .34em; }
.tt-l-side { font-family: var(--serif); font-weight: 500; font-size: 30px; }
.tt-l-rpm { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .16em; }

.tt-spindle {
  position: absolute;
  left: 50%; top: 50%;
  width: 3cqw; height: 3cqw;
  margin: -1.5cqw 0 0 -1.5cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fbf6ea, #b9b4a8 55%, #6b675f);
  box-shadow: 0 0 0 .4cqw rgba(0, 0, 0, .3);
  pointer-events: none;
}

.tt-hit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  cursor: pointer;
}
/* Liegt die Nadel auf, lässt sich die Platte anfassen und scratchen */
.tt-scratch[data-on="true"] .tt-hit { cursor: grab; touch-action: none; }
.tt-scratch[data-scratch="true"] .tt-hit { cursor: grabbing; }

.tt-arm {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(.8cqw 1.4cqw 1.1cqw rgba(0, 0, 0, .5));
  transition: filter .35s var(--ease, ease);
}
.tt[data-lifted="true"] .tt-arm {
  filter: drop-shadow(1.6cqw 3cqw 2cqw rgba(0, 0, 0, .42));
}
.tt-arm-art { display: block; width: 100%; height: 100%; max-width: none; }

/* Griff: Headshell und unteres Armdrittel */
.tt-grip {
  position: absolute;
  left: -6%; top: 62%;
  width: 84%; height: 40%;
  border-radius: 30%;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}
.tt-grip:active { cursor: grabbing; }
.tt-grip:focus-visible { outline-offset: -2px; }
