/* haypserf.com — beat mağazası (v2.14 §2). style.css'ten sonra yüklenir. */

/* Kısa sayfa: arka plan baştan bulanık */
body::after { animation: none; opacity: 1; }

.beats { --column: 760px; }
.page-head { padding-block: var(--space-7) var(--space-6); }
.page-head__title { font: 400 clamp(3rem, 12vw, 4.5rem)/1 var(--font-display); color: var(--text); text-shadow: var(--text-shadow); }
.page-head__lead { margin-top: var(--space-3); color: var(--muted); text-shadow: var(--text-shadow); }

/* Satır: no · kapak · ad+bilgi · oynat / alt satırda fiyat + satın al (mobil) */
.beats__list { counter-reset: t; margin: 0; padding: 0; list-style: none; }
.beat {
  position: relative; counter-increment: t;
  display: grid; grid-template-columns: 2.2ch 48px minmax(0, 1fr) 44px; align-items: center; gap: var(--space-2) var(--space-3);
  padding: var(--space-3) var(--space-1); border-bottom: 1px dotted var(--rule);
  text-shadow: var(--text-shadow);
}
.beat::before { content: counter(t, decimal-leading-zero); color: var(--muted); font-size: 0.8125rem; }
.beat__cover { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: #0b1a1f; box-shadow: 0 8px 16px -8px #000000a6; }
.beat__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.beat__cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #00000080 0 7%, #ffffff33 7% calc(7% + 1px), transparent 0), linear-gradient(115deg, #ffffff38, transparent 40%);
  box-shadow: inset 0 0 0 1px #ffffff29;
}
.beat__text { display: grid; gap: 2px; min-width: 0; }
.beat__name { font-weight: 500; overflow-wrap: anywhere; }
.beat__meta { display: flex; flex-wrap: wrap; color: var(--muted); font-size: 0.75rem; }
.beat__meta > span + span::before { content: "·"; margin-inline: 0.5ch; }

.beat__play {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--rule); border-radius: 50%; background: none; color: var(--text);
}
.beat__play svg { width: 18px; height: 18px; fill: currentColor; }
.beat__play:hover { border-color: var(--accent); color: var(--accent); }
.beat.is-playing .beat__play { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }

.beat__price, .beat__sold { grid-area: 2 / 3; justify-self: start; }
.beat__buy { grid-area: 2 / 3 / 3 / 5; justify-self: end; }
.beat__price { font-weight: 500; white-space: nowrap; }
.beat__buy {
  display: inline-flex; align-items: center; min-height: 40px; padding-inline: var(--space-4);
  border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent);
  font: 500 0.8125rem/1 var(--font-mono); text-decoration: none; text-shadow: none; white-space: nowrap;
}
.beat__buy:hover { background: color-mix(in srgb, var(--accent) 82%, var(--text)); }
.beat__sold { padding: 1px 8px; border: 1px solid currentColor; border-radius: var(--radius-pill); color: var(--muted); font-size: 0.75rem; }

/* Çalan satırın ilerleme çubuğu (JS --p verir) */
.beat__bar {
  position: absolute; inset: auto 0 -1px; height: 2px; background: var(--accent);
  transform: scaleX(var(--p, 0)); transform-origin: left; opacity: 0; transition: opacity 200ms, transform 250ms linear;
}
.beat.is-current .beat__bar { opacity: 1; }

@media (min-width: 600px) {
  .beat { grid-template-columns: 2.2ch 56px minmax(0, 1fr) 44px 15ch 11ch; column-gap: var(--space-4); }
  .beat__price, .beat__buy, .beat__sold { grid-area: auto; }
  .beat__price, .beat__buy { justify-self: end; }
  .beat__sold { grid-column: 5 / 7; justify-self: end; }
}

/* Boş durum: üretici beat yoksa paragrafı basar (071); üst çizgi boş listeden gelir */
.beats__empty {
  padding-block: var(--space-7); border-bottom: 1px dotted var(--rule);
  color: var(--text); font: 400 2rem/1.1 var(--font-display); text-align: center; text-shadow: var(--text-shadow);
}
/* Exclusive lisans: albüm arka kapağındaki küçük yazı gibi */
.beats__license { margin-top: var(--space-6); color: var(--muted); font-size: 0.8125rem; text-shadow: var(--text-shadow); }
.beats__license-title { margin-bottom: var(--space-2); color: var(--text); font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.beats__license ul { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.beats__license li { display: grid; grid-template-columns: auto 1fr; gap: 1ch; }
.beats__license li::before { content: "—"; color: var(--accent); }
