/**
 * Audio Player Styles for Station LP
 * BEM naming convention
 */

/* Image container with overlay */
.playlist-item__image-container {
  position: relative;
  width: 100%;
}

.playlist-item__image-container img {
  display: block;
  width: 100%;
  height: auto;
}

/* Overlay */
.playlist-item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  opacity: 1; /* Always visible */
  pointer-events: auto; /* Always clickable */
  cursor: pointer;
  border-radius: 8px;
}

/* Play button (The Badge) */
.playlist-item__play-button {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(33, 33, 33, 0.9);
  color: #fff;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s ease, background-color 0.2s;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none; /* Allow click to pass to overlay (which covers all) */
}

/* Hover effect for the badge when hovering the container */
.playlist-item__image-container:hover .playlist-item__play-button {
  background-color: #000;
  transform: scale(1.02);
}

.playlist-item__play-button:active {
  transform: scale(0.95);
}

/* .playlist-item__play-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  border-radius: 50%;
} */

/* Material icon */
.playlist-item__icon {
  font-size: 20px;
  color: #ffffff;
  /* text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); */
  user-select: none;
  display: block;
  line-height: 1;
}

.playlist-item__label {
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .playlist-item__play-button {
    bottom: 8px;
    left: 8px;
    padding: 6px 12px;
  }
  .playlist-item__icon {
    font-size: 32px;
  }
  .playlist-item__label {
    font-size: 12px;
  }
}
