
/* khai báo biến define để sao gọi tên dùng cho nhanh */
:root {
    --white-color: #fff;
    --black-color: #000;
    --text-color: #333;
    --primary-color: #ED2B91;
    --sub-color: #6A39AF;
    
    --header-color-0: #37075d;
    --header-color-1: #282828;
    --header-color-2: #061D50;
    --header-color-3: #E7DFDD;
    --header-color-4: #B2D8DB;
    --header-color-5: #F9DBDB;
    --header-color-6: #BAB8C3;
    --header-color-7: #FFFFFF;

    --option-color-0: #816399;
    --option-color-1: #787878;
    --option-color-2: #637191;
    --option-color-3: #E5E2E0;
    --option-color-4: #D9ECEE;
    --option-color-5: #EEE0DC;
    --option-color-6: #C9C8CF;
    --option-color-7: #FFFFFF;

    --sidebar-bg: rgba(255, 255, 255, 0.05);
    --active-color: rgba(255, 255, 255, 0.1);
    --blur-color: rgba(255, 255, 255, 0.5);

    --side-padding: 28px;
    --next-song-width: 329px;
    --next-song-width-laptop: 250px;
    --sidebar-width: 240px;
    --music-control-height: 90px;
    --header-height: 70px;
    --search-width: 540px;
    --search-height: 40px;
    --profile-height: 180px;
}

.hover:hover {
    opacity: 0.8;
    cursor: pointer;
}

.hiden {
    display: none;
}

.white-color {
    color: #fff;
}

/* seleter * apply tất cả css lên tất cả phần tử html */
* {
    /* có tính chất kế thừa thẻ cha, cứ ghi vào đây sau giải thích */
    box-sizing: inherit;
}

html {
    /* font-size 62.5% thì sai 1 rem = 10px */
    font-size: 62.5%;
    /* đặt chiều cao chữ cho all page, chữ nào chiều cao khác set sau */
    line-height: 1.6rem;
    font-family: 'Roboto', sans-serif;
    /* box-sizing: để không bị độn chiều cao box khi padding */
    box-sizing: border-box;
}

span {
    display: block;
}

/* ul */
ul {
    list-style: none;
    padding-left: 0;
}

/* -- css Scroll-Bar --  */
/* width */
::-webkit-scrollbar {
    width: 4px;
}
  
/* background */
::-webkit-scrollbar-track {
    background: transparent; 
}

/* scrollBar */
::-webkit-scrollbar-thumb {
    background: transparent; 
}

/* scrollBar on hover */
::-webkit-scrollbar-thumb:hover {
    background: #7b47a5;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

/* button */
.btn {
    height: 28px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-weight: 300;
    cursor: pointer;
    text-transform: uppercase;
    margin-left: 14px;
}

.btn:hover {
    opacity: 0.8;
}

/* more-list */
.more-list {
    display: flex;
    align-items: center;
    cursor: pointer;
    transform: translateX(-20px);
    opacity: 0;
    transition: all linear 0.35s;
}

.more-list:hover i,
.more-list:hover span{
    color: var(--primary-color);
}

.more-list span {
    display: block;
    font-size: 1.4rem;
    font-weight: 400;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    padding-right: 8px;
}

.more-list i {
    font-size: 1.4rem;
    margin-top: -2px;
}

/* song item */
.songs-list {
    /* list-style: none; */
    padding-left: 0;
}

.songs-item {
    height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px;
    padding-left: 10px;
    padding-right: 10px;
    border-bottom: 1px solid var(--active-color);
}

.songs-item:active {
    opacity: 0.8;
}

.songs-item-left-img .songs-item-left-img-playbtn {
    font-size: 1.5rem;
    color: #fff;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    cursor: pointer;
    display: none;
}

.songs-item-left-img-playing-box {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    border-radius: 4px;
}

.songs-item-left-img-playing {
    margin: auto;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* không hover khi bài nhạc đang chạy */
.songs-item:hover:not(.songs-item-playing--active-onplay) .songs-item-left-img-playbtn {
    display: flex;
}

.songs-item-left-img-playbtn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.songs-item-playbtn--active .songs-item-left-img-playbtn {
    display: flex;
}

.songs-item-playing--active-onplay .songs-item-left-img-playing-box {
    display: flex;
}

.songs-item-playing--active-onplay .songs-item-left-img-playbtn {
    display: none;
}
    
.songs-item:hover .songs-item-right-mv,
.songs-item:hover .songs-item-right-lyric,
.songs-item:hover .songs-item-right-more{
    display: block;
}

.songs-item:hover .songs-item-right-duration{
    display: none;
}

.songs-item:hover {
    background-color: var(--active-color);
}

.songs-item.songs-item--active {
    background-color: var(--active-color);
}

.songs-item-left {
    display: flex;
    align-items: center;
}

.songs-item-left-img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
}

.songs-item-left-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 10px;
    width: 300px;
}

.songs-item-left-body-name {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 500;
    padding: 0;
    margin: 0;
    padding-bottom: 5px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    cursor: default;
}

.songs-item-left-body-singer {
    font-size: 1.2rem;
    font-weight: 500;
    padding-top: 5px;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.5);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    cursor: default;
}

.songs-item-center {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    width: 300px;
    cursor: default;
}

.songs-item-center span{
    cursor: default;
    white-space: nowrap;
}

.songs-item-right {
    display: flex;
    align-items: center;
    justify-content: right;
    width: 190px;
}

.songs-item-right-tym {
    font-size: 1.5rem;
    padding: 10px 11px;
    color: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.songs-item-right-tym.songs-item-right-tym--active .songs-item-right-tym-first {
    display: none;
}

.songs-item-right-tym.songs-item-right-tym--active .songs-item-right-tym-last {
    display: block;
}

.songs-item-right-tym .songs-item-right-tym-last {
    display: none;
}

.songs-item-right-duration {
    width: 50px;
    color: var(--blur-color);
    font-size: 1.2rem;
    font-weight: 500;
    text-align: right;
}

.songs-item-right-mv,
.songs-item-right-lyric,
.songs-item-right-more {
    color: var(--white-color);
    font-size: 1.4rem;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 7px;
    display: none;
}

.songs-item-right-tym:hover,
.songs-item-right-mv:hover,
.songs-item-right-lyric:hover,
.songs-item-right-more:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.songs-item-right-mv {
    padding : 10px 10px;
}

.songs-item-right-lyric {
    padding : 10px 14px;
}

.songs-item-right-more {
    padding : 9px 11px;
    display: none;
    margin-left: 16px;
    margin-right: -2px;
}



























/* animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* animation for box notify */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(calc(100% + 32px));
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}