/* Premier carousel with visible neighbouring covers. */
#prem-section { --prem-width: min(62vw, 504px); padding: 30px 0 22px; background: #07080c; }
#prem-section .prem-backgrounds { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.prem-backgrounds img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.prem-backgrounds img.is-active { opacity: 1; }
.prem-backgrounds::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(4,5,9,.55),rgba(4,5,9,.35) 42%,rgba(4,5,9,.88)); }
#prem-section .prem-header { margin-bottom: 18px; }
#prem-section .prem-sublabel { font-size: 11px; }
#prem-section .prem-title-main { font-size: clamp(20px,2.7vw,29px); }
.prem-track { display: flex; gap: 20px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 8px calc((100% - var(--prem-width)) / 2) 12px; cursor: grab; }
/* Override the legacy universal pan-y rule through this scrolling container.
   Fingers use native momentum/snap; only mouse dragging is handled in JS. */
#prem-track, #prem-track * { touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.prem-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.prem-track.is-dragging .prem-card { cursor: grabbing; }
.prem-track img { -webkit-user-drag: none; }
.prem-track::-webkit-scrollbar { display: none; }
.prem-slide { flex: 0 0 var(--prem-width); min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; }
#prem-section .prem-card { display: block; padding: 0; border: 0; width: 100%; height: auto; aspect-ratio: 16 / 9; font: inherit; color: inherit; }
#prem-section .prem-card::before { content: none; }
#prem-section .prem-play { width: 44px; height: 44px; }
#prem-section .prem-play svg { width: 16px; height: 16px; }
#prem-section .prem-caption { padding: 0 12px; margin-top: 14px; min-height: 100px; }
#prem-section .prem-album-badge { font-size: 11px; letter-spacing: .14em; color: #e5e9ff; background: rgba(24,24,232,.26); border-color: rgba(174,177,255,.5); padding: 5px 12px; }
#prem-section .prem-song { font-size: clamp(23px,2.7vw,30px); line-height: 1.1; letter-spacing: .04em; }
#prem-section .prem-artist { font-size: 13px; line-height: 1.55; letter-spacing: .1em; color: rgba(255,255,255,.82); margin-top: 6px; }
.prem-controls { display: flex; justify-content: center; align-items: center; gap: 16px; }
.prem-arrow, .prem-dots button { width: 44px; height: 44px; padding: 0; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(0,0,0,.35); cursor: pointer; }
.prem-arrow { font: 30px/1 sans-serif; }
.prem-arrow:disabled { opacity: .3; cursor: default; }
.prem-dots { display: flex; }
.prem-dots button { border: 0; background: transparent; display: grid; place-items: center; }
.prem-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); }
.prem-dots [aria-current=true] span { background: #fff; transform: scale(1.3); }
#prem-section button:focus-visible, .prem-track:focus-visible { outline: 2px solid #9cbfff; outline-offset: 4px; }
.prem-status { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(max-width:768px) {
  #prem-section { --prem-width: 69vw; padding: 24px 0 18px; }
  .prem-track { gap: 14px; }
  #prem-section .prem-caption { margin-top: 10px; min-height: 114px; }
  .prem-controls { gap: 10px; }
}
@media(prefers-reduced-motion:reduce) {
  .prem-backgrounds img, #prem-section .prem-card, #prem-section .prem-card img { transition: none; }
}
@media(hover:none), (pointer:coarse) {
  #prem-section .prem-card, #prem-section .prem-card img { transition: none; }
  #prem-section .prem-card:hover img { transform: none; }
}

/* Both indicators use the same fractional position as their gallery. */
#prem-section .prem-dots, #vsp-dots {
  position: relative;
  flex-flow: row nowrap;
  gap: 0;
  padding: 0;
}
#prem-section .prem-dots { width: min(calc(var(--count) * 30px), calc(100% - 108px)); }
#vsp-dots { width: min(calc(var(--count) * 19px), calc(100% - 28px)); margin-inline: auto; }
#prem-section .prem-dots button, #vsp-dots .vsp-dot {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  background: transparent;
  cursor: pointer;
}
#prem-section .prem-dots span, #vsp-dots .vsp-dot::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.52);
  transform: none;
}
#vsp-dots .vsp-dot::before { content: ''; display: block; margin: auto; }
#prem-section .prem-dots::after, #vsp-dots::after {
  content: '';
  position: absolute;
  left: calc((var(--position, 0) + .5) * 100% / var(--count, 1));
  top: 50%;
  transform: translate(-50%, -50%);
  height: 6px;
  width: 15px;
  border-radius: 999px;
  background: #eaf3ff;
  box-shadow: 0 0 0 1px #101a3580;
  pointer-events: none;
}
#vsp-dots:not(.tracking)::after { transition: left 160ms ease-out; }
#vsp-section .vsp-arrow, #prem-section .prem-arrow {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font: 24px/1 system-ui, sans-serif;
  background: url(glass-circle.png) center / 34px 34px no-repeat,
              radial-gradient(circle, #121821d9 0 16px, transparent 17px);
  box-shadow: none;
}
#vsp-section .vsp-arrow:focus-visible, #vsp-dots button:focus-visible {
  outline: 2px solid #9cbfff;
}
@media (prefers-reduced-motion: reduce) {
  #vsp-dots:not(.tracking)::after { transition: none; }
}


#prem-rotation {
  display: grid;
  place-items: center;
  padding: 0;
  width: 32px;
  height: 44px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.78);
  cursor: pointer;
}
#prem-rotation[hidden], #prem-rotation .resume,
#prem-rotation[data-paused="true"] .pause { display: none; }
#prem-rotation[data-paused="true"] .resume { display: block; }
