/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent: #ffffff;
    --accent-dim: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-hover: rgba(255, 255, 255, 0.12);
    --glass-active: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(255, 255, 255, 0.12);
    --transition-fast: 0.15s;
    --transition-med: 0.25s;
    --transition-slow: 0.4s;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(160deg, #0d1f35 0%, #122840 35%, #0a1e30 65%, #071525 100%);
    background-attachment: scroll;
    color: var(--accent);
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    -webkit-text-size-adjust: 100%;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ===== 播放器容器 ===== */
.player-container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 24px 36px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
}

/* ===== 顶部导航栏 ===== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 8px;
}

.back-btn,
.more-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    width: 36px;
    height: 36px;
}
.back-btn svg,
.more-btn svg {
    width: 20px;
    height: 20px;
}

.back-btn:hover,
.more-btn:hover {
    background: var(--glass-hover);
    color: #fff;
}

.top-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ===== 封面区域 ===== */
.cover-area {
    display: flex;
    justify-content: center;
    padding: 20px 0 28px;
    position: relative;
}

.cover-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(100, 160, 220, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

.cover-img {
    width: 410px;
    height: 410px;
    border-radius: 20px;
    -webkit-object-fit: cover;
    object-fit: cover;
    box-shadow: 0 16px 48px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08);
    transition: transform 0.3s ease, border-radius var(--transition-slow), opacity 0.2s ease;
    position: relative;
    z-index: 1;
}

.cover-img.loading {
    opacity: 0.5;
    animation: coverPulse 1.2s ease-in-out infinite;
}

@keyframes coverPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%       { opacity: 0.7; transform: scale(0.97); }
}

/* 封面缓冲旋转 ring */
.buffering .cover-area::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 366px;
    height: 366px;
    margin: -183px 0 0 -183px;
    border-radius: 20px;
    border: 3px solid rgba(255,255,255,0.08);
    border-top-color: rgba(255,255,255,0.8);
    animation: spinRing 0.9s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes spinRing {
    to { transform: rotate(360deg); }
}

.cover-img:hover {
    transform: scale(1.03) translateY(-2px);
}

.playing .cover-img {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.12), 0 20px 60px rgba(0,0,0,0.5);
}

.playing .cover-glow {
    opacity: 1;
}

.playing .cover-area:hover .cover-img {
    animation-play-state: paused;
}

/* ===== 节目信息区 ===== */
.info-section {
    padding: 0 2px 16px;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.program-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
    word-break: break-word;
    color: rgba(255, 255, 255, 0.95);
}

.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    width: 36px;
    height: 36px;
    justify-content: center;
}

.like-btn:hover {
    background: var(--glass-hover);
}

.like-btn.liked .heart-icon {
    fill: #ff4757;
    stroke: #ff4757;
}

.heart-icon {
    width: 22px;
    height: 22px;
    color: rgba(255,255,255,0.5);
    transition: all var(--transition-fast);
}

.like-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.author-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.author-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.follow-tag {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    padding: 2px 8px;
    border-radius: 9999px;
}

.description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== 进度条区域 ===== */
.progress-section {
    padding: 14px 0 4px;
}

.progress-bar {
    position: relative;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.progress-bar:hover {
    height: 7px;
}

.progress-filled {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(255,255,255,0.85));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-thumb {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    left: 0%;
    opacity: 0;
    transition: opacity var(--transition-fast), left 0.1s linear, transform var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.progress-bar:hover .progress-thumb {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.progress-bubble {
    position: absolute;
    top: -34px;
    left: 0%;
    transform: translateX(-50%);
    /* fallback for browsers without backdrop-filter */
    background: rgba(30, 40, 55, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(30, 40, 55, 0.95);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 5;
}

/* 悬停 / 拖拽时显示气泡 */
.progress-bar:hover .progress-bubble,
.progress-bar.dragging .progress-bubble {
    opacity: 1;
}

.progress-bubble::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(30, 40, 55, 0.95);
}

.progress-bar:hover .progress-bubble {
    opacity: 1;
}

.time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

.speed-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 9999px;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.speed-btn:hover {
    color: #fff;
}

.speed-btn.active {
    color: #64b5f6;
}

.current-time,
.duration {
    min-width: 46px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ===== 播放控制按钮 ===== */
.controls-main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 24px 0 12px;
}

/* 15/30秒 圆框按钮 */
.skip-btn {
    background: none;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
    position: relative;
    color: rgba(255,255,255,0.7);
    flex-shrink: 0;
}

.skip-btn:hover {
    border-color: rgba(255,255,255,0.9);
    color: #fff;
    transform: scale(1.08);
}

.skip-btn:active {
    transform: scale(0.92);
}

.skip-num {
    position: absolute;
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    bottom: 4px;
    letter-spacing: 0.5px;
}

.skip-btn:hover .skip-num {
    color: #fff;
}

.skip-icon {
    width: 18px;
    height: 18px;
    margin-top: -5px;
}

/* 上一曲/下一曲 纯线条图标 */
.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.65);
    transition: all var(--transition-fast);
}

.nav-btn svg {
    width: 26px;
    height: 26px;
}

.nav-btn:hover {
    color: #fff;
    transform: scale(1.12);
}

.nav-btn:active {
    transform: scale(0.9);
}

/* 播放/暂停 主按钮 */
.play-pause-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform var(--transition-fast);
    color: #fff;
}

