:root {
    /* 亮色主题变量 */
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #333333;
    --primary-color: #1db954;
    --primary-color-rgb: 29, 185, 84;
    --secondary-color: #1ed760;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-color: #f8f8f8;
}

[data-theme="dark"] {
    /* 暗色主题变量 */
    --bg-color: #121212;
    --card-bg: #282828;
    --text-color: #ffffff;
    --primary-color: #1db954;
    --primary-color-rgb: 29, 185, 84;
    --secondary-color: #1ed760;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --hover-color: #545454;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", "Helvetica Neue", "Helvetica", sans-serif;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
    padding: 20px;
    align-items: center;
}

/* 主卡片样式 */
.main-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    width: 66.6%;
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 1;
    margin: auto 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    max-height: 74vh;
    overflow-y: auto;
    transform: translateY(0);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 10;
}

.card-header h1 {
    color: var(--primary-color);
    font-size: 20px;
    margin: 0;
}

/* 导航栏样式 */
.main-nav {
    position: sticky;
    background: var(--card-bg);
    z-index: 9;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.main-nav a:hover,
.main-nav li.active a {
    background: var(--primary-color);
    color: white;
}

/* 搜索区域样式 */
.search-area {
    position: sticky;
    top: 85px;
    background: var(--card-bg);
    z-index: 9;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.search-box {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 14px;
}

.search-btn,
.audio-quality-select,
.source-select {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.audio-quality-select,
.source-select {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

/* 内容区域样式 */
.content-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 0;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    width: 100%;
    box-sizing: border-box;
}

/* 显示更多按钮样式 */
.load-more-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 180px;
    box-shadow: 0 4px 8px var(--shadow-color);
}

.load-more-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-color);
}

.load-more-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(2px);
}

.content-area .card {
    max-width: 100%;
    box-sizing: border-box;
}

/* 调整内容区域中的卡片样式以适应flex布局 */
.content-area .card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.content-area::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

/* 播放器卡片样式 */
.player-card {
    width: 66.666%;
    max-width: 1200px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 8px 24px var(--shadow-color);
    padding: 16px;
    margin-bottom: 20px;
    position: relative;
    overflow: visible;
    min-height: 80px;
    display: none;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.player-minimized {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
    z-index: 20;
    position: relative;
}

.expand-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: var(--hover-color);
}

.player-expanded {
    display: none;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.player-expanded .collapse-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.player-expanded .collapse-btn:hover {
    background: var(--hover-color);
}

.song-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
}

.artist-name {
    font-size: 12px;
}

.album-cover {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    display: none;
    transition: all 0.3s ease;
}

.album-cover.visible {
    display: block;
}

.song-details {
    display: flex;
    flex-direction: column;
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.controls button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.controls button:hover {
    background: var(--hover-color);
}

.mv-btn,
.expanded-mv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    height: 34px;
    padding: 0 !important;
    border-radius: 50% ;
    box-sizing: border-box;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.mv-btn span,
.expanded-mv-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 20px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
}
.mv-btn span {
    border: 1px solid currentColor;
}

.mv-btn:hover,
.expanded-mv-btn:hover,
.mv-btn:focus-visible,
.expanded-mv-btn:focus-visible {
    color: var(--primary-color);
}

.mv-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(8, 12, 22, .78);
    backdrop-filter: blur(8px);
}

.mv-modal.is-open {
    display: flex;
}

.mv-modal-content {
    display: flex;
    flex-direction: column;
    width: min(820px, 100%);
    max-height: min(760px, 92vh);
    overflow: hidden;
    background: var(--card-bg, #fff);
    color: var(--text-color, #20242c);
    border: 1px solid var(--border-color, #ddd);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

.mv-modal-header,
.mv-search-bar,
.mv-player-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mv-modal-header {
    justify-content: space-between;
    padding: 18px 20px 12px;
    border-bottom: 1px solid rgba(var(--primary-color-rgb), .12);
}

.mv-modal-header h2 {
    margin: 0;
    font-size: 19px;
    letter-spacing: .01em;
}

.mv-close-btn,
.mv-back-btn,
.mv-search-btn {
    cursor: pointer;
    border: 0;
}

.mv-close-btn {
    background: transparent;
    color: inherit;
    font-size: 18px;
    padding: 6px;
}

.mv-search-bar {
    padding: 14px 20px 16px;
    background: rgba(var(--primary-color-rgb), .035);
}

.mv-search-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 10px;
    background: transparent;
    color: inherit;
}

.mv-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 10px;
    color: #fff;
    background: var(--primary-color, #4d7cff);
}

.mv-list-view,
.mv-player-view {
    min-height: 0;
    overflow: auto;
    padding: 0 18px 18px;
}

.mv-results {
    display: grid;
    gap: 10px;
}

.mv-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 0 2px;
}

.mv-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 8px;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.mv-page-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.mv-page-btn:not(:disabled):hover {
    color: #fff;
    border-color: var(--primary-color, #4d7cff);
    background: var(--primary-color, #4d7cff);
}

.mv-page-info {
    min-width: 56px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary, #777);
}

.mv-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    background: rgba(var(--primary-color-rgb), .025);
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
    color: inherit;
    outline: none;
    min-width: 0;
}

.mv-result-item:hover {
    border-color: rgba(var(--primary-color-rgb), .42);
    background: rgba(var(--primary-color-rgb), .09);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.mv-result-cover {
    width: 76px;
    height: 48px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 7px;
    background: var(--border-color, #ddd);
}

.mv-result-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    margin-left: auto;
    border: 1px solid rgba(var(--primary-color-rgb), .38);
    border-radius: 50%;
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), .08);
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.mv-result-item:focus-visible,
.mv-result-play:hover,
.mv-result-play:focus-visible {
    border-color: rgba(var(--primary-color-rgb), .65);
    outline: 2px solid rgba(var(--primary-color-rgb), .24);
    outline-offset: 2px;
}

.mv-result-play:hover,
.mv-result-play:focus-visible {
    color: #fff;
    background: var(--primary-color);
    transform: translateY(-1px);
}

.mv-result-copy {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.mv-result-title,
.mv-result-artist {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mv-result-title {
    font-weight: 600;
}

.mv-result-artist {
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-secondary, #777);
}

.mv-empty {
    padding: 32px 8px;
    text-align: center;
    color: var(--text-secondary, #777);
}

.mv-player-toolbar {
    justify-content: space-between;
    padding: 0 0 14px;
}

.mv-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 9px;
    background: var(--hover-color, rgba(0, 0, 0, .06));
    color: inherit;
    transition: background .2s ease, color .2s ease;
}

.mv-current-title {
    min-width: 0;
    margin: 0 0 0 auto;
    overflow: hidden;
    color: var(--text-color, #20242c);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mv-back-btn[hidden] {
    display: none;
}

.mv-search-bar .mv-back-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.mv-back-btn:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), .1);
}

.mv-iframe-container {
    aspect-ratio: 16 / 9;
    width: 100%;
    min-height: 300px;
    background: #05070c;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, .24);
    overflow: hidden;
    position: relative;
}

.mv-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: rgba(255, 255, 255, .88);
    background: rgba(5, 7, 12, .92);
    font-size: 13px;
}

.mv-loader-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, .22);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: mvLoaderSpin .75s linear infinite;
}

@keyframes mvLoaderSpin {
    to { transform: rotate(360deg); }
}

