/* songplay.php में या अलग CSS फाइल में */

/* Artist Songs Section */
.artist-songs-section,
.top-songs-section {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: #3498db;
}

.section-subtitle {
    color: #7f8c8d;
    font-size: 16px;
}

/* Songs Grid */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.song-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.song-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.song-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.song-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.song-card:hover .song-card-image img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.song-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    color: white;
    font-size: 40px;
    background: rgba(52, 152, 219, 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.song-card-info {
    padding: 15px;
}

.song-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    line-height: 1.4;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.song-card-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.meta-tag {
    background: #ecf0f1;
    color: #7f8c8d;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-count {
    color: #7f8c8d;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.song-card-artist {
    color: #3498db;
    font-size: 14px;
    font-weight: 500;
}

.view-all-container {
    text-align: center;
    margin-top: 20px;
}

.view-all-btn {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    color: white;
}

/* Top Songs Section */
.top-songs-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.top-song-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.top-song-item:hover {
    background: #f8f9fa;
}

.top-song-item.top-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
}

.top-song-item.top-2 {
    background: linear-gradient(135deg, #c0c0c0, #e0e0e0);
}

.top-song-item.top-3 {
    background: linear-gradient(135deg, #cd7f32, #e6a85c);
}

.top-song-rank {
    position: relative;
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.rank-number {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.rank-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.top-song-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
}

.top-song-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-song-info {
    flex: 1;
}

.top-song-title {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.top-song-title a {
    color: #2c3e50;
    text-decoration: none;
}

.top-song-title a:hover {
    color: #3498db;
}

.top-song-artist {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.top-song-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #95a5a6;
}

.top-song-actions .play-btn-small {
    background: #3498db;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.top-song-actions .play-btn-small:hover {
    background: #2980b9;
}

/* Artist Top Songs */
.artist-top-songs {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.sub-section-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-section-title i {
    color: #f39c12;
}

.artist-top-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.artist-top-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.artist-top-item:hover {
    background: #e9ecef;
}

.artist-rank {
    background: #3498db;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.artist-top-link {
    flex: 1;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.artist-top-link:hover {
    color: #3498db;
}

.artist-top-views {
    color: #7f8c8d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .song-card-image {
        height: 150px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .top-song-item {
        padding: 10px 15px;
    }
    
    .top-song-image {
        width: 50px;
        height: 50px;
    }
    
    .top-song-title {
        font-size: 14px;
    }
}