.playlists-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.playlists-page, .playlists-tags-page, .playlist-view {
    background: #fff;
    padding: 20px; 
}

.playlists-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.playlists-actions .btn {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

 
.playlists-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.search-container {
    position: relative;
    flex: 1;
}

#playlist-search {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-result-item {
    display: flex;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
}

.search-result-info h4 {
    margin: 0;
    font-size: 14px;
}

.search-result-meta {
    font-size: 12px;
    color: #666;
}

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

.playlist-item {
   
    border-radius: 4px;
    overflow: hidden;
}

.playlist-image {
    position: relative;
}

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

.playlist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
    padding: 10px;
}

.playlist-stats {
    color: white;
    font-size: 12px;
}

.playlist-content {
    padding: 15px;
}

.playlist-title a {
    color: #333;
    text-decoration: none;
}

.playlist-title a:hover {
    color: #007bff;
}

.playlist-description {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

.playlist-tags .tag-link {
    color: #007bff;
    text-decoration: none;
    margin-right: 5px;
}

.playlist-meta {
    font-size: 12px;
    color: #666;
    margin: 10px 0;
}

.playlist-actions {
    display: flex;
    gap: 10px;
}

.btn-like, .btn-dislike, .btn-favorite {
    padding: 5px 10px;
    border: none;
    cursor: pointer;
}

.btn-like:hover, .btn-dislike:hover, .btn-favorite:hover {
    opacity: 0.8;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination-link, .pagination-current {
    padding: 8px 12px;
    margin: 0 5px;
    text-decoration: none;
    color: #007bff;
}

.pagination-current {
    background: #007bff;
    color: white;
    border-radius: 4px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background: white;
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 5px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close {
    cursor: pointer;
    font-size: 24px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tags-container {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.tag-item {
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.tag-remove {
    cursor: pointer;
    margin-left: 5px;
}

.image-preview img {
    max-width: 100%;
    margin-top: 10px;
}

.form-actions {
    display: flex;
    gap: 10px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    border-radius: 4px;
    color: white;
    z-index: 1000;
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.playlists-list .playlist-select {
    display: flex;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.playlists-list .playlist-select:hover {
    background: #f5f5f5;
}

.playlists-list img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
}