/* public/assets/css/audio/web-radio.css */

.rad-wrapper { padding: 32px; border-radius: var(--radius-lg); position: relative; }
.rad-header { text-align: center; margin-bottom: 24px; }
.rad-title { font-size: 2rem; font-weight: 800; color: var(--text-main); margin-bottom: 12px; letter-spacing: -0.5px; }
.rad-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; line-height: 1.6; }

/* 🌟 核心布局 */
.rad-workspace { display: flex; flex-direction: row-reverse; width: 100%; max-width: 1200px; margin: 0 auto; height: 75vh; min-height: 600px; background: #000; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); }

/* 主播放器容器 */
.rad-main-player { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; overflow: hidden; background: #0f172a; }

/* 动态高斯模糊大背景 */
.rad-blur-bg { position: absolute; inset: -50px; background-image: url('https://ui-avatars.com/api/?name=Music&background=0f172a&color=fff&size=512'); background-size: cover; background-position: center; filter: blur(40px) brightness(0.4); z-index: 1; transition: background-image 0.5s ease; }

.rad-player-header { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; z-index: 10; position: relative; }
.rad-menu-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(8px); transition: 0.2s; }
.rad-menu-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }

.rad-status-badge { font-size: 0.85rem; color: #e2e8f0; font-weight: 600; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(8px); padding: 6px 14px; border-radius: 20px; letter-spacing: 0.5px; }
.rad-status-badge.error { background: rgba(239, 68, 68, 0.8); color: #fff; }

.rad-top-fav-btn { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(8px); color: #94a3b8; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.rad-top-fav-btn:hover { background: rgba(255,255,255,0.2); color: #f8fafc; }
.rad-top-fav-btn.active { color: #f59e0b; border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.2); }

/* 🌟 核心视觉：黑胶唱片旋转动效 */
.rad-vinyl-wrapper { flex: 1; display: flex; justify-content: center; align-items: center; z-index: 10; padding: 20px; }
.rad-vinyl-record { width: 280px; height: 280px; border-radius: 50%; background: #111; box-shadow: 0 0 0 8px #1a1a1a, 0 0 0 16px #222, 0 20px 40px rgba(0,0,0,0.8); position: relative; display: flex; justify-content: center; align-items: center; animation: radSpin 12s linear infinite; animation-play-state: paused; transition: transform 0.3s; }
.rad-workspace.is-playing .rad-vinyl-record { animation-play-state: running; }

@keyframes radSpin { 100% { transform: rotate(360deg); } }
.rad-cover-img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 4px solid #000; transition: 0.3s; }
.rad-vinyl-hole { position: absolute; width: 16px; height: 16px; background: #0f172a; border-radius: 50%; border: 2px solid #333; }

/* 曲目信息 */
.rad-track-info { text-align: center; z-index: 10; padding: 0 40px 20px 40px; }
.rad-track-name { margin: 0 0 8px 0; font-size: 1.8rem; font-weight: 800; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rad-track-group { margin: 0; font-size: 1rem; color: #cbd5e1; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

/* 🌟 音频控制条 */
.rad-custom-controls { background: linear-gradient(transparent, rgba(0,0,0,0.9)); padding: 20px 40px 40px 40px; z-index: 10; display: flex; flex-direction: column; gap: 20px; }

/* 进度条区 */
.rad-progress-container { display: flex; align-items: center; gap: 16px; }
.rad-time { color: #cbd5e1; font-size: 0.85rem; font-family: monospace; font-weight: bold; width: 45px; text-align: center; }
.rad-seek-slider { flex: 1; -webkit-appearance: none; height: 6px; background: rgba(255,255,255,0.2); border-radius: 3px; outline: none; cursor: pointer; }
.rad-seek-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #3b82f6; box-shadow: 0 0 10px rgba(59,130,246,0.6); transition: 0.2s; }
.rad-seek-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* 按钮区 */
.rad-ctrl-row { display: flex; justify-content: space-between; align-items: center; }
.rad-ctrl-left { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: center; }
.rad-ctrl-right { display: flex; align-items: center; gap: 12px; position: absolute; right: 40px; }

.rad-ctrl-btn { background: none; border: none; color: #fff; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.2s; }
.rad-btn-sec { opacity: 0.7; }
.rad-btn-sec:hover { opacity: 1; transform: scale(1.1); color: #60a5fa; }
.rad-btn-main { background: #3b82f6; width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 10px 20px rgba(59,130,246,0.4); }
.rad-btn-main:hover { transform: scale(1.05); background: #2563eb; }

.rad-vol-slider { -webkit-appearance: none; width: 80px; height: 4px; background: rgba(255,255,255,0.3); border-radius: 2px; outline: none; cursor: pointer; }
.rad-vol-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; }

/* 侧边栏与列表 */
.rad-sidebar { width: 360px; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px); border-right: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; transition: width 0.3s ease; overflow: hidden; flex-shrink: 0; z-index: 20; }
.rad-sidebar.is-closed { width: 0; border-right: none; }

.rad-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.2); width: 360px; }
.rad-tab { flex: 1; padding: 16px 0; border: none; background: transparent; font-size: 0.95rem; font-weight: 700; color: #94a3b8; cursor: pointer; transition: 0.2s; border-bottom: 3px solid transparent; }
.rad-tab:hover { color: #e2e8f0; background: rgba(255,255,255,0.05); }
.rad-tab.active { color: #60a5fa; border-bottom-color: #60a5fa; background: rgba(59, 130, 246, 0.1); }

.rad-tab-content { display: none; flex-direction: column; flex: 1; overflow: hidden; animation: radFadeIn 0.3s ease; width: 360px; }
.rad-tab-content.active { display: flex; }
@keyframes radFadeIn { from { opacity: 0; } to { opacity: 1; } }

.rad-sidebar-search { padding: 14px 16px 10px 16px; }
.rad-search-input { width: 100%; padding: 10px 14px; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; font-size: 0.9rem; background: rgba(0,0,0,0.3); color: #f8fafc; outline: none; transition: 0.2s; box-sizing: border-box; }
.rad-search-input:focus { border-color: #3b82f6; }

.rad-category-pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.rad-pill { padding: 5px 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.15); background: rgba(0,0,0,0.2); color: #cbd5e1; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
.rad-pill:hover { border-color: #3b82f6; color: #60a5fa; }
.rad-pill.active { background: #3b82f6; border-color: #3b82f6; color: #fff; }

.rad-channel-list { flex: 1; overflow-y: auto; padding-bottom: 20px; }
.rad-channel-list::-webkit-scrollbar { width: 6px; }
.rad-channel-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

.rad-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: 0.2s; position: relative; }
.rad-item:hover { background: rgba(255,255,255,0.05); }
.rad-item.active { background: rgba(59, 130, 246, 0.15); border-left: 4px solid #3b82f6; padding-left: 12px; }
/* 音乐封面方形变圆角 */
.rad-item-logo { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; background: #fff; padding: 2px; border: 1px solid rgba(0,0,0,0.2); flex-shrink: 0; }
.rad-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-right: 8px; }
.rad-item-name { font-size: 0.95rem; font-weight: 700; color: #f8fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rad-item-cat { font-size: 0.75rem; color: #94a3b8; }
.rad-empty-state { text-align: center; padding: 40px 20px; color: #94a3b8; font-size: 0.9rem; }

.rad-item-fav-btn { background: none; border: none; padding: 6px; cursor: pointer; color: #475569; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: 0.2s; z-index: 2; }
.rad-item-fav-btn:hover { background: rgba(255,255,255,0.1); color: #f59e0b; }
.rad-item-fav-btn.active { color: #f59e0b; }

/* 自定义表单 */
.rad-custom-form { padding: 16px; background: rgba(0,0,0,0.2); border-bottom: 1px dashed rgba(255,255,255,0.1); width: 360px; box-sizing: border-box;}
.rad-custom-desc { font-size: 0.85rem; color: #94a3b8; margin: 0 0 12px 0; }
.rad-input, .rad-textarea { width: 100%; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; font-size: 0.9rem; background: rgba(0,0,0,0.4); color: #f8fafc; outline: none; margin-bottom: 10px; box-sizing: border-box; }
.rad-textarea { min-height: 80px; resize: vertical; font-family: monospace; }
.rad-input:focus, .rad-textarea:focus { border-color: #3b82f6; }
.rad-btn-row { display: flex; gap: 10px; }
.rad-btn-primary { flex: 1; background: #3b82f6; color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; padding: 10px; }
.rad-btn-primary:hover { filter: brightness(1.1); }
.rad-btn-outline { width: 40px; background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 8px; cursor: pointer; transition: 0.2s; }
.rad-btn-outline:hover { background: #ef4444; color: #fff; }

/* SEO Blocks */
.rad-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1200px; margin: 0 auto; }
.rad-info-card { background: var(--bg-surface); padding: 24px; border-radius: 16px; border: 1px solid var(--border-color); }
.rad-info-card h3 { color: var(--text-main); font-size: 1.15rem; margin-bottom: 16px; }
.rad-desc-text { font-size: 0.95rem; color: var(--text-muted); margin: 0; }
.rad-desc-text strong { color: var(--text-main); }

@media (max-width: 900px) {
    .rad-workspace { display: flex; flex-direction: column; height: auto; min-height: 100vh; border-radius: 0; border: none; }
    .rad-main-player { position: sticky; top: 0; z-index: 100; width: 100%; height: 45vh; min-height: 350px; flex: none; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
    .rad-player-header { padding: 12px; }
    .rad-menu-btn { display: none; }
    .rad-vinyl-record { width: 180px; height: 180px; }
    .rad-cover-img { width: 90px; height: 90px; }
    .rad-track-name { font-size: 1.3rem; }
    .rad-track-info { padding: 0 20px 10px 20px; }
    .rad-custom-controls { padding: 10px 20px 20px 20px; }
    .rad-ctrl-right { display: none; } /* 移动端隐藏音量键 */
    
    .rad-sidebar { position: relative; width: 100%; flex: 1; transform: none !important; border-right: none; height: auto; z-index: 10; }
    .rad-tab-content, .rad-tabs, .rad-custom-form { width: 100%; }
    .rad-channel-list { max-height: none; overflow: visible; padding-bottom: 50px; }
    .rad-info-grid { grid-template-columns: 1fr; }
}