/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Favorites Section */
.favorites-section {
    background: rgba(18, 18, 18, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Section Header */
.section-header {
    margin-bottom: 30px;
}

.section-header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-header h1 i {
    color: #ff4757;
}

.subtitle {
    color: #b3b3b3;
    font-size: 1.1rem;
}

/* Search and Filter Section */
.search-filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #b3b3b3;
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #ff4757;
    background: rgba(255, 255, 255, 0.15);
}

.filter-container {
    display: flex;
    gap: 15px;
}

.filter-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
    background: #ff4757;
    border-color: #ff4757;
}

.filter-btn i {
    font-size: 0.9rem;
}

/* Favorites Categories */
.favorites-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: rgba(255, 71, 87, 0.5);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 71, 87, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    font-size: 1.5rem;
    color: #ff4757;
}

.category-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.count {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff4757;
}

/* Liked Songs Section */
.liked-songs-section {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.subsection-header h2 {
    font-size: 1.8rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.subsection-header h2 i {
    color: #1db954;
}

.play-all-btn {
    padding: 12px 30px;
    background: #1db954;
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.play-all-btn:hover {
    background: #1ed760;
    transform: scale(1.05);
}

/* Songs Table */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    margin-bottom: 25px;
}

.songs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.songs-table thead {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.songs-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    color: #b3b3b3;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.songs-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.songs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.songs-table td {
    padding: 15px;
    color: #e0e0e0;
}

.index-col {
    width: 50px;
    text-align: center;
    color: #b3b3b3;
}

.title-col {
    min-width: 250px;
}

.song-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.song-img img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
}

.song-details h4 {
    font-size: 1.1rem;
    margin-bottom: 3px;
    color: #ffffff;
}

.song-details p {
    font-size: 0.9rem;
    color: #b3b3b3;
}

.album-col {
    min-width: 150px;
}

.date-col, .duration-col {
    min-width: 120px;
}

.action-col {
    width: 100px;
}

.play-btn, .more-btn {
    background: transparent;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.play-btn:hover {
    color: #1db954;
    background: rgba(29, 185, 84, 0.1);
}

.more-btn:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.page-btn.active {
    background: #ff4757;
    border-color: #ff4757;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .favorites-categories {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 992px) {
    .search-filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .filter-container {
        justify-content: flex-end;
    }
    
    .favorites-section {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .section-header h1 {
        font-size: 2rem;
    }
    
    .subsection-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .play-all-btn {
        width: 100%;
        justify-content: center;
    }
    
    .favorites-categories {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .category-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-icon i {
        font-size: 1.8rem;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px;
    }
    
    .favorites-section {
        padding: 15px;
    }
    
    .section-header h1 {
        font-size: 1.8rem;
    }
    
    .favorites-categories {
        grid-template-columns: 1fr;
    }
    
    .song-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .song-details h4 {
        font-size: 1rem;
    }
    
    .song-details p {
        font-size: 0.85rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}