* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
body {
    background: #000;
    font-family: Arial, Helvetica, sans-serif;
}
.playlist-wrapper {
    width: 100vw;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.playlist-wrapper::-webkit-scrollbar {
    display: none;
}
.playlist-container {
    display: flex;
    height: 100vh;
    width: max-content;
    align-items: stretch;
}
.playlist-card {
    --card-width: 460px;
    position: relative;
    flex: 0 0 var(--card-width);
    width: var(--card-width);
    height: 100vh;
    margin-left: calc(var(--card-width) * -0.25);
    overflow: hidden;
    background-image:
            linear-gradient(
                    to top,
                    rgba(0, 0, 0, 0.88),
                    rgba(0, 0, 0, 0.12) 65%,
                    rgba(0, 0, 0, 0.05)
            ),
            var(--playlist-image);
    background-position: center;
    background-size: cover;
    clip-path: polygon(
            25% 0,
            100% 0,
            75% 100%,
            0 100%
    );
    cursor: pointer;
    transform: scale(1);
    transform-origin: center;
    filter: grayscale(0.25);
    z-index: 1;
    transition:
            transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
            filter 0.45s ease;
}
.playlist-card:first-child {
    margin-left: 0;
}
.playlist-card:hover,
.playlist-card.active {
    transform: scale(1.06);
    filter: grayscale(0);
    z-index: 100;
}
.playlist-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(
                    to top,
                    rgba(0, 0, 0, 0.75),
                    transparent 65%
            );
    pointer-events: none;
}
.playlist-content {
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 30%;
    z-index: 5;
    color: white;
    opacity: 0;
    transform: translateY(25px);
    transition:
            opacity 0.35s ease,
            transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.playlist-card:hover .playlist-content,
.playlist-card.active .playlist-content {
    opacity: 1;
    transform: translateY(0);
}
.playlist-number {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.65);
}
.playlist-content h2 {
    margin-bottom: 12px;
    font-size: 38px;
    line-height: 0.95;
    letter-spacing: -0.05em;
}
.playlist-content p {
    max-width: 240px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}
.playlist-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 220px;
    gap: 8px;
}
.playlist-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition:
            background 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease;
}
.playlist-buttons a:hover {
    background: white;
    color: black;
    transform: translateX(4px);
}
.playlist-container:hover .playlist-card:not(:hover):not(.active) {
    filter: grayscale(0.5) brightness(0.75);
}
@media (max-width: 700px) {
    .playlist-card {
        --card-width: 330px;
    }
    .playlist-content {
        left: 27%;
        right: 15%;
        bottom: 7%;
    }
    .playlist-content h2 {
        font-size: 29px;
    }
    .playlist-content p {
        font-size: 12px;
        max-width: 180px;
    }
    .playlist-buttons {
        max-width: 170px;
    }
    .playlist-card:hover {
        transform: scale(1.035);
    }
}
@media (hover: none) {
    .playlist-card:hover {
        transform: scale(1);
        filter: grayscale(0.25);
    }
    .playlist-card.active {
        transform: scale(1.06);
        filter: grayscale(0);
    }
    .playlist-card:hover .playlist-content {
        opacity: 0;
        transform: translateY(25px);
    }
    .playlist-card.active .playlist-content {
        opacity: 1;
        transform: translateY(0);
    }
}