/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ec4141;
    --primary-hover: #d63a3a;
    --bg-dark: #1a1a2e;
    --bg-darker: #16162a;
    --bg-card: #252542;
    --bg-card-hover: #2e2e52;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6c6c7c;
    --border-color: #3a3a5c;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --radius: 8px;
    --radius-lg: 12px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--text-primary);
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.hidden {
    display: none !important;
}

/* ==================== 登录页面 ==================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, #1e1e3f 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 登录标签页 */
.login-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    background: var(--bg-darker);
    border-radius: var(--radius);
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

/* 登录表单 */
.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
}

.country-code {
    padding: 12px 16px;
    color: var(--text-secondary);
    border-right: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.input-wrapper input {
    border: none;
    background: transparent;
}

.captcha-input {
    display: flex;
    gap: 10px;
}

.captcha-input input {
    flex: 1;
}

.btn-captcha {
    padding: 12px 16px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius);
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s;
}

.btn-captcha:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.btn-captcha:disabled {
    border-color: var(--text-muted);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* 二维码登录 */
.qrcode-container {
    text-align: center;
    padding: 20px 0;
}

.qrcode-box {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qrcode-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qrcode-loading {
    text-align: center;
    color: var(--bg-dark);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #eee;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.qrcode-tip {
    color: var(--text-secondary);
    font-size: 14px;
}

.qrcode-status {
    margin-top: 10px;
    font-size: 14px;
    color: var(--primary);
}

/* 按钮样式 */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-link {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.3s;
}

.btn-link:hover {
    color: var(--primary);
}

.guest-mode {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.login-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: var(--radius);
    font-size: 14px;
    text-align: center;
}

.login-message.error {
    background: rgba(236, 65, 65, 0.1);
    color: var(--primary);
}

.login-message.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

/* ==================== 主应用布局 ==================== */
.main-app {
    display: grid;
    grid-template-areas:
        "header header"
        "sidebar main";
    grid-template-columns: 220px 1fr;
    grid-template-rows: 60px 1fr;
    min-height: 100vh;
    padding-bottom: 90px;
}

/* 顶部导航 */
.header {
    grid-area: header;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
}

.logo-small svg {
    width: 28px;
    height: 28px;
}

.logo-small span {
    font-size: 18px;
    font-weight: 700;
}

.header-center {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 0 5px 0 15px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s;
}

.search-box:focus-within {
    border-color: var(--primary);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border-radius: 16px;
    font-size: 14px;
    transition: background 0.3s;
}

.search-btn:hover {
    background: var(--primary-hover);
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px 5px 5px;
    background: var(--bg-card);
    border-radius: 20px;
    cursor: pointer;
    position: relative;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-darker);
}

.user-info span {
    font-size: 14px;
    color: var(--text-primary);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-width: 120px;
}

.user-info:hover .user-dropdown {
    display: block;
}

.user-dropdown button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    color: var(--text-primary);
    font-size: 14px;
    transition: background 0.3s;
}

.user-dropdown button:hover {
    background: var(--bg-card-hover);
}

/* 侧边栏 */
.sidebar {
    grid-area: sidebar;
    background: var(--bg-darker);
    padding: 15px 0;
    overflow-y: auto;
    height: calc(100vh - 150px);
    position: sticky;
    top: 60px;
}

.nav-list {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: var(--primary);
    background: rgba(236, 65, 65, 0.1);
    border-right: 3px solid var(--primary);
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 15px 20px;
}

.nav-title {
    padding: 10px 20px;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 主内容区 */
.main-content {
    grid-area: main;
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - 150px);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-title {
    font-size: 24px;
    margin-bottom: 20px;
}

/* ==================== 发现页面样式 ==================== */

/* 轮播图 */
.banner-section {
    margin-bottom: 30px;
}

.banner-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.banner-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
    aspect-ratio: 3/1;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.banner-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.banner-btn.prev {
    left: 15px;
}

.banner-btn.next {
    right: 15px;
}

.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    width: 24px;
    border-radius: 4px;
    background: white;
}

/* 区块样式 */
.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.more-link {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.3s;
}

.more-link:hover {
    color: var(--primary);
}

/* 歌单网格 */
.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.playlist-card {
    cursor: pointer;
    transition: transform 0.3s;
}

