/* ============================================
   网易云风格底部播放器 - music_wyple.css
   ============================================ */

:root {
    --player-bg: rgba(40, 40, 45, 0.95);
    --player-bar-height: 64px;
    --player-panel-height: 70vh;
    --theme-primary: #c9a96e;
    --theme-secondary: #e8d5a3;
    --theme-rgb: 201, 169, 110;
    --text-primary: #fff;
    --text-secondary: rgba(255,255,255,0.7);
    --text-muted: rgba(255,255,255,0.45);
    --border-color: rgba(255,255,255,0.08);
    --hover-bg: rgba(255,255,255,0.1);
    --active-bg: rgba(255,255,255,0.15);
    --cover-size: 44px;
    --cover-radius: 6px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ========== 底部播放条 ========== */
.bottom-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--player-bar-height);
    background: var(--player-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 9999;
    font-family: var(--font-family);
    user-select: none;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.3);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-player-bar.hidden {
    transform: translateY(100%);
}

/* 底部悬浮感应区 */
.bottom-hover-zone {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 9998;
    pointer-events: none;
}

.bottom-hover-zone.active {
    pointer-events: auto;
}

.bar-progress-track {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    z-index: 2;
}

.bar-progress-track:hover {
    height: 4px;
    top: -3px;
    transition: height 0.15s ease;
}

.bar-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary));
    border-radius: 0 2px 2px 0;
    transition: width 0.3s linear;
}

.bar-main {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 16px;
    gap: 10px;
}

/* ========== 播放控制 ========== */
.bar-controls {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* ========== 封面区 ========== */
.bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.bar-left:hover {
    background: var(--hover-bg);
}

.bar-left:active {
    background: var(--active-bg);
}

.bar-cover-wrap {
    position: relative;
    width: var(--cover-size);
    height: var(--cover-size);
    border-radius: var(--cover-radius);
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.06);
}

.bar-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    border-radius: var(--cover-radius);
}

.bar-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-muted);
}

.bar-cover-wrap .bar-cover[src]:not([src=""]) {
    display: block;
}

.bar-cover-wrap .bar-cover[src]:not([src=""]) ~ .bar-cover-placeholder {
    display: none;
}

.bar-cover-wrap .bar-cover[style*="display: none"] ~ .bar-cover-placeholder {
    display: flex;
}

.bar-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.bar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.bar-artist {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* 进度条 */
.bar-center-progress {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 220px;
    flex-shrink: 0;
}

/* 右侧歌单+音量+锁 */
.bar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 锁头按钮 - 播放器右上角边框 */
.bar-lock-btn {
    position: absolute;
    top: -14px;
    right: 24px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(60, 60, 66, 0.95);
    border: 2px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bar-lock-btn:hover {
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.25);
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}

.bar-lock-btn:active {
    transform: scale(0.95);
}

.bar-lock-btn.locked {
    color: var(--theme-primary);
    border-color: rgba(var(--theme-rgb), 0.5);
    background: rgba(var(--theme-rgb), 0.1);
    box-shadow: 0 2px 12px rgba(var(--theme-rgb), 0.25), inset 0 1px 0 rgba(255,255,255,0.08);
}

.bar-lock-btn.locked:hover {
    border-color: var(--theme-primary);
    box-shadow: 0 4px 20px rgba(var(--theme-rgb), 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: scale(1.1);
}

.lock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.lock-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* 锁定态图标加微阴影，解锁态描边图标加粗显示 */
.bar-lock-btn.locked .lock-icon svg {
    filter: drop-shadow(0 1px 2px rgba(var(--theme-rgb), 0.3));
}

.bar-time-text {
    font-size: 11px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
}

.bar-center-progress-track {
    position: relative;
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
    cursor: pointer;
    transition: height 0.15s ease;
}

.bar-center-progress-track:hover {
    height: 6px;
}

.bar-center-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary));
    border-radius: 2px;
    transition: width 0.3s linear;
    position: relative;
}

.bar-center-progress-thumb {
    display: none;
}