.play-pause-btn svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
    transition: transform var(--transition-fast);
}

.play-pause-btn:hover {
    transform: scale(1.1);
}

.play-pause-btn:active {
    transform: scale(0.9);
}

.play-icon {
    margin-left: 3px;
}

.pause-icon {
    margin-left: 0;
}

/* ===== 循环模式行 ===== */
.loop-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 0 8px;
}

.loop-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: rgba(255,255,255,0.35);
    width: 36px;
    height: 36px;
}

.loop-btn:hover {
    background: var(--glass-hover);
    color: rgba(255,255,255,0.7);
}

.loop-btn.active {
    color: #64b5f6;
}

.loop-icon {
    width: 20px;
    height: 20px;
    display: none;
}

.loop-btn.loop-off .loop-off,
.loop-btn.loop-one .loop-one,
.loop-btn.loop-all .loop-all {
    display: block;
}

.loop-label {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    min-width: 48px;
}

.loop-btn.active ~ .loop-label {
    color: #64b5f6;
}

/* ===== 音量控制 ===== */
.volume-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6px 0 10px;
}

.volume-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: rgba(255,255,255,0.6);
}

.volume-icon-btn:hover {
    color: #fff;
    background: var(--glass-hover);
}

.vol-svg {
    width: 20px;
    height: 20px;
}

.volume-slider-wrap {
    flex: 1;
    max-width: 160px;
}

.volume-bar {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    transition: height var(--transition-fast);
}

.volume-bar:hover {
    height: 6px;
}

.volume-filled {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    width: 80%;
}

.volume-thumb {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    left: 80%;
    opacity: 0;
    transition: opacity var(--transition-fast);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.volume-bar:hover .volume-thumb {
    opacity: 1;
}

/* ===== 底部功能栏 ===== */
.bottom-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 16px 0 8px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bottom-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all var(--transition-fast);
    color: rgba(255,255,255,0.5);
}

.bottom-btn:hover {
    color: rgba(255,255,255,0.85);
    background: var(--glass-hover);
}

.bottom-btn:active {
    transform: scale(0.92);
}

.bottom-btn svg {
    width: 22px;
    height: 22px;
}

.bottom-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.38);
    transition: color var(--transition-fast);
}

.bottom-btn:hover .bottom-label {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== 倍速弹窗 ===== */
.speed-popup {
    position: fixed;
    bottom: 160px;
    left: 50%;
    transform: translateX(-50%) scale(0.88);
    /* fallback for browsers without backdrop-filter */
    background: rgba(25, 35, 50, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(25, 35, 50, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px 20px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med), transform var(--transition-med);
    min-width: 200px;
}

.speed-popup.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
}

.speed-popup-title {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.speed-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.speed-option {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
    padding: 8px 0;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    font-weight: 500;
}

.speed-option:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.speed-option.active {
    background: rgba(100, 181, 246, 0.15);
    color: #64b5f6;
    border-color: rgba(100, 181, 246, 0.25);
}

/* ===== 遮罩层 ===== */
.overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med);
}

.overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ===== 播放列表面板 ===== */
.playlist-panel {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 480px;
    max-height: 55vh;
    /* fallback for browsers without backdrop-filter */
    background: rgba(20, 30, 45, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(20, 30, 45, 0.85);
    border-radius: 20px 20px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    z-index: 110;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.playlist-panel.visible {
    transform: translateX(-50%) translateY(0);
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.playlist-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.playlist-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all var(--transition-fast);
    line-height: 1;
}

.playlist-close:hover {
    background: var(--glass-hover);
    color: #fff;
}

.playlist-list {
    overflow-y: auto;
    padding: 6px 0;
    flex: 1;
}

.playlist-list::-webkit-scrollbar {
    width: 4px;
}

.playlist-list::-webkit-scrollbar-track {
    background: transparent;
}

.playlist-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.playlist-item.active {
    background: rgba(255, 255, 255, 0.07);
}

.playlist-item-index {
    width: 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.playlist-item.active .playlist-item-index {
    color: #64b5f6;
}

.playing-bars {
    display: none;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    width: 16px;
    height: 14px;
}

.playing-bar {
    width: 3px;
    background: #64b5f6;
    border-radius: 1px;
    animation: playingBars 0.8s ease-in-out infinite;
}

.playing-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.playing-bar:nth-child(2) { height: 80%; animation-delay: 0.15s; }
.playing-bar:nth-child(3) { height: 55%; animation-delay: 0.3s; }

@keyframes playingBars {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

.playlist-item.active .playing-bars {
    display: flex;
}

.playlist-item.active .playlist-item-index-num {
    display: none;
}

.playlist-item-info {
    flex: 1;
    min-width: 0;
}

.playlist-item-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-item.active .playlist-item-title {
    color: #64b5f6;
}

.playlist-item-author {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.32);
    margin-top: 2px;
}

.playlist-item-duration {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

/* ===== Toast 通知 ===== */
.toast-container {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

/* 防止双击 / 双指选中文本 */
.player-container,
.player-container * {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* 播放列表面板滚动 */
.playlist-list {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.toast {
    background: rgba(25, 35, 50, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(25, 35, 50, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-12px) scale(0.9);
    animation: toastIn 0.3s ease forwards;
    white-space: nowrap;
}

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

/* ===== 响应式适配 ===== */

/* 小屏手机 */
@media (max-width: 359px) {
    .player-container {
        padding: 0 12px 24px;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
    .cover-area { padding: 16px 0 20px; }
    .cover-img { width: 280px; height: 280px; border-radius: 20px; }
    .program-title { font-size: 16px; }
    .controls-main { gap: 16px; padding: 18px 0 10px; }
    .skip-btn { width: 38px; height: 38px; }
    .skip-icon { width: 15px; height: 15px; }
    .skip-num { font-size: 8px; }
    .nav-btn { width: 30px; height: 30px; }
    .nav-btn svg { width: 22px; height: 22px; }
    .play-pause-btn { width: 56px; height: 56px; }
    .play-pause-btn svg { width: 30px; height: 30px; }
    .progress-bar { height: 8px; border-radius: 4px; }
    .progress-thumb { width: 18px; height: 18px; opacity: 1; }
    .bottom-btn svg { width: 19px; height: 19px; }
    .bottom-label { font-size: 10px; }
    .loop-row { padding: 2px 0 6px; }
}

/* 标准手机 */
@media (min-width: 360px) and (max-width: 480px) {
    .player-container {
        padding: 0 20px 28px;
        padding-bottom: max(28px, env(safe-area-inset-bottom));
    }
    .cover-area { padding: 18px 0 24px; }
    .cover-img { width: 320px; height: 320px; }
    .controls-main { gap: 24px; }
    .skip-btn { width: 42px; height: 42px; }
    .play-pause-btn { width: 60px; height: 60px; }
    .play-pause-btn svg { width: 34px; height: 34px; }
}

/* 大屏/平板 */
@media (min-width: 481px) {
    body {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 20px;
    }
    .player-container {
        min-height: auto;
        border-radius: 20px;
        margin-bottom: 20px;
        box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    }
}

/* 横屏 */
@media (max-height: 550px) and (orientation: landscape) {
    .player-container {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
    .cover-area { padding: 8px 0 10px; }
    .cover-img { width: 180px; height: 180px; }
    .controls-main { gap: 16px; padding: 8px 0 4px; }
    .play-pause-btn { width: 52px; height: 52px; }
    .play-pause-btn svg { width: 28px; height: 28px; }
    .program-title { font-size: 14px; }
}