/* ===================================== */
/*         PLAYLISTS PAGE STYLES         */
/* ===================================== */

.playlists-page {
    padding: 20px 40px 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease;
}

.page-title {
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 40px 0;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.playlists-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--text-main);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.playlist-card {
    position: relative;
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.03);
    animation: cardAppear 0.4s ease;
}

.playlist-card:hover {
    transform: translateY(-8px);
    background: rgba(255,215,0,0.05);
    border-color: rgba(255,215,0,0.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.playlist-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--accent);
    background: linear-gradient(135deg, #333, #111);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.playlist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-info {
    text-align: center;
}

.playlist-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-meta {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.playlist-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.playlist-badge.public {
    color: #4ade80;
}

.playlist-badge.private {
    color: var(--accent);
}

.playlist-menu-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 2;
}

.playlist-card:hover .playlist-menu-btn {
    opacity: 1;
}

.playlist-menu-btn:hover {
    background: var(--accent);
    color: #000;
    transform: scale(1.1);
}

.playlist-like-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
}

.playlist-like-btn.active {
    background: #ff4b4b;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    border: 1px dashed rgba(255,255,255,0.05);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #fff;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-dim);
    margin: 0 0 20px 0;
}

.create-playlist-btn {
    background: linear-gradient(135deg, var(--accent), #ffaa00);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 5px 15px rgba(255,215,0,0.3);
}

.create-playlist-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,215,0,0.5);
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптив */
@media (max-width: 1024px) {
    .playlists-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .playlists-page {
        padding: 15px 20px 80px;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .playlists-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .playlist-card {
        padding: 15px;
    }

    .playlist-cover {
        font-size: 36px;
    }

    .playlist-name {
        font-size: 14px;
    }

    .playlist-meta {
        font-size: 11px;
    }

    .playlist-menu-btn {
        opacity: 1;
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .playlists-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }

    .playlist-card {
        padding: 12px;
    }

    .playlist-cover {
        font-size: 30px;
    }

    .playlist-name {
        font-size: 13px;
    }
}