/* =========================
   ROOT CONTAINER
   ========================= */

.ptah-audio-player {
  max-width: 720px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #111;
  color: #fff;
  border-radius: 14px;
  padding: 16px;
  box-sizing: border-box;
}

/* =========================
   NOW PLAYING
   ========================= */

.pap-now {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* Album art */
.pap-art {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #222;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pap-art {
  overflow: hidden;
}

/* Subtle animation while playing */
.pap-art.is-playing {
  animation: pap-spin 10s linear infinite;
  box-shadow: 0 0 0 2px rgba(77,163,255,0.35);
  border-radius: 50%;
}

@keyframes pap-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pap-art.is-playing {
    animation: none;
  }
}

/* Track meta */
.pap-meta {
  min-width: 0;
}

.pap-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pap-sub {
  font-size: 0.9rem;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================
   SEEK BAR
   ========================= */

.pap-seek {
  position: relative;
  height: 6px;
  margin: 14px 0;
  border: 1px solid;
  border-radius: 3px;
  cursor: pointer;
}

.pap-seek-fill {
  position: absolute;
  height: 100%;
  width: 0%;
  background: #4da3ff;
  border-radius: 3px;
  transition: width 0.1s linear;
}

/* =========================
   CONTROLS
   ========================= */

.pap-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pap-play {
  appearance: none;
  border: none;
  background: #4da3ff;
  color: #000;
  font-size: 1.1rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px; /* touch-friendly */
}

.pap-play:hover {
  background: #6bb4ff;
}

.pap-time {
  font-size: 0.85rem;
  color: #bbb;
}

.pap-controls {
  flex-wrap: wrap;
}

.pap-volume {
  width: 90px;
}

@media (max-width: 520px) {
  .pap-volume {
    width: 70px;
  }
}

/* =========================
   PLAYLIST
   ========================= */

.pap-playlist {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #222;
}

/* Playlist row */
.pap-playlist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  cursor: pointer;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

/* Hover */
.pap-playlist li:hover {
  background: #1d1d1d;
}

/* Active / playing track */
.pap-playlist li.active {
  color: #4da3ff;
 
}

/* Playlist thumbnail */
.pap-playlist img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
}

/* Subtle indicator when active */
.pap-playlist li.active img {
  outline: 2px solid rgba(0,0,0,0.4);
}

/* Track title */
.pap-track-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
ul.pap-playlist li {
    border: 1px solid #62a2fc;
    margin-bottom: 7px;
}
ul.pap-playlist {
    border-top: 0;
}
ul.pap-playlist li {
    color: #fff;
}
/* =========================
   RESPONSIVE PRIORITY (1–6)
   ========================= */

/* Tablets / small laptops */
@media (max-width: 720px) {
  .ptah-audio-player {
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 520px) {
  .ptah-audio-player {
    padding: 12px;
    border-radius: 10px;
  }

  .pap-art {
    width: 56px;
    height: 56px;
  }

  .pap-title {
    font-size: 0.95rem;
  }

  .pap-sub {
    font-size: 0.8rem;
  }

  .pap-playlist img {
    width: 30px;
    height: 30px;
  }

  .pap-play {
    padding: 8px 12px;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .pap-now {
    gap: 10px;
  }

  .pap-art {
    width: 48px;
    height: 48px;
  }

  .pap-time {
    font-size: 0.75rem;
  }
}

/* =========================
   VISUALISER
   ========================= */
/*
.pap-visualiser {
  display: block;
  width: 100%;
  margin: 8px 0 6px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.04),
    rgba(0,0,0,0.2)
  );
  border-radius: 6px;
}*/

/* Hide if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pap-visualiser {
    display: none;
  }
}
.pap-visualiser {
   /* border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px; */
    padding-left: 1px;
}

/* =========================
   VISUALISER VARIABLES
   ========================= */

.ptah-audio-player {
  --pap-vis-color: #4da3ff;
  --pap-vis-glow: rgba(77, 163, 255, 0.6);
}
