/* Mussika Play. O chrome vem de app.css, plus.css e handset.css. */

.play-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 52vh;
  min-height: 380px;
  max-height: 560px;
  margin-bottom: -56px;
  padding: 0 6vw 108px;
}
.play-hero-bg,
.play-hero-shade {
  position: absolute;
  inset: 0;
}
.play-hero-bg {
  background-position: center 30%;
  background-size: cover;
}
.play-hero-shade {
  background: linear-gradient(180deg, rgba(6, 8, 11, .1) 0%, rgba(6, 8, 11, .2) 32%, rgba(6, 8, 11, .66) 72%, #06080b 100%);
}
.play-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.play-hero-copy .eyebrow {
  color: #b7c3cf;
}
.play-hero-copy h1 {
  margin: 10px 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: .94;
  letter-spacing: -.045em;
}
.play-hero-copy p {
  margin: 0;
  max-width: 440px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.play-stage.page-pad { padding-top: 0; padding-bottom: 108px; }
.play-stage {
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.play-layout {
  position: relative;
  isolation: isolate;
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: start;
  padding: 18px 18px 10px;
  border-radius: 28px;
}
.play-layout::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -4%;
  top: 6%;
  width: min(380px, 42%);
  aspect-ratio: 1;
  background-image: var(--play-glow);
  background-position: center;
  background-size: cover;
  filter: blur(48px);
  opacity: .11;
  transform: scale(1.12);
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.play-stage.is-live .play-layout::before { opacity: .2; }
.play-layout::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .028), transparent 62%);
  pointer-events: none;
}
.play-cover,
.play-list,
.play-dock { position: relative; z-index: 1; }
.play-dock { display: none; }
.play-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  border: 0;
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .1),
    0 22px 48px rgba(0, 0, 0, .4);
  transition: opacity .28s var(--ease), transform .4s var(--ease);
}
.play-cover.is-swap {
  opacity: 0;
  transform: scale(.985);
}

.play-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
}
.play-list li { border-bottom: 1px solid rgba(255, 255, 255, .05); }
.play-list li.is-on {
  background: rgba(255, 255, 255, .04);
  border-bottom-color: transparent;
  border-radius: 18px;
}
.play-list > li > button {
  width: 100%;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.play-list li.is-on > button { background: transparent; }
.play-idx {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.play-n { position: relative; min-width: 1.15em; }
.play-eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.play-list li.is-on .play-eq { display: inline-flex; }
.play-eq i {
  display: block;
  width: 2px;
  height: 12px;
  border-radius: 1px;
  background: var(--cyan);
  transform-origin: bottom;
  transform: scaleY(.45);
}
.play-list li.is-on .play-eq i:nth-child(2) { transform: scaleY(.75); }
.play-list li.is-on .play-eq i:nth-child(3) { transform: scaleY(.55); }
.play-stage.is-live .play-list li.is-on .play-eq i,
.play-stage.is-live .play-dock .play-eq i {
  animation: play-eq 1.05s var(--ease) infinite;
}
.play-stage.is-live .play-list li.is-on .play-eq i:nth-child(2),
.play-stage.is-live .play-dock .play-eq i:nth-child(2) { animation-delay: .16s; }
.play-stage.is-live .play-list li.is-on .play-eq i:nth-child(3),
.play-stage.is-live .play-dock .play-eq i:nth-child(3) { animation-delay: .32s; }
@keyframes play-eq {
  0%, 100% { transform: scaleY(.32); }
  50% { transform: scaleY(1); }
}
.play-copy b {
  display: block;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -.02em;
}
.play-list li.is-on .play-copy b { font-size: 18px; letter-spacing: -.03em; }
.play-artist {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}
.play-dur {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.play-controls {
  display: grid;
  grid-template-columns: 42px 52px 42px minmax(64px, 1fr) auto;
  grid-template-areas:
    "prev go next . vol"
    "seek seek seek seek seek"
    "now now now dur dur";
  gap: 8px 14px;
  align-items: center;
  margin: 0;
  padding: 2px 12px 18px 80px;
}
.play-controls button {
  position: relative;
  display: grid;
  place-items: center;
  grid-template-columns: none;
  appearance: none;
  -webkit-appearance: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  background: transparent;
  color: #aeb8c4;
  line-height: 0;
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.play-controls button svg {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  margin: 0;
  transform: translate(-50%, -50%);
}
.play-go .ico-pause { display: none; }
.play-go.is-playing .ico-play { display: none; }
.play-go.is-playing .ico-pause { display: block; }
.play-go .ico-play { transform: translate(calc(-50% + 1px), -50%); }
.play-controls .play-go {
  grid-area: go;
  width: 52px;
  height: 52px;
  border: 0;
  background: #fff;
  color: #07090d;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .32);
}
.play-controls #playPrev { grid-area: prev; }
.play-controls #playNext { grid-area: next; }
.play-controls .play-go:active { transform: scale(.97); }
.play-seek {
  grid-area: seek;
  width: 100%;
  height: 16px;
  margin: 4px 0 0;
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
  --seek: 0%;
  -webkit-appearance: none;
  appearance: none;
}
.play-seek::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #f5f8fb var(--seek), rgba(255, 255, 255, .14) var(--seek));
}
.play-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transform: scale(.72);
  transition: opacity .15s var(--ease), transform .15s var(--ease);
}
.play-seek:hover::-webkit-slider-thumb,
.play-seek:focus-visible::-webkit-slider-thumb,
.play-seek:active::-webkit-slider-thumb {
  opacity: 1;
  transform: scale(1);
}
.play-seek::-moz-range-track {
  height: 3px;
  border: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #f5f8fb var(--seek), rgba(255, 255, 255, .14) var(--seek));
}
.play-seek::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity .15s var(--ease), transform .15s var(--ease);
}
.play-seek:hover::-moz-range-thumb,
.play-seek:focus-visible::-moz-range-thumb,
.play-seek:active::-moz-range-thumb { opacity: 1; }
.play-time { display: contents; }
#playNow,
#playDur {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
#playNow { grid-area: now; }
#playDur { grid-area: dur; justify-self: end; }
.play-vol {
  grid-area: vol;
  width: 92px;
  height: 16px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.play-vol::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .28);
}
.play-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -3.5px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
.play-vol::-moz-range-track {
  height: 3px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .28);
}
.play-vol::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .play-list li:not(.is-on) > button:hover { background: rgba(255, 255, 255, .04); }
  .play-list li:not(.is-on) > button:hover b { color: #fff; }
  .play-list li:not(.is-on) > button:hover .play-n { color: transparent; }
  .play-list li:not(.is-on) > button:hover .play-n::after {
    content: "";
    position: absolute;
    left: 1px;
    top: 50%;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #fff;
    transform: translateY(-50%);
  }
  .play-controls #playPrev:hover,
  .play-controls #playNext:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05);
  }
  .play-controls .play-go:hover { transform: scale(1.04); }
}
@media (hover: none), (pointer: coarse) {
  .play-seek::-webkit-slider-thumb,
  .play-seek::-moz-range-thumb { opacity: 1; transform: none; }
}

