/*!
 * Winamp Resurrected
 * Designed & developed by Serkan Hursgunel — www.serkanhursgunel.com
 */

/* Figma "Playlist Window" (11:439) */

.wa-window--playlist .wa-window__content {
  gap: 32px;
  padding: 16px 8px 20px 12px;
}

.wa-pl__listarea {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

/* ---------- Track List ---------- */
.wa-pl__list {
  flex: 1 0 0;
  min-width: 1px;
  height: var(--pl-list-h, 228px);
  margin: 0;
  padding: 16px 4px;
  overflow-y: auto;
  list-style: none;
  outline: none;
  scrollbar-width: none;
}

.wa-pl__list::-webkit-scrollbar {
  display: none;
}

.wa-pl__list:focus-visible {
  outline: 4px solid var(--wa-focus);
  outline-offset: 2px;
}

/* Playlist Item (8:138): Playing = white, Selected = highlighted, Hover */
.wa-pl__item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 6px 12px;
  color: var(--wa-lcd-text);
  white-space: nowrap;
  cursor: default;
}

.wa-pl__item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.wa-pl__item[aria-selected='true'] {
  background: rgba(93, 196, 95, 0.18);
}

.wa-pl__item[aria-current='true'] {
  color: var(--wa-lcd-text-active);
}

.wa-pl__title {
  flex: 1 0 0;
  min-width: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 40px/1 var(--wa-font-lcd);
  letter-spacing: 1.6px;
}

.wa-pl__duration {
  flex-shrink: 0;
  font: 24px/1 var(--wa-font-digits);
  text-align: right;
}

.wa-pl__empty {
  padding: 6px 12px;
  font: 32px/1 var(--wa-font-lcd);
  letter-spacing: 1.28px;
  color: var(--wa-lcd-text-dim);
}

/* ---------- Footer ---------- */
.wa-pl__footer {
  display: flex;
  align-items: center;
  gap: 20px;
}

.wa-pl__edit {
  display: flex;
  gap: 20px;
  padding: 8px 0;
}

.wa-pl__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 416px;
  flex-shrink: 0;
}

.wa-pl__total {
  width: 100%;
}

.wa-pl__mini {
  display: flex;
  align-items: center;
  gap: 24px;
}

.wa-pl__elapsed {
  width: 120px;
}

/* Mini Transport (8:146) */
.wa-mini-transport {
  display: flex;
  align-items: center;
  gap: 18px;
}

.wa-mini-btn {
  appearance: none;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: filter 120ms ease;
}

.wa-mini-btn .wa-icon {
  width: 22px;
  height: 22px;
}

.wa-mini-btn:hover {
  filter: brightness(1.25);
}

.wa-mini-btn:active .wa-icon {
  transform: translate(1px, 1px);
}

.wa-mini-btn:focus-visible {
  outline: 3px solid var(--wa-focus);
  outline-offset: 3px;
}

.wa-pl__opts .wa-btn__label {
  line-height: 1;
}

/* Resize Grip (8:159) */
.wa-resize-grip {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 57px;
  height: 58px;
  cursor: ns-resize;
  touch-action: none;
}

.wa-resize-grip .wa-icon__box {
  position: absolute;
  inset: -4.93% 0 0 -5.01%;
}

.wa-resize-grip img {
  display: block;
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .wa-mini-btn {
    transition: none;
  }
}
