/* public/css/playlist.css */
/* FULL VIEWPORT REFACTOR - All px values converted to vw/vh where applicable */

.playlist-view-wrapper {
  display: flex;
  flex-direction: row;
  height: 100%;
  width: 100%;
  position: relative;
  align-items: center; 
}

#record-carousel-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center; 
  gap: 1vh; 
  min-width: 0;
  padding: 0 clamp(30px, 4.5vw, 60px); 
  transition: transform 0.3s ease-in-out;
}

.record-item {
  position: relative;
  width: clamp(80px, 11vw, 130px);
  height: clamp(80px, 11vw, 130px);
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 0.1vw solid #000;
  box-shadow: 0 0.4vh 0.8vw rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  filter: brightness(0.8);
  overflow: hidden; 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.record-item.featured {
  transform: scale(1.1); 
  box-shadow: 0 0.6vh 1.5vw rgba(0,0,0,0.6), 0 0 1vw 0.2vw var(--color-accent-main);
  z-index: 10;
  filter: brightness(1);
}

.record-item:hover {
  transform: scale(1.15); 
  z-index: 20;
  filter: brightness(1);
}

.record-artist-banner {
    position: absolute;
    top: 0; left: 0; right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: clamp(0.55rem, 0.7vw, 0.8rem);
    font-weight: 600;
    text-align: center;
    padding: 0.2vh 0.4vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 10;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.record-song-banner {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: clamp(0.55rem, 0.7vw, 0.8rem);
    font-weight: 600;
    text-align: center;
    padding: 0.2vh 0.4vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 10;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.record-play-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.5rem, 2vw, 2.5rem);
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.record-item:hover .record-play-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Hide play overlay on non-center tiles - users must scroll to center to play */
.record-item.not-playable:hover .record-play-overlay {
  opacity: 0;
  pointer-events: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: 0.1vw solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: clamp(24px, 3.2vw, 36px);
  height: clamp(24px, 3.2vw, 36px);
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  pointer-events: none;
}

.playlist-view-wrapper:hover .carousel-arrow {
  opacity: 1;
  pointer-events: auto;
}

.carousel-arrow:hover {
  background-color: var(--color-accent-main);
}

.carousel-arrow:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    background-color: rgba(0,0,0,0.5);
}

#carousel-arrow-left { left: 0.5vw; }
#carousel-arrow-right { right: 0.5vw; }