@media (min-width: 1680px) {
  .play-layout {
    width: min(1160px, 100%);
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  .play-hero {
    height: 40vh;
    min-height: 260px;
    max-height: 400px;
    margin-bottom: -36px;
    padding: 0 20px 84px;
  }
  .play-layout {
    grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
    gap: 16px;
    padding: 12px;
  }
  .play-controls { padding-left: 68px; }
  .play-vol { display: none; }
}

@media (max-width: 860px) {
  .play-hero {
    height: 40vh;
    min-height: 240px;
    max-height: 320px;
    margin-bottom: -28px;
    padding: 0 20px 56px;
  }
  .play-hero-bg { background-position: center top; }
  .play-hero-shade {
    background: linear-gradient(180deg, rgba(6, 8, 11, .18) 0%, rgba(6, 8, 11, .4) 30%, rgba(6, 8, 11, .94) 52%, #06080b 68%);
  }
  .play-hero-copy h1 { font-size: clamp(32px, 8vw, 44px); }
  .play-hero-copy p { font-size: 14px; }
  .play-dock {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 420px);
    margin: 2px auto 0;
    text-align: center;
  }
  .play-now {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .play-dock .play-eq { display: inline-flex; height: 14px; }
  .play-dock .play-eq i:nth-child(2) { transform: scaleY(.75); }
  .play-dock .play-eq i:nth-child(3) { transform: scaleY(.55); }
  .play-dock b {
    color: var(--text);
    font-size: clamp(24px, 6.4vw, 30px);
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1.05;
  }
  .play-dock .play-artist { margin: 0; font-size: 14px; }
  .play-list .play-eq { display: none; }
  .play-layout {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 4px 0 0;
    border-radius: 0;
  }
  .play-layout::after { display: none; }
  .play-layout::before {
    left: 50%;
    top: 0;
    width: min(280px, 74vw);
    filter: blur(30px);
    opacity: .1;
    transform: translateX(-50%) scale(1.18);
  }
  .play-stage.is-live .play-layout::before { opacity: .16; }
  .play-cover {
    width: min(68vw, 240px);
    margin-inline: auto;
    border-radius: 16px;
  }
  .play-list li.is-on {
    background: rgba(255, 255, 255, .04);
    border-radius: 14px;
  }
  .play-list li.is-on > button {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    justify-items: start;
    text-align: left;
    min-height: 58px;
    padding: 12px 8px;
  }
  .play-list li.is-on .play-copy b { font-size: 15px; letter-spacing: -.02em; }
  .play-list > li > button { min-height: 58px; }
  .play-controls {
    width: min(100%, 420px);
    margin-inline: auto;
    padding: 10px 0 22px;
    grid-template-columns: 46px 58px 46px;
    grid-template-areas:
      "seek seek seek"
      "now . dur"
      "prev go next";
    justify-content: center;
    column-gap: 22px;
    row-gap: 12px;
  }
  .play-controls #playPrev,
  .play-controls #playNext { width: 46px; height: 46px; }
  .play-controls .play-go { width: 58px; height: 58px; }
  main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .play-cover,
  .play-cover.is-swap,
  .play-controls button,
  .play-list > li > button,
  .play-layout::before { transition: none; }
  .play-cover.is-swap { opacity: 1; transform: none; }
  .play-eq i { animation: none !important; }
  .play-controls .play-go:hover,
  .play-controls .play-go:active { transform: none; }
}