.bar-center-progress-track:hover .bar-center-progress-thumb {
    display: block;
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--text-primary);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.bar-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.bar-btn:active {
    transform: scale(0.92);
}

.bar-mode-btn {
    font-size: 14px;
}

.bar-play-btn {
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 20px;
    margin: 0 6px;
}

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

.bar-play-icon {
    display: inline-block;
    line-height: 1;
}

.bar-volume-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.bar-volume-wrap:hover {
    background: var(--hover-bg);
}

.bar-volume-icon {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1;
}

.bar-volume-slider {
    position: relative;
    width: 60px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    cursor: pointer;
}

.bar-volume-fill {
    height: 100%;
    width: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    transition: width 0.1s ease;
}

/* ============================================
   展开面板
   ============================================ */
.player-panel {
    position: fixed;
    bottom: var(--player-bar-height);
    left: 0;
    right: 0;
    height: var(--player-panel-height);
    max-height: calc(100vh - var(--player-bar-height) - 20px);
    background: linear-gradient(180deg, rgba(30,30,35,0.98) 0%, rgba(20,20,24,0.99) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid var(--border-color);
    border-radius: 16px 16px 0 0;
    z-index: 9998;
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    animation: panelSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
    overflow: hidden;
}

.player-panel.hiding {
    animation: panelSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes panelSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0.5;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes panelSlideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0.5;
    }
}

/* ========== 面板头部 ========== */
.panel-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    flex-shrink: 0;
    position: relative;
}

.panel-close-btn {
    background: rgba(255,255,255,0.06);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.panel-close-btn:hover {
    background: rgba(255,255,255,0.12);
    color: var(--text-primary);
}

.panel-close-arrow {
    display: inline-block;
    font-size: 12px;
}

/* ========== 面板主体 ========== */
.panel-body {
    display: flex;
    flex: 1;
    min-height: 0;
    padding: 0 24px 12px;
    gap: 32px;
}

/* 左列 */
.panel-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 320px;
    min-width: 280px;
    flex-shrink: 0;
    gap: 16px;
    padding-top: 8px;
}

.panel-visualizer {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
}

.panel-visualizer canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.panel-cover-section {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.panel-cover-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(40px);
    opacity: 0.3;
    z-index: 0;
}

.panel-cover {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    border-radius: 12px;
}

.panel-cover-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
}

.panel-cover[src]:not([src=""]) {
    display: block;
}

.panel-cover[src]:not([src=""]) ~ .panel-cover-placeholder {
    display: none;
}

.panel-song-info {
    text-align: center;
    width: 100%;
    min-width: 0;
}

.panel-song-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-song-artist {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-song-source {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 右列 */
.panel-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    gap: 8px;
}

.panel-tabs {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 3px;
    flex-shrink: 0;
}

.panel-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.panel-tab:hover {
    color: var(--text-secondary);
}

.panel-tab.active {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    font-weight: 600;
}

/* 歌词区域 */
.panel-lyrics {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
}

.lyrics-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 8px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    position: relative;
}

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

.lyrics-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
    border-radius: 3px;
}

.lyrics-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.lyrics-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

.lyrics-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lyrics-line {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
    margin: 0;
    padding: 4px 12px;
    transition: all 0.3s ease;
    border-radius: 4px;
    cursor: default;
}

.lyrics-line.active {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.lyrics-line.lyrics-empty {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
}

/* 歌单列表区域 */
.panel-playlist {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    gap: 8px;
}

.panel-playlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 4px 0;
}

.panel-playlist-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.playlist-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.playlist-count {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.06);
    padding: 1px 8px;
    border-radius: 10px;
}

.panel-playlist-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.play-all-btn {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    border: none;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 14px;
    border-radius: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 600;
}

.play-all-btn:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.panel-search {
    flex-shrink: 0;
}

.panel-search-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.panel-search-input:focus {
    border-color: var(--theme-primary);
}

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

