.player {
  --player-surface: #071B36;
  --player-void: #04101F;
  --player-line: rgba(124, 196, 255, .18);
  --player-line-strong: rgba(124, 196, 255, .32);
  --player-veil: rgba(4, 16, 31, .62);
  --player-text: #CFE6FF;
  --player-text-2: #9FBBDC;
  --player-bright: #E8F2FF;
  --player-radius: clamp(6px, 3vw, 16px);
  --player-track: rgba(255, 255, 255, .35);
  --player-track-edge: rgba(4, 16, 31, .55);
  --player-thumb-shadow: 0 2px 8px rgba(4, 16, 31, .6);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.player:focus {
  outline: none;
}

.player:focus-visible {
  outline: 2px solid var(--c-azure, #3B9EFF);
  outline-offset: 3px;
  border-radius: var(--player-radius);
}

.player__stage {
  container-type: inline-size;
  container-name: stage;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--player-line);
  border-radius: var(--player-radius);
  background: var(--player-surface);
  box-shadow:
    var(--sh-player, 0 30px 70px rgba(2, 10, 24, .6)),
    var(--glow-brand, 0 0 60px rgba(29, 111, 224, .35));
  isolation: isolate;
}

.player__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--player-void);
}

.player__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  background: radial-gradient(
    ellipse 78% 78% at 50% 50%,
    rgba(4, 16, 31, .55) 0%,
    rgba(4, 16, 31, .5) 24%,
    rgba(4, 16, 31, .34) 44%,
    rgba(4, 16, 31, .14) 62%,
    rgba(4, 16, 31, 0) 78%
  );
  opacity: 1;
  pointer-events: none;
  transition: opacity .28s ease;
}

.player.is-playing .player__stage::after,
.player.is-ended .player__stage::after,
.player.is-error .player__stage::after,
.player.is-loading .player__stage::after {
  opacity: 0;
}

.player__badges {
  position: absolute;
  top: clamp(5px, 2.2cqw, 20px);
  left: clamp(5px, 2.2cqw, 20px);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(4px, 1.2cqw, 10px);
  max-width: calc(100% - clamp(10px, 4.4cqw, 40px));
  transition: opacity .24s ease;
}

.player__badge {
  padding: clamp(2px, .7cqw, 6px) clamp(5px, 1.5cqw, 13px);
  border: 1px solid var(--player-line-strong);
  border-radius: clamp(4px, .9cqw, 8px);
  background: var(--player-veil);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--f-body, 'Golos Text', 'Segoe UI', system-ui, sans-serif);
  font-size: clamp(8px, 1.35cqw, 12px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--player-text);
  white-space: nowrap;
}

