/* qqmp3 template - dark fullscreen player, based on _ref_qqmp3/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #2c3e50, #1a1a2e);
    color: #fff;
    height: 100vh;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

a {
    color: #fff;
    text-decoration: none;
}

.title-bar {
    width: 100%;
    height: 30px;
    background: rgba(20, 20, 30, 0.8);
}

.music-player {
    width: 100%;
    height: calc(100% - 30px);
    display: grid;
    grid-template-rows: 1fr 80px;
    grid-template-columns: 1fr 0;
    background-color: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(10px);
}

/* 左侧歌曲列表 */
.song-list-container {
    grid-row: 1;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.list-search {
    padding: 0 15px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-search .search-form {
    flex: 1;
    display: flex;
    min-width: 0;
}

.search-box {
    flex: 1;
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    padding: 8px 15px;
    color: #fff;
    outline: none;
    font-size: 14px;
}

.search-box button {
    background: transparent;
    border: none;
    color: #ccc;
    padding: 0 15px;
    cursor: pointer;
}

.song-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 15px;
    scrollbar-width: thin;
    scrollbar-color: rgba(29, 185, 84, 0.5) rgba(0, 0, 0, 0.1);
}

.song-list::-webkit-scrollbar {
    width: 6px;
}

.song-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.song-list::-webkit-scrollbar-thumb {
    background-color: rgba(29, 185, 84, 0.5);
    border-radius: 3px;
    transition: background-color 0.3s;
}

.song-list::-webkit-scrollbar-thumb:hover {
    background-color: rgba(29, 185, 84, 0.8);
}

.song-list table {
    width: 100%;
    border-collapse: collapse;
}

.song-list th {
    text-align: left;
    padding: 10px 5px;
    font-weight: normal;
    color: #aaa;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.song-list td {
    padding: 12px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.song-list tr td:first-child {
    text-align: center;
}

.song-list tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.song-list tr.active {
    background: rgba(29, 185, 84, 0.2);
}

/* 模板表格单元格 */
.song-list td.idx {
    color: #aaa;
    font-size: 13px;
}

.song-list td a.song-name {
    color: #fff;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-list td a.song-name:hover {
    color: #1db954;
}

.song-list td a.song-name strong {
    color: #1db954;
    font-weight: bold;
}

td.artist-cell a {
    color: #aaa;
    font-size: 14px;
}

td.artist-cell a:hover {
    color: #fff;
}

td.date-cell {
    color: #888;
    font-size: 13px;
    white-space: nowrap;
}

.rank-badge {
    display: inline-block;
    min-width: 22px;
    padding: 2px 5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #aaa;
    font-size: 12px;
    text-align: center;
}

.rank-badge.top3 {
    background: rgba(29, 185, 84, 0.35);
    color: #fff;
}

.icon-btn {
    color: #888;
    font-size: 14px;
    margin-right: 8px;
    transition: color 0.3s;
}

.icon-btn:last-child {
    margin-right: 0;
}

.icon-btn:hover {
    color: #1db954;
}

.favorite-btn {
    color: #888;
    font-size: 14px;
    cursor: default;
}

.favorite-btn .fas.fa-heart {
    color: #ff4757;
}

/* 区块标题 */
.list-section {
    padding: 10px 0 20px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #1db954;
    margin: 5px 0 12px;
    border-bottom: 1px solid rgba(29, 185, 84, 0.3);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

.section-title i {
    font-size: 14px;
}

.section-title .count {
    font-size: 12px;
    color: #aaa;
    font-weight: normal;
    margin-left: auto;
    letter-spacing: 0;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    background: rgba(255, 255, 255, 0.08);
    color: #ccc;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s;
}

.tag-cloud a:hover {
    background: rgba(29, 185, 84, 0.4);
    color: #fff;
}

.no-result {
    text-align: center;
    padding: 40px 10px;
    color: #aaa;
}

.no-result p {
    margin-bottom: 12px;
}

.no-result .list-btn {
    display: inline-flex;
    margin: 5px auto 0;
}

/* 列表按钮组 */
.list-buttons {
    display: flex;
    gap: 10px;
    margin-left: 10px;
}

.list-btn {
    background: rgba(29, 185, 84, 0.2);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.list-btn:hover {
    background: rgba(29, 185, 84, 0.4);
    transform: translateY(-1px);
}

.list-btn i {
    font-size: 14px;
}

.list-btn.active {
    background: rgba(29, 185, 84, 0.6);
}

.list-btn a,
a.list-btn {
    color: #fff;
    text-decoration: none;
}

/* 右侧歌曲详情浮层 */
.song-detail-container {
    width: 100%;
    height: calc(100% - 80px);
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: rgba(23, 25, 37);
    overflow: hidden;
    position: fixed;
    left: 0;
    top: 100vh;
    z-index: 9999;
    transition: all 0.6s;
}

.lyrics-off {
    width: 22px;
    height: 22px;
    position: absolute;
    top: 0;
    right: 30px;
    cursor: pointer;
}

.song-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}

.album-cover {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    background: #000;
}

.song-text h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.song-text p {
    color: #aaa;
    margin: 5px 0;
    font-size: 16px;
}

.song-lyrics {
    flex: 1;
    overflow-y: auto;
    text-align: center;
    padding: 20px 0;
    scroll-behavior: smooth;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(29, 185, 84, 0.5) rgba(0, 0, 0, 0.1);
}

.song-lyrics::-webkit-scrollbar {
    width: 6px;
}

.song-lyrics::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.song-lyrics::-webkit-scrollbar-thumb {
    background-color: rgba(29, 185, 84, 0.5);
    border-radius: 3px;
    transition: background-color 0.3s;
}

.song-lyrics::-webkit-scrollbar-thumb:hover {
    background-color: rgba(29, 185, 84, 0.8);
}

.song-lyrics p,
.lyrics-line {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    font-size: 16px;
    line-height: 1.4;
    padding: 3px 10px;
    border-radius: 4px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.95);
    opacity: 0.7;
}

.song-lyrics p:hover {
    color: #fff;
    opacity: 1;
    transform: scale(1);
}

.lyrics-line.highlight {
    color: #fff;
    font-weight: bold;
    background-color: rgba(29, 185, 84, 0.2);
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.3);
    transform: scale(1);
    opacity: 1;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

.song-lyrics::before,
.song-lyrics::after {
    content: '';
    position: sticky;
    left: 0;
    right: 0;
    height: 50px;
    pointer-events: none;
    z-index: 1;
}

.song-lyrics::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(20, 20, 30, 0.9), transparent);
}