.mv-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 600px) {
    .mv-modal {
        padding: 8px;
    }

    .mv-search-bar {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .mv-search-input {
        flex-basis: 100%;
    }

    .mv-search-btn {
        justify-content: center;
        flex: 1;
    }

    .mv-result-item {
        gap: 8px;
        padding: 9px;
    }

    .mv-result-cover {
        width: 62px;
        height: 42px;
    }

    .mv-result-copy {
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .mv-result-title {
        display: -webkit-box;
        overflow: hidden;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .mv-result-play {
        display: inline-flex !important;
        width: 36px;
        height: 36px;
    }

    .mv-iframe-container {
        min-height: 210px;
    }
}

.progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    width: 0;
    pointer-events: none;
}

/* 进度条拖动手柄 */
.progress-handle {
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-left: -7px;
    left: 0%;
    cursor: pointer;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-color);
}

.volume-slider {
    width: 100px;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 1200px) {

    .main-card,
    .player-card {
        width: 80%;
    }
}

@media (max-width: 1000px) {

    .main-card,
    .player-card {
        width: 95%;
        padding: 15px;
    }

    .main-nav {
        position: relative;
        z-index: 9;
    }

    .main-nav ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        overflow-x: visible;
        padding: 6px;
        border: 1px solid rgba(var(--primary-color-rgb), 0.12);
        border-radius: 12px;
        background: rgba(var(--primary-color-rgb), 0.06);
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: flex;
        justify-content: center;
        padding: 8px 5px;
        font-size: 12px;
        white-space: nowrap;
        width: 100%;
        box-sizing: border-box;
        border-radius: 10px;
        border: none;
        background: var(--card-bg);
    }

    .search-box {
        flex-wrap: wrap;
        gap: 5px;
    }

    .search-input {
        width: 100%;
        padding: 6px 12px;
    }

    .audio-quality-select,
    .source-select,
    .search-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .audio-quality-select,
    .source-select {
        flex: 1;
        min-width: 80px;
    }

    .search-btn {
        width: 100%;
    }

    .card-header h1 {
        font-size: 18px;
    }

    .theme-switch {
        transform: scale(0.8);
        margin-right: -10px;
    }

    .player-minimized {
        flex-direction: column;
        gap: 15px;
    }

    .controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .volume-slider {
        width: 100%;
    }

    .content-area {
        padding: 10px;
    }

    .results-container {
        grid-template-columns: 1fr;
    }

    .card {
        height: auto;
        min-height: 100px;
        padding: 10px;
    }

    .card-content h3 {
        font-size: 13px;
    }

    .card-content .artist,
    .card-content .album {
        font-size: 11px;
    }

    .card-actions {
        display: flex;
        gap: 5px;
        justify-content: end;
    }

    .expanded-playlist-btn,
    .expanded-play-mode-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* 针对更小屏幕做额外适配 */
@media (max-width: 480px) {
    .card {
        min-height: 90px;
        padding: 8px;
    }

    .card-content h3 {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .card-content .artist,
    .card-content .album {
        font-size: 10px;
        margin-bottom: 2px;
    }

    .card-actions button {
        width: 24px;
        height: 24px;
    }

    .card-actions {
        gap: 5px;
        margin-top: 5px;
    }

    .history-card .card-actions {
        margin-top: 0;
    }

    .history-count-badge {
        max-width: 42%;
        font-size: 11px;
    }

    .main-card,
    .player-card {
        padding: 10px;
        max-height: 76vh;
    }

    .song-info {
        min-width: auto;
    }

    .album-cover {
        width: 40px;
        height: 40px;
    }

    .song-details {
        font-size: 12px;
    }

    .main-nav ul {
        grid-template-columns: repeat(3, 1fr);
    }

    .main-nav a {
        font-size: 11px;
        padding: 6px 3px;
    }

    .main-nav a i {
        margin-right: 3px;
    }
}

/* 主题切换开关样式 */
.theme-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* 搜索结果卡片样式 */
.card {
    background: var(--hover-color);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    height: 120px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.card-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.card-cover {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.card-text {
    flex: 1;
    min-width: 0;
}

.card.no-cover-card .card-content {
    display: block;
}

.card-content h3 {
    font-size: 14px;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.song-title-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-source-tag {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(var(--primary-color-rgb), 0.12);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.card-content .artist,
.card-content .album {
    font-size: 12px;
    margin: 0 0 3px 0;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.8;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.card-actions {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

.history-card {
    padding-bottom: 12px;
}

.history-card .card-footer {
    justify-content: space-between;
}

.history-count-badge {
    max-width: 45%;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(var(--primary-color-rgb), 0.10);
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.card-actions button {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-actions button:hover {
    background: var(--secondary-color);
}

.expanded-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 20px;
}

.expanded-player {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.expanded-song-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.expanded-song-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.expanded-song-title {
    font-size: 24px;
    font-weight: bold;
}

.expanded-artist-name {
    font-size: 16px;
    color: var(--text-secondary);
}

.expanded-lyrics {
    flex: 1;
    overflow-y: auto;
    background-color: var(--hover-color);
    border-radius: 15px;
    padding: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 加载状态图标 */
.loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
}

.loader-content {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    height: 120px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: loaderFadeIn 0.3s ease-out;
    margin-bottom: 15px;
}

.loader.active {
    display: flex;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin-bottom: 5px;
}

.loader-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    margin-top: 15px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.loader-progress-container {
    width: 200px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    display: none;
    position: relative;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(0, 0, 0, 0.1);
}


.loader-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-hover) 50%, var(--primary-color) 100%);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    position: relative;
    box-shadow:
        0 0 20px rgba(var(--primary-color-rgb), 0.5),
        inset 0 1px 3px rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.loader-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    animation: progress-shine 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loaderFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.loader-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgba(0, 0, 0, 0.9);
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 悬浮提示窗样式 */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 11001;
    max-width: 300px;
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
    text-align: center;
}

.toast.error {
    background: #e74c3c;
}

.toast.success {
    background: #2ecc71;
}

.toast.info {
    background: #3498db;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 待播放列表样式 */
.playlist-container {
    position: fixed;
    top: 30px;
    right: -370px;
    width: 310px;
    height: 90vh;
    background: var(--card-bg);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 11000;
    padding: 20px;
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.playlist-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.playlist-container.show {
    right: 0;
    /* 显示时滑入屏幕 */
}

.playlist-container h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
}

.close-playlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-playlist-btn:hover {
    background: var(--hover-color);
}

.playlist-items {
    overflow-y: auto;
    max-height: calc(100vh - 100px);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.playlist-items::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

/* 返回按钮样式 */
.back-to-playlists-btn,
.back-to-toplist-btn,
.back-to-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: bold;
}

.back-to-playlists-btn i,
.back-to-toplist-btn i,
.back-to-search-btn i {
    font-size: 12px;
}

.back-to-playlists-btn:hover,
.back-to-toplist-btn:hover,
.back-to-search-btn:hover {
    background: var(--secondary-color);
    transform: translateX(-3px);
}

/* 歌单相关样式 */
.playlists-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 15px 0;
    width: 100%;
}

.playlist-card {
    background: var(--hover-color);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    height: 120px;
}

.playlist-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.artist-entry-card {
    cursor: pointer;
}

.artist-detail-panel {
    padding: 18px 0 8px;
}

.artist-detail-header {
    align-self: stretch;
    justify-content: flex-start;
}

.artist-detail-main {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.artist-detail-photo {
    width: 132px;
    height: 132px;
    object-fit: cover;
    border-radius: 8px;
    flex: 0 0 auto;
}

.artist-detail-text {
    min-width: 0;
    flex: 1;
}

.artist-detail-text h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.artist-detail-text p {
    margin: 0 0 12px;
    color: #666;
}

.artist-detail-desc {
    white-space: pre-line;
    line-height: 1.7;
    font-size: 12px;
    color: #333;
}

.artist-detail-desc.collapsed {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.artist-desc-toggle {
    margin-top: 10px;
    border: none;
    background: transparent;
    color: #409eff;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

.playlist-info h3 {
    font-size: 16px;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-info p {
    font-size: 14px;
    margin: 0;
    color: var(--text-secondary);
}

.playlist-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

.playlist-actions button {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.playlist-actions button:hover {
    background: var(--secondary-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    margin-bottom: 15px;
    width: 100%;
    background-color: var(--card-bg);
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px var(--shadow-color);
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--primary-color);
}

.login-tip {
    width: 100%;
    font-size: 14px;
    color: #888;
    margin: -5px 0 12px;
    padding: 0 15px;
    font-weight: normal;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.local-search-input {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
    width: 150px;
    transition: border-color 0.3s ease;
}

.local-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.search-container {
    position: relative;
    display: inline-block;
}

.search-container .local-search-input {
    padding-right: 35px;
    /* 为清除按钮留出空间 */
}

.clear-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    background-color: var(--hover-bg);
    color: var(--text-color);
}

.clear-search-btn:active {
    transform: translateY(-50%) scale(0.95);
}


.create-playlist-btn-main,
.back-to-playlists-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 20px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.create-playlist-btn-main:hover,
.back-to-playlists-btn:hover {
    background: var(--secondary-color);
}

.new-playlist-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-playlist-input-main {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 14px;
}

.confirm-playlist-btn,
.cancel-playlist-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.confirm-playlist-btn {
    background: var(--primary-color);
    color: white;
}

.cancel-playlist-btn {
    background: var(--border-color);
    color: var(--text-color);
}

/* 歌单选择器模态框 */
.playlist-selector-modal,
.playlist-rename-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.playlist-selector-content,
.playlist-rename-content {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 20px;
    width: 90%;
    max-width: 400px;
}

.playlist-selector-content h3,
.playlist-rename-content h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.playlist-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.playlist-list::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.create-playlist {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.new-playlist-input,
.rename-playlist-input {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--card-bg);
    color: var(--text-color);
}

.create-playlist-btn,
.close-playlist-selector,
.confirm-rename-btn,
.cancel-rename-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-playlist-btn,
.confirm-rename-btn {
    background: var(--primary-color);
    color: white;
}

.close-playlist-selector,
.cancel-rename-btn {
    background: var(--border-color);
    color: var(--text-color);
    width: 100%;
}

.playlist-rename-buttons {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.confirm-rename-btn,
.cancel-rename-btn {
    flex: 1;
}

/* 播放列表按钮 */
.playlist-btn,
.play-mode-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.playlist-btn:hover,
.play-mode-btn:hover {
    background: var(--hover-color);
}

.play-mode-btn.active {
    color: var(--primary-color);
}

/* 删除按钮样式 */
.delete-btn,
.delete-playlist-btn {
    background: #e74c3c !important;
}

.delete-btn:hover,
.delete-playlist-btn:hover {
    background: #c0392b !important;
}

/* 歌词交互样式 */
.lyric-line {
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    white-space: normal;
    /* 允许文本换行 */
    word-break: break-word;
    /* 确保长单词可以换行 */
}

.lyric-line:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* 播放项目样式 */
.playlist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.playlist-item:hover {
    background: var(--hover-color);
}

.playlist-item.playing {
    background: var(--primary-color);
    color: white;
}

.playlist-item-info {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.playlist-item-title {
    display: block;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 2px;
}

.playlist-item-artist {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.playlist-item-actions button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.playlist-item-actions button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.empty-playlist {
    text-align: center;
    padding: 20px;
    color: var(--text-color);
    opacity: 0.7;
}

/* 定时器按钮样式 */
.timer-btn,
.expanded-timer-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-btn:hover,
.expanded-timer-btn:hover {
    background: var(--hover-color);
}

.timer-btn.active,
.expanded-timer-btn.active {
    color: var(--primary-color);
    background: var(--hover-color);
}

/* 定时器模态框样式 */
.timer-content {
    max-width: 400px;
    width: 90%;
    position: relative;
}

.timer-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 16px;
    z-index: 10;
}

.timer-close-btn:hover {
    background: var(--hover-color);
    color: var(--primary-color);
}

.timer-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.timer-option {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
}

.timer-option:hover {
    border-color: var(--primary-color);
    background: var(--hover-color);
}

.timer-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.timer-custom {
    margin: 20px 0;
    padding: 15px;
    background: var(--hover-color);
    border-radius: 8px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.timer-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.timer-input-group label {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.timer-input-group input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 14px;
    text-align: center;
}

.timer-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.timer-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.timer-start-btn,
.timer-cancel-btn,
.timer-stop-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.timer-start-btn {
    background: var(--primary-color);
    color: white;
}

.timer-start-btn:hover {
    background: var(--secondary-color);
}

.timer-cancel-btn {
    background: var(--border-color);
    color: var(--text-color);
}

.timer-cancel-btn:hover {
    background: var(--hover-color);
}

.timer-stop-btn {
    background: #e74c3c;
    color: white;
}

.timer-stop-btn:hover {
    background: #c0392b;
}

.timer-status {
    margin-top: 20px;
    padding: 15px;
    background: var(--hover-color);
    border-radius: 8px;
    text-align: center;
}

.timer-countdown {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.timer-countdown.warning {
    color: #e74c3c;
    animation: pulse 1s infinite;
}

.timer-progress-container {
    margin: 15px 0;
}

.timer-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.timer-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 100%;
}

.timer-status-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.timer-edit-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--border-color);
    color: var(--text-color);
}

.timer-edit-btn:hover {
    background: var(--hover-color);
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* 搜索页面样式 */
.search-results {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.search-tip {
    text-align: center;
    padding: 30px;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 16px;
    width: 100%;
    margin-top: 20px;
}

.results-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    padding: 10px;
    box-sizing: border-box;
}

@media (max-width: 1000px) {
    .results-container {
        grid-template-columns: 1fr;
    }

    .results-container.single-column-layout {
        grid-template-columns: 1fr;
    }

    .results-container.search-kuwo-layout {
        grid-template-columns: 1fr;
    }

    .card {
        height: auto;
        min-height: 108px;
    }

    .content-area .card {
        width: 100%;
        max-width: 100%;
    }

    .results-container.search-kuwo-layout .card {
        min-height: 100px;
    }

    .card-content {
        gap: 10px;
    }

    .card-cover {
        width: 52px;
        height: 52px;
        border-radius: 9px;
    }
}

@media (max-width: 480px) {
    .results-container {
        grid-template-columns: 1fr;
    }

    .results-container.single-column-layout {
        grid-template-columns: 1fr;
    }

    .results-container.search-kuwo-layout {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: 96px;
    }

    .content-area .card {
        width: 100%;
        max-width: 100%;
    }

    .results-container.search-kuwo-layout .card {
        min-height: 90px;
    }

    .card-cover {
        width: 46px;
        height: 46px;
        border-radius: 8px;
    }
}

/* 确保返回按钮在歌单页面中可见 */
.back-to-playlists-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9;
}

/* 更新通知样式 */
.update-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 280px;
    animation: slide-in 0.3s ease-out;
}

.update-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.update-content a {
    color: var(--primary-color);
}

.update-content p {
    margin: 0;
    font-size: 14px;
}

.update-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.update-actions button {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.update-now {
    background: var(--primary-color);
    color: white;
}

.update-now:hover {
    background: var(--secondary-color);
}

.update-later {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.update-later:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes slide-in {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 确保所有容器都使用border-box以正确计算宽度 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 确保welcome-section在小屏幕上显示正常 */
.welcome-section {
    width: 100%;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
}

.welcome-section h2 {
    color: var(--primary-color);
}

.banner-tip {
    background: #1db954;
    color: #fff;
    padding: 1px 0;
    border-radius: 12px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 1px;
}

.banner-tip a {
    color: #fffa03;
    text-decoration: none;
}

@media (max-width: 480px) {
    .banner-tip {
        font-size: 12px;
        text-align: center;
        letter-spacing: 0.5px;
    }

    .welcome-section {
        padding: 8px;
    }
}

.welcome-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.welcome-btn,
.welcome-link {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;
}

.welcome-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
    color: white;
}

.welcome-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

@media (max-width: 768px) {

    .welcome-btn,
    .welcome-link {
        padding: 5px 10px;
        font-size: 12px;
        width: calc(50% - 25px);
        flex-direction: column;
        align-items: center;
    }

    .welcome-buttons {
        gap: 2px;
        flex-wrap: nowrap;
    }
}

.welcome-btn i,
.welcome-link i {
    font-size: 18px;
}

/* 确保所有圆形按钮保持圆形 */
.card-actions button,
.controls button,
.playlist-actions button,
.playlist-item-actions button,
.close-playlist-btn,
.play-btn,
.prev-btn,
.next-btn,
.volume-btn,
.expand-btn,
.playlist-btn,
.favorite-btn,
.add-to-playlist-btn,
.delete-btn,
.delete-playlist-btn,
.play-playlist-btn,
.rename-playlist-btn {
    aspect-ratio: 1/1;
    /* 保持高宽比1:1 */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* 防止按钮被压缩 */
}

/* 登录和注册样式 */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-check-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 15px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-check-btn:hover {
    background: var(--secondary-color);
}

.status-check-content {
    max-width: 600px;
    text-align: center;
}

.user-area {
    display: flex;
    align-items: center;
}

.login-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 15px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-btn:hover {
    background: var(--secondary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.username {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 14px;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    background: var(--hover-color);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

.tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.tab {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab.active {
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    color: var(--text-color);
}

.form-group input {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.submit-btn {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}

/* 注册提示信息样式 */
.register-tip {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 10px;
    padding: 8px;
    background-color: var(--hover-color);
    border-radius: 5px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        gap: 10px;
        padding-bottom: 15px;
    }

    .header-controls {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .status-check-btn {
        font-size: 12px;
        padding: 5px 10px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .status-check-content {
        padding: 15px;
    }
}

/* 用户菜单样式 */
.login-btn.logged-in {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-btn.logged-in:hover {
    background: var(--hover-color);
    color: var(--text-color)
}

.user-menu {
    position: absolute;
    top: 45px;
    width: 200px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 100;
    display: none;
    transition: all 0.3s ease;
    transform: translateY(-10px);
    opacity: 0;
}

.user-menu.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.user-menu-header {
    padding: 15px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 用户头像图标样式（已替换为图片） */
/* .user-avatar {
    font-size: 24px;
} */

.user-menu-items {
    display: flex;
    flex-direction: column;
}

.user-menu-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    text-align: left;
    font-size: 14px;
}

.user-menu-item:hover {
    background: var(--hover-color);
}

.user-area {
    position: relative;
}

.copyright {
    text-align: center;
    position: fixed;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copyright p,
.copyright span,
.copyright a {
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
}

.copyright :not(.author-link) {
    color: #ffffff;
}

.copyright p {
    margin: 0;
    display: flex;
}

.copyright .cprt {
    display: none;
}

.copyright .author-link {
    display: inline-block;
    font-weight: bolder;
    padding: 0 4px;
    background-color: rgba(255, 255, 255, .6);
    border-radius: 4px;
    transition: .3s ease-in-out;
}

@media screen and (max-width: 320px) {
    footer {
        display: none;
    }
}

.contact-button {
    background-color: var(--primary-color);
    border: none;
    border-radius: 10px;
    padding: 2.5px 5px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-right: 5px;
}

.contact-button:hover {
    background-color: #179744;
}

.contact-button-icon {
    width: 15px;
    height: 15px;
    margin-right: 2px;
    vertical-align: text-top;
}

.custom-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.custom-modal-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
}

.custom-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-color);
}

.custom-modal-content2 {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 0px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
}

.custom-modal-close2 {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.2s ease;
    z-index: 10001;
}

.custom-modal-close2:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.custom-modal a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.custom-modal a:hover {
    text-decoration: underline;
}

/* 赞助模态框样式 */
.sponsor-content {
    max-width: 500px;
    padding: 15px;
}

.sponsor-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.sponsor-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .sponsor-content {
        padding: 10px;
        max-width: 90%;
    }

    .sponsor-content h3 {
        font-size: 20px;
    }

    .sponsor-content p {
        font-size: 14px;
    }

    .sponsor-content iframe {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        height: 260px !important;
    }
}

/* 歌单导入相关样式 */
.playlist-import-content,
.playlist-import-progress-content {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    animation: slide-up 0.3s ease-out;
}

.playlist-import-content h3,
.playlist-import-progress-content h3 {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {

    .playlist-import-content,
    .playlist-import-progress-content {
        padding: 20px 15px;
        max-height: 80vh;
    }
}

.playlist-import-modal,
.playlist-import-progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11000;
}

.playlist-import-progress-content {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 最小化状态样式 */
.playlist-import-progress-modal.minimized {
    background: none;
    height: auto;
    align-items: flex-start;
    pointer-events: none;
}

.playlist-import-progress-modal.minimized .minimized-content {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    font-size: 14px;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-import-progress-modal.minimized .minimized-content:hover {
    background: var(--hover-color);
}

.minimize-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.minimize-btn:hover {
    background: var(--hover-color);
    color: var(--text-color);
}

/* 进度条样式优化 */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: var(--hover-color);
    border-radius: 3px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar-import {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* 导入状态信息样式 */
.import-progress-info {
    margin: 15px 0;
    text-align: center;
}

.current-song-info {
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 14px;
}

.progress-counter {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
}

.import-status {
    margin: 10px 0;
    text-align: center;
    color: var(--text-color);
    font-size: 14px;
}

.import-buttons {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
    margin-top: 20px;
}

.import-tip {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-color);
    background-color: var(--hover-color);
    padding: 12px 15px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.import-textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--card-bg);
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 14px;
    resize: vertical;
    line-height: 1.5;
}

.import-link-input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--card-bg);
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.3s ease;
}

.import-link-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.2);
}

.import-link-tip {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: -15px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.import-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.import-options .form-group {
    flex: 1;
    min-width: 200px;
}

.import-source,
.import-target {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 14px;
}

.import-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.start-import-btn,
.cancel-import-btn,
.cancel-import-progress-btn,
.minimize-btn,
.view-playlist-btn,
.close-import-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 100px;
}

.start-import-btn,
.view-playlist-btn {
    background-color: var(--primary-color);
    color: white;
}

.start-import-btn:hover,
.view-playlist-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cancel-import-btn,
.cancel-import-progress-btn,
.minimize-btn,
.close-import-btn {
    background-color: var(--border-color);
    color: var(--text-color);
}

.cancel-import-btn:hover,
.cancel-import-progress-btn:hover,
.minimize-btn:hover,
.close-import-btn:hover {
    background-color: #d0d0d0;
    transform: translateY(-2px);
}

/* 导入进度相关样式 */
.import-progress-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.current-song-info {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    word-break: break-word;
}

.progress-counter {
    font-size: 14px;
    color: var(--text-color);
}

.progress-bar-container {
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar-import {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.import-status {
    background-color: var(--hover-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.status-text {
    font-size: 14px;
    color: var(--text-color);
    margin: 0;
}

/* 导入完成状态样式 */
.import-complete-summary {
    text-align: center;
    margin-bottom: 20px;
}

.success-count {
    color: #2ecc71;
    font-weight: bold;
}

.failed-count {
    color: #e74c3c;
    font-weight: bold;
}

.failed-songs-list {
    max-height: 200px;
    overflow-y: auto;
    margin: 15px 0;
    padding: 10px;
    background-color: var(--hover-color);
    border-radius: 8px;
    text-align: left;
}

.failed-songs-list h4 {
    margin-top: 0;
    color: #e74c3c;
    margin-bottom: 10px;
}

.failed-songs-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.failed-songs-list li {
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.import-complete-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* 导入按钮样式 */
.import-playlist-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.import-playlist-btn:hover {
    background-color: var(--hover-color);
    color: var(--primary-color);
}

/* 移动端适配 */
@media (max-width: 768px) {

    .playlist-import-content,
    .playlist-import-progress-content {
        padding: 20px 15px;
        max-height: 80vh;
    }

    .playlist-import-content h3,
    .playlist-import-progress-content h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .import-options {
        flex-direction: column;
        gap: 10px;
    }

    .import-options .form-group {
        width: 100%;
        min-width: unset;
    }

    .import-buttons {
        gap: 10px;
    }

    .start-import-btn,
    .cancel-import-btn,
    .cancel-import-progress-btn,
    .minimize-btn,
    .view-playlist-btn,
    .close-import-btn {
        width: 100%;
    }

    .import-textarea {
        min-height: 120px;
    }

    .failed-songs-list {
        max-height: 150px;
    }
}

/* 下载源选择模态框样式 */
.download-source-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.download-source-modal-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.download-source-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 20px;
}

.download-lyric-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
    cursor: pointer;
    user-select: none;
}

.download-lyric-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.download-source-modal-btn {
    width: 100%;
    padding: 16px;
    margin-bottom: 12px;
    background-color: var(--button-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.download-source-modal-btn:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-source-modal-btn:active {
    transform: translateY(0);
}

.download-source-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.download-source-desc {
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.download-source-modal-cancel {
    width: 100%;
    padding: 14px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.download-source-modal-cancel:hover {
    background-color: var(--error-bg);
    color: var(--error-color);
    border-color: var(--error-color);
}

.expanded-album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expanded-track-info {
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.expanded-song-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-color);
}

.expanded-artist-name {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
}

.expanded-controls button {
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.expanded-controls .expanded-play-btn {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.expanded-controls button:hover {
    background-color: var(--hover-color);
}

.expanded-controls .expanded-play-btn:hover {
    background-color: var(--secondary-color);
}

.expanded-progress-container {
    width: 90%;
    max-width: 500px;
    margin-bottom: 20px;
}

.expanded-progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    width: 0;
}

.expanded-volume-btn {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expanded-volume-btn:hover {
    background-color: var(--hover-color);
}

.expanded-volume-slider {
    flex: 1;
    max-width: 150px;
    height: 5px;
    -webkit-appearance: none;
    background-color: var(--border-color);
    border-radius: 5px;
    outline: none;
}

/* 为音量滑块添加左侧颜色条 */
.expanded-volume-slider::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--expanded-text-color) var(--volume-percentage, 50%), var(--expanded-theme-base) var(--volume-percentage, 50%));
    border-radius: 5px;
    height: 5px;
}

.expanded-volume-slider::-moz-range-track {
    background: linear-gradient(to right, var(--expanded-text-color) var(--volume-percentage, 50%), var(--expanded-theme-base) var(--volume-percentage, 50%));
    border-radius: 5px;
    height: 5px;
}

.expanded-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background-color: var(--expanded-text-color);
    border-radius: 50%;
    cursor: pointer;
    margin-top: -5px;
}

.expanded-volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background-color: var(--expanded-theme-deep);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.expanded-playlist-controls {
    display: none;
}

.expanded-playlist-btn,
.expanded-play-mode-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 15px;
}

.expanded-playlist-btn:hover,
.expanded-play-mode-btn:hover {
    background-color: var(--hover-color);
}

/* 播放模式按钮高亮样式 */
.expanded-play-mode-btn.active {
    color: var(--primary-color);
}

.expanded-lyrics::-webkit-scrollbar {
    display: none;
}

.expanded-lyrics h3 {
    margin-top: 0;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.expanded-lyrics-content::-webkit-scrollbar {
    display: none;
}

/* 下载按钮样式 */
.download-btn,
.expanded-download-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-btn:hover,
.expanded-download-btn:hover {
    background: var(--hover-color);
    color: var(--primary-color);
}

/* 右键菜单样式 */
.song-context-menu {
    position: absolute;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    z-index: 99999;
    min-width: 150px;
}

.song-context-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.song-context-menu li {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.song-context-menu li:hover {
    background-color: var(--hover-color);
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
    opacity: 1;
    transform: scale(1.02);
}

.song-context-menu li i {
    width: 16px;
    text-align: center;
}

@media (max-width: 768px) {
    .expanded-player-container {
        padding: 15px 12px;
    }

    .expanded-player-content {
        flex-direction: column;
        gap: 10px;
    }

    .expanded-album-cover-container {
        max-width: 120px;
    }

    .expanded-track-info {
        margin-bottom: 8px;
    }

    .expanded-song-title {
        font-size: 16px;
        margin-bottom: 3px;
    }

    .expanded-artist-name {
        font-size: 12px;
    }

    .expanded-controls button {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .expanded-progress-container,
    .expanded-volume-controls,
    .expanded-playlist-controls {
        margin-bottom: 8px;
    }

    .expanded-playlist-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .expanded-lyrics {
        padding: 10px;
        min-height: 200px;
    }

    .expanded-lyrics h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .expanded-lyric-line {
        padding: 6px 0;
        font-size: 12px;
    }

    .expanded-lyric-line.active {
        font-size: 14px;
    }

    .expanded-player-left {
        width: 100%;
    }

    .expanded-controls {
        margin-bottom: 8px;
        gap: 15px;
    }

}

/* 下载按钮样式 */
.download-btn,
.expanded-download-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-btn:hover,
.expanded-download-btn:hover {
    background: var(--hover-color);
    color: var(--primary-color);
}

/* 右键菜单样式 */
.song-context-menu {
    position: absolute;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    z-index: 99999;
    min-width: 150px;
}

.song-context-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.song-context-menu li {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.song-context-menu li:hover {
    background-color: var(--hover-color);
    color: var(--primary-color);
}

.song-context-menu li i {
    width: 16px;
    text-align: center;
}

/* 针对移动设备的适配 */
@media (max-width: 768px) {
    .song-context-menu {
        min-width: 180px;
    }

    .song-context-menu li {
        padding: 10px 15px;
        font-size: 16px;
    }

    .download-btn,
    .expanded-download-btn {
        padding: 6px;
    }
}

/* 歌单页面按钮样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header div {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .section-header div {
        flex-wrap: nowrap;
        align-items: center;
    }
}

.import-playlist-btn-section {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.import-playlist-btn-section:hover {
    background-color: var(--hover-color);
    color: #000000;
}

.import-playlist-btn-section i {
    font-size: 14px;
}

.create-playlist-btn-main {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.create-playlist-btn-main:hover {
    background-color: var(--hover-color);
    color: #000000;
}

.helper-btn {
    display: inline-block;
    padding: 8px 12px;
    margin-right: 10px;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.helper-btn:hover {
    background-color: #e0e0e0;
    color: #000;
}

.import-helper-buttons {
    margin: 15px 0;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.import-tutorial-btn {
    background-color: #f8f4e5;
    color: #8a5a00;
}

.import-tutorial-btn:hover {
    background-color: #f5edd3;
    color: #6a4500;
}

.extract-playlist-btn {
    background-color: #e5f0f8;
    color: #00578a;
}

.extract-playlist-btn:hover {
    background-color: #d3e5f5;
    color: #00446a;
}

.playlist-import-content {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    overflow-y: auto;
}

.playlist-import-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.playlist-import-progress-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-y: auto;
}

.playlist-import-progress-content::-webkit-scrollbar {
    display: none;
}

/* 缓冲阶段样式 */
.buffer-info {
    background-color: var(--hover-color);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.buffer-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.buffer-message i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.buffer-message p {
    margin: 0;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
}

.buffer-countdown {
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
}

.countdown-time {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 用户头像样式 */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.btn-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 5px;
    vertical-align: middle;
}

/* 用户菜单头部样式 */
.user-menu-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

/* 头像上传相关样式 */
.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatars h4,
.upload-avatar h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.default-avatar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.avatar-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: none;
    transition: all 0.2s ease;
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-option.selected {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.avatar-upload-input {
    display: none;
}

.avatar-upload-label {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 10px;
}

.avatar-upload-label:hover {
    background-color: var(--hover-color);
    color: #000000;
}

.avatar-tip {
    font-size: 12px;
    color: #999;
    text-align: center;
}

@media (max-width: 768px) {
    .avatar-container {
        gap: 15px;
    }

    .avatar-preview {
        width: 100px;
        height: 100px;
    }

    .default-avatar-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .avatar-option {
        width: 50px;
        height: 50px;
    }
}

.player-card.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideInPlayer 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes slideInPlayer {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-card.player-visible {
    animation: slideUpMain 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes slideUpMain {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

/* 音质选择框样式 */
.audio-quality-select,
.source-select {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

/* 音质图标样式 */
.song-title-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quality-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 1px 4px;
    height: 16px;
    min-width: 20px;
    line-height: 1;
    white-space: nowrap;
}

.quality-text {
    font-weight: bold;
    white-space: nowrap;
}

.quality-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 展开播放器音质图标样式 */
.expanded-song-title-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 75px;
}

.expanded-quality-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background-color: var(--expanded-theme-deep);
    border: 1px solid var(--expanded-text-color);
    border-radius: 4px;
    padding: 2px 8px;
    height: 20px;
    min-width: 30px;
    line-height: 1;
}

.history-tip {
    width: 100%;
    color: #888;
    font-size: 14px;
    margin: -5px 0 12px;
    padding: 0 15px;
}

/* 音质按钮样式 */
.quality-btn,
.expanded-quality-btn {
    color: var(--text-color);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.quality-btn:hover,
.expanded-quality-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* expanded-quality-modal 居中弹窗样式 */
.expanded-quality-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.expanded-quality-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    padding: 32px 32px 24px 32px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.expanded-quality-modal-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 18px;
}

.expanded-quality-modal-btn {
    margin: 8px 0;
    padding: 8px 32px;
    border-radius: 8px;
    min-width: 132px;
    border: 1px solid var(--primary-color);
    background: var(--card-bg);
    color: var(--text-color);
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.expanded-quality-modal-btn.selected,
.expanded-quality-modal-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.expanded-quality-modal-cancel {
    margin-top: 18px;
    padding: 6px 24px;
    border-radius: 8px;
    border: none;
    background: var(--border-color);
    color: var(--text-color);
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.expanded-quality-modal-cancel:hover {
    background: var(--primary-color);
    color: #fff;
}

.playlist-source-title {
    padding: 8px 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-color);
    font-weight: bold;
    text-align: center;
}

/* 榜单区域样式 */
.toplist-section {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.toplist-section h3 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.toplist-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.toplist-card {
    width: 120px;
    height: 120px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.toplist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, transparent 80%);
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.toplist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.toplist-card:hover::before {
    opacity: 0.2;
}

.toplist-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    z-index: 1;
}

.toplist-card-marquee {
    width: 100%;
    max-width: 180px;
    margin: -4px auto 10px;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    z-index: 1;
    opacity: 0.82;
}

.toplist-card-marquee span {
    display: inline-block;
    min-width: 100%;
    padding-left: 100%;
    animation: toplistMarquee 9s linear infinite;
}

@keyframes toplistMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.toplist-card-icon {
    font-size: 32px;
    color: var(--primary-color);
    z-index: 1;
}

/* 榜单导航 */
.toplist-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.toplist-selector-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.toplist-selector-container label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.toplist-selector {
    padding: 8px 15px;
    border-radius: 8px;
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    font-size: 14px;
    flex: 1;
    max-width: 300px;
    cursor: pointer;
}

.toplist-quick-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.toplist-nav-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.toplist-nav-btn:hover,
.toplist-nav-btn.active {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .toplist-selector-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .toplist-selector {
        width: 100%;
        max-width: 100%;
    }
}

/* 搜索页面标签样式 */
.search-tabs {
    display: flex;
    gap: 15px;
    width: 100%;
}

.search-tab-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    flex: 1;
    text-align: center;
}

.search-tab-btn:hover,
.search-tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* 榜单歌曲序号样式 */
.toplist-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    font-size: 14px;
    margin-right: 10px;
}

.toplist-rank.top3 {
    background: linear-gradient(135deg, #ff9800, #ff5722);
}

.toplist-rank.top1 {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    font-size: 16px;
    width: 28px;
    height: 28px;
}

.email-input-container {
    display: flex;
    gap: 10px;
}

.email-input-container input {
    flex: 1;
}

.verification-btn {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.verification-btn:hover {
    background-color: var(--secondary-color);
}

.verification-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* 歌手名称可点击样式 */
.artist-name {
    cursor: pointer;
    display: inline-block;
    transition: color 0.2s, transform 0.1s;
}

.artist-name:hover {
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
}

/* 非网易云源提示框样式 */
.warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11000;
    animation: fadeIn 0.3s ease;
}

.warning-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.warning-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.warning-content h3 {
    color: var(--text-color);
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 600;
}

.warning-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0 0 12px 0;
    font-size: 14px;
}

.warning-content p:last-of-type {
    margin-bottom: 24px;
}

.warning-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.warning-content a:hover {
    color: var(--secondary-color);
}

.warning-confirm-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.warning-confirm-btn:hover {
    background: var(--secondary-color);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 分享歌曲确认框样式 */
.share-song-content {
    max-width: 500px;
    text-align: center;
}

.share-song-content h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.share-song-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--hover-color);
    border-radius: 10px;
}

.share-song-cover {
    flex-shrink: 0;
}

.share-song-cover img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.share-song-details {
    flex: 1;
    text-align: left;
}

.share-song-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.share-song-artist {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 5px;
    opacity: 0.8;
}

.share-song-album {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.6;
}

.share-song-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.share-song-play-btn,
.share-song-cancel-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.share-song-play-btn {
    background-color: var(--primary-color);
    color: white;
}

.share-song-play-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.share-song-cancel-btn {
    background-color: var(--border-color);
    color: var(--text-color);
}

.share-song-cancel-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

/* 分享链接复制框样式 */
.share-link-content {
    max-width: 600px;
    text-align: center;
}

.share-link-content h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.share-link-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.share-link-text {
    flex: 1;
}

.share-link-text textarea {
    width: 100%;
    min-height: 80px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
}

.share-link-text textarea:focus {
    border-color: var(--primary-color);
}

.share-link-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.share-link-copy-btn,
.share-link-close-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.share-link-copy-btn {
    background-color: var(--primary-color);
    color: white;
}

.share-link-copy-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.share-link-close-btn {
    background-color: var(--border-color);
    color: var(--text-color);
}

.share-link-close-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .share-song-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .share-song-details {
        text-align: center;
    }

    .share-song-actions {
        flex-direction: column;
        gap: 10px;
    }

    .share-song-play-btn,
    .share-song-cancel-btn {
        width: 100%;
    }

    .share-link-actions {
        flex-direction: column;
        gap: 10px;
    }

    .share-link-copy-btn,
    .share-link-close-btn {
        width: 100%;
    }
}

/* 搜索结果卡片中的分享按钮样式 */
.share-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    z-index: 10;
    opacity: 0.8;
}

.share-btn:hover {
    background-color: #5a6268;
    transform: scale(1.1);
    opacity: 1;
}

/* 播放器中的分享按钮样式 */
.player-share-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.player-share-btn:hover {
    background: var(--hover-color);
    color: var(--primary-color);
}

.expanded-player-share-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.expanded-player-share-btn:hover {
    background: var(--hover-color);
    color: var(--primary-color);
}

/* 双语歌词样式 */
.lyric-main {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
}

.lyric-sub {
    font-size: 0.75em;
    color: inherit;
    line-height: 1.2;
    margin-top: 2px;
    opacity: 0.8;
}

[data-theme="dark"] .lyric-sub {
    color: rgba(169, 169, 169, 0.847);
}

[data-theme="light"] .lyric-sub {
    color: rgba(0, 0, 0, 0.5);
}

/* 活动状态下的双语歌词 */
.expanded-lyric-line.active .lyric-main {
    color: var(--expanded-text-color);
}

.expanded-lyric-line.active .lyric-sub {
    color: var(--expanded-text-color);
}

/* ===== 2026-04 Expanded Player + Playlist UX Refactor ===== */
.expanded-player-modal {
    --expanded-text-color: rgb(248, 251, 255);
    --expanded-text-secondary: rgba(248, 251, 255, 0.75);
    --expanded-control-bg: rgba(255, 255, 255, 0.14);
    --expanded-control-hover: rgba(255, 255, 255, 0.22);
    --expanded-close-border: rgba(255, 255, 255, 0.52);
    --expanded-theme-base: rgba(18, 24, 40, 0.95);
    --expanded-theme-dark: rgba(12, 16, 30, 0.97);
    --expanded-theme-deep: rgba(8, 10, 20, 0.98);
    --expanded-panel-bg: rgba(8, 10, 20, 0.42);
    --expanded-panel-border: rgba(255, 255, 255, 0.16);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 10000;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    color: var(--expanded-text-color);
    background:
        radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.10), transparent 44%),
        radial-gradient(circle at 75% 78%, rgba(255, 255, 255, 0.06), transparent 50%),
        linear-gradient(156deg, var(--expanded-theme-base) 0%, var(--expanded-theme-dark) 54%, var(--expanded-theme-deep) 100%);
    backdrop-filter: blur(24px);
}

.expanded-player-modal .expanded-song-title,
.expanded-player-modal .expanded-time-info,
.expanded-player-modal .expanded-lyric-line,
.expanded-player-modal .expanded-controls button,
.expanded-player-modal .expanded-secondary-controls button,
.expanded-player-modal .expanded-volume-btn,
.expanded-player-modal .expanded-quality-icon {
    color: var(--expanded-text-color);
}

.expanded-player-container {
    width: 100%;
    max-width: 1280px;
    height: 100%;
    max-height: none;
    margin: 0 auto;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    padding: clamp(16px, 3vw, 32px);
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(260px, 420px);
    justify-content: center;
    align-content: center;
    gap: clamp(14px, 2.2vw, 30px);
    background: transparent;
    box-shadow: none;
}

.expanded-player-content {
    height: 100%;
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 16px;
}

.expanded-player-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    grid-row: 1;
    max-height: 100%;
    min-height: 0;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

.expanded-album-cover-container {
    width: 60%;
    max-width: 250px;
    border-radius: 24px;
    box-shadow: 0 15px 15px rgba(0, 0, 0, 0.25);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.expanded-album-cover {
    transform: translateZ(0);
    filter: saturate(1.02) contrast(1.04);
}

.expanded-player-right {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    grid-row: 2;
    min-height: 0;
    width: 100%;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    gap: 14px;
    border-radius: 18px;
    padding: 18px 18px 16px;
    backdrop-filter: blur(10px);
}

.expanded-track-info {
    align-items: center;
    text-align: center;
    margin-bottom: 2px;
}

.expanded-song-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.expanded-song-title {
    font-size: clamp(20px, 2.3vw, 28px);
    line-height: 1.22;
    letter-spacing: 0.01em;
}

.expanded-artist-name {
    color: var(--expanded-text-secondary);
    font-size: clamp(13px, 1.4vw, 15px);
}

.expanded-progress-container,
.expanded-volume-controls {
    width: 100%;
    max-width: 520px;
    margin-bottom: 0;
}

.expanded-controls {
    display: flex;
    position: relative;
    left: 3vh;
    align-items: center;
    width: 100%;
    max-width: 520px;
    margin-bottom: 0;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.expanded-controls button,
.expanded-volume-btn {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: var(--expanded-control-bg);
    border: 1px solid transparent;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.expanded-controls button:hover,
.expanded-volume-btn:hover {
    background: var(--expanded-control-hover);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.expanded-controls .expanded-play-btn {
    width: 46px;
    height: 46px;
    font-size: 18px;
    border: none;
    background: var(--expanded-control-bg);
    color: rgba(15, 18, 26, 0.92);
}

.expanded-theme-light-text .expanded-controls .expanded-play-btn {
    background: rgba(15, 18, 26, 0.90);
    color: rgba(245, 248, 255, 0.95);
}

.expanded-progress-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    margin-bottom: 10px;
}

.expanded-theme-light-text .expanded-progress-bar {
    background-color: rgba(0, 0, 0, 0.18);
}

.expanded-progress {
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
}

.expanded-theme-light-text .expanded-progress {
    background-color: rgba(15, 18, 26, 0.90);
}

.expanded-progress-handle {
    width: 16px;
    height: 16px;
    margin-left: -8px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.expanded-theme-light-text .expanded-progress-handle {
    background-color: rgba(15, 18, 26, 0.95);
}

.expanded-time-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.expanded-volume-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.expanded-volume-slider {
    flex: 1;
    max-width: 260px;
    background-color: rgba(255, 255, 255, 0.22);
}

.expanded-secondary-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.expanded-secondary-controls button {
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--expanded-text-secondary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.24);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.expanded-secondary-controls button:hover {
    color: var(--expanded-text-color);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.34);
    transform: translateY(-1px);
}

.expanded-theme-light-text .expanded-secondary-controls button {
    color: rgba(18, 22, 34, 0.72);
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.22);
}

.expanded-theme-light-text .expanded-secondary-controls button:hover {
    color: rgba(12, 16, 26, 0.95);
    background: rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.30);
}

.expanded-theme-light-text .expanded-lyric-settings-btn,
.expanded-theme-light-text .expanded-lyric-translation-btn {
    color: rgba(12, 16, 26, 0.92);
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.24);
}

.expanded-theme-light-text .expanded-lyric-settings-btn:hover,
.expanded-theme-light-text .expanded-lyric-translation-btn:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.32);
}

.expanded-theme-light-text .expanded-lyric-settings-popup {
    background: rgba(245, 247, 252, 0.95);
    border-color: rgba(0, 0, 0, 0.16);
}

.expanded-theme-light-text .expanded-lyric-settings-popup button {
    color: rgba(12, 16, 26, 0.92);
    background: rgba(0, 0, 0, 0.08);
}

.expanded-theme-light-text .expanded-lyric-settings-popup button:hover {
    background: rgba(0, 0, 0, 0.14);
}

.expanded-theme-light-text .expanded-lyric-offset-text {
    color: rgba(12, 16, 26, 0.68);
}

.expanded-theme-light-text .expanded-volume-slider {
    background-color: rgba(0, 0, 0, 0.18);
}

.close-expanded-player {
    position: absolute;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    top: 3vw;
    right: clamp(10px, 2vw, 16px);
    width: 40px;
    height: 40px;
    border: 1px solid var(--expanded-close-border);
    background: rgba(0, 0, 0, 0.15);
    color: var(--expanded-text-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
}

.close-expanded-player:hover {
    background: var(--expanded-control-hover);
}

.expanded-lyrics {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
    max-height: 87vh;
    margin: 0;
    width: 100%;
    padding: 18px 14px 12px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    background: transparent;
    backdrop-filter: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.expanded-lyrics-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 0 2px 8px;
    position: relative;
    z-index: 3;
}

.expanded-lyric-settings-wrap {
    position: relative;
}

.expanded-lyric-settings-btn,
.expanded-lyric-translation-btn {
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.10);
    color: var(--expanded-text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.expanded-lyric-settings-btn:hover,
.expanded-lyric-translation-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.36);
}

.expanded-lyric-translation-btn {
    display: none;
}

.expanded-lyric-translation-btn span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.expanded-lyric-translation-btn.active {
    color: #48d47c;
    border-color: rgba(72, 212, 124, 0.75);
    background: rgba(18, 80, 42, 0.36);
}

.expanded-lyric-settings-popup {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 86px;
    padding: 6px;
    border-radius: 10px;
    background: rgba(10, 14, 24, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    gap: 4px;
    z-index: 6;
    flex-direction: column;
}

.expanded-lyric-settings-popup.show {
    display: flex;
}

.expanded-lyric-settings-popup button {
    border: none;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.10);
    color: var(--expanded-text-color);
    font-size: 11px;
    height: 24px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.expanded-lyric-settings-popup button:hover {
    background: rgba(255, 255, 255, 0.20);
}

.expanded-lyric-offset-text {
    margin-top: 1px;
    text-align: center;
    font-size: 10px;
    color: var(--expanded-text-secondary);
}

.expanded-lyrics-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: center;
    line-height: 1.75;
    padding: clamp(56px, 14vh, 150px) 2px;
    scrollbar-color: rgba(255, 255, 255, 0.42) transparent;
    scrollbar-width: none;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.94) 12%, rgba(0, 0, 0, 0.94) 88%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.94) 12%, rgba(0, 0, 0, 0.94) 50%, rgba(0, 0, 0, 0) 100%);
}

.qq-lyric-fallback-button {
    align-self: center;
    max-width: min(92%, 460px);
    margin: auto 0;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    background: var(--expanded-control-bg);
    color: var(--expanded-text-color);
    font: inherit;
    line-height: 1.6;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.qq-lyric-fallback-button:hover {
    background: var(--expanded-control-hover);
    transform: translateY(-1px);
}

.qq-lyric-fallback-button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.expanded-theme-light-text .qq-lyric-fallback-button {
    border-color: rgba(0, 0, 0, 0.22);
}

.expanded-lyrics-content::-webkit-scrollbar {
    width: 7px;
    display: block;
}

.expanded-lyrics-content::-webkit-scrollbar-track {
    background: transparent;
}

.expanded-lyrics-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.42);
    border-radius: 10px;
}

.expanded-lyric-line {
    opacity: 0.62;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 2px 0;
    font-size: 14px;
    line-height: 1.52;
    cursor: pointer;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
    transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

.expanded-lyric-line:hover {
    transform: translateY(-1px);
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.12);
}

.expanded-lyric-line.active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.015);
    font-size: 14px;
    font-weight: 650;
    color: var(--expanded-text-color);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.expanded-lyric-line.is-empty {
    opacity: 0.26;
    pointer-events: none;
    background: transparent;
}

.expanded-theme-light-text .expanded-lyrics-content {
    scrollbar-color: rgba(0, 0, 0, 0.36) transparent;
}

.expanded-theme-light-text .expanded-lyrics-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.36);
}

.expanded-theme-light-text .expanded-lyric-line:hover {
    background: rgba(0, 0, 0, 0.10);
}

.expanded-theme-light-text .expanded-lyric-line.active {
    background: rgba(0, 0, 0, 0.14);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.20);
}

.expanded-lyric-line .lyric-sub {
    color: var(--expanded-text-secondary);
    opacity: 0.95;
    margin-top: 4px;
}

.expanded-lyric-line.active .lyric-sub {
    opacity: 1;
}

.playlist-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    top: 16px;
    height: calc(100vh - 32px);
}

.playlist-container h3 {
    margin-bottom: 12px;
}

.playlist-items {
    flex: 1;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.playlist-item {
    padding: 10px 12px;
    border-radius: 10px;
    gap: 12px;
}

.playlist-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    white-space: normal;
}

.playlist-item-title,
.playlist-item-artist {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.playlist-item-actions button {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.playlist-item-favorite-btn.active {
    color: #ff5a7d;
}

.playlist-item-delete-btn {
    color: #ff7b7b;
}

.playlist-card {
    cursor: pointer;
}

.play-playlist-btn {
    background: #20b26f !important;
}

.play-playlist-btn:hover {
    background: #17925a !important;
}

@media (max-width: 900px) {
    .expanded-player-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr) auto;
        max-width: 760px;
        padding: max(14px, env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));
        gap: 8px;
        align-content: stretch;
    }

    .expanded-player-content {
        display: contents;
    }

    .expanded-player-left {
        grid-column: 1;
        grid-row: 1;
        justify-content: center;
    }

    .expanded-album-cover-container {
        width: min(58vw, 230px);
    }

    .expanded-album-cover {
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 67%, rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 100%);
    }

    .expanded-player-right {
        grid-column: 1;
        grid-row: 3;
        border-radius: 16px;
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
        gap: 8px;
        backdrop-filter: blur(14px);
    }

    .expanded-song-title {
        font-size: 20px;
    }

    .expanded-controls {
        gap: 8px;
    }

    .expanded-controls button {
        width: 36px;
        height: 36px;
    }

    .expanded-controls .expanded-play-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .expanded-progress-container {
        max-width: 100%;
    }

    .expanded-volume-controls {
        max-width: 100%;
        gap: 8px;
    }

    .expanded-volume-slider {
        max-width: none;
    }

    .expanded-secondary-controls {
        gap: 6px;
    }

    .expanded-secondary-controls button {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .expanded-lyrics {
        grid-column: 1;
        grid-row: 2;
        max-height: none;
        height: 100%;
        padding: 8px 8px;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
    }

    .expanded-lyrics>.expanded-track-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 4px;
        padding: 2px 10px 4px;
        text-align: center;
    }

    .expanded-lyric-line {
        font-size: 13px;
        padding: 9px 8px;
    }

    .expanded-lyric-line.active {
        font-size: 13px;
    }

    .playlist-container {
        width: min(92vw, 360px);
        right: calc(-1 * min(92vw, 360px) - 24px);
    }
}

@media (max-width: 600px) {
    .artist-detail-panel {
        padding: 12px 0 6px;
    }

    .artist-detail-main {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }

    .artist-detail-photo {
        width: min(44vw, 90px);
        height: min(44vw, 90px);
        margin: 0 auto;
    }

    .artist-detail-text {
        width: 100%;
        text-align: left;
    }

    .artist-detail-text h2,
    .artist-detail-text>p {
        text-align: center;
    }

    .artist-detail-text h2 {
        font-size: 21px;
    }

    .expanded-player-container {
        padding: 12px 10px 10px;
        gap: 8px;
    }

    .expanded-album-cover-container {
        width: min(60vw, 190px);
        border-radius: 18px;
        box-shadow: none;
    }

    .expanded-player-right {
        border-radius: 14px;
        padding: 9px 8px calc(9px + env(safe-area-inset-bottom));
    }

    .expanded-controls,
    .expanded-progress-container,
    .expanded-volume-controls {
        max-width: 100%;
    }

    .expanded-controls {
        gap: 6px;
    }

    .expanded-controls button {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .expanded-controls .expanded-play-btn {
        width: 40px;
        height: 40px;
    }

    .expanded-volume-controls {
        gap: 6px;
    }

    .expanded-secondary-controls button {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .expanded-lyrics-toolbar {
        padding-bottom: 6px;
    }

    .expanded-lyric-settings-btn,
    .expanded-lyric-translation-btn {
        width: 32px;
        height: 32px;
    }

    .expanded-lyrics-content {
        padding: clamp(28px, 8vh, 58px) 2px;
    }

    .expanded-lyrics {
        border-radius: 0;
    }

    .close-expanded-player {
        width: 36px;
        height: 36px;
        right: 8px;
        top: 3vh;
    }
}

.search-fallback-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 16px;
    padding: 12px 16px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.28);
    border-radius: 12px;
    color: var(--text-color);
    background: rgba(var(--primary-color-rgb), 0.08);
}

.search-fallback-retry {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 7px 13px;
    color: #fff;
    background: var(--primary-color);
    cursor: pointer;
}

.search-fallback-retry:hover {
    background: var(--secondary-color);
}

.expanded-secondary-controls .expanded-mv-btn {
    width: 35px;
    height: 35px;
    padding: 0;
    border-radius: 10px;
}

@media (max-width: 600px) {
    .search-fallback-notice {
        align-items: flex-start;
        flex-direction: column;
    }
}
