:root {
  --lap-red: #d5092f;
  --lap-red-dark: #8d1020;
  --lap-yellow: #ffdf00;
  --lap-black: #1d1a1b;
  --lap-panel: #292627;
  --lap-line: #4a4547;
  --lap-white: #fff;
  --lap-muted: #c9c5c6;
}

.lap-player,
.lap-lock {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 4px;
  background: var(--lap-black);
  color: var(--lap-white);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  font-family: inherit;
}

.lap-player *,
.lap-lock * {
  box-sizing: border-box;
}

.lap-player__accent {
  position: absolute;
  top: 0;
  left: 0;
  width: min(190px, 42%);
  height: 7px;
  background: linear-gradient(90deg, var(--lap-yellow) 0 58%, var(--lap-red) 58% 100%);
}

.lap-player__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.lap-player__brand {
  color: var(--lap-yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.lap-player__secure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f3e9eb;
  font-size: 12px;
  font-weight: 700;
}

.lap-player__secure span {
  color: #55c878;
  font-size: 9px;
}

.lap-player__secure--public {
  color: var(--lap-muted);
}

.lap-lock__title {
  margin: 0;
  color: var(--lap-white);
  font-size: clamp(25px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.06;
}

.lap-player__intro,
.lap-lock__intro,
.lap-lock__notice {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--lap-muted);
  font-size: 15px;
  line-height: 1.65;
}

.lap-player__now {
  min-height: 83px;
  margin-top: 28px;
  padding: 17px 20px;
  border-left: 4px solid var(--lap-red);
  background: var(--lap-panel);
}

.lap-player__eyebrow {
  margin-bottom: 4px;
  color: var(--lap-yellow);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.lap-player__track-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.lap-player__track-subtitle {
  margin-top: 3px;
  color: var(--lap-muted);
  font-size: 13px;
}

.lap-player__audio {
  display: none;
}

.lap-player__controls {
  display: grid;
  grid-template-columns: 34px 54px 34px minmax(120px, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.lap-player--single .lap-player__controls {
  grid-template-columns: 54px minmax(120px, 1fr);
}

.lap-icon-button,
.lap-player__play {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: var(--lap-white);
  background: transparent;
  cursor: pointer;
  transition: color .18s ease, transform .18s ease, background .18s ease;
}

.lap-icon-button {
  width: 34px;
  height: 34px;
}

.lap-player__play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--lap-red);
}

.lap-icon-button:hover,
.lap-icon-button:focus-visible {
  color: var(--lap-yellow);
}

.lap-player__play:hover,
.lap-player__play:focus-visible {
  background: #ee123d;
  transform: scale(1.04);
}

.lap-icon-button:focus-visible,
.lap-player__play:focus-visible,
.lap-player__playlist-item:focus-visible,
.lap-lock button:focus-visible,
.lap-lock input:focus-visible {
  outline: 3px solid var(--lap-yellow);
  outline-offset: 3px;
}

.lap-icon-button svg,
.lap-player__play svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.lap-player__play svg {
  width: 27px;
  height: 27px;
}

.lap-player__pause-icon,
.lap-player.is-playing .lap-player__play-icon {
  display: none;
}

.lap-player.is-playing .lap-player__pause-icon {
  display: block;
}

.lap-player__timeline-wrap {
  min-width: 0;
}

.lap-player__timeline {
  --lap-progress: 0%;
  width: 100%;
  height: 5px;
  margin: 0;
  border-radius: 999px;
  outline: 0;
  background: linear-gradient(to right, var(--lap-yellow) 0 var(--lap-progress), var(--lap-line) var(--lap-progress) 100%);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.lap-player__timeline::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--lap-black);
  border-radius: 50%;
  background: var(--lap-yellow);
  appearance: none;
  -webkit-appearance: none;
}

.lap-player__timeline::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 2px solid var(--lap-black);
  border-radius: 50%;
  background: var(--lap-yellow);
}

.lap-player__times {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--lap-muted);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}

.lap-player__playlist {
  display: grid;
  gap: 1px;
  margin-top: 24px;
  border-top: 1px solid var(--lap-line);
}

.lap-player__playlist-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 8px;
  border: 0;
  border-bottom: 1px solid var(--lap-line);
  color: var(--lap-white);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.lap-player__playlist-item:hover,
.lap-player__playlist-item.is-active {
  background: rgba(255, 255, 255, .045);
}

.lap-player__number {
  color: var(--lap-yellow);
  font-size: 12px;
  font-weight: 900;
}

.lap-player__playlist-copy {
  min-width: 0;
}

.lap-player__playlist-copy strong,
.lap-player__playlist-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lap-player__playlist-copy strong {
  font-size: 14px;
}

.lap-player__playlist-copy small {
  margin-top: 3px;
  color: var(--lap-muted);
  font-size: 12px;
}

.lap-player__playing {
  color: transparent;
  font-size: 12px;
}

.lap-player__playlist-item.is-active .lap-player__playing {
  color: var(--lap-red);
}

.lap-lock {
  text-align: center;
}

.lap-lock__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 2px auto 14px;
  border-radius: 50%;
  color: var(--lap-black);
  background: var(--lap-yellow);
}

.lap-lock__icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.lap-lock .lap-player__brand {
  margin-bottom: 8px;
}

.lap-lock__intro,
.lap-lock__notice {
  margin-right: auto;
  margin-left: auto;
}

.lap-lock__notice {
  max-width: 650px;
  font-size: 13px;
}

.lap-lock__form {
  max-width: 580px;
  margin: 26px auto 0;
  text-align: left;
}

.lap-lock__form label {
  display: block;
  margin-bottom: 7px;
  color: var(--lap-white);
  font-size: 13px;
  font-weight: 800;
}

.lap-lock__field {
  display: flex;
  gap: 9px;
}

.lap-lock__field input {
  min-width: 0;
  flex: 1;
  height: 48px;
  padding: 0 15px;
  border: 1px solid var(--lap-line);
  border-radius: 2px;
  color: var(--lap-white);
  background: var(--lap-panel);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lap-lock__field button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 2px;
  color: var(--lap-white);
  background: var(--lap-red);
  font-weight: 900;
  cursor: pointer;
}

.lap-lock__field button:disabled {
  cursor: wait;
  opacity: .7;
}

.lap-lock__feedback {
  min-height: 22px;
  margin-top: 9px;
  color: #8ee5a8;
  font-size: 13px;
  font-weight: 700;
}

.lap-lock__feedback.is-error {
  color: #ff8ba1;
}

.lap-message {
  padding: 14px;
  border-left: 4px solid var(--lap-red);
  background: #f6f6f6;
}

@media (max-width: 720px) {
  .lap-player__controls {
    grid-template-columns: 30px 50px 30px minmax(90px, 1fr);
    gap: 8px;
  }

  .lap-player--single .lap-player__controls {
    grid-template-columns: 50px minmax(90px, 1fr);
  }

  .lap-lock__field {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .lap-player,
  .lap-lock {
    padding: 24px 18px;
  }

  .lap-player__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .lap-player__controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .lap-player__timeline-wrap {
    order: 2;
    width: 100%;
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lap-icon-button,
  .lap-player__play {
    transition: none;
  }
}