/* 歌单网格 */
.playlist-grid {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    flex-shrink: 0;
    padding: 4px 0;
    scrollbar-width: thin;
}

.playlist-grid::-webkit-scrollbar {
    height: 3px;
}

.playlist-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

.group-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.group-card:hover {
    background: rgba(255,255,255,0.08);
}

.group-card.active {
    background: rgba(201,169,110,0.15);
    border-color: var(--theme-primary);
}

.group-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.group-card-cover {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.group-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.group-card-icon {
    font-size: 16px;
    color: var(--text-muted);
}

.group-lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.group-card-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.group-card-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

.group-card-count {
    font-size: 11px;
    color: var(--text-muted);
}

/* 歌曲列表 */
.panel-songs-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 0;
    scrollbar-width: thin;
}

.panel-songs-list::-webkit-scrollbar {
    width: 4px;
}

.panel-songs-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.song-item:hover {
    background: rgba(255,255,255,0.04);
}

.song-item.active {
    background: rgba(201,169,110,0.08);
}

.song-item-cover-wrap {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.song-item-cover-icon {
    font-size: 16px;
    color: var(--text-muted);
}

.song-item-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 6px;
}

.song-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.song-item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.song-item-playcount {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.song-item-status {
    width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.playing-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--theme-primary);
    display: none;
    animation: pulse 1s ease-in-out infinite;
}

.song-item.active .playing-indicator {
    display: block;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* ========== 面板底部：版权信息 ========== */
.panel-footer {
    flex-shrink: 0;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--border-color);
}

.panel-copyright {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 12px;
    opacity: 0.7;
}

.copyright-icon {
    font-size: 13px;
    line-height: 1;
}

.copyright-text {
    line-height: 1.4;
}

/* ========== 权限遮罩 ========== */
.permission-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
}

.permission-dialog {
    background: rgba(40,40,45,0.95);
    border-radius: 16px;
    padding: 32px 40px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

.permission-icon {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--theme-primary);
}

.permission-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.permission-message {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 4px;
    line-height: 1.5;
}

.permission-tip {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 20px;
}

.permission-close-btn {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 28px;
    border-radius: 20px;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 600;
}

.permission-close-btn:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* ========== 底部安全区域适配 ========== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-player-bar {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(var(--player-bar-height) + env(safe-area-inset-bottom));
    }
    .player-panel {
        bottom: calc(var(--player-bar-height) + env(safe-area-inset-bottom));
    }
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .panel-body {
        flex-direction: column;
        padding: 0 16px 8px;
        gap: 12px;
    }
    
    .panel-left {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        gap: 16px;
        padding-top: 4px;
    }
    
    .panel-cover-section {
        width: 100px;
        height: 100px;
    }
    
    .panel-visualizer {
        display: none;
    }
    
    .panel-song-info {
        text-align: left;
        flex: 1;
    }
    
    .panel-song-title {
        font-size: 16px;
    }
    
    .panel-song-artist {
        font-size: 13px;
    }
    
    .panel-right {
        flex: 1;
        min-height: 0;
    }
    
    .bar-volume-wrap {
        display: none;
    }
    
    .player-panel {
        height: 85vh;
    }
}

@media (max-width: 600px) {
    .bar-main {
        padding: 0 8px;
        gap: 4px;
    }
    
    .bar-center-progress {
        width: 80px;
    }
    
    .bar-time-text {
        display: none;
    }
    
    .bar-left .bar-info {
        display: none;
    }
    
    .bar-actions .bar-volume-wrap .bar-volume-slider {
        width: 40px;
    }
    
    .bar-btn {
        font-size: 16px;
        padding: 4px 4px;
    }
    
    .bar-play-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .bar-mode-btn {
        display: none;
    }
    
    .bar-controls {
        gap: 0;
    }
    
    .bar-actions {
        gap: 2px;
    }
    
    .panel-controls {
        gap: 8px;
    }
    
    .panel-volume-wrap {
        margin-left: 8px;
    }
    
    .panel-volume-slider {
        width: 40px;
    }
}
