/* =========================================
   ROOT CONTAINER
   ========================================= 

.ptah-audio-controller {
  max-width: 272px;
  background: #1111114a;
  color: #fff;
  border-radius: 14px;
  padding: 14px;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
*/

/* =========================================
   ROOT CONTAINER
   ========================================= */

.ptah-audio-controller {
    max-width: 330px;
    background: #00000042;
    color: #fff;
    border-radius: 4px;
    padding: 14px;
    box-sizing: border-box;
    box-shadow: 1px 1px 5px 1px #0000000d;
    margin-left: 30px;
    position: fixed;
    bottom: 3%;
    left: 0%;
    transform: translate(-50%, -50%);
    z-index: 9;
}

/* =========================================
   NOW PLAYING SECTION
   ========================================= */

.pac-now {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pac-art {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: #222;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.pac-meta {
  min-width: 0;
  flex: 1;
  display: none;
}

.pac-title {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pac-sub {
  font-size: 0.8rem;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pac-time {
  font-size: 0.75rem;
  color: #888;
  margin-top: 4px;
}

/* =========================================
   SEEK BAR
   ========================================= */

.pac-seek {
  position: relative;
  height: 5px;
  margin: 12px 0;
  background: #333;
  border-radius: 3px;
  cursor: pointer;
}

.pac-seek-fill {
  position: absolute;
  height: 100%;
  width: 0%;
  background: #4da3ff;
  border-radius: 3px;
  transition: width 0.1s linear;
}

/* =========================================
   CONTROLS
   ========================================= */

.pac-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pac-controls button {
  appearance: none;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  padding: 0px 5px;
  border-radius: -3px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.pac-controls button:hover {

}
.pac-controls button, .pac-controls [data-ptah-action="toggle"] {
    border: 1px solid!important;
}
.pac-controls button:active {
  transform: scale(0.96);
}

/* Play button highlighted */
.pac-controls [data-ptah-action="toggle"] {

  font-weight: 600;
}

.pac-controls [data-ptah-action="toggle"]:hover {

}

/* Volume control */
.pac-vol {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  font-size: 0.75rem;
  /* color: #bbb; */
}

.pac-vol input[type="range"] {
  width: 90px;
  accent-color: #ffffff;
  cursor: pointer;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 480px) {

  .ptah-audio-controller {
    padding: 12px;
  }

  .pac-art {
    width: 46px;
    height: 46px;
  }

  .pac-controls {
    gap: 6px;
  }

  .pac-controls button {
    padding: 5px 8px;
    font-size: 0.8rem;
  }

  .pac-vol input[type="range"] {
    width: 70px;
  }
}

.pac-now {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pac-art {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: #222;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.pac-meta {
  min-width: 0;
  flex: 1;
}

.pac-title {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pac-sub {
  font-size: 0.8rem;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pac-time {
  font-size: 0.75rem;
  color: #888;
  margin-top: 4px;
}

/* =========================================
   SEEK BAR
   ========================================= */

.pac-seek {
  position: relative;
  height: 5px;
  margin: 12px 0;
  background: #333;
  border-radius: 3px;
  cursor: pointer;
}

.pac-seek-fill {
  position: absolute;
  height: 100%;
  width: 0%;
  background: #4da3ff;
  border-radius: 3px;
  transition: width 0.1s linear;
}

/* =========================================
   CONTROLS
   ========================================= */

.pac-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pac-controls button {
  appearance: none;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.pac-controls button:hover {
}

.pac-controls button:active {
  transform: scale(0.96);
}

/* Play button highlighted */
.pac-controls [data-ptah-action="toggle"] {

  color: #000;
  font-weight: 600;
}

.pac-controls [data-ptah-action="toggle"]:hover {

}

/* Volume control */
.pac-vol {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 0.75rem;
}

.pac-vol input[type="range"] {
  width: 90px;
/*  accent-color: #4da3ff; */
  cursor: pointer;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 480px) {

  .ptah-audio-controller {
    padding: 12px;
  }

  .pac-art {
    width: 46px;
    height: 46px;
  }

  .pac-controls {
    gap: 6px;
  }

  .pac-controls button {
    padding: 5px 8px;
    font-size: 0.8rem;
  }

  .pac-vol input[type="range"] {
    width: 70px;
  }
}