/* YouTube 灵感设计 - 现代深色播放器 */
.smp-ios-player {
    margin: 24px 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'YouTube Noto', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* 主卡片 - 深色玻璃质感 */
.smp-ios-card {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
    overflow: hidden;
}

.smp-ios-card:hover {
    background: linear-gradient(145deg, #1e1e1e, #111111);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* 顶部区域 - 歌名和歌手布局 */
.smp-ios-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

/* 专辑封面风格图标 */
.smp-ios-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, #282828, #1a1a1a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4d4d;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.smp-ios-icon svg {
    width: 26px;
    height: 26px;
}

.smp-ios-card:hover .smp-ios-icon {
    transform: scale(1.02);
    border-color: rgba(255, 77, 77, 0.3);
}

/* 文字信息区域 */
.smp-ios-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.2px;
    line-height: 1.4;
    margin-bottom: 4px;
}

/* 添加歌手/专辑副标题 */
.smp-ios-subtitle {
    font-size: 12px;
    color: #aaa;
    font-weight: 400;
    margin-top: 4px;
    letter-spacing: 0px;
}

/* 控制栏 - 播放按钮 + 进度条 */
.smp-ios-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* 播放按钮 - 圆形红色渐变 */
.smp-ios-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    flex-shrink: 0;
    background: linear-gradient(145deg, #ff4d4d, #cc0000);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

.smp-ios-play-btn svg {
    width: 20px;
    height: 20px;
}

.smp-ios-play-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(145deg, #ff6666, #dd0000);
    box-shadow: 0 6px 16px rgba(204, 0, 0, 0.4);
}

.smp-ios-play-btn:active {
    transform: scale(0.96);
}

.smp-ios-play-icon, .smp-ios-pause-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

/* 进度条容器 */
.smp-ios-progress-area {
    flex: 1;
    min-width: 160px;
}

/* 进度条轨道 */
.smp-ios-progress-bar {
    background: rgba(255, 255, 255, 0.15);
    height: 4px;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: visible;
    transition: height 0.2s;
}

.smp-ios-progress-bar:hover {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
}

/* 进度填充 - 红色渐变 */
.smp-ios-progress-fill {
    background: linear-gradient(90deg, #ff4d4d, #ff9999);
    width: 0%;
    height: 100%;
    border-radius: 4px;
    transition: width 0.05s linear;
    position: relative;
}

/* 进度条上的圆形拖拽手柄 */
.smp-ios-progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid #ff4d4d;
}

.smp-ios-progress-bar:hover .smp-ios-progress-fill::after {
    opacity: 1;
}

/* 时间标签 */
.smp-ios-time {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.smp-ios-current, .smp-ios-duration {
    font-family: 'Roboto Mono', 'SF Mono', monospace;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
}

/* 底部添加波形动画区域（可选） */
.smp-ios-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.smp-wave-bar {
    width: 3px;
    height: 12px;
    background: #ff4d4d;
    border-radius: 2px;
    animation: wave 0.8s ease-in-out infinite;
}

.smp-wave-bar:nth-child(1) { animation-delay: 0s; height: 8px; }
.smp-wave-bar:nth-child(2) { animation-delay: 0.1s; height: 16px; }
.smp-wave-bar:nth-child(3) { animation-delay: 0.2s; height: 12px; }
.smp-wave-bar:nth-child(4) { animation-delay: 0.3s; height: 20px; }
.smp-wave-bar:nth-child(5) { animation-delay: 0.4s; height: 10px; }
.smp-wave-bar:nth-child(6) { animation-delay: 0.5s; height: 14px; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); opacity: 0.5; }
    50% { transform: scaleY(1.5); opacity: 1; }
}

/* 错误状态 */
.smp-error-ios {
    background: #1a1a1a;
    color: #ff4d4d;
    padding: 14px 18px;
    border-radius: 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 77, 77, 0.2);
}

/* 深色模式完美适配（始终深色） */
@media (prefers-color-scheme: light) {
    .smp-ios-card {
        background: linear-gradient(145deg, #1e1e1e, #121212);
    }
    
    .smp-ios-title {
        color: #ffffff;
    }
    
    .smp-ios-subtitle {
        color: #b0b0b0;
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .smp-ios-card {
        padding: 12px 16px;
        border-radius: 14px;
    }
    
    .smp-ios-play-btn {
        width: 42px;
        height: 42px;
    }
    
    .smp-ios-icon {
        width: 40px;
        height: 40px;
    }
    
    .smp-ios-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .smp-ios-title {
        font-size: 14px;
    }
    
    .smp-ios-subtitle {
        font-size: 11px;
    }
    
    .smp-ios-time {
        font-size: 10px;
    }
    
    .smp-wave-bar {
        height: 10px;
    }
}