* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: transparent;
    color: #ffffff;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.chart-widget {
    width: min(520px, 100vw);
    max-height: 100vh;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(7, 10, 24, .82), rgba(24, 9, 31, .76));
    box-shadow: 0 18px 48px rgba(0, 0, 0, .34), inset 0 0 0 1px rgba(255, 255, 255, .06);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

body[data-theme="transparent"] .chart-widget {
    background: linear-gradient(135deg, rgba(7, 10, 24, .58), rgba(24, 9, 31, .52));
}

body[data-theme="clean"] .chart-widget {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .75);
}

.chart-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.chart-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid rgba(255, 79, 195, .58);
    border-radius: 8px;
    background: rgba(255, 79, 195, .16);
    color: #ffd8f3;
    font-size: 12px;
    font-weight: 900;
}

.chart-head h1 {
    margin: 7px 0 0;
    font-size: 34px;
    line-height: 1;
    letter-spacing: 0;
}

.chart-head time {
    color: #b9cae7;
    font-size: 12px;
    font-weight: 800;
}

.song-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: calc(100vh - 106px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.top100-list {
    gap: 6px;
}

.song-list li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.top100-list li {
    min-height: 42px;
    padding: 6px 9px;
}

.song-list li:nth-child(1) {
    border-color: rgba(255, 214, 107, .58);
    background: rgba(255, 214, 107, .16);
}

.rank {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff3eb8, #21c8ff);
    color: #ffffff;
    font-weight: 900;
}

.top100-list .rank {
    width: 32px;
    height: 30px;
}

.song {
    min-width: 0;
}

.song strong,
.song span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song strong {
    font-size: 16px;
}

.top100-list .song strong {
    font-size: 14px;
}

.song span {
    margin-top: 3px;
    color: #c7d6ec;
    font-size: 13px;
}

.top100-list .song span {
    font-size: 12px;
}

.empty {
    grid-template-columns: 1fr !important;
    color: #c7d6ec;
}

.is-error {
    outline: 2px solid rgba(255, 79, 79, .5);
}
