/* Toca-discos da página do JESTFLY (assets/player.js): nomes em colunas verticais atrás do vinil.
   Saiu do app.css em 2026-12-03 porque a página do JESTFLY tem CSS próprio. */
:root { --accent-hot-rgb: 196 150 255; --t-4: clamp(1.4rem, 2vw, 1.9rem); --t-small: .875rem; --danger: #ff9b9b; }
.turntable button { border: 0; padding: 0; font: inherit; color: inherit; background: none; cursor: pointer; }
.turntable {
  --tt-fs: 40px; --tt-gap: 420px;
  position: relative; min-height: clamp(640px, 100svh, 1000px); margin-top: clamp(8px, 2vw, 28px); overflow: hidden; isolation: isolate;
}
.turntable__ring { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.turntable__cols {
  position: absolute; inset: 14px clamp(16px, 4vw, 76px);
  display: flex; justify-content: center; gap: var(--tt-gap); z-index: 0;
}
.turntable__group { flex: 0 0 var(--tt-side, 40%); display: flex; min-width: 0; }
.turntable .tt-track {
  writing-mode: vertical-rl; transform: rotate(180deg); height: 100%; min-width: 0; flex: 1 1 0;
  display: flex; align-items: center; justify-content: center;
  font: 400 var(--tt-fs)/1 Anton, var(--f-display); letter-spacing: 0; text-transform: uppercase;
  color: rgb(var(--chrome-rgb) / 0.34); transition: color 0.35s var(--ease);
}
.tt-track__txt { display: block; white-space: nowrap; }
.tt-track i { font-style: normal; }
.turntable .tt-track:hover, .turntable .tt-track:focus-visible { color: var(--chrome); }
.turntable .tt-track.is-active { color: var(--chrome); }
.turntable.is-playing .tt-track.is-active { color: #fff; text-shadow: 0 0 24px rgb(var(--accent-rgb) / .55); }
.turntable__center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  display: grid; justify-items: center; gap: 14px; text-align: center; width: min(460px, 80vw);
}
.disc { position: relative; width: clamp(210px, min(18vw, 38svh), 350px); aspect-ratio: 1; cursor: pointer; }
/* luz roxa atrás do disco, que cresce com a batida */
.disc::before { content: ""; position: absolute; inset: -75%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(145 92 250 / .62), rgb(138 86 242 / .4) 40%, rgb(130 80 235 / .17) 66%, rgb(130 80 235 / .05) 85%, transparent); opacity: calc(.55 + var(--lvl, 0) * .45); }
.disc__progress { position: absolute; left: -16px; top: -16px; width: calc(100% + 32px); height: calc(100% + 32px); max-width: none; transform: rotate(-90deg); }
.disc__track { fill: none; stroke: var(--line-2); stroke-width: 0.6; }
.disc__bar { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; filter: drop-shadow(0 0 3px rgb(var(--accent-rgb) / .8)); transition: stroke-dashoffset .25s linear; }
.disc__vinyl {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 31%, rgba(255,255,255,.04) 31.5%, transparent 32%),
    repeating-radial-gradient(circle at 50% 50%, #0d0d0d 0 1.6px, #1a1a1a 1.6px 2.4px),
    #0d0d0d;
  box-shadow: 0 30px 80px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.06);
  animation: spin 1.8s linear infinite; animation-play-state: paused;
}
.disc__vinyl::after { /* reflexo fixo do vinil */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 8%, rgba(255,255,255,.09) 12%, transparent 18% 50%, rgba(255,255,255,.07) 62%, transparent 68%);
  animation: spin 1.8s linear infinite reverse; animation-play-state: inherit;
}
.turntable.is-playing .disc__vinyl { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.disc__label { position: absolute; inset: 31%; border-radius: 50%; overflow: hidden; background: var(--ink-3); box-shadow: 0 0 0 2px #0d0d0d; }
.disc__label img { width: 100%; height: 100%; object-fit: cover; }
.disc__label::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9%; height: 9%; margin: -4.5% 0 0 -4.5%; border-radius: 50%; background: var(--ink); }
.turntable .disc__btn {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; z-index: 2;
  border-radius: 50%; display: grid; place-items: center; background: rgb(var(--chrome-rgb) / .92); color: var(--ink);
  box-shadow: 0 8px 30px rgba(0,0,0,.45); transition: transform .4s var(--ease), background-color .3s, opacity .3s;
}
.turntable .disc__btn:hover { transform: scale(1.08); background: var(--accent); }
.disc__btn svg { width: 18px; height: 18px; }
.disc__btn .i-pause { display: none; }
.turntable.is-playing .disc__btn .i-play { display: none; }
.turntable.is-playing .disc__btn .i-pause { display: block; }
.turntable.is-playing .disc__btn { opacity: 0; }
.turntable.is-playing .disc:hover .disc__btn { opacity: 1; }
.turntable.is-loading .disc__btn { animation: pulse 0.8s ease-in-out infinite alternate; }
.turntable__center { isolation: isolate; }
.turntable__title { margin-top: 18px; max-width: 290px; font: 600 .82rem/1.35 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--chrome-2); }
.turntable__who { display: none; }
.turntable__time { margin-top: -8px; font-size: .82rem; font-weight: 600; letter-spacing: .06em; color: var(--chrome); font-variant-numeric: tabular-nums; }
.turntable.has-error .turntable__title { color: var(--danger); }
.turntable__note { position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 2; padding: 5px 16px; border-radius: 99px; background: rgb(14 9 24 / .82); white-space: nowrap; text-align: center; color: var(--mute); font-size: var(--t-small); }
.turntable__note a { color: var(--chrome-2); border-bottom: 1px solid var(--line-2); }
.turntable__note a:hover { color: var(--accent); }
.tt-cover {
  position: fixed; left: 0; top: 0; z-index: 70; width: 260px; aspect-ratio: 1; pointer-events: none;
  border-radius: 4px; overflow: hidden; opacity: 0; box-shadow: 0 24px 60px rgba(0,0,0,.6);
  transition: opacity .3s var(--ease); will-change: transform;
}
.tt-cover.is-on { opacity: 1; }
.tt-cover b { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #222; }
.tt-cover b svg { width: 16px; }
.tt-cover img { width: 100%; height: 100%; object-fit: cover; }

@keyframes pulse { to { opacity: .45; } }
@media (max-width: 700px) {
  /* toca-discos no celular: disco em cima, lista de faixas embaixo */
  /* --d = tamanho do disco. A fita (player.js, 0.73 do disco) e a luz roxa cabem inteiras na tela, sem corte */
  .turntable { --d: min(46vw, 230px); display: flex; flex-direction: column; min-height: 0; margin-top: 0; padding: calc(var(--d) * .58) 0 20px; }
  .disc { width: var(--d); }
  .disc::before { inset: -56%; }
  .turntable__title { margin-top: calc(var(--d) * .5); }
  .turntable__ring { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6% 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6% 94%, transparent); }
  .turntable__center { order: -1; }
  .turntable__center { position: relative; left: auto; top: auto; transform: none; margin: 0 auto; }
  .turntable__cols { position: relative; inset: auto; display: block; margin: 56px var(--gutter) 0; }
  .turntable__group { display: block; }
  .turntable .tt-track { writing-mode: horizontal-tb; transform: none; height: auto; width: 100%; padding: 12px 0; justify-content: flex-start; border-bottom: 1px solid var(--line); font-size: 1.6rem; color: rgb(var(--chrome-rgb) / .45); }
  .turntable__note { position: static; transform: none; white-space: normal; background: none; margin-top: 26px; padding: 0 var(--gutter); }
  .tt-cover { display: none; }
}
@media (prefers-reduced-motion: reduce) { .disc__vinyl, .disc__vinyl::after { animation: none; } }
/* plataformas: viraram uma linha menor, para quem quer a faixa completa e os clipes */
.plat-label { margin-top: clamp(32px, 4vw, 48px); text-align: center; font-size: .85rem; color: var(--mute); }
.platforms.platforms--mini { margin-top: 14px; gap: 8px; }
.platforms--mini .btn { min-width: 0; min-height: 38px; padding: 0 16px; font-size: .8rem; }
.platforms--mini svg { width: 16px; height: 16px; }
/* celular, dois por linha: se sobrar um no fim, ele fica no meio */
@media (max-width: 760px) { .platforms--mini .btn:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 4px); } }
