﻿/* Container for the whole card */
.album-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Force a consistent 16:9 ratio like a video player */
.album-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

    .album-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

/* The dark gradient overlay */
.album-overlay {
    position: absolute;
    inset: 0; /* fills the whole wrapper */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* Show overlay and zoom image on hover */
.album-card:hover .album-overlay {
    opacity: 1;
}

.album-card:hover img {
    transform: scale(1.1);
}

/* Center Play Icon - stays above overlay */
.play-icon-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.album-card:hover .play-icon-center {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.album-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}