.playlist-card:hover {
    transform: translateY(-5px);
}

.playlist-card:hover .playlist-cover::after {
    opacity: 1;
}

.playlist-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.playlist-cover {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 10px;
}

.playlist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1;
}

.play-overlay svg {
    width: 24px;
    height: 24px;
    color: white;
    margin-left: 3px;
}

.play-count {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    font-size: 12px;
    color: white;
}

.play-count svg {
    width: 14px;
    height: 14px;
}

.playlist-name {
    font-size: 14px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* 歌曲列表 */
.song-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.song-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.3s;
}

.song-card:hover {
    background: var(--bg-card-hover);
}

.song-cover {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

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

.song-name {
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.song-artist {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 详细歌曲列表 */
.song-list-detail {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}

.song-row {
    display: grid;
    grid-template-columns: 50px 1fr 150px 150px 60px;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.song-row:hover {
    background: var(--bg-card-hover);
}

.song-row.playing {
    background: rgba(236, 65, 65, 0.1);
}

.song-row.playing .song-row-name {
    color: var(--primary);
}

.song-row-index {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

.song-row-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.song-row-cover {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.song-row-name {
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-row-artist,
.song-row-album {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-row-duration {
    font-size: 13px;
    color: var(--text-muted);
    text-align: right;
}

/* 排行榜网格 */
.toplist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.toplist-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.toplist-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.toplist-header {
    display: flex;
    padding: 15px;
    gap: 15px;
}

.toplist-cover {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
}

.toplist-info {
    flex: 1;
}

.toplist-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.toplist-update {
    font-size: 12px;
    color: var(--text-muted);
}

.toplist-songs {
    padding: 0 15px 15px;
}

.toplist-song {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
}

.toplist-rank {
    width: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.toplist-rank:nth-child(1) { color: #ff4444; }
.toplist-rank:nth-child(2) { color: #ff7744; }
.toplist-rank:nth-child(3) { color: #ffaa44; }

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

.toplist-song-name {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toplist-song-artist {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 歌手网格 */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.artist-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.artist-card:hover {
    transform: translateY(-5px);
}

.artist-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    border: 3px solid var(--border-color);
    transition: border-color 0.3s;
}

.artist-card:hover .artist-avatar {
    border-color: var(--primary);
}

.artist-card-name {
    font-size: 14px;
    color: var(--text-primary);
}

/* 专辑网格 */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.album-card {
    cursor: pointer;
    transition: transform 0.3s;
}

.album-card:hover {
    transform: translateY(-5px);
}

.album-cover {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 10px;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-name {
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.album-artist {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 每日推荐 */
.daily-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    border-radius: var(--radius-lg);
}

.daily-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    color: var(--primary);
    padding: 15px 20px;
    border-radius: var(--radius);
}

.daily-date .day {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.daily-date .month {
    font-size: 12px;
}

.daily-header h2 {
    font-size: 24px;
    color: white;
}

.daily-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 5px;
}

#playAllDaily {
    display: inline-flex;
    width: auto;
    margin-bottom: 20px;
}

/* 搜索结果 */
.search-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-tab {
    padding: 8px 20px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-tab:hover {
    color: var(--text-primary);
}

.search-tab.active {
    background: var(--primary);
    color: white;
}

.search-results {
    background: var(--bg-card);
    border-radius: var(--radius);
}

/* 详情页样式 */
.detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(180deg, var(--bg-card) 0%, transparent 100%);
    border-radius: var(--radius-lg);
}

.detail-cover {
    width: 200px;
    height: 200px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.detail-info {
    flex: 1;
}

.detail-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.detail-info h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.detail-creator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

.creator-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

.detail-meta a {
    color: var(--primary);
}

.detail-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.detail-actions .btn-primary,
.detail-actions .btn-secondary {
    width: auto;
}

.detail-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail-tracks {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}

.tracks-header {
    display: grid;
    grid-template-columns: 50px 1fr 150px 180px 60px;
    padding: 15px;
    background: var(--bg-darker);
    font-size: 13px;
    color: var(--text-muted);
}

.tracks-list .song-row {
    grid-template-columns: 50px 1fr 150px 180px 60px;
}

/* 歌手详情页 */
.artist-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(180deg, var(--bg-card) 0%, transparent 100%);
    border-radius: var(--radius-lg);
}

.artist-cover {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border-color);
}

.artist-info h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.artist-info > p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.artist-stats {
    display: flex;
    gap: 30px;
    color: var(--text-secondary);
    font-size: 14px;
}

.artist-stats strong {
    color: var(--text-primary);
    font-size: 18px;
}

.artist-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.artist-tab {
    padding: 10px 24px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.3s;
}

.artist-tab:hover {
    color: var(--text-primary);
}

.artist-tab.active {
    background: var(--primary);
    color: white;
}

/* 筛选标签 */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-tag {
    padding: 6px 16px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tag:hover {
    color: var(--text-primary);
}

.filter-tag.active {
    background: var(--primary);
    color: white;
}

.load-more {
    text-align: center;
    padding: 30px 0;
}

/* ==================== 播放器样式 ==================== */
.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 250px;
}

.player-cover {
    width: 55px;
    height: 55px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-card);
}

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

.player-song-name {
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.player-artist {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: 50%;
    transition: all 0.3s;
}

.player-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.player-btn svg {
    width: 20px;
    height: 20px;
}

.like-btn.liked {
    color: var(--primary);
}

.player-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.play-btn {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white !important;
}

.play-btn:hover {
    background: var(--primary-hover) !important;
}

.play-btn svg {
    width: 24px;
    height: 24px;
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.time {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 40px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-buffered {
    position: absolute;
    height: 100%;
    background: var(--border-color);
    border-radius: 2px;
}

.progress-played {
    position: absolute;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.progress-bar:hover .progress-played::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
}

.player-right {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 200px;
    justify-content: flex-end;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-level {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    width: 80%;
}

/* 播放列表侧边栏 */
.playlist-sidebar {
    position: fixed;
    right: 0;
    bottom: 80px;
    width: 350px;
    height: calc(100vh - 140px);
    background: var(--bg-darker);
    border-left: 1px solid var(--border-color);
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    font-size: 16px;
}

.sidebar-header span {
    color: var(--text-muted);
    font-size: 13px;
}

.sidebar-header .btn-link {
    margin-left: auto;
}

.close-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    border-radius: 50%;
    transition: all 0.3s;
}

.close-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.playlist-item:hover {
    background: var(--bg-card);
}

.playlist-item.playing {
    background: rgba(236, 65, 65, 0.1);
}

.playlist-item.playing .playlist-item-name {
    color: var(--primary);
}

.playlist-item-cover {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.playlist-item-info {
    flex: 1;
    min-width: 0;
}

.playlist-item-name {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item-artist {
    font-size: 12px;
    color: var(--text-secondary);
}

.playlist-item-remove {
    color: var(--text-muted);
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s;
}

.playlist-item:hover .playlist-item-remove {
    opacity: 1;
}

/* 歌词弹窗 */
.lyrics-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lyrics-modal-content {
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lyrics-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.lyrics-song-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lyrics-song-info img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    object-fit: cover;
}

.lyrics-song-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.lyrics-song-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.lyrics-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    text-align: center;
}

.lyrics-line {
    padding: 10px 0;
    font-size: 16px;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.lyrics-line.active {
    font-size: 18px;
    color: var(--primary);
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-app {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "main";
    }

    .sidebar {
        display: none;
    }

    .main-content {
        height: calc(100vh - 150px);
    }

    .detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .detail-creator,
    .detail-meta,
    .detail-actions {
        justify-content: center;
    }

    .tracks-header {
        display: none;
    }

    .song-row {
        grid-template-columns: 40px 1fr 50px;
    }

    .song-row-artist,
    .song-row-album {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-center {
        display: none;
    }

    .player {
        height: auto;
        flex-wrap: wrap;
        padding: 10px 15px;
    }

    .player-left {
        width: 100%;
        order: 1;
    }

    .player-center {
        width: 100%;
        order: 3;
        padding: 10px 0 0;
    }

    .player-right {
        width: auto;
        order: 2;
        position: absolute;
        right: 15px;
        top: 15px;
    }

    .player-controls {
        margin-bottom: 5px;
    }

    .playlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
    }

    .playlist-sidebar {
        width: 100%;
    }

    .daily-header {
        flex-direction: column;
        text-align: center;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
