*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    margin: 0 auto;
    max-width: 800px;
}

.home {
    left: 20px;
    top: 20px;
    width: fit-content;
    color: black;
}

.home:hover {
    opacity: 0.6;
}

#banner {
    width: 100%;
    height: auto;
    margin-top: -20px;
}

#singerName {
    text-align: center;
    margin-top: 20px;
    font-size: 24px;
}

#container {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.tabs {
    width: 100%;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #ccc;
    text-align: center;
}

.tab {
    padding: 5px 10px;
    /* Adjusted padding to reduce height */
    width: 100px;
    margin-right: 10px;
    cursor: pointer;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    transition: background-color 0.3s, color 0.3s;
}

.tab:hover {
    background-color: #d0d0d0;
}

.tab.active {
    background-color: #e0e0e0;
    color: #000;
    border-bottom: 1px solid #fff;
    font-weight: bold;
}

.tab-content {
    text-align: center;
    display: none;
    border: 1px solid #ccc;
    margin-top: -20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s;
    width: 100%;
}

.artist-table {
    margin: 0 auto;
    margin-bottom: 30px;
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

#list-table{
    margin: 0 auto;
    margin-bottom: 150px;
    width: fit-content;
    max-width:410px;
    min-width:330px;
    border-collapse: collapse;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* 阴影样式 */
    z-index: 5;
}

h4 {
    margin-top: -25px;
}

th,
td {
    padding: 10px;
    text-align: left;
    text-align: center;
    border-bottom: 1px solid #ddd;
    width: 60px;
}

th {
    background-color: #ffffff;
}

tr:nth-child(even) {
    background-color: #e1f5fe;
}

td:first-child {
    width: 50px;
}

td a {
    color: #477bdd;
}

.imga {
    font-size: 18px;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

#bio {
    width: 100%;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.imgInForm {
    width: 70px;
    height: 70px;
}

/* ---------------------------------------------*/

.artist-info {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: fit-content;
    min-width:400px;
    margin: 20px auto 0 auto;
    display: flex;
    align-items: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* 阴影样式 */
}

.artist-info img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    margin-right: 20px;
}
.artist-details {
    flex-grow: 1;
}
.artist-details h2 {
    margin-top: 0;
}
.artist-details p {
    margin: 5px 0;
}

#player{
    position: relative;
    left:calc(50% - 200px);
    width:400px;
}
/* 歌曲信息模块 */
#player-content1{
    position: absolute;
    top:0px;
    left:15px;
    width:400px;
    height:90px;
    padding:0 20px 0 130px;
    background: rgb(209, 226, 245);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    /* transition过渡动画：设置top属性过渡，过渡时间0.3s,速度曲线为ease(逐渐变慢) */
    transition:top 0.3s ease; 
}
#player-content1.active{
    top:-85px;
}
.music-name,
.artist-name{
    height: 20px;
    margin-top:5px;
    font-size:14px;
}
.artist-name{
    font-size:12px;
    color: #656565
}
.time{
    font-size:12px;
    height:15px;
    margin: 5px 0;
}
.current-time{
    float: left;
}
.total-time{
    float: right;
}
.current-time,.total-time{
    color: transparent;
    font-size: 11px;
    background-color: #e8f5ff;
    border-radius: 10px;
    transition: 0.3s ease all;
}
.time.active .current-time, .time.active .total-time{
    color: rgb(54, 127, 196);
    background-color: transparent;
}


#s-area, #seek-bar{
    position: relative;
    height: 4px;
    border-radius: 4px;
}

#s-area{
    background-color:#e8f5ff;
    cursor: pointer;
}

#ins-time{
    position: absolute;
    top: -29px;
    color: #fff;
    font-size: 12px;
    white-space: pre;
    padding: 5px 6px;
    border-radius: 4px;
	display:none;
}

#s-hover{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    opacity: 0.2;
    z-index: 2;
}

#ins-time, #s-hover{
    background-color: #4b4d5c;
}

#seek-bar{
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    background-color: rgb(54, 127, 196);
    transition: 0.2s ease width;
}

#player-content2{
    position: relative;
    width:430px;
    height:90px;
    
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px #656565;
}
/* 左侧封面图模块 */
.music-imgs{
    position: absolute;
    top: -40px;
    width: 100px;
    height: 100px;
    margin-left: 30px;
    -webkit-transform: rotateZ(0);
    transform: rotateZ(0);
    transition: 0.3s ease all;
    box-shadow: 0 0 0 10px #fff;
    border-radius: 50%;
    overflow: hidden;
}
/* 左侧封面图模块添加了active类名 */
.music-imgs.active{
    top: -50px;
    box-shadow: 0 0 0 4px #e8f5ff, 0 30px 50px -15px #afb7c1;
}
.music-imgs:before{
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    width: 20px;
    height: 20px;
    margin: -10px auto 0 auto;
    background-color: #d6dee7;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px #fff;
    z-index: 2;
}
/* 左侧封面图模块下的 图片div */
.music-imgs .img{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* 封面图模块添加了active类名后，图片div的样式添加 */
.music-imgs.active .img{
    z-index: 1;
    -webkit-animation: rotateAlbumArt 3s linear 0s infinite forwards;
            animation: rotateAlbumArt 3s linear 0s infinite forwards;
}
@-webkit-keyframes rotateAlbumArt
{
    0%{ -webkit-transform: rotateZ(0); transform: rotateZ(0); }
    100%{ -webkit-transform: rotateZ(360deg); transform: rotateZ(360deg); }
}

@keyframes rotateAlbumArt
{
    0%{ -webkit-transform: rotateZ(0); transform: rotateZ(0); }
    100%{ -webkit-transform: rotateZ(360deg); transform: rotateZ(360deg); }
}
#buffer-box
{
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 13px;
    color: #1f1f1f;
    font-size: 13px;
    font-family: Helvetica;
    text-align: center;
    font-weight: bold;
    line-height: 1;
    padding: 6px;
    margin: -12px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.19);
    opacity: 0;
    z-index: 2;
}

.music-imgs .img, #buffer-box
{
    transition: 0.1s linear all;
}

.music-imgs.buffering .img
{
    opacity: 0.25;
}

.music-imgs.buffering .img.active
{
    opacity: 0.8;
    filter: blur(2px);
    -webkit-filter: blur(2px);
}

.music-imgs.buffering #buffer-box
{
    opacity: 1;
}

.player-controls{
    position: absolute;
    top:20px;
    left:170px;
}
.player-controls .btn{
    float: left;
    width:60px;
    height:60px;
    line-height: 60px;
    font-size:28px;
    color:#D6DEE7;
    cursor: pointer;
}

@media screen and (max-width: 600px) {
    .tab,
    .tab-content,
    #bio {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .tabs {
        margin: 20px auto;
        width: 80%;
    }
    .artist-info img{
        width:130px;
        height:130px;
    }
    .artist-info{
        width:100%;
    }
    #player{
        margin:0 auto;
        width:calc(100% - 30px);
    }
    #player-content1{
        width:calc(100% - 30px);
    }
    #player-content2{
        width:100%;
    }
    .player-controls .btn{
        font-size: 20px;
        width:45px;
        height:45px;
        line-height: 45px;
    }
}