/* Audiobook vinyl + music-player hero */

.ala-vinyl {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.ala-vinyl__disc {
  position: absolute;
  width: 86%;
  aspect-ratio: 1 / 1;
  inset-inline-end: -16%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at center,
      rgba(0, 0, 0, 0) 0 14%,
      rgba(20, 20, 24, 0.15) 14.2% 15%,
      rgba(0, 0, 0, 0) 15.2% 18%,
      rgba(255, 255, 255, 0.04) 18.2% 18.6%,
      rgba(0, 0, 0, 0) 18.8% 22%,
      rgba(255, 255, 255, 0.035) 22.2% 22.6%,
      rgba(0, 0, 0, 0) 22.8% 28%,
      rgba(255, 255, 255, 0.03) 28.2% 28.55%,
      rgba(0, 0, 0, 0) 28.8% 36%,
      rgba(255, 255, 255, 0.025) 36.2% 36.5%,
      rgba(0, 0, 0, 0) 36.8% 46%,
      rgba(255, 255, 255, 0.02) 46.2% 46.45%,
      rgba(0, 0, 0, 0) 46.8% 100%),
    radial-gradient(circle at center,
      #2a1a12 0 13.5%,
      #121216 13.6% 100%);
  overflow: hidden;
}

.ala-vinyl__disc::before {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 40%),
    var(--ala-cover) center / cover no-repeat;
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.55),
    inset 0 0 12px rgba(0, 0, 0, 0.35);
}

.ala-vinyl__disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.14), transparent 42%);
  pointer-events: none;
}

.ala-vinyl__arm {
  position: absolute;
  width: 54%;
  height: 54%;
  inset-inline-end: -6%;
  top: 2%;
  z-index: 3;
  pointer-events: none;
  transform-origin: 88% 12%;
  transform: rotate(18deg);
}

.ala-vinyl__arm::before {
  content: "";
  position: absolute;
  inset-inline-end: 8%;
  top: 8%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dfe7f5;
  box-shadow: 0 0 0 3px rgba(223, 231, 245, 0.25);
}

.ala-vinyl__arm::after {
  content: "";
  position: absolute;
  inset-inline-end: 11%;
  top: 12%;
  width: 3px;
  height: 62%;
  border-radius: 3px;
  background: linear-gradient(180deg, #f4f7ff, #9aa8c2);
  transform: rotate(28deg);
  transform-origin: top center;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
}

.ala-vinyl__sleeve {
  position: relative;
  z-index: 2;
  width: 74%;
  border-radius: 12px;
  overflow: hidden;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.55));
}

.ala-vinyl__sleeve img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.ala-vinyl--player {
  max-width: 320px;
}

/* ===== Player hero shell ===== */

.casual_single.is-audiobook-player .casual_single__media {
  opacity: 0.35;
  filter: blur(2px) saturate(0.8);
}

.casual_single.is-audiobook-player .single_hero {
  padding-top: 88px;
  padding-bottom: 36px;
}

.casual_single.is-audiobook-player .ala-audio-hero {
  margin-top: 12px;
}

@media (max-width: 991.98px) {
  .casual_single.is-audiobook-player .single_hero {
    padding-top: 72px;
  }
}

.casual_single.is-audiobook-player .casual_single__hero_layout {
  display: block;
}

.ala-audio-hero {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 28px 28px 22px;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(18, 28, 48, 0.92), rgba(8, 12, 22, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color: #fff;
}

.ala-audio-hero__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ala-audio-hero__title {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.ala-audio-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e85d8a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.ala-audio-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.ala-audio-hero__stage {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 22px;
  min-height: 260px;
}

.ala-audio-hero__art {
  position: relative;
  padding-inline-end: 18%;
}

.ala-audio-hero__lyrics {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ala-audio-hero__lyrics-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.04);
  text-align: center;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

.ala-audio-hero__lyrics-list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0 12px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.ala-audio-hero__lyrics-list li {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 15px;
  line-height: 1.7;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ala-audio-hero__lyrics-list li.is-active {
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  transform: scale(1.02);
}

.ala-audio-hero__lyrics-empty {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.ala-audio-hero__dock {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: end;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ala-audio-hero__social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ala-audio-hero__icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.ala-audio-hero__icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.ala-audio-hero__player {
  min-width: 0;
}

.ala-audio-hero__note {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.ala-audio-hero__progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.ala-audio-hero__time {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}

.ala-audio-hero__bar-wrap {
  position: relative;
  min-width: 0;
}

.ala-audio-hero__bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.ala-audio-hero__bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.65);
}

.ala-audio-hero__seek {
  position: absolute;
  inset: -10px 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.ala-vinyl--player.is-spinning .ala-vinyl__disc {
  animation: alaVinylSpin 8s linear infinite;
}

.ala-vinyl--player.is-spinning .ala-vinyl__arm {
  transform: rotate(34deg);
  transition: transform 0.35s ease;
}

@keyframes alaVinylSpin {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

.ala-audio-hero__audio {
  display: none;
}

.ala-audio-hero__play {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.ala-audio-hero__controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.ala-audio-hero__ctrl {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}

.ala-audio-hero__ctrl.is-disabled {
  opacity: 0.35;
}

.ala-audio-hero__play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 108px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #60a5fa, #2563eb 70%);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  box-shadow:
    0 0 0 6px rgba(37, 99, 235, 0.18),
    0 12px 28px rgba(37, 99, 235, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ala-audio-hero__play:hover {
  transform: translateY(-1px) scale(1.02);
  color: #fff !important;
  box-shadow:
    0 0 0 8px rgba(37, 99, 235, 0.22),
    0 14px 32px rgba(37, 99, 235, 0.55);
}

.ala-audio-hero__play i {
  font-size: 16px;
}

@media (max-width: 991.98px) {
  .ala-audio-hero {
    padding: 22px 18px 18px;
  }

  .ala-audio-hero__stage {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
  }

  .ala-audio-hero__art {
    padding-inline-end: 12%;
    display: flex;
    justify-content: center;
  }

  .ala-vinyl--player {
    max-width: 260px;
  }

  .ala-audio-hero__lyrics {
    min-height: 0;
  }

  .ala-audio-hero__dock {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ala-audio-hero__controls {
    justify-content: center;
  }

  .ala-audio-hero__social {
    justify-content: center;
  }
}
