/* 用户端样式 */

/* 帖子页按钮 */
.abc-splayer-actions {
    margin: 0.5rem 0;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.abc-splayer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid #dc3545;
    border-radius: 0.25rem;
    background: #fff;
    color: #dc3545;
    font-size: 0.875rem;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.abc-splayer-btn:hover {
    background: #dc3545;
    color: #fff;
    text-decoration: none;
}

.abc-splayer-btn.abc-splayer-addtoplaylist {
    border-color: #0d6efd;
    color: #0d6efd;
}

.abc-splayer-btn.abc-splayer-addtoplaylist:hover {
    background: #0d6efd;
    color: #fff;
}

.abc-splayer-btn.active {
    background: #fff;
    color: #dc3545;
}

/* 帖子页下载列表（歌曲/歌词） */
.abc-splayer-download-list {
    margin: 10px 0;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
.abc-splayer-download-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    background: #f5f7fa;
}
.abc-splayer-download-item:last-child {
    border-bottom: none;
}
.abc-splayer-download-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 12px;
    color: #555;
    flex-shrink: 0;
    font-size: 14px;
}
.abc-splayer-download-name {
    flex: 1;
    min-width: 0;
    color: #333;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}
.abc-splayer-download-btn {
    flex-shrink: 0;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
}
.abc-splayer-download-btn .icon {
    margin-right: 0.25rem;
}

/* 个人中心页面 */
.abc-splayer-user-page {
    padding: 0;
}

.abc-splayer-user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.abc-splayer-user-title {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.abc-splayer-user-title h4 {
    margin: 0;
}

.abc-splayer-user-toolbar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.abc-splayer-search {
    width: 180px;
}

.abc-splayer-song-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.abc-splayer-song-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.abc-splayer-song-item:hover {
    background: #f8f9fa;
}

.abc-splayer-song-cover {
    width: 60px;
    height: 60px;
    border-radius: 0.25rem;
    object-fit: cover;
    margin-right: 0.75rem;
    flex-shrink: 0;
    background: #e9ecef;
}

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

.abc-splayer-song-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.abc-splayer-song-name a {
    color: #0d6efd;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.abc-splayer-song-name a:hover {
    text-decoration: underline;
}

.abc-splayer-song-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.abc-splayer-song-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.abc-splayer-song-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.abc-splayer-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.abc-splayer-inline-player {
    border-radius: 0.25rem;
    overflow: hidden;
}

/* 歌单 */
.abc-splayer-playlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 991px) {
    .abc-splayer-playlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .abc-splayer-playlist-grid {
        grid-template-columns: 1fr;
    }
}

.abc-splayer-playlist-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    background: #fff;
    transition: box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}

.abc-splayer-playlist-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.abc-splayer-playlist-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.abc-splayer-playlist-name a {
    color: #333;
    text-decoration: none;
}

.abc-splayer-playlist-name a:hover {
    color: #0d6efd;
}

.abc-splayer-playlist-desc {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    min-height: 1.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.abc-splayer-playlist-count {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.abc-splayer-playlist-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* 返回 */
.abc-splayer-back {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #6c757d;
    cursor: pointer;
    text-decoration: none;
}

.abc-splayer-back:hover {
    color: #0d6efd;
    text-decoration: none;
}

.abc-splayer-back .icon {
    font-size: 1rem;
}

/* 弹窗 */
#abcSplayerPlaylistModal .modal-body {
    padding: 1.5rem;
}

/* 提示 */
.abc-splayer-vip-lock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    text-align: center;
}

.abc-splayer-vip-lock .vip-icon {
    font-size: 4rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.abc-splayer-vip-lock .vip-text {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.abc-splayer-vip-lock .btn-vip-open {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
    padding: 0.5rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
}

.abc-splayer-vip-lock .btn-vip-open:hover {
    background: #e0a800;
    border-color: #e0a800;
    color: #212529;
}

/* ==================== 下载倒计时弹窗 ==================== */
/* 弹窗垂直居中兜底（仅 show 状态用 flex，避免破坏 Bootstrap 的 display:none 隐藏逻辑） */
.abc-splayer-countdown-modal.show,
.abc-splayer-download-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}
.abc-splayer-countdown-modal .modal-dialog,
.abc-splayer-download-modal .modal-dialog {
    margin: auto;
}
.abc-splayer-countdown-modal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}
.abc-splayer-countdown-modal .modal-header {
    border-bottom: none;
    padding: 1rem 1.5rem;
    background: #fff;
}
.abc-splayer-countdown-modal .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.abc-splayer-countdown-modal .modal-title .icon {
    color: #ffc107;
    font-size: 1.2rem;
}
.abc-splayer-countdown-modal .modal-body {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}
.abc-splayer-countdown-number {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #ffe0b2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff7043;
}
.abc-splayer-countdown-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.abc-splayer-vip-card {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
    margin-bottom: 1rem;
}
.abc-splayer-vip-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}
.abc-splayer-vip-card-title .icon {
    color: #ff7043;
    font-size: 1.2rem;
}
.abc-splayer-vip-card-desc {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
}
.abc-splayer-vip-card-desc strong {
    color: #ff7043;
}
.abc-splayer-countdown-btn {
    background: #ffc107;
    border: none;
    color: #333;
    padding: 0.6rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.abc-splayer-countdown-btn:hover {
    background: #e0a800;
}

/* ==================== 下载选择页弹窗 ==================== */
.abc-splayer-download-modal .modal-content {
    border: none;
    border-radius: 12px;
}
.abc-splayer-download-modal .modal-header {
    border-bottom: none;
    padding: 1rem 1.5rem;
}
.abc-splayer-download-modal .modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
}
.abc-splayer-download-modal .modal-body {
    padding: 0 1.5rem 1.5rem;
}
.abc-splayer-download-tip {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.abc-splayer-download-tip .icon {
    color: #ff7043;
}
.abc-splayer-download-tip strong {
    color: #333;
}
.abc-splayer-download-channel {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.abc-splayer-download-channel:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13,110,253,0.1);
}
.abc-splayer-download-channel-body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.abc-splayer-download-channel-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.abc-splayer-download-channel-icon.secondary {
    background: #f5f5f5;
    color: #666;
}
.abc-splayer-download-channel-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
}
.abc-splayer-download-channel-title {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    line-height: 1.3;
}
.abc-splayer-download-channel-title .tag {
    display: inline-block;
    background: #0d6efd;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
    font-weight: 400;
    vertical-align: middle;
}
.abc-splayer-download-channel-title .tag.secondary {
    background: #6c757d;
}
.abc-splayer-download-channel-title .tag.flac {
    background: #ff9800;
}
.abc-splayer-download-channel-desc {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.3;
}
.abc-splayer-download-channel-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
}
.abc-splayer-download-badge {
    position: absolute;
    right: 0;
    top: 0;
    background: #ff7043;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 0 8px 0 8px;
    font-weight: 600;
}
.abc-splayer-download-badge.secondary {
    background: #6c757d;
}
.abc-splayer-download-badge.flac {
    background: #ff9800;
}
.abc-splayer-download-channel-icon.flac {
    background: #fff3e0;
    color: #ff9800;
}
.abc-splayer-download-qr {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px dashed #e0e0e0;
    border-radius: 8px;
}
.abc-splayer-download-qr-img {
    width: 100px;
    height: 100px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    flex-shrink: 0;
    overflow: hidden;
}
.abc-splayer-download-qr-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.abc-splayer-download-qr-text {
    color: #333;
    /*font-size: 0.9rem;*/
    line-height: 1.6;
}
.abc-splayer-download-qr-text strong {
    color: #0d6efd;
}
