*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #121212;
    color: #fff;
    font-family: 'Noto Sans SC',Arial, sans-serif;
    
}

/* Header 样式 */
.header {
    width: 100%;
    background-color: #121212;
    margin:20px auto 40px;
    padding:40px 0;
    border-bottom: 1px solid #222;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow-x: hidden;
}


.logo img {
    height: 28px;
    display: block;
    max-width: 100%;
}

/* nav 样式 */
.nav {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}

.nav a {
    color: #1db954;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    white-space: nowrap;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.playlist {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 10px;
    text-align: left;
    white-space: nowrap;
}
th {
    border-bottom: 1px solid #222;
    font-size: 14px;
    font-weight:400;
}
td {
    font-size: 14px;
    border-bottom: 1px solid #222;
}

.album-cover-container {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 3px;
    overflow: hidden;
    margin-right: 10px;
}
.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}
.album-cover-container:hover .album-cover {
    filter: blur(3px) brightness(0.5);
}
.album-cover-container:hover .popularity-overlay {
    opacity: 1;
}
.popularity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.song-info {
    display: flex;
    align-items: center;
}
.song-info img {
    margin-right: 10px;
}
.song-details {
    display: flex;
    flex-direction: column;
}
.song-name {
    font-weight: bold;
    color: #1db954;
}
.song-name a {
    color: inherit;
    text-decoration: none;
}
.song-name a:hover {
    text-decoration: underline;
}
.singer-name, .album-name {
    color: #b3b3b3;
}
.relative-time, .track-duration {
    color: #b3b3b3;
}

.taste-analysis {
    background-color: #1e1e1e;
    margin-top: 40px;
    padding: 20px;

}
.taste-analysis h2 {
    color: #1db954;
    font-size: 18px;
    margin-top:12px;
    padding:0;
}
.taste-analysis p {
    font-size: 15px;
    color: #b3b3b3;
    margin: 6px 0;
}

.taste-analysis p strong {
    color: #1db954;
    font-weight: 600;
}

.melody img{
    width:100%;
    border-radius:4px;        
}


::selection {
    background: #1db954;
    color: #fff
}

/* Footer 样式 */
.footer {
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #b3b3b3;
    padding: 20px  0;
    margin-top: 40px;
}
.footer a {
    color: #1db954;
    text-decoration: none;
}

/* 响应式：移动端适配 */
@media (max-width: 768px) {
    th, td {
        display: none;
    }
    th:nth-child(2), td:nth-child(2),
    th:nth-child(4), td:nth-child(4) {
        display: table-cell;
    }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 12px;
    }

    .nav {
        gap: 12px;
        flex-wrap: nowrap;
    }

    .nav a {
        font-size: 14px;
    }
}