.song-lyrics::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(20, 20, 30, 0.9), transparent);
}

.no-lyrics {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-top: 50px;
}

/* 底部播放控制栏 */
.player-controls {
    grid-row: 2;
    grid-column: 1 / span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 20px 0;
    background: rgba(20, 20, 30, 0.9);
    position: relative;
    z-index: 99999;
}

.control-song-info {
    width: 300px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 30px;
    cursor: pointer;
}

.control-song-info .album-cover {
    width: 50px;
    height: 50px;
    background: #000;
    border: none;
    border-radius: 10px;
    margin-bottom: 0;
}

.control-song-info .song-text {
    flex: 1;
    min-width: 0;
}

.control-song-info .song-text .current-song-title {
    font-size: 15px;
    line-height: 1;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.control-song-info .song-text .current-song-artist {
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.control-middle {
    display: flex;
}

.control-right {
    display: flex;
    align-items: center;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-buttons button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.control-buttons button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.control-buttons #play-btn {
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    color: #aaa;
    font-size: 12px;
}

.progress-bar {
    width: 100%;
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: absolute;
    left: 0;
    top: 0;
}

.progress-bar:hover {
    background: rgba(255, 255, 255, 0.2);
}

.progress {
    height: 100%;
    background: #1db954;
    border-radius: 2px;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -3px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.progress-bar:hover .progress::after {
    opacity: 1;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.volume-slider {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
}

.volume-progress {
    height: 100%;
    width: 70%;
    background: #1db954;
    border-radius: 2px;
    position: relative;
}

#volume-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    font-size: 15px;
    transition: all 0.3s ease;
}

#volume-btn:hover {
    transform: scale(1.1);
}

.lyrics-button {
    margin-left: 10px;
}

.lyrics-button button {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lyrics-button button:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* APlayer 深色皮肤 */
#qqplayer {
    max-width: 420px;
    width: 100%;
    margin: 0 auto 20px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.aplayer {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    color: #fff;
}

.aplayer .aplayer-info .aplayer-music .aplayer-title {
    color: #fff;
}

.aplayer .aplayer-info .aplayer-music .aplayer-author {
    color: #aaa;
}

.aplayer .aplayer-bar-wrap .aplayer-bar {
    background: rgba(255, 255, 255, 0.12);
}

.aplayer .aplayer-bar-wrap .aplayer-bar .aplayer-played {
    background: #1db954;
}

.aplayer .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb {
    border-color: #1db954;
}

.aplayer .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb:hover {
    background: #1db954;
}

.aplayer .aplayer-info .aplayer-controller .aplayer-time {
    color: #aaa;
}

.aplayer .aplayer-info .aplayer-controller .aplayer-time i {
    color: #aaa;
}

.aplayer .aplayer-volume-bar {
    background: rgba(255, 255, 255, 0.12);
}

.aplayer .aplayer-volume-bar .aplayer-volume {
    background: #1db954;
}

.aplayer .aplayer-pic img {
    object-fit: cover;
}

/* 响应式布局 */
@media screen and (max-width: 1320px) {
    .song-list td {
        padding: 6px 5px;
        font-size: 15px;
    }
}

@media screen and (max-width: 1200px) {
    .album-cover {
        width: 180px;
        height: 180px;
    }

    .song-text h2 {
        font-size: 20px;
    }
}

@media screen and (max-width: 992px) {
    .album-cover {
        width: 150px;
        height: 150px;
    }

    .song-text h2 {
        font-size: 18px;
    }

    .lyrics-line {
        font-size: 13px;
    }
}

@media screen and (max-width: 768px) {
    .title-bar {
        display: none;
    }

    .music-player {
        height: 100%;
    }

    .song-detail-container {
        grid-row: 2;
        grid-column: 1;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .song-list-container {
        grid-row: 1;
        grid-column: 1;
        border-right: none;
    }

    .player-controls {
        grid-row: 3;
        grid-column: 1;
        padding: 0 15px;
    }

    .player-controls .control-song-info {
        display: none;
    }

    .album-cover {
        width: 120px;
        height: 120px;
    }

    .song-info {
        margin-bottom: 15px;
    }

    .song-lyrics {
        padding: 10px 0;
    }

    .list-buttons {
        flex-wrap: wrap;
        gap: 5px;
        margin-left: 0;
        margin-top: 10px;
    }

    .list-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media screen and (max-width: 576px) {
    body {
        font-size: 13px;
    }

    .music-player {
        display: block;
        height: 100vh;
    }

    .song-list-container {
        height: calc(100% - 70px);
        display: flex;
        flex-direction: column;
    }

    .list-search {
        padding: 10px;
        display: block;
    }

    .song-detail-container {
        height: calc(100% - 70px);
        padding: 50px 15px 0;
    }

    .player-controls {
        width: 100%;
        height: 70px;
        position: sticky;
        left: 0;
        bottom: 0;
    }

    .player-controls .lyrics-button button {
        width: 18px;
        height: 18px;
    }

    .player-controls .volume-container {
        display: none;
    }

    .lyrics-off {
        width: 18px;
        height: 18px;
        right: 15px;
        top: 13px;
        opacity: 0.8;
        display: none;
    }

    .song-list {
        height: auto;
        flex: 1;
    }

    .song-info {
        margin-bottom: 25px;
        overflow: hidden;
    }

    .song-list td {
        padding: 8px 5px;
        font-size: 13px;
    }

    .album-cover {
        width: 100px;
        height: 100px;
    }

    .song-text h2 {
        font-size: 22px;
    }

    .song-text p {
        font-size: 14px;
    }

    .control-buttons {
        gap: 5px;
    }

    .control-buttons button {
        width: 30px;
        height: 30px;
    }

    .control-buttons #play-btn {
        width: 45px;
        height: 45px;
    }

    .progress-container {
        padding: 0 10px;
    }

    .volume-slider {
        display: none;
    }

    #qqplayer {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 460px) {
    .album-cover {
        width: 220px;
        height: 220px;
    }

    .lyrics-line {
        font-size: 16px;
        padding: 2px 5px;
    }

    .control-buttons #play-btn {
        width: 40px;
        height: 40px;
    }

    .volume-container {
        padding: 0 5px;
    }
}

@media screen and (max-height: 600px) and (orientation: landscape) {
    .album-cover {
        width: 100px;
        height: 100px;
        margin-bottom: 10px;
    }

    .song-info {
        margin-bottom: 10px;
    }

    .song-text h2 {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .song-text p {
        margin: 2px 0;
    }

    .lyrics-line {
        margin: 4px 0;
    }

    .player-controls {
        height: 60px;
    }
}
