﻿/* Container Layout */
.container {
    width: 100%;
    max-width: 1080px;
    display: flex;
    gap: 20px;
    margin: 20px auto;
    background-color: #f7f7f7; /* Light background color */
    border-radius: 10px; /* Rounded corners for the container */
}

.left-section, .right-section {
    background: #fff;
    padding: 20px; /* More padding for a cleaner look */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); /* Soft, larger shadow for a 3D effect */
    border-radius: 10px; /* Rounded corners for both sections */
}

.left-section {
    flex: 3;
}

.right-section {
    flex: 1;
}

.section-title {
    font-size: 24px; /* Slightly larger font for titles */
    color: #007bff;
    margin-bottom: 20px;
    border-bottom: 3px solid #007bff;
    padding-bottom: 8px;
    font-weight: bold; /* Emphasize titles with bold text */
    letter-spacing: 1px; /* Add some space between letters */
}

/* Playlist and Chart Layout */
.playlist, .chart {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    margin-bottom: 50px;
}

.playlist-item, .chart-item {
    width: calc(33.333% - 90px); /* Increased space between items */
    text-align: center;
    background-color: #fff; /* White background for items */
    border-radius: 10px; /* Rounded corners for items */
    padding: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); /* Soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
}

    .playlist-item img, .chart-item img {
        width: 100%;
        height: 110px; /* Slightly larger image size */
        object-fit: cover; /* Ensure images fill the container */
        border-radius: 8px; /* Rounded corners for images */
        transition: transform 0.3s ease;
    }

.playlist-item-title, .chart-item-title {
    font-size: 10px; /* Slightly larger font */
    color: #333;
    margin-top: 12px;
    font-weight: 600;
    text-transform: uppercase; /* Uppercase text for titles */
    letter-spacing: 1px; /* Add some space between letters */
}

/* Hover Effects */
.playlist-item:hover, .chart-item:hover {
    transform: translateY(-10px); /* Lift items slightly on hover */
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2); /* Larger shadow on hover */
}

.playlist-item img:hover, .chart-item img:hover {
    transform: scale(1.05); /* Slight zoom effect on image */
}

/* Tab Styles */
.tab-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 25px;
    cursor: pointer;
    color: #333;
    font-weight: bold;
    font-size: 16px; /* Slightly larger text */
    border-radius: 20px;
    margin: 0 5px; /* Add space between tabs */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

    .tab:hover {
        background-color: #f0f0f0; /* Lighter background on hover */
    }

    .tab.active {
        background-color: #007bff;
        color: #fff;
        transform: scale(1.05); /* Slight zoom effect when active */
    }

/* Apply overlay for Song Rank 1 */
.song-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
    position: relative; /* Required for absolute positioning */
}

    .song-item .song-rank-overlay {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10; /* Ensure it's on top of the image */
    }

    .song-item .rank-1 {
        font-size: 18px;
        font-weight: bold;
        color: #fff;
        background-color: rgba(0, 123, 255, 0.8); /* Blue background with transparency */
        padding: 5px 10px;
        border-radius: 20%; /* Circle shape */
        position: absolute;
        top: 13px;
        left: 5px; /* Position at the top-left corner */
    }

    .song-item img {
        border-radius: 10px; /* Rounded corners for images */
        position: relative;
    }

.song-info {
    margin-left: 15px;
}

.song-title {
    font-weight: bold;
    font-size: 15px;
    color: #333;
}

.song-artist {
    font-size: 13px;
    color: #777;
}
