.chart-container {
    --chart-white: #ffffff;
}
[data-theme="light"] {
    --chart-song-title: #364469;
    --chart-category-bg-highlight: #ee0033;
    --chart-category-border: #E4E4E499;
    --category-name: #a1a1aa;
    --chart-song-rank: #364469;
    --chart-song-content-title: #364469;
    --chart-song-singer: #71717a;
    --chart-ellipsis-detail-icon: #364469;
    --chart-song-dropdown-bg: #ffffff;
    --chart-song-dropdown-bg-hover: rgba(161, 161, 170, 0.1);
    --chart-song-dropdown-text: #364469;
    --chart-song-dropdown-boxShadow: 0px 2px 32px 0px #00000059;
    --chart-song-detail-ellipsis: url("/images/home/ellipsisIcon.svg") center;
}

[data-theme="dark"] {
    --chart-song-title: #fafafa;
    --chart-category-bg-highlight: rgba(196, 19, 43, 1);
    --chart-category-border: rgba(255, 255, 255, 0.15);
    --category-name: rgba(255, 255, 255, 0.8);
    --chart-song-rank: rgba(252, 252, 252, 1);
    --chart-song-content-title: rgba(252, 252, 252, 1);
    --chart-song-singer: rgba(252, 252, 252, 0.65);
    --chart-ellipsis-detail-icon: rgba(252, 252, 252, 1);
    --chart-song-dropdown-bg: #282828;
    --chart-song-dropdown-bg-hover: rgba(255, 255, 255, 0.1);
    --chart-song-dropdown-text: #ffffff;
    --chart-song-dropdown-boxShadow: 0px 4px 4px 0px #00000040;
    --chart-song-detail-ellipsis: url("/images/home/ellipsisIconDark.svg") center;
}

/* Chart title */
.chart-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.chart-title .chart-title-deco {
    width: 4px;
    height: 22px;
    background-color: #f81539;
    border-radius: 12px;
}

.chart-title .chart-title-text {
    color: var(--chart-song-title);
    font-weight: bold;
    font-size: 32px;
}

/* Chart category */
.chart-category {
    display: grid;
    grid-auto-flow: column;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
}

.chart-category .category-name.category-name-highlight {
    background-color: var(--chart-category-bg-highlight);
    color: var(--chart-white);
    font-weight: 500;
}

.chart-category .category-name {
    font-size: 18px;
    color: var(--category-name);
    padding: 12px 32px;
    border: 1px solid var(--chart-category-border);
    border-radius: 20px;
    font-weight: 400;
}

/* CHART CONTENT LAYOUT */
.chart-container .chart-content {
    display: flex;
    gap: 32px;
}

.chart-content .banner-rank-home{
    width: 408px;
    height: 644px;
    border-radius: 12px;
}

/* Chart content big image */
.chart-content .chart-content-img {
    min-width: 408px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 16.25%, rgba(0, 0, 0, 0.306105) 43.48%, rgba(0, 0, 0, 0.612209) 60.81%, rgba(0, 0, 0, 0.883374) 77.05%, #000000 90.75%), url("/images/home/chartContentImg.jfif") center / cover;
    height: 644px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    border-radius: 12px;
}

.chart-content .chart-content-img .chart-content-img-text {
    color: var(--chart-white);
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 16px;
}

/* Chart content songs list and each song detail */
.chart-content .chart-content-songs {
    display: flex;
    gap: 32px;
    padding: 0;
    width: 100%;
}

.chart-content-songs .content-songs-col1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 16px;
    column-gap: 32px;
    width: 100%;
    height: fit-content;
}

.chart-content-songs .song {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: auto auto auto 1fr ;
    gap: 12px;
    border-bottom: 1px solid rgba(95, 95, 95, 0.1);
    padding: 10px 10px 16px 10px;
}

.song .song-rank {
    min-width: 29px;
    font-weight: 500;
    font-size: 24px;
    line-height: 20px;
    color: var(--chart-song-rank);
    position: relative;
    bottom: 2px;
}

.song .song-img1 {
    min-width: 90px;
    height: 90px;
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.song .song-play-btn-bg {
    border-radius: 71px;
    background-color: rgba(18, 18, 18, 0.5);
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 6px 6px 0;
}

.song .song-play-btn-bg .song-play-btn {
    width: 15px;
    height: 15px;
    background: no-repeat url("/images/home/playIcon.svg");
    background-position: 4px 0px;
}

#rank-song-list-section .song.play-music-controller .icon--playing {
    opacity: 0;
    width: 28px;
    height: 28px;
    background-repeat: no-repeat;
    background-size: 100%;
}