.player__badge--time {
  padding-inline: clamp(4px, 1.25cqw, 11px);
  font-family: var(--f-head, 'Manrope', 'Segoe UI', system-ui, sans-serif);
  color: var(--c-sky, #7CC4FF);
}

.player__center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(20px, 19cqw, 92px);
  height: clamp(20px, 19cqw, 92px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 44px rgba(4, 16, 31, .5);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform .22s ease, background-color .22s ease, opacity .22s ease, visibility .22s ease;
}

.player__center:hover {
  background: var(--c-white, #FFFFFF);
  transform: translate(-50%, -50%) scale(1.07);
}

.player__center:active {
  transform: translate(-50%, -50%) scale(.96);
}

.player__center:focus-visible {
  outline: 2px solid var(--c-azure, #3B9EFF);
  outline-offset: 4px;
}

.player__center-icon {
  width: 37%;
  height: 37%;
  margin-left: 6%;
  fill: var(--c-navy, #0A1F44);
  pointer-events: none;
}

.player__center.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.86);
}

.player__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: clamp(18px, 9cqw, 46px);
  height: clamp(18px, 9cqw, 46px);
  border: clamp(2px, .6cqw, 3px) solid rgba(124, 196, 255, .22);
  border-top-color: var(--c-sky, #7CC4FF);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: player-spin .9s linear infinite;
}

.player__error {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.2cqw, 10px);
  padding: clamp(8px, 3cqw, 26px);
  background: rgba(4, 16, 31, .86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-align: center;
  font-size: clamp(9px, 1.5cqw, 14px);
  line-height: 1.5;
  color: var(--player-bright);
}

.player__error-title {
  margin: 0;
  font-family: var(--f-head, 'Manrope', 'Segoe UI', system-ui, sans-serif);
  font-size: clamp(10px, 1.9cqw, 17px);
  font-weight: 700;
  color: var(--c-white, #FFFFFF);
}

.player__error-text {
  margin: 0;
  max-width: 46ch;
  color: var(--player-text-2);
}

.player__spinner[hidden],
.player__error[hidden],
.player__endscreen[hidden],
.player__center[hidden] {
  display: none;
}

.player__endscreen {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 1.6cqw, 16px);
  padding: clamp(7px, 2.9cqw, 26px) clamp(8px, 3.1cqw, 28px) clamp(8px, 3.1cqw, 28px);
  overflow: auto;
  background: var(--c-scrim, rgba(4, 14, 28, .93));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.endscreen__head {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(4px, 1.2cqw, 12px);
}

.endscreen__title {
  margin: 0;
  font-family: var(--f-head, 'Manrope', 'Segoe UI', system-ui, sans-serif);
  font-size: clamp(10px, 1.95cqw, 17px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-white, #FFFFFF);
}

.endscreen__countdown {
  display: flex;
  align-items: center;
  gap: clamp(5px, 1.4cqw, 12px);
}

.endscreen__label {
  font-size: clamp(8px, 1.5cqw, 13px);
  color: var(--player-text-2);
  white-space: nowrap;
}

.countdown {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: clamp(24px, 4.6cqw, 40px);
  height: clamp(24px, 4.6cqw, 40px);
}

.countdown__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.countdown__track {
  fill: none;
  stroke: rgba(124, 196, 255, .22);
  stroke-width: 3;
}

.countdown__value {
  fill: none;
  stroke: var(--c-azure, #3B9EFF);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 107;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .9s linear;
}

.countdown__num {
  position: relative;
  z-index: 1;
  font-family: var(--f-head, 'Manrope', 'Segoe UI', system-ui, sans-serif);
  font-size: clamp(9px, 1.75cqw, 15px);
  font-weight: 700;
  line-height: 1;
  color: var(--c-sky, #7CC4FF);
}

.endscreen__grid {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(120px, 21cqw)), 1fr));
  grid-auto-rows: max-content;
  align-content: center;
  align-content: safe center;
  gap: clamp(6px, 1.5cqw, 16px);
  min-height: 0;
  padding-block: clamp(2px, .6cqw, 6px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 196, 255, .35) transparent;
}

.endscreen__grid::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.endscreen__grid::-webkit-scrollbar-track {
  border-radius: var(--r-pill, 999px);
  background: rgba(124, 196, 255, .06);
}

.endscreen__grid::-webkit-scrollbar-thumb {
  border-radius: var(--r-pill, 999px);
  background: rgba(124, 196, 255, .32);
}

.endscreen__card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--player-line);
  border-radius: var(--r-lg, 18px);
  background: var(--c-glass-light, rgba(255, 255, 255, .045));
  color: inherit;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.endscreen__card:hover,
.endscreen__card:focus-visible {
  border-color: var(--c-azure, #3B9EFF);
  background: rgba(255, 255, 255, .09);
  box-shadow: var(--glow-sky-sm, 0 0 24px rgba(124, 196, 255, .22));
  transform: translateY(-3px);
}

.endscreen__card:focus-visible {
  outline: 2px solid var(--c-azure, #3B9EFF);
  outline-offset: 2px;
}

.endscreen__card--next {
  border-color: var(--c-azure, #3B9EFF);
  box-shadow:
    0 0 0 1px var(--c-azure, #3B9EFF),
    var(--glow-sky-sm, 0 0 24px rgba(124, 196, 255, .22));
}

.endscreen__card--next:hover,
.endscreen__card--next:focus-visible {
  box-shadow:
    0 0 0 1px var(--c-azure, #3B9EFF),
    var(--glow-sky-sm, 0 0 24px rgba(124, 196, 255, .22));
}

.endscreen__cover {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--player-line);
  background: linear-gradient(135deg, var(--c-navy-soft, #12315F) 0%, var(--c-navy, #0A1F44) 78%);
}

.endscreen__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.endscreen__cover:not(:has(.endscreen__img))::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(16px, 5cqw, 42px);
  height: clamp(16px, 5cqw, 42px);
  background-color: var(--c-sky, #7CC4FF);
  opacity: .4;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='17.6' fill='none' stroke='black' stroke-width='2.2'/%3E%3Cpath d='M20.4 16.6v14.8l11.8-7.4z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='17.6' fill='none' stroke='black' stroke-width='2.2'/%3E%3Cpath d='M20.4 16.6v14.8l11.8-7.4z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.endscreen__duration {
  position: absolute;
  right: clamp(3px, .9cqw, 8px);
  bottom: clamp(3px, .9cqw, 8px);
  z-index: 2;
  padding: clamp(1px, .35cqw, 3px) clamp(4px, 1cqw, 10px);
  border: 1px solid var(--player-line);
  border-radius: var(--r-pill, 999px);
  background: var(--c-veil-dark, rgba(4, 16, 31, .78));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--f-head, 'Manrope', 'Segoe UI', system-ui, sans-serif);
  font-size: clamp(7px, 1.2cqw, 12px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-on-dark, #FFFFFF);
  white-space: nowrap;
}

.endscreen__name {
  display: block;
  flex: 0 0 auto;
  box-sizing: content-box;
  height: calc(2 * 1.4em);
  overflow: hidden;
  margin: clamp(5px, 1.1cqw, 11px) clamp(6px, 1.25cqw, 13px) clamp(6px, 1.35cqw, 14px);
  font-size: clamp(9px, 1.35cqw, 15px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-on-dark, #FFFFFF);
  overflow-wrap: anywhere;
}

.endscreen__back {
  align-self: center;
  flex: 0 0 auto;
  max-width: 100%;
  padding: clamp(4px, .95cqw, 10px) clamp(9px, 2.1cqw, 22px);
  border: 1px solid var(--player-line-strong);
  border-radius: var(--r-pill, 999px);
  background: rgba(255, 255, 255, .05);
  font-family: inherit;
  font-size: clamp(8px, 1.45cqw, 14px);
  font-weight: 600;
  color: var(--c-sky, #7CC4FF);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.endscreen__back:hover {
  border-color: var(--c-azure, #3B9EFF);
  background: rgba(124, 196, 255, .14);
  box-shadow: var(--glow-sky-sm, 0 0 24px rgba(124, 196, 255, .22));
  color: var(--c-white, #FFFFFF);
}

.endscreen__back:focus-visible {
  outline: 2px solid var(--c-azure, #3B9EFF);
  outline-offset: 2px;
}

.player__bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 1.4cqw, 12px);
  padding: 0 clamp(6px, 2cqw, 18px) clamp(5px, 1.6cqw, 14px);
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
}

.player__bar::before {
  content: '';
  position: absolute;
  inset: calc(-1 * clamp(18px, 5cqw, 46px)) 0 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 16, 31, 0) 0%, rgba(4, 16, 31, .55) 45%, rgba(4, 16, 31, .92) 100%);
  pointer-events: none;
}

.player.is-idle .player__bar {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.player.is-idle .player__badges {
  opacity: 0;
}

.player.is-idle:hover .player__bar,
.player.is-idle:focus-within .player__bar {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.player.is-idle:hover .player__badges,
.player.is-idle:focus-within .player__badges {
  opacity: 1;
}

.player.is-idle:not(:hover):not(:focus-within) .player__stage {
  cursor: none;
}

.player__progress {
  position: relative;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .2);
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  transition: height .16s ease;
}

.player__progress::before {
  content: '';
  position: absolute;
  inset: clamp(-10px, -1.4cqw, -4px) 0 clamp(-9px, -1.1cqw, -2px);
  display: block;
}

.player__progress:hover,
.player__progress:focus-visible,
.player.is-seeking .player__progress {
  height: 6px;
}

.player__progress:focus-visible {
  outline: 2px solid var(--c-azure, #3B9EFF);
  outline-offset: 5px;
}

.player__buffered,
.player__played {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: inherit;
  pointer-events: none;
}

.player__buffered {
  background: rgba(255, 255, 255, .3);
}

.player__played {
  z-index: 1;
  background: linear-gradient(90deg, var(--c-brand, #1D6FE0), var(--c-sky, #7CC4FF));
}

.player__thumb {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--c-white, #FFFFFF);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
  opacity: 0;
  transform: translateY(-50%) scale(.6);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.player__progress:hover .player__thumb,
.player__progress:focus-visible .player__thumb,
.player.is-seeking .player__thumb {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.player__controls {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(4px, 1.2cqw, 16px);
  min-width: 0;
}

.player__group {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.4cqw, 16px);
  min-width: 0;
}

.player__btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: clamp(1px, .5cqw, 6px);
  border: 0;
  border-radius: clamp(4px, .9cqw, 8px);
  background: transparent;
  color: var(--c-white, #FFFFFF);
  font-family: inherit;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.player__btn svg {
  display: block;
  width: clamp(13px, 2.3cqw, 20px);
  height: clamp(13px, 2.3cqw, 20px);
  pointer-events: none;
}

.player__btn:hover {
  background: rgba(124, 196, 255, .18);
  color: var(--c-sky, #7CC4FF);
}

.player__btn:active {
  transform: scale(.94);
}

.player__btn:focus-visible {
  outline: 2px solid var(--c-azure, #3B9EFF);
  outline-offset: 2px;
}

.player__btn--text {
  padding: clamp(1px, .5cqw, 4px) clamp(3px, .9cqw, 8px);
  min-width: clamp(20px, 3.6cqw, 34px);
  border: 1px solid var(--player-line-strong);
  border-radius: 6px;
  font-family: var(--f-head, 'Manrope', 'Segoe UI', system-ui, sans-serif);
  font-size: clamp(8px, 1.35cqw, 12px);
  font-weight: 700;
  color: var(--player-text);
}

.player__btn--text:hover {
  border-color: var(--c-sky, #7CC4FF);
  background: rgba(124, 196, 255, .18);
  color: var(--c-white, #FFFFFF);
}

.player__volume {
  display: flex;
  align-items: center;
  gap: clamp(2px, .7cqw, 8px);
  min-width: 0;
}

.player__volume-range {
  --volume: 100%;
  -webkit-appearance: none;
  appearance: none;
  flex: 0 1 auto;
  width: clamp(56px, 9cqw, 110px);
  min-width: 0;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill, 999px);
  background: transparent;
  cursor: pointer;
}

.player__volume-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--r-pill, 999px);
  background-color: var(--player-track);
  background-image: linear-gradient(90deg, var(--c-brand, #1D6FE0) 0%, var(--c-sky, #7CC4FF) var(--volume), transparent var(--volume));
  box-shadow: inset 0 0 0 1px var(--player-track-edge);
}

.player__volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: var(--c-white, #FFFFFF);
  box-shadow: var(--player-thumb-shadow), 0 0 0 1px var(--player-track-edge);
  transition: transform .16s ease, box-shadow .16s ease;
}

.player__volume-range:hover::-webkit-slider-thumb,
.player__volume-range:focus-visible::-webkit-slider-thumb,
.player__volume-range:active::-webkit-slider-thumb {
  box-shadow: var(--player-thumb-shadow), 0 0 0 3px rgba(124, 196, 255, .38);
  transform: scale(1.08);
}

.player__volume-range::-moz-range-track {
  height: 6px;
  border-radius: var(--r-pill, 999px);
  background: var(--player-track);
  box-shadow: inset 0 0 0 1px var(--player-track-edge);
}

.player__volume-range::-moz-range-progress {
  height: 6px;
  border-radius: var(--r-pill, 999px);
  background: linear-gradient(90deg, var(--c-brand, #1D6FE0), var(--c-sky, #7CC4FF));
}

.player__volume-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: var(--c-white, #FFFFFF);
  box-shadow: var(--player-thumb-shadow), 0 0 0 1px var(--player-track-edge);
  transition: box-shadow .16s ease;
}

.player__volume-range:hover::-moz-range-thumb,
.player__volume-range:focus-visible::-moz-range-thumb,
.player__volume-range:active::-moz-range-thumb {
  box-shadow: var(--player-thumb-shadow), 0 0 0 3px rgba(124, 196, 255, .38);
}

.player__volume-range:focus-visible {
  outline: 2px solid var(--c-azure, #3B9EFF);
  outline-offset: 4px;
}

.player__time {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  font-family: var(--f-head, 'Manrope', 'Segoe UI', system-ui, sans-serif);
  font-size: clamp(8px, 1.4cqw, 13px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--player-text);
  white-space: nowrap;
  text-overflow: ellipsis;
}

@container stage (max-width: 460px) {
  .player__volume-range {
    width: clamp(34px, 12cqw, 56px);
  }
}

@container stage (max-width: 380px) {
  .endscreen__label {
    display: none;
  }
}

@container stage (max-width: 300px) {
  .player__volume-range {
    display: none;
  }

  .endscreen__grid {
    gap: 5px;
  }
}

@container stage (max-width: 220px) {
  .endscreen__card {
    border-radius: var(--r-md, 11px);
  }

  .endscreen__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

.playlist {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, .8vw, 12px);
  min-width: 0;
}

.playlist__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 2px;
}

.playlist__title {
  margin: 0;
  font-family: var(--f-head, 'Manrope', 'Segoe UI', system-ui, sans-serif);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-white, #FFFFFF);
}

.playlist__count {
  flex-shrink: 0;
  font-size: clamp(10px, .85vw, 12.5px);
  font-weight: 600;
  color: var(--c-sky, #7CC4FF);
}

.playlist__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0 4px 0 0;
  max-height: min(610px, 68vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 196, 255, .35) rgba(124, 196, 255, .06);
}

.playlist__list > li {
  min-width: 0;
  list-style: none;
}

.playlist__list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.playlist__list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(124, 196, 255, .06);
}

.playlist__list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(124, 196, 255, .32);
}

.playlist__list::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 196, 255, .55);
}

.playlist-item {
  display: flex;
  gap: clamp(6px, .9vw, 12px);
  padding: clamp(5px, .7vw, 9px);
  border: 1px solid rgba(124, 196, 255, .1);
  border-radius: clamp(7px, .9vw, 11px);
  background: rgba(255, 255, 255, .03);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.playlist-item:hover {
  border-color: rgba(124, 196, 255, .3);
  background: rgba(255, 255, 255, .07);
}

.playlist-item:focus-visible {
  outline: 2px solid var(--c-azure, #3B9EFF);
  outline-offset: 2px;
}

.playlist-item--active {
  border-color: rgba(124, 196, 255, .45);
  background: rgba(59, 158, 255, .14);
  box-shadow: var(--glow-sky-sm, 0 0 24px rgba(124, 196, 255, .22));
}

.playlist-item__thumb {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: clamp(64px, 32%, 118px);
  aspect-ratio: 118 / 66;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--c-navy-soft, #12315F) 0%, var(--c-navy, #0A1F44) 78%);
}

.playlist-item__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-item__duration {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(4, 16, 31, .78);
  font-family: var(--f-head, 'Manrope', 'Segoe UI', system-ui, sans-serif);
  font-size: clamp(9px, .75vw, 10.5px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--player-text, #CFE6FF);
}

.playlist-item__eq {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: rgba(4, 16, 31, .45);
}

.playlist-item--active .playlist-item__eq {
  display: flex;
}

.playlist-item__eq i {
  display: block;
  width: 3px;
  height: clamp(11px, 1.2vw, 15px);
  border-radius: 2px;
  background: var(--c-sky, #7CC4FF);
  transform-origin: 50% 100%;
  animation: playlist-eq .82s ease-in-out infinite alternate;
}

.playlist-item__eq i:nth-child(1) {
  animation-delay: -.62s;
}

.playlist-item__eq i:nth-child(2) {
  animation-delay: -.26s;
}

.playlist-item__eq i:nth-child(3) {
  animation-delay: -.44s;
}

.playlist-item__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding-top: 1px;
}

.playlist-item__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: clamp(11px, .95vw, 13px);
  font-weight: 600;
  line-height: 1.38;
  color: #DCEAFB;
}

.playlist-item--active .playlist-item__title {
  color: var(--c-white, #FFFFFF);
}

.playlist-item__cat {
  font-size: clamp(10px, .82vw, 11.5px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--accent, var(--c-sky, #7CC4FF));
}

.playlist--scroll .playlist__list {
  flex-direction: row;
  flex-wrap: nowrap;
  max-height: none;
  padding: 0 0 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
}

.playlist--scroll .playlist__list > li {
  flex: 0 0 auto;
  width: min(76vw, 280px);
  scroll-snap-align: start;
}

.playlist--scroll .playlist-item {
  height: 100%;
}

.player:fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: none;
  background: #000000;
}

.player:fullscreen .player__stage,
.player__stage:fullscreen {
  width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.player:-webkit-full-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: none;
  background: #000000;
}

.player:-webkit-full-screen .player__stage,
.player__stage:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.player.is-fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: none;
  background: #000000;
}

.player.is-fullscreen .player__stage {
  width: 100%;
  height: 100%;
  min-height: min(56.25vw, 100vh);
  max-height: 100vh;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@keyframes player-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes playlist-eq {
  from {
    transform: scaleY(.34);
  }

  to {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .player__center,
  .player__bar,
  .player__badges,
  .player__btn,
  .player__progress,
  .player__thumb,
  .endscreen__card,
  .endscreen__back,
  .playlist-item {
    transition-duration: .01ms;
  }

  .player__stage::after {
    transition: none;
  }

  .countdown__value {
    transition: none;
  }

  .playlist-item__eq i {
    animation: none;
    transform: none;
  }

  .player__spinner {
    animation-duration: 2.4s;
  }

  .player__center:hover {
    transform: translate(-50%, -50%);
  }

  .endscreen__card:hover,
  .endscreen__card:focus-visible {
    transform: none;
  }

  .playlist--scroll .playlist__list {
    scroll-behavior: auto;
  }

  .player__volume-range::-webkit-slider-thumb {
    transition-duration: .01ms;
  }

  .player__volume-range:hover::-webkit-slider-thumb,
  .player__volume-range:focus-visible::-webkit-slider-thumb,
  .player__volume-range:active::-webkit-slider-thumb {
    transform: none;
  }

  .player__volume-range::-moz-range-thumb {
    transition-duration: .01ms;
  }
}