#rank-song-list-section .song.play-music-controller .detail-song-name {
    color: #ee0033;
}

#rank-song-list-section .song.play-music-controller.playing:not(.paused) .icon--playing {
    opacity: 1;
    background-image: url("/images/common-items/playing-gif.gif");
}

#rank-song-list-section .song.play-music-controller.playing.paused .icon--playing {
    opacity: 1;
    background-image: url("/images/common-items/pause-gif-icon.svg");
}

.song .song-content {
    display: flex;
    gap: 4px;
    flex-direction: column;
}

.song-content .song-content-title {
    line-height: 20px;
    font-size: 20px;
    font-weight: 500;
    color: var(--chart-song-content-title);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    /* max-width: 200px; */
    word-break: break-word;
}

.song-content .song-content-singer {
    font-size: 14px;
    font-weight: 500;
    color: var(--chart-song-singer);
    line-height: 20px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    /* max-width: 200px; */
    word-break: break-word;
}

.song .song-content-download {
    display: flex;
    gap: 4px;
    align-items: center;
}
.song-content-download .download-icon {
    width: 10px;
    height: 10px;
    background: url("/images/home/downloadIcon.svg");
}
.song-content-download .download-number {
    font-size: 12px;
    color: #9898a6;
    font-weight: 500;
    position: relative;
    bottom: 2px;
}

.song .song-details-icon {
    min-width: 24px;
    height: 24px;
    background: var(--chart-song-detail-ellipsis);
}

/* STYLING THE CONTENT ON THE RIGHT OF EACH SONG */
.song .song-right-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
}

/* STYLING FOR THE DETAIL DROPDOWN */
.song-details-icon .song-detail-dropdown {
    height: 100%;
}
.song-details-icon .dropdown-toggle {
    height: 100%;
}
.song-detail-dropdown .dropdown-menu {
    display: none;
}

.song-detail-dropdown .dropdown-menu.show {
    display: block;
}
.song-detail-dropdown .dropdown-toggle::after {
    display: none !important;
}
.song-details-icon .dropdown .dropdown-menu {
    padding: 2px 2px 11px 2px;
    border: none;
    box-shadow: var(--chart-song-dropdown-boxShadow);
    border-radius: 4px;
    background-color: var(--chart-song-dropdown-bg);
}
.song-details-icon .dropdown li {
    width: 250px;
    height: 52px;
    padding: 15px 0px 0px 21px;
    border-radius: 4px;
}
.song-details-icon .dropdown li:hover {
    background-color: var(--chart-song-dropdown-bg-hover);
}

.dropdown li.dropdown-item {
    color: var(--chart-song-dropdown-text);
    font-weight: 500;
    font-size: 18px;
    line-height: 21.6px;
    letter-spacing: 0.01em;
}
.dropdown li.dropdown-item:hover {
    background-color: transparent;
}

/* SAME STYLE FOR THE REMAINING SONGS */
.song .song-img2 {
    min-width: 90px;
    height: 90px;
    background: url("/images/home/song2Img.jpg") center / cover;
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.song .song-img3 {
    min-width: 90px;
    height: 90px;
    background: url("/images/home/song3Img.jpg") center / cover;
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}
.song .song-img4 {
    min-width: 90px;
    height: 90px;
    background: url("/images/home/song4Img.jpg") center / cover;
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}
.song .song-img5 {
    min-width: 90px;
    height: 90px;
    background: url("/images/home/song5Img.jpg") center / cover;
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

@media screen and (max-width: 1600px) {
    .chart-content .banner-rank-home{
        width: 300px;
        height: 482px;
    }    
}

@media screen and (max-width: 1400px) {
    .chart-content-songs .content-songs-col1 {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width: 1100px) {
    .chart-content .banner-rank-home{
        width: 200px;
        height: 320px;
    }
}

@media screen and (min-width: 576px) and (max-width: 992px){
    .chart-category .category-name {
        font-size: 16px;
        padding: 6px 16px;
    }
    .chart-category {
        margin-bottom: 16px;
    }
    .chart-content-songs .content-songs-col1 {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .chart-title .chart-title-text {
        font-size: 20px !important;
        line-height: 22px !important;
    }
    .chart-category .category-name {
        font-size: 12px;
        padding: 6px 16px;
    }
    .chart-category {
        gap: 10px;
    }
    .chart-title {
        margin-bottom: 16px;
    }
}