﻿        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
            -webkit-user-select: none;
            user-select: none;
        }

        :root {
            --primary: #4b7fb3;
            --primary-dark: #2d4c6b;
            --primary-light: #90b0d0;
            --primary-lightest: #b1c7de;
            --warning: #ffd700;
            --warning-light: #fff3b2;
            --success: #43e97b;
            --success-light: #a8ff78;
            --danger: #e74c3c;
            --dark: #061830;
            --dark-light: #0d2240;
            --gray-100: #f8f9fa;
            --gray-200: #e9ecef;
            --gray-300: #dee2e6;
            --gray-400: #ced4da;
            --gray-500: #adb5bd;
            --gray-600: #6c757d;
            --gray-700: #495057;
            --gray-800: #343a40;
            --gray-900: #212529;
            --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
            --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-full: 9999px;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
            background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
            background-attachment: fixed;
            min-height: 100vh;
            color: var(--gray-800);
        }

        .app-container {
            max-width: 800px;
            margin: 0 auto;
            background: var(--gray-100);
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
        }

        /* ============ 头部区域 ============ */
        .sticky-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            max-width: 800px;
            margin: 0 auto;
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
            box-shadow: var(--shadow-sm);
            color: white;
        }

        #headerPlaceholder {
            min-height: 76px;
        }

        .header {
            padding: 6px 20px;
            text-align: center;
            position: relative;
        }

        .header-title {
            font-size: 12px;
            font-weight: bold;
            letter-spacing: 4px;
            font-family: "YouYuan", "幼圆", sans-serif;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
        }


        /* ============ 品牌横幅 ============ */
        .brand-banner {
            display: flex;
            align-items: center;
            padding: 4px 16px 2px;
            min-height: 32px;
            color: rgba(255,255,255,0.85);
            font-size: 22px;
            letter-spacing: 1px;
        }
        .brand-left {
            flex: 1;
            text-align: center;
            font-weight: 500;
        }
        .brand-right {
            flex: 1;
            text-align: center;
            opacity: 0.7;
        }


        /* ============ 搜索和筛选 ============ */
        .search-filter-section {
            padding: 16px;
            background: white;
        }

        .search-box {
            position: relative;
            margin-bottom: 12px;
        }

        .search-input {
            width: 100%;
            height: 48px;
            padding: 0 48px 0 48px;
            border: 2px solid var(--gray-300);
            border-radius: var(--radius-full);
            font-size: 10px;
            outline: none;
            transition: all 0.3s;
            background: var(--gray-100);
        }

        .search-input:focus {
            border-color: var(--primary);
            background: white;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .search-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 12px;
            color: var(--gray-600);
        }

        .search-clear {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--gray-300);
            border: none;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 16px;
            color: var(--gray-700);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .search-clear:hover {
            background: var(--gray-400);
        }

        .filters {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding: 4px 0;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
        }

        .filters::-webkit-scrollbar {
            display: none;
        }

        .filter-btn {
            height: 36px;
            padding: 0 16px;
            border: none;
            background: var(--gray-200);
            color: var(--gray-700);
            border-radius: var(--radius-full);
            cursor: pointer;
            font-size: 10px;
            font-weight: 500;
            white-space: nowrap;
            flex-shrink: 0;
            transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .filter-btn:hover {
            background: var(--gray-300);
        }

        .filter-btn:active {
            transform: scale(0.95);
        }
        .filter-btn:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }
        .filter-btn.icon-only-btn {
            padding: 0 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .filter-btn.active {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            color: white;
            box-shadow: 0 2px 8px rgba(13, 48, 96, 0.4);
        }
        .filter-lang-slot { display: contents; }


        /* ============ 电台列表 ============ */
        .station-list {
            padding: 12px;
        }

        .station-item {
            background: white;
            padding: 10px 14px;
            border-radius: var(--radius-md);
            margin-bottom: 6px;
            cursor: pointer;
            transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
            border: 1.5px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .station-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 3px;
            height: 100%;
            background: linear-gradient(180deg, var(--primary), var(--primary-light));
            opacity: 0;
            transition: opacity 0.3s;
        }

        .station-item:hover {
            transform: translateY(-1px);
            box-shadow: 0 3px 10px rgba(0,0,0,0.12);
            border-color: var(--gray-200);
        }

        .station-item:active {
            transform: translateY(0) scale(0.99);
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        }
        .station-item:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        .station-item.playing {
            border-color: var(--primary);
            background: linear-gradient(135deg, rgba(13, 48, 96, 0.06), rgba(121, 162, 196, 0.03));
            box-shadow: 0 2px 8px rgba(13, 48, 96, 0.15);
        }

        .station-item.playing::before {
            opacity: 1;
        }

        .station-item.favorited::before {
            opacity: 1;
            background: #f59e0b;
        }

        .station-item.favorited {
            background: rgba(245, 158, 11, 0.04);
        }

        .station-item.favorited .station-name {
            text-decoration: underline;
            text-underline-offset: 3px;
            text-decoration-color: #f59e0b;
            text-decoration-thickness: 1.5px;
        }

        .category-card.favorited .category-card-name,
        .recommend-card.favorited .recommend-card-name,
        .station-card.favorited .station-card-name,
        .search-result-item.favorited .search-result-name {
            text-decoration: underline;
            text-underline-offset: 3px;
            text-decoration-color: #f59e0b;
            text-decoration-thickness: 1.5px;
        }

        .station-item.playing .station-name {
            color: #0d3060;
        }

        /* 卡片视图（适老化改造：只保留图标+名称，字体大，对比度高） */
        .station-list.card-view {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
            gap: 6px;
        }

        .station-list.card-view .station-item {
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 10px 6px 14px;
            gap: 5px;
            aspect-ratio: auto;
            min-height: 60px;
            background: white;
            border: 2px solid #e0e0e0;
        }
        .station-list.card-view .station-item:hover {
            border-color: var(--primary);
            box-shadow: 0 3px 12px rgba(0,0,0,0.15);
        }
        .station-list.card-view .station-item.playing {
            border-color: var(--primary);
            background: linear-gradient(135deg, rgba(13, 48, 96, 0.08), rgba(121, 162, 196, 0.04));
            box-shadow: 0 2px 10px rgba(13, 48, 96, 0.2);
        }
        .station-list.card-view .station-item.playing .station-name {
            color: #0d3060;
            font-weight: 700;
        }

        .station-list.card-view .station-icon {
            width: 34px;
            height: 34px;
            margin-right: 0;
            border-radius: 8px;
        }

        .station-list.card-view .station-info {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .station-list.card-view .station-name-row {
            justify-content: center;
            flex-wrap: wrap;
        }
        .station-list.card-view .station-name-row .station-tags {
            display: none;
        }

        .station-list.card-view .station-name {
            font-size: 11px;
            text-align: center;
            white-space: normal;
            line-height: 1.2;
            max-width: 100%;
            font-weight: 600;
            color: #1a1a1a;
        }

        .station-list.card-view .station-meta {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 4px 10px 6px;
            pointer-events: none;
        }
        .station-list.card-view .station-meta > * {
            display: none;
        }
        .station-list.card-view .station-meta .station-delay,
        .station-list.card-view .station-meta .station-dot {
            display: inline-flex;
        }

        .station-list.card-view .station-delay {
            font-size: 10px;
            font-variant-numeric: tabular-nums;
        }

        .station-list.card-view .station-dot {
            font-size: 12px;
            line-height: 1;
        }

        .station-list.card-view .favorite-btn {
            position: absolute;
            top: 4px;
            right: 4px;
            font-size: 18px;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,0.85);
            border-radius: 50%;
            z-index: 2;
        }
        .station-list.card-view .favorite-btn.is-favorite {
            color: #f59e0b;
            background: rgba(245, 158, 11, 0.25);
            box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
        }

        .station-list.card-view .cache-btn {
            position: absolute;
            top: 4px;
            left: 4px;
            font-size: 14px;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,0.85);
            border-radius: 50%;
            z-index: 2;
        }
        .station-list.card-view .cache-btn svg {
            width: 16px;
            height: 16px;
        }

        .station-item .station-name-row {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }

        .station-item .station-heat {
            font-size: 11px;
            color: #dc2626;
            font-weight: 500;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .station-item .station-tags {
            font-size: 10px;
            color: #1e40af;
            background: #e0f0ff;
            padding: 1px 6px;
            border-radius: 3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 120px;
        }

        .station-item .meta-ai-reason {
            background: rgba(75,127,179,0.12);
            color: var(--primary);
            padding: 1px 6px;
            border-radius: 10px;
            font-size: 11px;
            white-space: nowrap;
        }

        .station-item .station-codec {
            font-size: 11px;
            color: var(--gray-600);
            padding: 1px 4px;
            border-radius: 3px;
            background: var(--gray-100);
            white-space: nowrap;
        }

        .station-item .station-status {
            font-size: 11px;
            white-space: nowrap;
        }

        .station-item .station-delay {
            font-size: 11px;
            white-space: nowrap;
            font-variant-numeric: tabular-nums;
            color: var(--gray-600);
        }
        .station-item .delay-good { color: #22c55e; }
        .station-item .delay-warn { color: #ef9f27; }
        .station-item .delay-bad  { color: #dc2626; }
        .station-item .delay-unknown { color: var(--gray-500); }

        .station-item .station-dot {
            font-size: 12px;
            line-height: 1;
        }
        .station-dot.dot-green { color: #22c55e; }
        .station-dot.dot-orange { color: #ef9f27; }
        .station-dot.dot-red { color: #dc2626; }
        .station-dot.dot-gray { color: var(--gray-600); }

        /* 播放中圆点闪烁（保留原来延迟颜色，不强制变蓝） */
        .station-item.playing .station-dot,
        .category-card.playing .category-card-dot,
        .recommend-card.playing .recommend-card-dot,
        .station-card.playing .station-card-dot,
        .search-result-item.playing .search-result-dot {
            animation: dot-pulse 1.8s ease-in-out infinite;
        }

        @keyframes dot-pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.45; transform: scale(0.85); }
        }

        /* 收藏电台圆点变为星星 */
        .station-item.favorited .station-dot,
        .category-card.favorited .category-card-dot,
        .recommend-card.favorited .recommend-card-dot,
        .station-card.favorited .station-card-dot,
        .search-result-item.favorited .search-result-dot {
            font-size: 0;
        }
        .station-item.favorited .station-dot::before,
        .category-card.favorited .category-card-dot::before,
        .recommend-card.favorited .recommend-card-dot::before,
        .station-card.favorited .station-card-dot::before,
        .search-result-item.favorited .search-result-dot::before {
            content: '★';
            font-size: 12px;
        }

        .station-item .meta-lang {
            font-size: 11px;
            color: var(--gray-600);
            white-space: nowrap;
        }

        .station-item .station-cached {
            font-size: 11px;
            color: #22c55e;
            white-space: nowrap;
        }

        .station-item .station-cache-range {
            font-size: 10px;
            color: var(--gray-500);
            white-space: nowrap;
        }

        .station-item .station-status.online {
            color: #16a34a;
        }

        .station-item.invalid {
            opacity: 0.5;
            border-color: var(--gray-300);
        }

        .station-rank {
            min-width: 24px;
            font-size: 13px;
            font-weight: 600;
            color: var(--gray-500);
            text-align: right;
            flex-shrink: 0;
        }
        .station-item.playing .station-rank {
            color: var(--primary);
        }
        .station-list.card-view .station-rank {
            display: none;
        }

        .station-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--gray-300);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            flex-shrink: 0;
            overflow: hidden;
        }

        .station-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .station-info {
            flex: 1;
            overflow: hidden;
        }

        /* 列表模式：station-info 限制最大 3 行文本高度 */
        .station-list:not(.card-view) .station-info {
            max-height: 58px;
        }

        /* 卡片模式：station-info 限制最大 3 行文本高度 */
        .station-list.card-view .station-info {
            max-height: 48px;
        }

        .station-name {
            font-size: 12px;
            font-weight: 500;
            color: var(--gray-600);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            flex-shrink: 1;
            min-width: 0;
        }

        .station-meta {
            font-size: 8px;
            color: var(--gray-600);
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }

        .station-country {
            display: flex;
            align-items: center;
            gap: 2px;
            white-space: nowrap;
        }

        .country-tag {
            display: inline-block;
            background: #d8e4f0;
            color: #0d3060;
            font-size: 10px;
            font-weight: 600;
            padding: 1px 5px;
            border-radius: 3px;
            line-height: 1.4;
            letter-spacing: 0.5px;
        }

        .favorite-btn {
            background: none;
            border: none;
            font-size: 14px;
            cursor: pointer;
            padding: 2px 4px;
            color: var(--gray-400);
            transition: all 0.2s;
            border-radius: 4px;
            line-height: 1;
        }

        .favorite-btn:hover {
            color: var(--warning);
            transform: scale(1.15);
        }
        .favorite-btn:active {
            transform: scale(1.25);
        }

        .favorite-btn.is-favorite {
            color: #f59e0b;
            text-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
            background: rgba(245, 158, 11, 0.12);
        }

        /* 收藏状态弹跳动画 */
        .favorite-btn.fav-pop {
            animation: favPop 0.35s ease-out;
        }
        @keyframes favPop {
            0% { transform: scale(1); }
            40% { transform: scale(1.5); }
            70% { transform: scale(0.9); }
            100% { transform: scale(1); }
        }
        /* 取消收藏弹跳动画 */
        .favorite-btn.fav-unpop {
            animation: favUnpop 0.3s ease-out;
        }
        @keyframes favUnpop {
            0% { transform: scale(1); }
            50% { transform: scale(0.6); }
            100% { transform: scale(1); }
        }



        /* ============ 加载状态 ============ */
        .loading {
            text-align: center;
            padding: 60px 20px;
            color: var(--gray-600);
        }

        .spinner {
            display: inline-block;
            width: 40px;
            height: 40px;
            border: 4px solid var(--gray-300);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-bottom: 16px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* ============ 骨架屏 ============ */
        .skeleton-container {
            padding: 16px;
        }
        .skeleton-item {
            background: white;
            padding: 10px 14px;
            border-radius: var(--radius-md);
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        }
        .skeleton-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--gray-200);
            flex-shrink: 0;
        }
        .skeleton-lines {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .skeleton-line {
            height: 12px;
            border-radius: 4px;
            background: var(--gray-200);
        }
        .skeleton-line:first-child {
            width: 65%;
        }
        .skeleton-line:last-child {
            width: 40%;
        }
        .skeleton-shimmer {
            position: relative;
            overflow: hidden;
        }
        .skeleton-shimmer::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
            animation: shimmer 1.5s infinite;
        }
        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        /* ============ 错误状态 ============ */
        .error {
            padding: 20px;
            background: #fee;
            color: var(--danger);
            border-radius: var(--radius-md);
            margin: 16px;
            text-align: center;
        }

        /* ============ 响应式设计 ============ */
        @media (max-width: 380px) {
            .header-title {
                font-size: 12px;
                letter-spacing: 3px;
            }

            .play-btn {
                width: 56px;
                height: 56px;
                font-size: 20px;
            }

            .control-btn {
                width: 40px;
                height: 40px;
                font-size: 18px;
            }

            .station-item {
                padding: 12px;
            }

            .station-icon {
                width: 40px;
                height: 40px;
                font-size: 20px;
            }
        }

        @media (min-width: 768px) {
            .app-container {
                margin-top: 20px;
                margin-bottom: 20px;
                border-radius: var(--radius-lg);
                box-shadow: var(--shadow-lg);
                overflow: hidden;
            }
        }

        /* ============ 筛选溢出菜单 ============ */
        .filter-overflow-menu {
            display: none;
            position: fixed;
            background: white;
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-lg);
            padding: 8px;
            z-index: 9999;
            max-height: 320px;
            overflow-y: auto;
            min-width: 150px;
        }

        .filter-overflow-menu.show {
            display: block;
        }

        .filter-overflow-header {
            font-size: 12px;
            color: var(--gray-600);
            padding: 8px;
            border-bottom: 1px solid var(--gray-200);
            margin-bottom: 4px;
        }

        /* APK 下载按钮 - 搜索框右侧 */
        .search-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
        }
        .search-row .search-box {
            flex: 1;
            margin-bottom: 0;
        }
        .manage-cache-btn {
            flex-shrink: 0;
            width: 36px;
            height: 36px;
            padding: 0;
            background: rgba(255,255,255,0.15);
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            color: #fff;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .manage-cache-btn:hover {
            background: rgba(255,255,255,0.25);
            transform: scale(1.1);
        }
        .manage-cache-btn.has-cache {
            background: rgba(34,197,94,0.3);
            border-color: #22c55e;
            box-shadow: 0 0 8px rgba(34,197,94,0.4);
        }

        /* ============ 缓存功能 ============ */
        .cache-btn {
            flex-shrink: 0;
            width: 30px;
            height: 30px;
            padding: 0;
            background: transparent;
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 50%;
            color: #999;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 4px;
        }
        .cache-btn:hover {
            background: rgba(255,255,255,0.1);
            border-color: rgba(255,255,255,0.4);
            color: #fff;
        }
        .cache-btn.is-cached {
            background: rgba(34,197,94,0.2);
            border-color: #22c55e;
            color: #22c55e;
        }
        .cache-btn.is-caching {
            background: rgba(234,179,8,0.2);
            border-color: #eab308;
            color: #eab308;
            animation: cachePulse 1s ease-in-out infinite;
        }
        @keyframes cachePulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
/* 电台卡片悬停效果 */
        .station-item {
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .station-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0,0,0,0.2);
        }
        /* 播放按钮波纹动画 */
        @keyframes ripple {
            0% { transform: scale(0.8); opacity: 1; }
            100% { transform: scale(1.4); opacity: 0; }
        }
        .playing-indicator {
            position: relative;
        }
        .playing-indicator::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: rgba(75, 127, 179, 0.4);
            transform: translate(-50%, -50%) scale(0.8);
            animation: ripple 1.5s infinite;
        }
.station-item.cached {
            border-color: rgba(34,197,94,0.4) !important;
            background: rgba(34,197,94,0.03) !important;
        }
        .station-item.cached .station-name::after {
            content: ' ⬇️';
            font-size: 12px;
        }

        /* 缓存持续时间选择弹窗（浅色风格） */
        .cache-picker-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .cache-picker {
            background: #ffffff;
            border-radius: 16px;
            padding: 16px 18px 14px;
            min-width: 210px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.18);
            border: 1px solid #e2e8f0;
            text-align: center;
        }
        .cache-picker h3 {
            margin: 0 0 10px 0;
            font-size: 15px;
            font-weight: 600;
            color: #1e293b;
            text-align: center;
        }
        /* === 滚轮选择器（机械翻转风格） === */
        .cache-picker .wheel-viewport {
            position: relative;
            width: 130px;
            height: 100px;
            margin: 0 auto;
            overflow-y: auto;
            scroll-snap-type: y mandatory;
            scrollbar-width: none;
            -ms-overflow-style: none;
            background: #f1f5f9;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
        }
        .cache-picker .wheel-viewport::-webkit-scrollbar { display: none; }
        /* 机械窗口顶/底部渐变遮罩 */
        .cache-picker .wheel-viewport .wheel-overlay-top,
        .cache-picker .wheel-viewport .wheel-overlay-bottom {
            position: absolute;
            left: 0; right: 0;
            height: 18px;
            pointer-events: none;
            z-index: 3;
        }
        .cache-picker .wheel-viewport .wheel-overlay-top {
            top: 0;
            background: linear-gradient(to bottom, #f1f5f9 0%, transparent 100%);
        }
        .cache-picker .wheel-viewport .wheel-overlay-bottom {
            bottom: 0;
            background: linear-gradient(to top, #f1f5f9 0%, transparent 100%);
        }
        .cache-picker .wheel-track {
            padding: 28px 0;
        }
        .cache-picker .wheel-item {
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 2px;
            scroll-snap-align: center;
            cursor: pointer;
            user-select: none;
            -webkit-user-select: none;
            border-top: 1px solid #e2e8f0;
        }
        .cache-picker .wheel-item:first-child {
            border-top: none;
        }
        .cache-picker .wheel-item .wheel-number {
            font-family: 'Courier New', 'Consolas', monospace;
            font-size: 18px;
            font-weight: 600;
            color: #94a3b8;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            line-height: 36px;
            min-width: 28px;
            text-align: right;
        }
        .cache-picker .wheel-item .wheel-unit {
            font-size: 11px;
            color: #94a3b8;
            transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            line-height: 36px;
        }
        /* 居中项 - 放大加亮 */
        .cache-picker .wheel-item.center .wheel-number {
            font-size: 28px;
            font-weight: 700;
            color: #0f172a;
        }
        .cache-picker .wheel-item.center .wheel-unit {
            font-size: 13px;
            color: #475569;
        }
        /* 上下箭头按钮 */
        .cache-picker .wheel-arrow {
            display: block;
            width: 36px;
            height: 22px;
            margin: 3px auto;
            padding: 0;
            background: #f1f5f9;
            border: 1px solid #e2e8f0;
            border-radius: 5px;
            color: #64748b;
            font-size: 11px;
            line-height: 22px;
            cursor: pointer;
            user-select: none;
            -webkit-user-select: none;
            transition: all 0.15s;
        }
        .cache-picker .wheel-arrow:hover {
            background: #e2e8f0;
            color: #334155;
        }
        .cache-picker .wheel-arrow:active {
            transform: scale(0.9);
            background: #cbd5e1;
        }
        /* === 按钮 === */
        .cache-picker .cache-cancel-btn {
            display: block;
            width: 100%;
            margin-top: 10px;
            padding: 12px 16px;
            background: transparent;
            border: 1px solid #cbd5e1;
            border-radius: 12px;
            color: #64748b;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            text-align: center;
            transition: all 0.2s;
        }
        .cache-picker .cache-cancel-btn:hover {
            background: #f1f5f9;
            color: #334155;
        }
        .cache-picker .cache-stop-btn {
            display: block;
            width: 100%;
            margin-top: 4px;
            padding: 8px;
            background: transparent;
            border: 1px solid #fca5a5;
            border-radius: 8px;
            color: #dc2626;
            font-size: 13px;
            cursor: pointer;
            text-align: center;
            transition: all 0.2s;
        }
        .cache-picker .cache-stop-btn:hover {
            background: #fef2f2;
            border-color: #ef4444;
        }
        .cache-options {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        .cache-picker .cache-option.selected {
            border-color: var(--primary);
            background: rgba(13, 48, 96, 0.08);
        }
        .cache-picker .cache-delay-options {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 12px;
        }
        .cache-picker .cache-delay-option {
            padding: 6px 12px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            color: #64748b;
            transition: all 0.2s;
            background: #f8fafc;
        }
        .cache-picker .cache-delay-option:hover {
            border-color: var(--primary);
            color: var(--primary);
        }
        .cache-picker .cache-delay-option.selected {
            border-color: var(--primary);
            color: #fff;
            background: var(--primary);
        }
        .cache-picker .cache-confirm-btn {
            display: block;
            width: 100%;
            padding: 10px;
            background: var(--primary);
            border: none;
            border-radius: 8px;
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 4px;
            transition: all 0.2s;
        }
        .cache-picker .cache-confirm-btn:hover {
            background: var(--primary-light);
        }

        /* === 片段数步进器 === */
        .cache-picker .segment-stepper {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin: 10px 0 4px;
            padding: 6px 10px;
            background: #f8fafc;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
        }
        .cache-picker .segment-label {
            font-size: 13px;
            color: #64748b;
            margin-right: 2px;
        }
        .cache-picker .segment-btn {
            width: 28px;
            height: 28px;
            border-radius: 6px;
            border: 1px solid #cbd5e1;
            background: #f1f5f9;
            color: #334155;
            font-size: 18px;
            font-weight: 600;
            line-height: 1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            transition: all 0.15s;
            user-select: none;
            -webkit-user-select: none;
        }
        .cache-picker .segment-btn:hover:not(:disabled) {
            background: #e2e8f0;
            border-color: var(--primary);
        }
        .cache-picker .segment-btn:active:not(:disabled) {
            transform: scale(0.9);
        }
        .cache-picker .segment-btn:disabled {
            opacity: 0.3;
            cursor: default;
        }
        .cache-picker .segment-value {
            font-family: 'Courier New', 'Consolas', monospace;
            font-size: 20px;
            font-weight: 700;
            color: #f1f5f9;
            min-width: 24px;
            text-align: center;
        }
        .cache-picker .segment-unit {
            font-size: 13px;
            color: #94a3b8;
        }

        /* 缓存管理器面板 */
        .cache-manager {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6);
            z-index: 10000;
            display: flex;
            align-items: flex-end;
            justify-content: center;
        }
        .cache-manager-panel {
            background: #1e293b;
            border-radius: 20px 20px 0 0;
            padding: 20px 24px 32px;
            width: 100%;
            max-width: 500px;
            max-height: 70vh;
            overflow-y: auto;
            box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
        }
        .cache-manager-panel .panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }
        .cache-manager-panel .panel-header h3 {
            margin: 0;
            font-size: 18px;
            color: #fff;
        }
        .cache-manager-panel .panel-header .close-btn {
            background: none;
            border: none;
            color: #999;
            font-size: 20px;
            cursor: pointer;
            padding: 4px 8px;
        }
        .cache-manager-panel .panel-header .close-btn:hover {
            color: #fff;
        }
        .cache-manager-panel .cache-info {
            font-size: 12px;
            color: #999;
            margin-bottom: 12px;
        }
        .cache-manager-panel .cached-item {
            display: flex;
            align-items: center;
            padding: 10px 12px;
            background: rgba(255,255,255,0.05);
            border-radius: 10px;
            margin-bottom: 8px;
            gap: 10px;
        }
        .cache-manager-panel .cached-item .cached-name {
            flex: 1;
            font-size: 14px;
            color: #fff;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .cache-manager-panel .cached-item .cached-expiry {
            font-size: 11px;
            color: #999;
            white-space: nowrap;
        }
        .cache-manager-panel .cached-item .cached-play-btn,
        .cache-manager-panel .cached-item .cached-save-btn,
        .cache-manager-panel .cached-item .cached-delete-btn {
            background: none;
            border: none;
            padding: 4px 8px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s;
        }
        .cache-manager-panel .cached-item .cached-play-btn {
            color: #22c55e;
        }
        .cache-manager-panel .cached-item .cached-play-btn:hover {
            background: rgba(34,197,94,0.1);
        }
        .cache-manager-panel .cached-item .cached-save-btn {
            color: #93c5fd;
        }
        .cache-manager-panel .cached-item .cached-save-btn:hover {
            background: rgba(147,197,253,0.1);
        }
        .cache-manager-panel .cached-item .cached-delete-btn {
            color: #ef4444;
        }
        .cache-manager-panel .cached-item .cached-delete-btn:hover {
            background: rgba(239,68,68,0.1);
        }
        .cache-manager-panel .empty-msg {
            text-align: center;
            color: #666;
            font-size: 14px;
            padding: 24px 0;
        }

        /* 缓存进度条（正在缓存中的电台显示） */
        .cache-progress {
            height: 3px;
            background: rgba(255,255,255,0.1);
            border-radius: 2px;
            overflow: hidden;
            margin-top: 4px;
        }
        .cache-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #22c55e, #eab308);
            border-radius: 2px;
            transition: width 1s linear;
        }

        /* ============ 提示弹窗 ============ */
        .br-toast-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.4);
            z-index: 20000;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: toastFadeIn 0.2s ease;
        }
        @keyframes toastFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .br-toast-overlay.fading {
            animation: toastFadeOut 0.3s ease forwards;
        }
        @keyframes toastFadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }
        .br-toast {
            background: #1e293b;
            border-radius: 14px;
            padding: 20px 28px;
            max-width: 320px;
            text-align: center;
            box-shadow: 0 8px 40px rgba(0,0,0,0.6);
            border: 1px solid rgba(255,255,255,0.1);
            font-size: 15px;
            line-height: 1.5;
        }
        .br-toast.success { color: #22c55e; }
        .br-toast.warning { color: #eab308; }
        .br-toast.error   { color: #ef4444; }
        .br-toast.info    { color: #93c5fd; }
        .br-toast .toast-close {
            display: inline-block;
            margin-top: 12px;
            padding: 6px 20px;
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 8px;
            color: #999;
            font-size: 13px;
            cursor: pointer;
            background: transparent;
            transition: all 0.2s;
        }
        .br-toast .toast-close:hover {
            border-color: rgba(255,255,255,0.4);
            color: #fff;
        }


        /* ============ 底部语言筛选栏（第二行） ============ */
        .bottom-filter-row {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 2px 0;
        }
        .bottom-filter-row .filter-btn {
            flex: 1;
            height: 28px;
            padding: 0 4px;
            font-size: 12px;
            border: 1.5px solid var(--gray-300);
            border-radius: var(--radius-full);
            background: rgba(255,255,255,0.85);
            color: var(--gray-700);
            cursor: pointer;
            transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
        }
        .bottom-filter-row .filter-btn.active {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
        }
        .bottom-filter-row .filter-btn:hover { background: var(--primary-lightest); }
        .bottom-filter-row .filter-btn.has-cache {
            border-color: #22c55e;
            color: #22c55e;
        }
        .bottom-filter-row .filter-btn.disabled {
            opacity: 0.4;
            pointer-events: none;
            cursor: not-allowed;
            color: var(--gray-400);
        }
        .bottom-filter-row .bottom-action-btn {
            flex-shrink: 0;
            height: 28px;
            padding: 0 10px;
            font-size: 12px;
            border-radius: var(--radius-full);
            background: rgba(255,255,255,0.85);
            color: var(--gray-700);
            border: 1.5px solid var(--gray-300);
        }
        .bottom-filter-row .bottom-action-btn:hover { background: var(--primary-lightest); }
        .bottom-filter-row .filter-overflow-menu {
            position: absolute;
            bottom: 100%;
            left: 0;
            margin-bottom: 6px;
            background: #fff;
            border: 1px solid var(--gray-200);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-lg);
            padding: 6px;
            display: none;
            flex-direction: column;
            z-index: 1001;
            min-width: 120px;
        }
        .bottom-filter-row .filter-overflow-menu.show { display: flex; }
        .bottom-filter-row .filter-overflow-header {
            font-size: 11px;
            color: var(--gray-500);
            padding: 4px 8px;
            border-bottom: 1px solid var(--gray-200);
            margin-bottom: 4px;
        }
        .bottom-filter-row .filter-overflow-menu .filter-btn {
            border: none;
            border-radius: var(--radius-sm);
            justify-content: flex-start;
            flex: none;
        }
        /* ============ 底部浮动操作栏（已废弃，保留兼容） ============ */
        .bottom-action-bar {
            display: none !important;
        }
        .bottom-bar-inner {
            display: flex;
            align-items: center;
            gap: 7px;
        }
        .bottom-search-box {
            flex: 1;
            position: relative;
            border-radius: var(--radius-full);
            transition: background-color 0.4s ease;
        }
        .bottom-search-input {
            width: 100%;
            height: 34px;
            padding: 0 36px 0 34px;
            border: 0.75px solid var(--gray-300);
            border-radius: var(--radius-full);
            font-size: 13px;
            outline: none;
            background: rgba(255,255,255,0.92);
            transition: all 0.2s;
        }
        .bottom-search-box[data-status="online"] .bottom-search-input {
            border-color: rgba(67,233,123,0.80);
            box-shadow: inset 0 0 0 0.75px rgba(67,233,123,0.25);
        }
        .bottom-search-box[data-status="server-offline"] .bottom-search-input {
            border-color: rgba(255,200,0,0.80);
            box-shadow: inset 0 0 0 0.75px rgba(255,200,0,0.25);
        }
        .bottom-search-box[data-status="no-internet"] .bottom-search-input {
            border-color: rgba(231,76,60,0.80);
            box-shadow: inset 0 0 0 0.75px rgba(231,76,60,0.25);
        }
        .bottom-search-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(75,127,179,0.13);
        }
        .bottom-search-box .search-icon {
            position: absolute;
            left: 11px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 15px;
            color: var(--gray-500);
            pointer-events: none;
        }
        .bottom-search-box .search-clear {
            position: absolute;
            right: 7px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--gray-300);
            border: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 13px;
            color: var(--gray-700);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        .bottom-search-box .search-clear:hover { background: var(--gray-400); }

        /* 搜索按钮（模糊搜索 / AI 搜索）— 位于搜索框右侧 */
        .ai-search-btn {
            background: rgba(75,127,179,0.10);
            border: 1px solid rgba(75,127,179,0.25);
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            padding: 0 8px;
            height: 26px;
            line-height: 26px;
            text-align: center;
            color: var(--primary);
            transition: all 0.2s;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .ai-search-btn:hover {
            background: rgba(75,127,179,0.20);
            border-color: var(--primary);
        }
        .ai-search-btn:disabled {
            background: rgba(100,100,100,0.08);
            border-color: rgba(100,100,100,0.15);
            color: #94a3b8;
            cursor: not-allowed;
            opacity: 0.6;
        }
        .ai-search-btn:disabled:hover {
            background: rgba(100,100,100,0.08);
            border-color: rgba(100,100,100,0.15);
        }

        .search-btn-icon {
            background: none;
            border: none;
            font-size: 18px;
            cursor: pointer;
            padding: 0 6px;
            display: flex;
            align-items: center;
            color: var(--primary);
            flex-shrink: 0;
        }
        .search-btn-icon:hover { opacity: 0.7; }
        .bottom-action-btn {
            flex-shrink: 0;
            height: 34px;
            padding: 0 10px;
            border: 1.5px solid var(--primary-light);
            background: rgba(75,127,179,0.07);
            color: var(--primary-dark);
            border-radius: var(--radius-full);
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            white-space: nowrap;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 3px;
        }
        .bottom-action-btn:hover {
            background: rgba(75,127,179,0.15);
        }
        .bottom-action-btn:active { transform: scale(0.95); }
        .bottom-action-btn.hidden { display: none !important; }
        /* 下载 APK 按钮 - 筛选行最右侧 */
        .download-apk-btn {
            background: rgba(34,197,94,0.12);
            border-color: rgba(34,197,94,0.35);
            color: #16a34a;
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            height: 36px;
            padding: 0 12px;
            margin-left: auto;
        }
        /* 帮助按钮 */
        .help-btn {
            cursor: pointer;
            font-size: 22px;
            padding: 4px;
            border-radius: 50%;
            transition: transform 0.2s ease, filter 0.2s ease;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            user-select: none;
        }
        .help-btn:hover {
            transform: scale(1.15);
            filter: brightness(1.4);
        }
        .help-btn:active {
            transform: scale(0.95);
        }
        .download-apk-btn:hover {
            background: rgba(34,197,94,0.22);
            border-color: rgba(34,197,94,0.55);
        }
        /* 设置按钮（齿轮）稍微右间距 */
        .settings-btn {
            margin-right: 4px;
        }
        /* ============ 设置面板：开关 & 选项行 ============ */
        .settings-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            gap: 12px;
        }
        .settings-item:last-child {
            border-bottom: none;
        }
        .settings-item-left {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            flex: 1;
            min-width: 0;
        }
        .settings-item-icon {
            flex-shrink: 0;
            font-size: 18px;
            width: 24px;
            text-align: center;
            margin-top: 2px;
        }
        .settings-item-text {
            flex: 1;
            min-width: 0;
        }
        .settings-item-label {
            color: #fff;
            font-size: 14px;
            font-weight: 600;
        }
        .settings-item-desc {
            color: #94a3b8;
            font-size: 12px;
            margin-top: 2px;
            line-height: 1.4;
        }
        .settings-item-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 4px;
            flex-shrink: 0;
        }
        .settings-item-hint {
            color: #64748b;
            font-size: 11px;
            white-space: nowrap;
        }
        /* 开关（Toggle Switch） */
        .br-toggle {
            position: relative;
            display: inline-block;
            width: 40px;
            height: 22px;
            flex-shrink: 0;
        }
        .br-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .br-toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0; right: 0; bottom: 0;
            background: #475569;
            border-radius: 22px;
            transition: background 0.25s ease;
        }
        .br-toggle-slider::before {
            content: '';
            position: absolute;
            height: 18px;
            width: 18px;
            left: 2px;
            bottom: 2px;
            background: #fff;
            border-radius: 50%;
            transition: transform 0.25s ease;
        }
        .br-toggle input:checked + .br-toggle-slider {
            background: var(--primary, #4b7fb3);
        }
        .br-toggle input:checked + .br-toggle-slider::before {
            transform: translateX(18px);
        }
        .station-list-container {
            padding-bottom: 62px;
        }
        .br-confirm-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 20000;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: toastFadeIn 0.2s ease;
        }
        .br-confirm {
            background: #1e293b;
            border-radius: 14px;
            padding: 20px 24px;
            max-width: 280px;
            text-align: center;
            box-shadow: 0 8px 40px rgba(0,0,0,0.6);
            border: 1px solid rgba(255,255,255,0.1);
            font-size: 15px;
            color: #fff;
        }
        .br-confirm .confirm-btns {
            display: flex;
            gap: 16px;
            margin-top: 20px;
        }
        .br-confirm .confirm-btns button {
            flex: 1;
            padding: 10px 0;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            border: none;
            transition: all 0.2s;
        }
        .br-confirm .confirm-yes {
            background: #ef4444;
            color: #fff;
        }
        .br-confirm .confirm-yes:hover {
            background: #dc2626;
        }
        .br-confirm .confirm-no {
            background: rgba(255,255,255,0.08);
            color: #999;
            border: 1px solid rgba(255,255,255,0.1);
        }
        .br-confirm .confirm-no:hover {
            background: rgba(255,255,255,0.15);
            color: #fff;
        }
        /* ============ 缓存管理面板 ============ */
        .cache-manager-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.55);
            z-index: 20000;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: toastFadeIn 0.2s ease;
        }
        .cache-manager-panel {
            background: #1e293b;
            border-radius: 16px;
            padding: 20px;
            max-width: 440px;
            width: 92%;
            max-height: 75vh;
            overflow-y: auto;
            box-shadow: 0 8px 40px rgba(0,0,0,0.6);
            border: 1px solid rgba(255,255,255,0.1);
            color: #fff;
            font-size: 14px;
        }
        .cache-manager-panel h3 {
            margin: 0 0 4px;
            font-size: 16px;
            text-align: center;
        }
        .cache-manager-panel .cm-sub {
            text-align: center;
            color: #64748b;
            font-size: 12px;
            margin-bottom: 14px;
        }
        .cache-manager-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .cache-manager-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            background: rgba(255,255,255,0.06);
            border-radius: 10px;
            transition: background 0.15s;
        }
        .cache-manager-item .cm-icon {
            font-size: 22px;
            flex-shrink: 0;
        }
        .cache-manager-item .cm-info {
            flex: 1;
            min-width: 0;
        }
        .cache-manager-item .cm-name {
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .cache-manager-item .cm-meta {
            font-size: 11px;
            color: #94a3b8;
            margin-top: 2px;
        }
        .cache-manager-item .cm-actions {
            display: flex;
            gap: 6px;
            flex-shrink: 0;
        }
        .cache-manager-item .cm-action-btn {
            background: none;
            border: 1px solid rgba(255,255,255,0.15);
            color: #cbd5e1;
            border-radius: 6px;
            padding: 4px 8px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.15s;
        }
        .cache-manager-item .cm-action-btn:hover {
            background: rgba(255,255,255,0.1);
            color: #fff;
        }
        .cache-manager-item .cm-action-btn.danger {
            border-color: rgba(239,68,68,0.4);
            color: #ef4444;
        }
        .cache-manager-item .cm-action-btn.danger:hover {
            background: rgba(239,68,68,0.15);
        }
        .cache-manager-item .cm-action-btn[data-action="export"] {
            border-color: rgba(59,130,246,0.4);
            color: #3b82f6;
        }
        .cache-manager-item .cm-action-btn[data-action="export"]:hover {
            background: rgba(59,130,246,0.15);
        }
        /* 下载管理 — 区域标题 & 进行中 */
        .cm-section-title {
            font-size: 13px; font-weight: 600; color: #94a3b8;
            margin-top: 14px; margin-bottom: 6px;
        }
        .cm-section-meta {
            font-size: 11px; color: #64748b; margin-bottom: 8px;
        }
        .cm-active-item {
            display: flex; flex-direction: column; gap: 4px;
            padding: 10px 12px; margin-bottom: 8px;
            background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2);
            border-radius: 10px;
        }
        .cm-active-name { font-size: 13px; color: #e2e8f0; font-weight: 500; }
        .cm-progress {
            width: 100%; height: 6px; background: rgba(255,255,255,0.06);
            border-radius: 3px; overflow: hidden;
        }
        .cm-progress-bar {
            height: 100%; background: linear-gradient(90deg, #3b82f6, #60a5fa);
            border-radius: 3px; transition: width 0.3s ease;
        }
        .cm-active-meta { font-size: 11px; color: #64748b; }
        .cm-active-actions { text-align: right; }
        .cm-active-stop {
            background: none; border: 1px solid rgba(239,68,68,0.4);
            color: #ef4444; border-radius: 6px; padding: 3px 10px;
            font-size: 12px; cursor: pointer; transition: all 0.15s;
        }
        .cm-active-stop:hover { background: rgba(239,68,68,0.15); }
        .cache-manager-empty {
            text-align: center;
            color: #64748b;
            padding: 32px 0;
            font-size: 13px;
        }
        .cache-manager-footer {
            margin-top: 14px;
            display: flex;
            justify-content: space-between;
            gap: 8px;
        }
        .cache-manager-footer .cache-cancel-btn {
            padding: 8px 18px;
            border-radius: 8px;
            font-size: 13px;
            cursor: pointer;
            border: none;
            background: rgba(255,255,255,0.08);
            color: #999;
            transition: all 0.2s;
        }
            .cache-manager-footer .cache-cancel-btn:hover {
                background: rgba(255,255,255,0.15);
                color: #fff;
            }
        .cache-manager-footer .cm-learn-btn {
            padding: 8px 18px;
            border-radius: 8px;
            font-size: 13px;
            cursor: pointer;
            border: none;
            background: rgba(59,130,246,0.2);
            color: #60a5fa;
            transition: all 0.2s;
        }
            .cache-manager-footer .cm-learn-btn:hover {
                background: rgba(59,130,246,0.35);
                color: #93c5fd;
            }

        /* ============ 帮助面板 ============ */
        .help-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.55);
            z-index: 20000;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: toastFadeIn 0.2s ease;
        }
        .help-panel {
            background: #1e293b;
            border-radius: 16px;
            padding: 20px;
            max-width: 360px;
            width: 88%;
            max-height: 70vh;
            overflow-y: auto;
            box-shadow: 0 8px 40px rgba(0,0,0,0.6);
            border: 1px solid rgba(255,255,255,0.1);
            position: relative;
        }
        .help-close-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            background: none;
            border: none;
            color: #999;
            font-size: 18px;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 6px;
            transition: all 0.2s;
        }
        .help-close-btn:hover {
            color: #fff;
            background: rgba(255,255,255,0.1);
        }
        .help-title {
            text-align: center;
            color: #fff;
            font-size: 18px;
            font-weight: bold;
            margin: 0 0 16px 0;
        }
        .help-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .help-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            color: #cbd5e1;
            font-size: 14px;
            line-height: 1.5;
        }
        .help-item-icon {
            flex-shrink: 0;
            font-size: 16px;
            width: 24px;
            text-align: center;
            margin-top: 2px;
        }
        .help-item-text {
            flex: 1;
        }

        /* ============ 登录弹窗样式 ============ */
        .br-auth-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            z-index: 30000;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(4, 10, 28, 0.97);
            min-height: 100vh;
            opacity: 0;
            transition: opacity 0.5s ease;
            padding: 0;
            overflow: hidden;
        }
        .br-auth-overlay.br-auth-visible .auth-card {
            margin: 20px 16px;
        }
        .br-auth-overlay.br-auth-visible { opacity: 1; }
        .br-auth-overlay.br-auth-fadeout { opacity: 0; transition: opacity 0.4s ease; }

        .auth-particles {
            position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            overflow: hidden; pointer-events: none; z-index: 0;
        }
        .auth-particle {
            position: absolute;
            background: rgba(100, 180, 255, 0.6);
            border-radius: 50%;
            animation: authFloat linear infinite;
        }
        @keyframes authFloat {
            0% { transform: translateY(0) scale(1); opacity: 0; }
            10% { opacity: 1; }
            90% { opacity: 1; }
            100% { transform: translateY(-100vh) scale(0.3); opacity: 0; }
        }

        .auth-card {
            position: relative; z-index: 1;
            width: 100%; max-width: 473px;
            background: linear-gradient(145deg, rgba(15, 30, 55, 0.95), rgba(8, 20, 45, 0.98));
            border: 1px solid rgba(75, 127, 179, 0.25);
            border-radius: 24px; padding: 27px 27px 20px;
            box-shadow: 0 0 60px rgba(75, 127, 179, 0.08), 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
            transform: translateY(30px) scale(0.95);
            opacity: 0;
            transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
            max-height: calc(100vh - 40px); overflow-y: auto;
        }
        .auth-card::-webkit-scrollbar { width: 4px; }
        .auth-card::-webkit-scrollbar-track { background: transparent; }
        .auth-card::-webkit-scrollbar-thumb { background: rgba(75,127,179,0.3); border-radius: 2px; }
        .auth-card-visible { transform: translateY(0) scale(1); opacity: 1; }

        .auth-hero { text-align: center; margin-bottom: 16px; }
        .auth-logo-wrapper {
            position: relative; width: 76px; height: 76px;
            margin: 0 auto 12px;
        }
        .auth-logo {
            width: 76px; height: 76px; border-radius: 50%; position: relative; z-index: 2;
            box-shadow: inset 0 3px 6px rgba(200,220,255,0.6), inset 0 -3px 6px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.5), 0 0 30px rgba(75,127,179,0.3);
            animation: authLogoPulse 3s ease-in-out infinite;
        }
        .auth-logo-ring {
            position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px;
            border-radius: 50%;
            border: 2px solid transparent;
            background: linear-gradient(135deg, rgba(75,127,179,0.6), rgba(100,200,255,0.3), rgba(75,127,179,0.6)) border-box;
            -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor; mask-composite: exclude;
            animation: authRingSpin 4s linear infinite; z-index: 1;
        }
        @keyframes authLogoPulse {
            0%, 100% { filter: brightness(1) drop-shadow(0 0 8px rgba(75,127,179,0.4)); }
            50% { filter: brightness(1.3) drop-shadow(0 0 20px rgba(75,127,179,0.8)); }
        }
        @keyframes authRingSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
        .auth-title {
            font-size: 24px; font-weight: 800; color: #fff;
            letter-spacing: 5px; text-shadow: 0 2px 12px rgba(75,127,179,0.4);
            font-family: "YouYuan", "幼圆", "PingFang SC", sans-serif; margin-bottom: 4px;
        }
        .auth-subtitle {
            font-size: 13px; color: rgba(144, 176, 208, 0.8);
            letter-spacing: 3px; font-weight: 300;
        }

        .auth-features { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
        .auth-feature {
            display: flex; align-items: flex-start; gap: 10px;
            padding: 8px 12px; background: rgba(255,255,255,0.03);
            border-radius: 10px; border: 1px solid rgba(255,255,255,0.04);
            transition: all 0.3s ease; cursor: default;
        }
        .auth-feature:hover {
            background: rgba(75,127,179,0.08);
            border-color: rgba(75,127,179,0.2); transform: translateX(4px);
        }
        .auth-feature-icon { font-size: 20px; flex-shrink: 0; width: 28px; text-align: center; margin-top: 1px; }
        .auth-feature-title { font-size: 13px; font-weight: 600; color: #e2e8f0; margin-bottom: 1px; }
        .auth-feature-desc { font-size: 11px; color: rgba(148,163,184,0.8); line-height: 1.3; }

        .auth-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(75,127,179,0.3), transparent);
            margin: 10px 0;
        }

        .auth-howto { margin-bottom: 12px; }
        .auth-howto-title {
            font-size: 12px; font-weight: 600; color: rgba(148,163,184,0.7);
            text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; text-align: center;
        }
        .auth-howto-steps { display: flex; justify-content: center; gap: 16px; }
        .auth-step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
        .auth-step-num {
            width: 30px; height: 30px; border-radius: 50%;
            background: radial-gradient(circle at 35% 30%, rgba(120,180,255,0.55), rgba(75,127,179,0.35) 60%, rgba(60,120,200,0.2));
            color: rgba(255,255,255,0.9); font-size: 15px; font-weight: 700;
            display: flex; align-items: center; justify-content: center;
            backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
            border: 1.5px solid rgba(100,180,255,0.35);
            position: relative;
            box-shadow:
                0 0 20px rgba(100,180,255,0.25),
                inset 0 2px 4px rgba(255,255,255,0.3),
                inset 0 -2px 4px rgba(0,0,0,0.08);
        }
        .auth-step-num::after {
            content: '';
            position: absolute;
            top: 4px; left: 8px;
            width: 10px; height: 6px;
            background: radial-gradient(ellipse, rgba(255,255,255,0.35), transparent);
            border-radius: 50%;
            transform: rotate(-20deg);
        }
        .auth-step-text { font-size: 11px; color: rgba(148,163,184,0.7); text-align: center; white-space: nowrap; }

        .auth-form { margin-bottom: 10px; }
        .auth-form-group { margin-bottom: 10px; }
        .auth-label {
            display: block; font-size: 13px; font-weight: 500;
            color: rgba(200,215,235,0.7); margin-bottom: 6px;
        }
        .auth-input-wrapper { position: relative; display: flex; align-items: center; }
        .auth-input-icon {
            position: absolute; left: 12px; font-size: 15px; z-index: 1; pointer-events: none;
        }
        .auth-input {
            width: 100%; height: 42px; padding: 0 14px 0 38px;
            background: rgba(255,255,255,0.04);
            border: 1.5px solid rgba(75,127,179,0.2); border-radius: 10px;
            color: #e2e8f0; font-size: 14px; outline: none; transition: all 0.3s ease;
        }
        .auth-input::placeholder { color: rgba(148,163,184,0.4); }
        .auth-input:focus {
            border-color: var(--primary);
            background: rgba(75,127,179,0.06);
            box-shadow: 0 0 0 3px rgba(75,127,179,0.15), 0 0 20px rgba(75,127,179,0.05);
        }
        .auth-error {
            display: none;
            background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
            border-radius: 8px; padding: 8px 12px; font-size: 13px; color: #f87171;
            margin-bottom: 12px;
        }
        .auth-history {
            margin-bottom: 8px;
        }
        .auth-history-title {
            font-size: 12px; color: rgba(148,163,184,0.7);
            margin-bottom: 6px; text-align: center;
        }
        .auth-history-item {
            display: flex; align-items: center; justify-content: space-between;
            padding: 8px 12px; margin-bottom: 4px;
            background: rgba(255,255,255,0.06); border-radius: 8px;
            cursor: pointer; transition: background 0.15s;
        }
        .auth-history-item:hover {
            background: rgba(75,127,179,0.15);
        }
        .auth-history-name {
            font-size: 14px; font-weight: 500; color: #e2e8f0;
        }
        .auth-history-email {
            font-size: 12px; color: rgba(148,163,184,0.6);
        }
        .auth-history-clear {
            text-align: center; font-size: 11px; color: rgba(148,163,184,0.4);
            cursor: pointer; padding: 4px 0; margin-top: 2px;
        }
        .auth-history-clear:hover {
            color: rgba(239,68,68,0.7);
        }
        .auth-submit-btn {
            width: 100%; height: 44px;
            background: linear-gradient(135deg, #3b82f6, #4f7dff, #6c8cff, #5b7de8, #4f7dff, #3b82f6);
            background-size: 500% 500%;
            border: none; border-radius: 10px;
            color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 2px;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center; gap: 8px;
            transition: all 0.3s ease;
            position: relative; overflow: hidden;
            box-shadow: 0 4px 24px rgba(79,125,255,0.4), 0 0 60px rgba(124,58,237,0.15);
            animation: authBtnShift 8s ease infinite;
        }
        .auth-submit-btn::before {
            content: ''; position: absolute; top: 0; left: -100%; width: 200%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.6s ease;
        }
        .auth-submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 32px rgba(79,125,255,0.5), 0 0 80px rgba(124,58,237,0.25);
        }
        .auth-submit-btn:hover::before { left: 100%; }
        .auth-submit-btn:active { transform: translateY(0) scale(0.97); }
        .auth-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
        @keyframes authBtnShift {
            0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
            25% { background-position: 100% 50%; filter: hue-rotate(10deg); }
            50% { background-position: 100% 0%; filter: hue-rotate(20deg); }
            75% { background-position: 0% 100%; filter: hue-rotate(10deg); }
            100% { background-position: 0% 50%; filter: hue-rotate(0deg); }
        }
        .auth-submit-spinner {
            width: 20px; height: 20px;
            border: 2px solid rgba(255,255,255,0.3);
            border-top-color: #fff; border-radius: 50%;
            animation: authSpin 0.7s linear infinite;
        }
        @keyframes authSpin { to { transform: rotate(360deg); } }

        .auth-skip { text-align: center; margin-top: 4px; }
        .auth-skip-btn {
            background: rgba(255,255,255,0.08); border: 1px solid rgba(100,200,255,0.35);
            color: rgba(130,200,255,0.95); font-size: 13px; font-weight: 600;
            cursor: pointer; padding: 8px 20px; border-radius: 20px;
            transition: all 0.25s ease;
            animation: skipPulse 2.5s ease-in-out infinite;
        }
        .auth-skip-btn:hover {
            color: #fff; background: rgba(100,200,255,0.18);
            border-color: rgba(100,200,255,0.6);
            box-shadow: 0 0 12px rgba(100,200,255,0.3);
        }
        .auth-skip-btn:active { transform: scale(0.96); }
        @keyframes skipPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(100,200,255,0.25); }
            50%       { box-shadow: 0 0 0 6px rgba(100,200,255,0); }
        }

        /* ===== 账户项在设置中的样式 ===== */
        .auth-account-row {
            display: flex; align-items: center; justify-content: space-between;
            padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
        }
        .auth-account-left { display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 0; }
        .auth-account-icon { flex-shrink: 0; font-size: 18px; width: 24px; text-align: center; margin-top: 2px; }
        .auth-account-text { flex: 1; min-width: 0; }
        .auth-account-label { color: #fff; font-size: 14px; font-weight: 600; }
        .auth-account-desc { color: #94a3b8; font-size: 12px; margin-top: 2px; }
        .auth-account-btn {
            flex-shrink: 0; padding: 6px 14px; border-radius: 8px;
            font-size: 12px; font-weight: 600; cursor: pointer;
            border: none; transition: all 0.2s;
        }
        .auth-account-btn.login { background: var(--primary); color: #fff; }
        .auth-account-btn.login:hover { background: var(--primary-light); }
        .auth-account-btn.logout { background: rgba(239,68,68,0.15); color: #ef4444; }
        .auth-account-btn.logout:hover { background: rgba(239,68,68,0.25); }
        .auth-account-btn.delete { background: transparent; color: #64748b; font-size: 11px; padding: 4px 10px; border: 1px solid rgba(239,68,68,0.2); }
        .auth-account-btn.delete:hover { border-color: #ef4444; color: #ef4444; }

        @media (max-width: 420px) {
            .auth-card { padding: 18px 16px 14px; }
            .auth-title { font-size: 20px; letter-spacing: 4px; }
            .auth-logo-wrapper { width: 64px; height: 64px; }
            .auth-logo { width: 64px; height: 64px; }
            .auth-logo-ring { top: -5px; left: -5px; right: -5px; bottom: -5px; }
            .auth-hero { margin-bottom: 12px; }
            .auth-features { gap: 4px; margin-bottom: 10px; }
            .auth-feature { padding: 6px 10px; border-radius: 8px; }
            .auth-feature-icon { font-size: 17px; width: 24px; }
            .auth-feature-title { font-size: 12px; }
            .auth-feature-desc { font-size: 10px; }
            .auth-divider { margin: 8px 0; }
            .auth-howto { margin-bottom: 10px; }
            .auth-howto-title { font-size: 11px; margin-bottom: 6px; }
            .auth-howto-steps { gap: 12px; }
            .auth-step-num { width: 26px; height: 26px; font-size: 13px; }
            .auth-form-group { margin-bottom: 8px; }
            .auth-input { height: 38px; font-size: 13px; padding: 0 12px 0 34px; border-radius: 8px; }
            .auth-input-icon { left: 10px; font-size: 13px; }
            .auth-submit-btn { height: 40px; font-size: 14px; border-radius: 8px; }
            .auth-skip-btn { font-size: 12px; padding: 6px 16px; }
        }
        @media (max-width: 360px) {
            .auth-card { padding: 14px 12px 12px; }
            .auth-logo-wrapper { width: 52px; height: 52px; margin-bottom: 8px; }
            .auth-logo { width: 52px; height: 52px; }
            .auth-logo-ring { top: -4px; left: -4px; right: -4px; bottom: -4px; }
            .auth-title { font-size: 18px; letter-spacing: 3px; }
            .auth-subtitle { font-size: 12px; }
            .auth-features { gap: 3px; }
            .auth-feature { padding: 5px 8px; gap: 8px; }
            .auth-step-num { width: 22px; height: 22px; font-size: 11px; }
            .auth-input { height: 34px; font-size: 12px; padding: 0 10px 0 30px; }
            .auth-input-icon { left: 8px; font-size: 12px; }
            .auth-submit-btn { height: 36px; font-size: 13px; }
            .auth-skip-btn { font-size: 11px; padding: 6px 14px; }
        }

        /* 未登录时隐藏主页面和底部栏，只显示登录弹窗 */
        body:not(.br-authenticated) .app-container,
        body:not(.br-authenticated) .bottom-nav { display: none !important; }
        body.br-authenticated .app-container { display: flex; flex-direction: column; min-height: 100vh; }

        /* ============ 暗色模式 ============ */
        @media (prefers-color-scheme: dark) {
            :root {
                --dark: #171717;
                --dark-light: #1a1a1a;
                --gray-100: #1f1f1f;
                --gray-200: #272727;
                --gray-300: #333333;
                --gray-400: #404040;
                --gray-500: #737373;
                --gray-600: #a3a3a3;
                --gray-700: #d4d4d4;
                --gray-800: #e5e5e5;
                --gray-900: #f5f5f5;
                --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
                --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
                --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
            }
            body {
                background: linear-gradient(135deg, #171717 0%, #1a1a1a 100%);
            }
            .app-container {
                background: var(--gray-100);
            }
            .search-filter-section {
                background: var(--gray-200);
            }
            .search-input {
                background: var(--gray-300);
                border-color: var(--gray-400);
                color: var(--gray-600);
            }
            .search-input:focus {
                background: var(--gray-200);
                border-color: var(--primary);
            }
            .station-item {
                background: var(--gray-200);
                border-color: var(--gray-300);
            }
            .station-item:hover {
                border-color: var(--gray-400);
            }
            .station-item.playing {
                background: linear-gradient(135deg, rgba(75,127,179,0.15), rgba(75,127,179,0.05));
            }
            .station-item.playing .station-name {
                color: var(--primary-light);
            }
            .station-name {
                color: var(--gray-800);
                }
                .station-meta {
                color: var(--gray-600);
            }
            .station-icon {
                background: var(--gray-300);
            }
            .station-item .station-tags {
                color: #7ab8f5;
                background: rgba(75,127,179,0.2);
            }
            .station-item .station-codec {
                color: var(--gray-600);
                background: var(--gray-300);
            }
            .station-item .station-delay {
                color: var(--gray-800);
                }

                .station-name {
                font-size: 12px;
                font-weight: 500;
                color: var(--gray-800);
            }
            .station-item .station-cache-range {
                color: var(--gray-500);
            }
            .country-tag {
                background: rgba(75,127,179,0.3);
                color: var(--primary-light);
            }
            .filter-btn {
                background: var(--gray-300);
                color: var(--gray-700);
            }
            .filter-btn:hover {
                background: var(--gray-400);
            }
            .filter-btn.active {
                background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
                color: white;
            }
            .bottom-filter-row .filter-btn {
                background: var(--gray-200);
                color: var(--gray-700);
                border-color: var(--gray-400);
            }
            .bottom-filter-row .filter-btn.active {
                background: var(--primary);
                color: #fff;
                border-color: var(--primary);
            }
            .bottom-filter-row .filter-btn:hover {
                background: var(--gray-300);
            }
            .bottom-filter-row .bottom-action-btn {
                background: var(--gray-200);
                color: var(--gray-700);
                border-color: var(--gray-400);
            }
            .bottom-filter-row .bottom-action-btn:hover {
                background: var(--gray-300);
            }
            .favorite-btn {
                color: var(--gray-500);
            }
            .favorite-btn.is-favorite {
                background: rgba(245, 158, 11, 0.18);
                text-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
            }
            /* 收藏栏暗色模式 CSS 已移除 */
            /* .bottom-action-bar dark mode 已废弃 */
            .bottom-search-input {
                background: var(--gray-300);
                border-color: var(--gray-400);
                color: var(--gray-600);
            }
            .bottom-search-input:focus {
                border-color: var(--primary);
                background: var(--gray-200);
            }
            .ai-search-btn {
                background: var(--gray-300);
                color: var(--gray-700);
            }
            .ai-search-btn:hover {
                background: var(--gray-400);
            }
            .search-clear {
                background: var(--gray-400);
                color: var(--gray-700);
            }
            .search-clear:hover {
                background: var(--gray-500);
            }
            .loading {
                color: var(--gray-600);
            }
            .error {
                background: rgba(231,76,60,0.15);
                color: #f87171;
            }
            .filter-overflow-menu {
                background: var(--gray-200);
                border-color: var(--gray-300);
            }
            .filter-overflow-header {
                color: var(--gray-600);
                border-bottom-color: var(--gray-300);
            }
            .bottom-filter-row .filter-overflow-menu {
                background: var(--gray-200);
                border-color: var(--gray-300);
            }
            .skeleton-item {
                background: var(--gray-200);
            }
            .skeleton-icon, .skeleton-line {
                background: var(--gray-300);
            }
        }

        /* ============ D1 全屏播放详情页 ============ */
        .spp {
            position: fixed;
            left: 0; right: 0; bottom: 0;
            top: 0;
            background: #ffffff;
            color: #1a1a1a;
            border-radius: 0;
            box-shadow: none;
            z-index: 9800;
            transform: translateY(-100%);
            transition: transform 0.32s cubic-bezier(.22,.61,.36,1);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            -webkit-overflow-scrolling: touch;
        }
        .spp.hidden { display: none; }
        .spp.open { transform: translateY(0); }
        .spp-grabber {
            height: 26px; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center;
            cursor: grab; touch-action: none;
        }
        .spp-grabber-bar { width: 42px; height: 5px; border-radius: 3px; background: rgba(0,0,0,0.15); }
        .spp-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px calc(20px + env(safe-area-inset-bottom)); }
        .spp-hero {
            display: flex; align-items: center; gap: 14px; padding: 6px 0 16px;
            position: sticky; top: 0; z-index: 10;
            background: #ffffff;
        }
        .spp-logo-wrap { position: relative; width: 74px; height: 74px; flex-shrink: 0; }
        .spp-logo { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; background: #eee; }
        .spp.open.playing .spp-logo { animation: spp-mini-sunburst 3s ease-in-out infinite, spp-mini-spin 8s linear infinite; }
        .spp-equalizer {
            position: absolute; inset: 0; display: none;
            align-items: flex-end; justify-content: center; gap: 3px;
            background: rgba(0,0,0,0.4); border-radius: 50%; padding-bottom: 16px;
        }
        .spp.open.playing .spp-equalizer { display: flex; }
        .spp-equalizer span { width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: spp-eq 0.9s ease-in-out infinite; }
        .spp-equalizer span:nth-child(2) { animation-delay: .15s; }
        .spp-equalizer span:nth-child(3) { animation-delay: .3s; }
        .spp-equalizer span:nth-child(4) { animation-delay: .45s; }
        @keyframes spp-eq { 0%,100% { height: 8px; } 50% { height: 22px; } }
        .spp-hero-text { flex: 1; min-width: 0; }
        .spp-name { font-size: 19px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; word-break: break-word; }
        .spp-loc { font-size: 13px; color: #888; margin-top: 5px; }
        .spp-close {
            flex-shrink: 0; width: 48px; height: 48px; border: none;
            border-radius: 50%;
            background: linear-gradient(145deg, #eee 0%, #d0d0d0 100%);
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            font-size: 20px; font-weight: 900; color: #ff6b35; line-height: 1;
            box-shadow:
                0 4px 12px rgba(0,0,0,0.18),
                0 1px 3px rgba(0,0,0,0.1),
                inset 0 1px 0 rgba(255,255,255,0.85),
                inset 0 -2px 0 rgba(0,0,0,0.08);
            transition: box-shadow 0.2s, transform 0.15s, background 0.2s;
            position: relative;
        }
        .spp-close-arrow {
            display: inline-block;
            font-size: 24px;
            line-height: 1;
            transform: translateY(-1px);
            color: #ff6b35;
            text-shadow:
                0 1px 0 #e55a2b,
                0 2px 0 #d44e20,
                0 3px 4px rgba(0,0,0,0.2);
            transition: transform 0.2s, text-shadow 0.2s;
        }
        .spp-close:active {
            transform: scale(0.92);
            box-shadow: 0 1px 4px rgba(0,0,0,0.12), inset 0 2px 6px rgba(0,0,0,0.12);
            background: linear-gradient(145deg, #c8c8c8 0%, #ddd 100%);
        }
        .spp-close:active .spp-close-arrow {
            transform: translateY(0px);
            text-shadow:
                0 1px 0 #e55a2b,
                0 2px 3px rgba(0,0,0,0.15);
        }
        .spp-section { margin-top: 18px; }
        .spp-section-label { font-size: 12px; font-weight: 700; color: #999; letter-spacing: .5px; margin-bottom: 8px; }
        .spp-desc { font-size: 14px; line-height: 1.65; color: #444; }
        .spp-loading { color: #aaa; }
        .spp-actions {
            display: flex; gap: 10px; margin-top: 18px;
            padding: 0 2px;
        }
        .spp-action {
            flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
            padding: 14px 0 10px; border: none; border-radius: 16px;
            background: rgba(34,197,94,0.1); color: #16a34a; cursor: pointer;
            position: relative; overflow: hidden;
            backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
            box-shadow: 0 1px 3px rgba(0,0,0,0.06), inset 0 0 0 0.5px rgba(255,255,255,0.6);
            transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s, background 0.25s;
        }
        .spp-action::before {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 40%);
            border-radius: 16px; pointer-events: none;
        }
        .spp-action:active {
            transform: scale(0.92);
            box-shadow: 0 1px 2px rgba(0,0,0,0.08), inset 0 2px 4px rgba(0,0,0,0.06);
        }
        .spp-action.recording {
            background: rgba(239,68,68,0.12); color: #ef4444;
            animation: recording-pulse 1.5s ease-in-out infinite;
        }
        @keyframes recording-pulse {
            0%, 100% { background: rgba(239,68,68,0.12); }
            50% { background: rgba(239,68,68,0.25); }
        }
        .spp-action.is-favorite {
            background: rgba(245,158,11,0.14); color: #f59e0b;
        }
        .spp-action-icon { font-size: 24px; line-height: 1; position: relative; z-index: 1; }
        .spp-action-label { font-size: 11px; font-weight: 600; opacity: 0.85; position: relative; z-index: 1; }

        /* ===== 浮动播放页下载进度条 ===== */
        .spp-download-progress {
            margin-top: 12px; padding: 0 2px;
            display: flex; align-items: center; gap: 10px;
        }
        .spp-progress-bar {
            flex: 1; height: 6px; background: rgba(0,0,0,0.08); border-radius: 3px; overflow: hidden;
        }
        .spp-progress-fill {
            height: 100%; width: 0%; border-radius: 3px;
            background: linear-gradient(90deg, #10b981, #34d399);
            transition: width 0.3s ease;
        }
        .spp-progress-text {
            font-size: 12px; font-weight: 700; color: #10b981; min-width: 36px; text-align: right;
        }

        /* ===== Now Playing（EPG 元数据） ===== */
        .spp-now-playing {
            margin: 16px 0 0;
            padding: 10px 14px;
            background: rgba(34,197,94,0.06);
            border-radius: 12px;
            border: 0.5px solid rgba(34,197,94,0.15);
            transition: all 0.3s ease;
        }
        .spp-now-playing.spp-now-empty {
            opacity: 0.35;
            padding: 6px 14px;
        }
        .spp-now-header {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-bottom: 4px;
        }
        .spp-now-icon { font-size: 12px; }
        .spp-now-label {
            font-size: 11px;
            font-weight: 600;
            color: #16a34a;
            letter-spacing: 0.3px;
            text-transform: uppercase;
        }
        .spp-now-text {
            font-size: 15px;
            font-weight: 600;
            color: #1a1a1a;
            line-height: 1.4;
            word-break: break-word;
            white-space: pre-wrap;
        }
        .spp-now-empty .spp-now-text {
            font-size: 13px;
            font-weight: 400;
            color: #999;
        }

        /* ===== Upcoming（接下来1小时） ===== */
        .spp-upcoming {
            margin: 8px 0 0;
            padding: 10px 14px;
            background: rgba(59,130,246,0.05);
            border-radius: 12px;
            border: 0.5px solid rgba(59,130,246,0.12);
            transition: all 0.3s ease;
        }
        .spp-upcoming.hidden { display: none; }
        .spp-upcoming .spp-section-label {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #3b82f6;
            margin-bottom: 8px;
        }
        .spp-upcoming-list { display: flex; flex-direction: column; gap: 6px; }
        .spp-upcoming-item {
            display: flex;
            align-items: baseline;
            gap: 8px;
            font-size: 14px;
            line-height: 1.3;
        }
        .spp-upcoming-time {
            flex-shrink: 0;
            font-size: 12px;
            font-weight: 600;
            color: #3b82f6;
            background: rgba(59,130,246,0.1);
            padding: 1px 6px;
            border-radius: 4px;
            min-width: 36px;
            text-align: center;
        }
        .spp-upcoming-title {
            color: #1a1a1a;
            font-weight: 500;
            flex: 1;
        }
        .spp-upcoming-desc {
            display: none;
            font-size: 11px;
            color: #888;
        }

        .spp-now-meta {
            font-size: 12px;
            color: #888;
            margin-top: 2px;
        }

        /* 迷你条 Now Playing */
        .spp-mini-now {
            font-size: 10px;
            color: var(--gray-500);
            max-width: 80px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            flex-shrink: 0;
            margin: 0 2px;
            transition: opacity 0.3s;
        }
        .spp-mini-now.hidden { display: none; }

        /* ============ 探索页（更多） ============ */
        .explore-container { padding: 16px; }
        .explore-section {
            background: var(--gray-100);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 16px;
        }
        .explore-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }
        .explore-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--gray-700);
            min-width: 48px;
            flex-shrink: 0;
        }
        .explore-btn {
            padding: 8px 14px;
            border: 1px solid var(--gray-300);
            border-radius: 8px;
            background: #fff;
            color: var(--gray-700);
            font-size: 13px;
            cursor: pointer;
            flex: 1;
            min-width: 120px;
            text-align: left;
            transition: all 0.2s;
        }
        .explore-btn:active { transform: scale(0.97); }
        .explore-btn-hidden { display: none; }
        .explore-cats {
            display: flex;
            gap: 4px;
            flex-wrap: wrap;
        }
        .explore-cat {
            padding: 6px 12px;
            border: 1px solid var(--gray-300);
            border-radius: 8px;
            background: transparent;
            color: var(--gray-700);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .explore-cat.active {
            color: var(--primary);
            border-color: var(--primary);
            background: rgba(75,127,179,0.08);
            font-weight: 600;
        }
        .paged-load-more {
            display: block;
            width: calc(100% - 32px);
            margin: 16px auto;
            padding: 12px;
            border: 1px solid var(--gray-300);
            border-radius: 10px;
            background: transparent;
            color: var(--primary);
            font-size: 14px;
            cursor: pointer;
            text-align: center;
            transition: all 0.2s;
        }
        .paged-load-more:active { background: var(--gray-200); transform: scale(0.98); }
        .category-grid-paged { margin-bottom: 0; }
        .category-card-dot {
            display: inline-block;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            margin-left: 6px;
            vertical-align: middle;
            flex-shrink: 0;
        }
        .category-card-dot.dot-green { background: #2e7d32; }
        .category-card-dot.dot-yellow { background: #f57f17; }
        .category-card-dot.dot-red { background: #c62828; }
        .category-card-dot.dot-gray { background: #9e9e9e; }
        .explore-input {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid var(--gray-300);
            border-radius: 8px;
            font-size: 13px;
            background: #fff;
            color: var(--gray-800);
            outline: none;
            min-width: 140px;
        }
        .explore-input:focus { border-color: var(--primary); }
        .explore-search-btn {
            width: 100%;
            padding: 11px;
            border: none;
            border-radius: 10px;
            background: var(--primary);
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.15s;
        }
        .explore-search-btn:active { transform: scale(0.97); }
        .explore-results { margin-top: 4px; }
        .explore-loading, .explore-empty {
            text-align: center;
            padding: 32px 16px;
            color: var(--gray-500);
            font-size: 14px;
        }
        .explore-result-header {
            font-size: 13px;
            color: var(--gray-500);
            padding: 8px 0 12px;
        }
        /* 国家/省 选择器（下拉式） */
        .explore-overlay {
            position: absolute; top: 100%; left: 0; right: 0; z-index: 9999;
            margin-top: 4px;
        }
        .explore-section { position: relative; }
        .explore-picker {
            background: #fff;
            border: 1px solid var(--gray-300);
            border-radius: 10px;
            width: 100%;
            max-height: 320px;
            overflow-y: auto;
            display: flex; flex-direction: column;
            -webkit-overflow-scrolling: touch;
            box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        }
        .explore-picker-header {
            display: flex; align-items: center; gap: 8px;
            padding: 10px 12px; border-bottom: 1px solid var(--gray-300);
            font-size: 13px; font-weight: 600; color: var(--gray-700);
            flex-shrink: 0;
        }
        .explore-picker-search {
            flex: 1; padding: 5px 8px;
            border: 1px solid var(--gray-300); border-radius: 6px;
            font-size: 12px; outline: none; background: #fff; color: var(--gray-800);
        }
        .explore-picker-close {
            border: none; background: none; font-size: 16px;
            cursor: pointer; color: var(--gray-500); padding: 2px;
        }
        .explore-picker-list { overflow-y: visible; flex: 1; }
        .explore-picker-item {
            display: flex; align-items: center; justify-content: space-between;
            padding: 10px 12px; cursor: pointer;
            border-bottom: 0.5px solid var(--gray-200);
            transition: background 0.15s;
        }
        .explore-picker-item:active { background: var(--gray-200); }
        .explore-picker-item-active { background: rgba(75,127,179,0.1); }
        .explore-picker-item-active .explore-picker-name { color: var(--primary); font-weight: 600; }
        .explore-picker-item:last-child { border-bottom: none; }
        .explore-picker-name { font-size: 13px; color: var(--gray-700); }
        .explore-picker-count { font-size: 11px; color: var(--gray-500); }
        .explore-picker-empty {
            padding: 24px 12px; text-align: center;
            color: var(--gray-500); font-size: 13px;
        }
        @media (prefers-color-scheme: dark) {
            .explore-section { background: #1f1f1f; }
            .explore-btn { background: #272727; border-color: #333; color: #d4d4d4; }
            .explore-cat { border-color: #333; color: #d4d4d4; }
            .explore-cat.active { border-color: var(--primary-light); color: var(--primary-light); background: rgba(75,127,179,0.15); }
            .paged-load-more { border-color: #333; color: var(--primary-light); }
            .paged-load-more:active { background: #333; }
            .explore-picker { background: #272727; border-color: #444; }
            .explore-picker-header { border-color: #444; color: #d4d4d4; }
            .explore-picker-search { background: #1f1f1f; border-color: #444; color: #e5e5e5; }
            .explore-picker-item { border-color: #333; }
            .explore-picker-item:active { background: #333; }
            .explore-picker-item-active { background: rgba(75,127,179,0.2); }
            .explore-picker-item-active .explore-picker-name { color: var(--primary-light); font-weight: 600; }
            .explore-picker-name { color: #d4d4d4; }
            .explore-picker-empty { color: #888; }
            .category-card-dot.dot-green { background: #4caf50; }
            .category-card-dot.dot-yellow { background: #ffb300; }
            .category-card-dot.dot-red { background: #ef5350; }
            .category-card-dot.dot-gray { background: #757575; }
            .explore-input { background: #272727; border-color: #333; color: #e5e5e5; }
            .explore-picker { background: #1f1f1f; }
            .explore-picker-search { background: #272727; border-color: #333; color: #e5e5e5; }
            .explore-picker-item { border-color: #333; }
            .explore-picker-item:active { background: #333; }
        }
        .spp-action.recording::before {
            background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 40%);
        }
        .spp-action.is-favorite::before {
            background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, transparent 40%);
        }
        .spp-recommend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
        .spp-rec-empty { font-size: 13px; color: #aaa; text-align: center; padding: 12px 0; grid-column: 1 / -1; }
        .spp-rec-item {
            display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
            gap: 4px; width: 100%; padding: 10px 6px 6px; border: none; border-radius: 12px;
            background: #f4f5f7; color: #222;
            font-size: 10px; font-weight: 600; cursor: pointer;
            text-align: center; overflow: hidden;
        }
        .spp-rec-item:active { background: #e9ebee; }
        .spp-rec-logo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #e0e2e6; flex-shrink: 0; }
        .spp-rec-name-wrap {
            width: 100%; line-height: 1.1; overflow: hidden;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
        }
        .spp-rec-name { }
        .spp-rec-meta {
            display: flex; align-items: center; gap: 4px;
            font-size: 9px; line-height: 1; margin-top: 1px;
        }
        .spp-rec-flag {
            color: #888; font-weight: 500;
        }
        .spp-rec-dot {
            width: 7px; height: 7px; border-radius: 50%;
            flex-shrink: 0;
        }
        .spp-rec-dot.dot-green { background: #34c759; }
        .spp-rec-dot.dot-orange { background: #ff9500; }
        .spp-rec-dot.dot-red { background: #ff3b30; }
        .spp-rec-dot.dot-gray { background: #c7c7cc; }
        @media (prefers-color-scheme: dark) {
            .spp { background: #2a2a2c; color: #f2f2f2; }
            .spp-name { color: #fff; }
            .spp-loc { color: #aaa; }
            .spp-section-label { color: #888; }
            .spp-desc { color: #ccc; }
            .spp-action { background: rgba(34,197,94,0.18); box-shadow: 0 1px 3px rgba(0,0,0,0.15), inset 0 0 0 0.5px rgba(255,255,255,0.08); }
            .spp-action.recording { background: rgba(239,68,68,0.2); }
            .spp-action.is-favorite { background: rgba(245,158,11,0.22); }
            .spp-action::before { background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 40%); }
            .spp-hero { background: #2a2a2c; }
            .spp-close { background: linear-gradient(145deg, #3a3a3c 0%, #2c2c2e 100%); box-shadow: 0 4px 14px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -2px 0 rgba(0,0,0,0.2); }
            .spp-close-arrow { color: #ff8844; text-shadow: 0 1px 0 #d46a2a, 0 2px 0 #c05e20, 0 3px 6px rgba(0,0,0,0.4); }
            .spp-close:active { transform: scale(0.92); box-shadow: 0 1px 4px rgba(0,0,0,0.3), inset 0 2px 6px rgba(0,0,0,0.2); background: linear-gradient(145deg, #252527 0%, #333 100%); }
            .spp-now-text { color: #e5e5e5; }
            .spp-now-empty .spp-now-text { color: #666; }
            .spp-now-meta { color: #888; }
            .spp-now-playing { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.2); }
            .spp-upcoming { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.15); }
            .spp-upcoming-title { color: #e5e5e5; }
            .spp-progress-bar { background: rgba(255,255,255,0.1); }
            .spp-progress-fill { background: linear-gradient(90deg, #10b981, #34d399); }
            .spp-close:active .spp-close-arrow { text-shadow: 0 1px 0 #d46a2a, 0 2px 3px rgba(0,0,0,0.3); }
            .spp-grabber-bar { background: rgba(255,255,255,0.25); }
            .spp-rec-item { background: #2a2a2c; color: #eee; }
            .spp-rec-item:active { background: #343436; }
            .spp-rec-flag { color: #999; }
        }

        /* 相似电台推荐（小卡片模式：固定大小、更紧凑） */
        .spp-rec-item {
            display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
            gap: 4px; width: 100%; padding: 10px 6px 6px; border: none; border-radius: 12px;
            background: #f4f5f7; color: #222;
            font-size: 10px; font-weight: 600; cursor: pointer;
            text-align: center; overflow: hidden;
        }
        .spp-rec-item:active { background: #e9ebee; }
        .spp-rec-logo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #e0e2e6; flex-shrink: 0; }
        .spp-rec-name-wrap {
            width: 100%; line-height: 1.1; overflow: hidden;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
        }
        .spp-rec-name { /* 由父容器控制截断 */ }
        .spp-rec-meta {
            display: flex; align-items: center; gap: 3px;
            font-size: 9px; line-height: 1; margin-top: 1px;
        }
        .spp-rec-flag { color: #888; font-weight: 500; }
        .spp-rec-dot {
            width: 7px; height: 7px; border-radius: 50%;
            flex-shrink: 0;
            box-shadow: 0 0 0 1px rgba(255,255,255,0.7);
        }

        /* ===== 顶部播放器条（非浮动，嵌入顶部区域） ===== */
        .top-mini-wrapper {
            padding: 4px 16px 6px;
            background: var(--gray-50);
        }
        @media (prefers-color-scheme: dark) {
            .top-mini-wrapper {
                background: #1a1a2e;
                border-bottom-color: rgba(255,255,255,0.08);
            }
        }
        .spp-mini {
            display: flex; align-items: center; gap: 8px;
            padding: 2px 0;
            cursor: pointer;
        }
        .spp-mini.hidden { display: none; }
        .spp-mini-logo {
            width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
            background: #e8ecf0; box-shadow: none;
            transition: box-shadow 0.4s ease;
        }
        .spp-mini.playing .spp-mini-logo {
            animation: spp-mini-sunburst 3s ease-in-out infinite, spp-mini-spin 8s linear infinite;
        }
        @keyframes spp-mini-sunburst {
            0%, 100% { box-shadow: 0 0 6px 2px rgba(255,180,30,0.5), 0 0 14px 5px rgba(255,180,30,0.25), 0 0 22px 8px rgba(255,150,0,0.12); }
            50% { box-shadow: 0 0 10px 4px rgba(255,180,30,0.7), 0 0 22px 8px rgba(255,180,30,0.35), 0 0 34px 14px rgba(255,150,0,0.18); }
        }
        @keyframes spp-mini-spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        .spp-mini-marquee {
            flex: 1; min-width: 0; overflow: hidden;
        }
        .spp-mini-text {
            display: block; width: 100%; text-align: center;
            white-space: nowrap;
            font-size: 14px; font-weight: 500; color: var(--gray-700);
        }
        .spp-mini.playing .spp-mini-text {
            text-align: left;
            padding-left: 100%;
            animation: spp-mini-scroll 12s linear infinite;
        }
        .spp-mini-text.spp-nowplaying {
            font-size: 11px;
            font-weight: 400;
            color: var(--gray-500);
            animation: none;
            padding-left: 0;
            text-align: center;
        }
        /* 流元数据副标题 — 电台名称下方另起一行 */
        .spp-mini-sub {
            display: block; width: 100%;
            text-align: center;
            font-size: 11px;
            font-weight: 400;
            color: var(--gray-500);
            line-height: 1.3;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 100%;
        }
        @keyframes spp-mini-scroll {
            from { transform: translateX(0); }
            to { transform: translateX(-100%); }
        }
        .spp-mini-expand {
            color: inherit;
            font-size: 32px;
            flex-shrink: 0;
            line-height: 1;
            opacity: 0.7;
            padding: 0;
            border: none; background: transparent;
            cursor: pointer;
        }
        .spp-mini-favbtn {
            width: 32px; height: 32px;
            border: none; background: transparent; color: inherit;
            font-size: 18px;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer;
            transition: transform 0.15s;
            flex-shrink: 0;
        }
        .spp-mini-favbtn:active {
            transform: scale(0.88);
        }
        .spp-mini-favbtn.is-favorite {
            color: #f59e0b;
        }
        .spp-mini-playbtn {
        }
        .spp-mini-playbtn {
            width: 36px; height: 36px;
            border: none; background: transparent; color: inherit;
            font-size: 15px;
            cursor: pointer;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.15s;
        }
        .spp-mini-playbtn:hover {
        }
        .spp-mini-playbtn:active {
            transform: scale(0.88);
        }
        @media (prefers-color-scheme: dark) {
            .spp-mini-text { color: #999; }
        }

        /* ============ 定时关闭倒计时徽标（浮动） ===== */
        .timer-badge {
            position: fixed;
            left: 50%; transform: translateX(-50%);
            bottom: 72px;
            z-index: 8500;
            display: flex; align-items: center; gap: 6px;
            padding: 7px 14px; border-radius: 999px;
            background: #ff6b35; color: #fff;
            font-size: 14px; font-weight: 700;
            box-shadow: 0 4px 16px rgba(255,107,53,0.4);
            cursor: pointer;
            transition: opacity .25s ease, transform .25s ease;
        }
        .timer-badge.hidden { display: none; }
        .timer-badge:active { transform: translateX(-50%) scale(0.94); }
        .timer-badge-icon { font-size: 14px; }
        @media (prefers-color-scheme: dark) {
            .timer-badge { background: #ff7a45; box-shadow: 0 4px 16px rgba(255,107,53,0.5); }
        }

        /* ============ 底部导航栏 ============ */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 800px;
            background: rgba(248,249,250,0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid rgba(0,0,0,0.08);
            box-shadow: 0 -2px 20px rgba(0,0,0,0.12);
            z-index: 9500;
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 3px 0 max(3px, env(safe-area-inset-bottom));
        }
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            padding: 2px 10px;
            border: none;
            background: transparent;
            cursor: pointer;
            transition: all 0.2s ease;
            border-radius: 10px;
            min-width: 48px;
        }
        .nav-item:active {
            transform: scale(0.95);
            background: rgba(75,127,179,0.1);
        }
        .nav-item.active {
            color: var(--primary);
        }
        .nav-item.active .nav-icon {
            transform: scale(1.1);
        }
        .nav-item.active .nav-label {
            color: var(--primary);
            font-weight: 600;
            border-bottom: 2px solid #fff;
            padding-bottom: 2px;
        }
        .nav-icon {
            font-size: 16px;
            line-height: 1.2;
            transition: transform 0.2s ease;
        }
        .nav-label {
            font-size: 12px;
            font-weight: 500;
            color: var(--gray-600);
            line-height: 1.2;
        }
        .nav-item.active .nav-label {
            color: var(--primary);
            font-weight: 600;
        }

        /* ============ 分类标签栏 ============ */
        .category-tabs {
            display: flex;
            gap: 0;
            padding: 6px 0;
            background: var(--gray-100);
            border-bottom: none;
        }

        /* ============ 下拉刷新指示器 ============ */
        .ptr-indicator {
            height: 0;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: var(--gray-100);
            transition: height 0.2s ease;
            color: var(--gray-500);
            font-size: 13px;
        }
        .ptr-indicator.pulling { height: 44px; }
        .ptr-indicator.release { height: 44px; color: var(--primary); }
        .ptr-indicator.refreshing { height: 44px; color: var(--primary); }
        .ptr-icon {
            font-size: 20px;
            transition: transform 0.2s ease;
            line-height: 1;
        }
        .ptr-indicator.release .ptr-icon { transform: rotate(180deg); }
        .ptr-indicator.refreshing .ptr-icon { animation: ptrSpin 0.8s linear infinite; }
        @keyframes ptrSpin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        .category-tab {
            flex: 1;
            padding: 4px 0;
            border: none;
            border-radius: 0;
            background: transparent;
            color: var(--gray-700);
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            white-space: nowrap;
            position: relative;
            text-align: center;
            transition: all 0.15s;
        }
        .category-tab.active {
            color: var(--primary);
            font-weight: 600;
        }
        .category-tab:hover {
            color: var(--primary);
        }
        .category-tab:active {
            transform: scale(0.95);
        }

        /* ============ 页面容器 ============ */
        .page-container {
            display: none;
            min-height: calc(100vh - 120px);
            padding-bottom: 80px;
        }
        .page-container.active {
            display: block;
        }

        /* ============ 搜索页 ============ */
        .search-page-content {
            padding: 16px;
        }
        .search-page-header {
            display: flex;
            gap: 10px;
            margin-bottom: 16px;
        }
        .search-page-box {
            flex: 1;
            min-width: 0;
            display: flex;
            align-items: center;
            background: var(--gray-100);
            border: 1.5px solid var(--gray-300);
            border-radius: 12px;
            padding: 0 12px;
            transition: border-color 0.2s ease;
        }
        .search-page-box:focus-within {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(75,127,179,0.1);
        }
        .search-page-box[data-status="online"] {
            border-color: rgba(67,233,123,0.60);
        }
        .search-page-box[data-status="server-offline"] {
            border-color: rgba(255,200,0,0.60);
        }
        .search-page-box[data-status="no-internet"] {
            border-color: rgba(231,76,60,0.60);
        }
        .search-page-input {
            flex: 1;
            height: 44px;
            border: none;
            background: transparent;
            font-size: 15px;
            color: var(--gray-600);
            outline: none;
        }
        .search-page-input::placeholder {
            color: var(--gray-500);
        }
        .search-page-btn {
            padding: 0 20px;
            flex-shrink: 1;
            height: 44px;
            border: none;
            border-radius: 12px;
            background: var(--primary);
            color: #fff;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
        }
        .search-page-btn:active {
            transform: scale(0.95);
            background: var(--primary-dark);
        }
        .search-page-results {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        /* 搜索建议 */
        .search-suggestions {
            padding: 8px 0;
        }
        .search-section-title {
            font-size: 13px;
            font-weight: 600;
            color: var(--gray-600);
            margin-bottom: 10px;
            margin-top: 16px;
        }
        .search-section-title:first-child {
            margin-top: 0;
        }
        .search-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .search-tag {
            padding: 6px 14px;
            border: 1px solid var(--gray-300);
            border-radius: 16px;
            background: var(--gray-100);
            color: var(--gray-700);
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .search-tag:active {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
        }
        .search-load-more { display: block; width: calc(100% - 32px); margin: 16px auto; padding: 10px; border-radius: 8px; border: 1px solid var(--gray-300); background: var(--gray-100); color: var(--gray-600); font-size: 13px; cursor: pointer; text-align: center; }
        .search-load-more:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
        .search-load-more:disabled { opacity: 0.5; cursor: default; }
        .search-categories {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }
        .search-category-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 12px;
            border: 1px solid var(--gray-200);
            border-radius: 12px;
            background: var(--gray-100);
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .search-category-btn:active {
            background: var(--gray-200);
            transform: scale(0.97);
        }
        .search-category-icon {
            font-size: 20px;
        }
        .search-category-name {
            font-size: 13px;
            font-weight: 500;
            color: var(--gray-700);
        }

        /* 搜索结果 */
        .search-loading {
            text-align: center;
            padding: 40px 0;
        }
        .search-results-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
        }
        .search-results-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-700);
        }
        .search-results-count {
            font-size: 12px;
            color: var(--gray-500);
        }
        .search-empty {
            text-align: center;
            padding: 60px 20px;
        }
        .search-empty-icon {
            font-size: 48px;
            margin-bottom: 12px;
            opacity: 0.5;
        }
        .search-empty-text {
            font-size: 16px;
            font-weight: 500;
            color: var(--gray-600);
            margin-bottom: 6px;
        }
        .search-empty-hint {
            font-size: 13px;
            color: var(--gray-500);
        }
        .search-server-btn {
            display: inline-block;
            margin-top: 16px;
            padding: 10px 28px;
            border: none;
            border-radius: 10px;
            background: var(--primary);
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s, transform 0.15s;
        }
        .search-server-btn:hover {
            background: var(--primary-light);
        }
        .search-server-btn:active {
            transform: scale(0.96);
        }
        @media (prefers-color-scheme: dark) {
            .search-server-btn { background: #2a5a8a; }
            .search-server-btn:hover { background: #3a6a9a; }
        }
        .search-result-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: var(--gray-100);
            border: 1px solid var(--gray-200);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .search-result-item:active {
            transform: scale(0.98);
            background: var(--gray-200);
        }
        .search-result-icon {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            object-fit: cover;
            background: var(--gray-200);
            flex-shrink: 0;
        }
        .search-result-info {
            flex: 1;
            min-width: 0;
        }
        .search-result-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-600);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .search-result-meta {
            font-size: 12px;
            color: var(--gray-600);
            margin-top: 2px;
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }
        .search-result-flag {
            font-size: 14px;
        }
        .search-result-tags {
            font-size: 11px;
            color: var(--gray-500);
            margin-top: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .search-result-tags mark {
            background: rgba(75,127,179,0.2);
            color: var(--primary);
            padding: 0 2px;
            border-radius: 2px;
        }

        /* ============ 录音页 ============ */
        .recording-page-content {
            padding: 16px;
        }
        .recording-page-content.with-player-bar {
            padding-bottom: 90px;
        }
        .recording-page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        .recording-page-header h2 {
            font-size: 20px;
            font-weight: 700;
            color: var(--gray-600);
        }
        .recording-count {
            font-size: 13px;
            color: var(--gray-600);
        }
        .recording-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .recording-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 10px 12px;
            background: var(--gray-100);
            border: 1px solid var(--gray-200);
            border-radius: 10px;
            transition: all 0.2s ease;
        }
        .recording-item-content {
            flex: 1;
            min-width: 0;
        }
        .recording-item-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .recording-item-title {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary, #1e293b);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .recording-item-meta {
            font-size: 11px;
            color: var(--text-secondary, #64748b);
        }
        .recording-item-actions {
            display: flex;
            gap: 4px;
            flex-shrink: 0;
        }
        .recording-action-btn--danger:hover {
            background: #ef4444;
            color: white;
        }
        .recording-item.playing {
            border-color: var(--primary);
            background: rgba(75,127,179,0.05);
        }
        .recording-item.paused {
            border-color: var(--gray-400);
            background: rgba(148,163,184,0.08);
        }
        .recording-icon {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }
        .recording-info {
            flex: 1;
            min-width: 0;
        }
        .recording-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-600);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .recording-duration {
            font-size: 12px;
            color: var(--gray-600);
            margin-top: 2px;
        }
        .recording-actions {
            display: flex;
            gap: 8px;
        }
        .recording-action-btn {
            width: 32px;
            height: 32px;
            border: none;
            border-radius: 8px;
            background: var(--gray-200);
            color: var(--gray-700);
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        .recording-action-btn:active {
            transform: scale(0.9);
            background: var(--gray-300);
        }
        .playing .rec-play-btn {
            background: rgba(75,127,179,0.15);
            color: var(--primary);
        }
        .paused .rec-play-btn {
            background: rgba(245,158,11,0.15);
            color: #d97706;
        }
        .rec-export-btn {
            background: rgba(16,185,129,0.1);
            color: #059669;
        }
        .rec-export-btn:active {
            background: rgba(16,185,129,0.25);
        }
        .recording-empty {
            text-align: center;
            padding: 40px 20px;
            color: var(--gray-500);
        }
        .cache-item {
            background: rgba(16,185,129,0.04);
            border-color: rgba(16,185,129,0.2);
        }
        .rec-badge {
            display: inline-block;
            font-size: 10px;
            font-weight: 500;
            color: #059669;
            background: rgba(5,150,105,0.1);
            padding: 1px 6px;
            border-radius: 4px;
            margin-left: 4px;
            vertical-align: middle;
        }
        /* 下载进度条 */
        .dl-progress-wrapper {
            display: flex; align-items: center; gap: 8px; margin-top: 6px;
        }
        .dl-progress-bar {
            flex: 1; height: 6px;
            background: var(--gray-200);
            border-radius: 3px;
            overflow: hidden;
        }
        .dl-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #10b981, #059669);
            border-radius: 3px;
            transition: width 0.3s ease;
        }
        .dl-progress-pct {
            font-size: 12px; font-weight: 700; color: #10b981; min-width: 36px; text-align: right;
        }
        /* 下载中项 */
        .recording-item[data-station-id] .dl-progress-bar {
            animation: dl-pulse 1.5s ease-in-out infinite;
        }
        @keyframes dl-pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }
        /* 分组标题 */
        .recording-section-header {
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-600);
            padding: 8px 0 4px;
            margin-top: 8px;
        }
        .recording-section-header:first-child {
            margin-top: 0;
        }
        /* 活跃播放项 */
        .recording-item--active {
            background: rgba(16,185,129,0.08) !important;
            border-color: rgba(16,185,129,0.3) !important;
        }
        /* 批量选择项 */
        .recording-item--selected {
            background: rgba(59,130,246,0.08) !important;
            border-color: rgba(59,130,246,0.4) !important;
            cursor: pointer;
        }
        /* 批量管理按钮 */
        .recording-batch-toggle {
            display: inline-block;
            margin-left: 8px;
            padding: 2px 10px;
            font-size: 12px;
            border-radius: 10px;
            border: 1px solid var(--primary);
            color: var(--primary);
            background: transparent;
            cursor: pointer;
            vertical-align: middle;
        }
        .recording-batch-toggle--active {
            background: var(--primary);
            color: #fff;
        }
        /* 复选框 */
        .recording-batch-check {
            flex-shrink: 0;
            width: 22px;
            height: 22px;
            border-radius: 4px;
            border: 2px solid var(--gray-400);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 8px;
            font-size: 14px;
            color: #fff;
            cursor: pointer;
            transition: all 0.15s;
        }
        .recording-batch-check--on {
            background: var(--primary);
            border-color: var(--primary);
        }
        /* 筛选栏 */
        .recording-batch-filter {
            background: var(--card-bg);
            border-radius: 10px;
            padding: 10px 12px;
            margin-bottom: 8px;
        }
        .recording-batch-filter-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
            margin-bottom: 6px;
        }
        .recording-batch-filter-row:last-child {
            margin-bottom: 0;
        }
        .recording-batch-filter-label {
            font-size: 12px;
            color: var(--gray-500);
            flex-shrink: 0;
            margin-right: 4px;
        }
        .recording-batch-chip {
            padding: 3px 10px;
            font-size: 12px;
            border-radius: 12px;
            border: 1px solid var(--gray-300);
            background: transparent;
            color: var(--text);
            cursor: pointer;
            transition: all 0.15s;
        }
        .recording-batch-chip:active {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
        }
        /* 批量操作底栏 */
        .recording-batch-bar {
            position: sticky;
            bottom: 0;
            display: flex;
            gap: 6px;
            padding: 10px 0 8px;
            background: linear-gradient(transparent, var(--bg) 20%);
        }
        .recording-batch-bar-btn {
            flex: 1;
            padding: 8px 2px;
            font-size: 11px;
            font-weight: 600;
            line-height: 1.35;
            text-align: center;
            border-radius: 10px;
            border: 1px solid var(--gray-300);
            background: var(--card-bg);
            color: var(--text);
            cursor: pointer;
        }
        .recording-batch-bar-btn--del {
            background: #ef4444;
            color: #fff;
            border-color: #ef4444;
        }
        .recording-batch-bar-btn--exp {
            background: #3b82f6;
            color: #fff;
            border-color: #3b82f6;
        }
        .recording-batch-bar-btn--share {
            background: #10b981;
            color: #fff;
            border-color: #10b981;
        }

        .recording-batch-bar-btn--disabled {
            opacity: 0.4;
            pointer-events: none;
        }

        /* ============ 下载页迷你播放控制栏 ============ */
        .recording-player-bar {
            position: fixed;
            bottom: 60px;
            left: 0;
            right: 0;
            z-index: 100;
            background: var(--card-bg);
            border-top: 1px solid var(--gray-300);
            box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            transition: transform 0.3s, opacity 0.3s;
        }
        .recording-player-bar-progress {
            height: 3px;
            background: var(--gray-200);
            cursor: pointer;
            position: relative;
        }
        .recording-player-bar-progress-fill {
            height: 100%;
            width: 0%;
            background: var(--accent);
            border-radius: 0 2px 2px 0;
            transition: width 0.3s linear;
        }
        .recording-player-bar-main {
            display: flex;
            align-items: center;
            padding: 8px 12px;
            gap: 10px;
        }
        .recording-player-bar-info {
            flex: 1;
            min-width: 0;
            overflow: hidden;
        }
        .recording-player-bar-title {
            font-size: 13px;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: var(--text);
        }
        .recording-player-bar-time {
            font-size: 11px;
            color: var(--gray-500);
            margin-top: 1px;
        }
        .recording-player-bar-controls {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .recording-player-bar-btn {
            width: 36px;
            height: 36px;
            border: none;
            border-radius: 50%;
            background: transparent;
            color: var(--text);
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
            line-height: 1;
        }
        .recording-player-bar-btn:active {
            background: var(--gray-200);
        }
        .recording-player-bar-btn--play {
            width: 42px;
            height: 42px;
            font-size: 20px;
            background: var(--accent);
            color: #000;
        }
        .recording-player-bar-btn--play:active {
            opacity: 0.8;
        }
        .recording-player-bar-modes {
            display: flex;
            align-items: center;
        }
        .recording-player-mode-btn {
            font-size: 16px;
            width: 32px;
            height: 32px;
        }
        .recording-player-mode-btn[data-mode="1"] {
            color: var(--accent);
        }
        .recording-player-mode-btn[data-mode="2"] {
            color: var(--accent);
        }
        .recording-player-mode-btn--active {
            color: var(--accent) !important;
        }

        /* 播放速度滑条（水平嵌入主栏） */
        .recording-player-bar-speed {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 0;
        }
        .recording-player-speed-slider {
            -webkit-appearance: none;
            appearance: none;
            width: 80px;
            height: 6px;
            border-radius: 6px;
            background: linear-gradient(to right, #000 0%, #000 var(--pct, 50%), var(--accent) var(--pct, 50%), var(--accent) 100%);
            outline: none;
            cursor: pointer;
            transition: opacity 0.2s;
        }
        .recording-player-speed-slider:active {
            opacity: 0.9;
        }
        .recording-player-speed-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: radial-gradient(circle at 40% 35%, #fff, var(--accent));
            cursor: pointer;
            border: 2px solid var(--card-bg);
            box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.22);
            transition: transform 0.15s, box-shadow 0.15s;
        }
        .recording-player-speed-slider::-webkit-slider-thumb:hover {
            transform: scale(1.15);
            box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 3px 12px rgba(0,0,0,0.28);
        }
        .recording-player-speed-slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: radial-gradient(circle at 40% 35%, #fff, var(--accent));
            cursor: pointer;
            border: 2px solid var(--card-bg);
            box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.22);
        }
        .recording-player-speed-slider::-moz-range-track {
            height: 6px;
            border-radius: 6px;
            background: #000;
        }
        .recording-player-speed-label {
            font-size: 12px;
            font-weight: 700;
            color: #000;
            min-width: 32px;
            text-align: center;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.5px;
        }
        @media (prefers-color-scheme: dark) {
            .recording-player-speed-slider {
                background: linear-gradient(to right, #fff 0%, #fff var(--pct, 50%), var(--accent) var(--pct, 50%), var(--accent) 100%);
            }
            .recording-player-speed-slider::-moz-range-track {
                background: #fff;
            }
            .recording-player-speed-label {
                color: #fff;
            }
        }

        /* ============ 我的页 ============ */
        .mine-page-content {
            padding: 16px;
        }
        .mine-header {
            margin-bottom: 20px;
        }
        .mine-header h2 {
            font-size: 24px;
            font-weight: 700;
            color: var(--gray-600);
        }
        .mine-card {
            background: var(--gray-100);
            border: 1px solid var(--gray-200);
            border-radius: 14px;
            margin-bottom: 12px;
            overflow: hidden;
        }
        .mine-card-title {
            padding: 14px 16px 8px;
            font-size: 13px;
            font-weight: 600;
            color: var(--gray-600);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .mine-card-body {
            padding: 0 16px 14px;
        }
        .mine-lang-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }
        .mine-lang-btn {
            padding: 10px 8px;
            border: 1.5px solid var(--gray-300);
            border-radius: 10px;
            background: transparent;
            color: var(--gray-800);
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
        }
        .mine-lang-btn:hover {
            color: var(--primary);
            border-color: var(--primary);
        }
        .mine-lang-btn:active {
            transform: scale(0.95);
        }
        .mine-lang-btn.active {
            color: var(--primary);
            font-weight: 600;
            border-color: var(--primary);
            background: rgba(75,127,179,0.08);
        }
        .mine-about {
            font-size: 14px;
            color: var(--gray-600);
            padding: 4px 0;
        }
        .mine-card-clickable {
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            user-select: none;
        }
        .mine-card-clickable:active {
            opacity: 0.7;
        }
        .mine-card-arrow {
            color: var(--gray-400);
            font-size: 22px;
            padding: 8px 12px;
            margin: -8px -12px;
            transition: transform 0.2s;
        }
        .mine-card-arrow.open {
            transform: rotate(90deg);
        }
        /* 配色方案单选按钮 */
        .mine-theme-options {
            display: flex;
            flex-direction: row;
            gap: 8px;
            padding: 4px 0;
            justify-content: space-between;
        }
        .mine-theme-radio {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 10px 6px;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.2s ease;
            font-size: 12px;
            color: var(--gray-700);
            border: 1.5px solid var(--gray-300);
        }
        .mine-theme-radio:hover {
            background: rgba(75, 127, 179, 0.08);
        }
        .mine-theme-radio input[type="radio"] {
            width: 14px;
            height: 14px;
            accent-color: var(--primary);
            flex-shrink: 0;
            margin: 0;
        }
        .mine-theme-radio .radio-label {
            user-select: none;
            white-space: nowrap;
        }
        .mine-update-row:active {
            opacity: 0.7;
        }

        /* ============ 暗色模式适配 ============ */
        @media (prefers-color-scheme: dark) {
            .recording-player-bar-btn--play {
                color: #fff;
            }
            .bottom-nav {
                background: rgba(26,26,46,0.95);
                border-top-color: rgba(255,255,255,0.08);
            }
            .nav-label {
                color: var(--gray-500);
            }
            .category-tabs {
                background: #171717;
            }
            .category-tab {
                color: #999;
            }
            .category-tab:hover {
                color: #ddd;
            }
            .category-tab.active {
                color: #fff;
                font-weight: 700;
                background: rgba(255,255,255,0.1);
            }
            .category-tab.active::after {
                background: #fff;
            }
            .search-page-box {
                background: var(--gray-200);
                border-color: var(--gray-400);
            }
            .search-result-item {
                background: var(--gray-200);
                border-color: var(--gray-300);
            }
            .search-tag {
                background: var(--gray-200);
                border-color: var(--gray-400);
                color: var(--gray-600);
            }
            .search-category-btn {
                background: var(--gray-200);
                border-color: var(--gray-300);
            }
            .search-category-name {
                color: var(--gray-600);
            }
            .search-results-title {
                color: var(--gray-500);
            }
            .search-result-name {
                color: #fff;
            }
            .search-result-tags mark {
                background: rgba(75,127,179,0.3);
                color: var(--primary-light);
            }
            .search-empty-text {
                color: var(--gray-500);
            }
            .recording-item {
                background: var(--gray-200);
                border-color: var(--gray-300);
            }
            .recording-item .recording-name,
            .recording-item .recording-item-title {
                color: var(--gray-700);
            }
            .recording-item .recording-duration,
            .recording-item .recording-item-meta {
                color: var(--gray-500);
            }
            .recording-item .recording-action-btn {
                background: var(--gray-300);
                color: var(--gray-600);
            }
            .recording-item .dl-progress-bar {
                background: var(--gray-300);
            }
            .recording-item .dl-progress-fill {
                background: linear-gradient(90deg, #10b981, #34d399);
            }
            .recording-item .dl-progress-pct {
                color: #34d399;
            }
            .recording-page-header h2 {
                color: var(--gray-600);
            }
            .recording-count {
                color: var(--gray-500);
            }
            .recording-empty {
                color: var(--gray-500);
            }
            .mine-card {
                background: var(--gray-200);
                border-color: var(--gray-300);
            }
            .mine-lang-btn {
                background: var(--gray-200);
                border-color: var(--gray-400);
            }
        }

        /* ============ 录制时长选择器 ============ */
        .record-picker-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
            z-index: 10000; display: flex; align-items: center; justify-content: center;
            padding: 16px; font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Noto Sans SC', sans-serif;
        }
        .record-picker {
            background: #fff; border-radius: 16px; padding: 24px; max-width: 320px; width: 100%;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3); text-align: center;
        }
        .record-picker h3 {
            margin: 0 0 12px; font-size: 20px; font-weight: 700; color: #1e293b;
        }
        .record-station-name {
            margin: 0 0 20px; font-size: 14px; color: #64748b; font-weight: 500;
        }
        .record-duration-list {
            display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px;
        }
        .record-duration-item {
            padding: 12px; border-radius: 12px; border: 2px solid #e2e8f0;
            font-size: 14px; font-weight: 600; color: #475569; cursor: pointer;
            transition: all 0.2s ease;
        }
        .record-duration-item.selected {
            border-color: #3b82f6; background: #eff6ff; color: #1d4ed8;
        }
        .record-start-btn {
            width: 100%; padding: 14px; border-radius: 12px; border: none;
            background: #ef4444; color: #fff; font-size: 16px; font-weight: 700;
            cursor: pointer; transition: all 0.2s ease; margin-bottom: 12px;
        }
        .record-start-btn:hover { background: #dc2626; }
        .record-cancel-btn {
            width: 100%; padding: 12px; border-radius: 12px; border: none;
            background: #f1f5f9; color: #64748b; font-size: 14px; font-weight: 600;
            cursor: pointer; transition: all 0.2s ease;
        }
        .record-cancel-btn:hover { background: #e2e8f0; }

        /* ============ 录制导出对话框 ============ */
        .record-export-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
            z-index: 10000; display: flex; align-items: center; justify-content: center;
            padding: 16px; font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Noto Sans SC', sans-serif;
        }
        .record-export-dialog {
            background: #fff; border-radius: 16px; padding: 24px; max-width: 320px; width: 100%;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3); text-align: center;
        }
        .record-export-dialog h3 {
            margin: 0 0 12px; font-size: 20px; font-weight: 700; color: #1e293b;
        }
        .record-export-name {
            margin: 0 0 8px; font-size: 16px; font-weight: 600; color: #334155;
        }
        .record-export-duration {
            margin: 0 0 20px; font-size: 14px; color: #64748b;
        }
        .record-export-actions {
            display: flex; flex-direction: column; gap: 12px;
        }
        .record-export-btn {
            padding: 14px; border-radius: 12px; border: none;
            font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.2s ease;
        }
        .record-export-mp3 {
            background: #3b82f6; color: #fff;
        }
        .record-export-mp3:hover { background: #2563eb; }
        .record-export-play {
            background: #10b981; color: #fff;
        }
        .record-export-play:hover { background: #059669; }
        .record-export-close {
            background: #f1f5f9; color: #64748b;
        }
        .record-export-close:hover { background: #e2e8f0; }

        /* ============ 未登录时隐藏底部导航 ============ */
        body:not(.br-authenticated) .bottom-nav {
            display: none !important;
        }

        /* ============ 分类内容样式 ============ */
        .category-content {
            padding: 16px;
        }
        .category-row {
            margin-bottom: 20px;
        }
        .category-row-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            padding-left: 4px;
        }
        .category-row-icon {
            font-size: 18px;
        }
        .category-row-title {
            font-size: 12px;
            font-weight: 600;
            color: var(--gray-600);
        }
        .category-row-count {
            font-size: 12px;
            color: var(--gray-500);
            margin-left: auto;
        }
        .category-row-more {
            font-size: 13px;
            color: var(--primary);
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 6px;
            transition: background 0.2s;
        }
        .category-empty {
            padding: 40px 16px;
            text-align: center;
            color: var(--gray-500);
            font-size: 14px;
        }

        /* ============ 发现频道样式 ============ */
        .discovery-container {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .discovery-group {
            border-radius: 10px;
            overflow: hidden;
            background: var(--card-bg);
        }
        .discovery-group-header {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 14px;
            cursor: pointer;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
        }
        .discovery-group-header:active {
            opacity: 0.7;
        }
        .discovery-group-toggle {
            font-size: 12px;
            color: var(--gray-500);
            width: 16px;
            text-align: center;
            flex-shrink: 0;
        }
        .discovery-group-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-700);
        }
        .discovery-group-count {
            font-size: 12px;
            color: var(--gray-500);
            margin-left: auto;
        }
        .discovery-group-body {
            padding: 0 10px 12px;
        }
        .discovery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
            gap: 10px;
            justify-content: center;
        }
        .discovery-more-btn {
            display: block;
            width: 100%;
            margin-top: 10px;
            padding: 8px;
            border: 1px solid var(--gray-300);
            border-radius: 8px;
            background: transparent;
            color: var(--gray-600);
            font-size: 13px;
            cursor: pointer;
            text-align: center;
        }
        .discovery-more-btn:hover {
            background: var(--gray-100);
        }
        .discovery-card-lang {
            font-size: 10px;
            color: var(--gray-500);
            padding: 1px 5px;
            border: 1px solid var(--gray-300);
            border-radius: 4px;
            line-height: 1.4;
        }
        @media (prefers-color-scheme: dark) {
            .discovery-group-header:active { opacity: 0.8; }
            .discovery-more-btn { border-color: var(--gray-400); }
            .discovery-more-btn:hover { background: rgba(255,255,255,0.05); }
            .discovery-card-lang { border-color: var(--gray-400); color: var(--gray-400); }
        }

        /* ============ 场景歌单（智能推荐） ============ */
        .playlist-hero-section {
            margin-bottom: 12px;
        }
        .playlist-hero-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 14px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 12px 12px 0 0;
            color: #fff;
        }
        .playlist-hero-icon {
            font-size: 24px;
        }
        .playlist-hero-info {
            flex: 1;
        }
        .playlist-hero-title {
            margin: 0;
            font-size: 16px;
            font-weight: 600;
        }
        .playlist-hero-desc {
            margin: 2px 0 0;
            font-size: 12px;
            opacity: 0.85;
        }
        .playlist-hero-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
            gap: 6px;
            padding: 10px 14px;
            background: var(--card-bg);
            border-radius: 0 0 12px 12px;
        }
        .playlist-hero-more-btn {
            display: block;
            width: 100%;
            margin-top: 8px;
            padding: 8px;
            border: 1px solid var(--gray-300);
            border-radius: 8px;
            background: transparent;
            color: var(--text-primary);
            font-size: 13px;
            cursor: pointer;
        }
        .playlist-hero-more-btn:active {
            background: var(--bg-hover);
        }
        /* 页面底部：服务器连通状态行 */
        .page-footer-status {
            text-align: center;
            font-size: 10px;
            color: #aaa;
            padding: 0 0 6px;
            opacity: 0.35;
            letter-spacing: 1px;
            line-height: 1;
        }
        .cstatus-dot {
            color: #4caf50;
            margin-right: 2px;
            font-size: 7px;
            vertical-align: middle;
        }
        .playlist-card {
            border: 1px solid transparent;
        }
        .all-playlists-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            z-index: 9999;
        }
        @media (prefers-color-scheme: dark) {
            .playlist-hero-header {
                background: linear-gradient(135deg, #5a6bc4 0%, #6b41a0 100%);
            }
            .playlist-hero-grid {
                background: var(--card-bg);
            }
            .playlist-hero-more-btn {
                border-color: var(--gray-600);
                color: var(--text-secondary);
            }
        }
        .category-row-more:hover {
            background: rgba(75, 127, 179, 0.1);
        }
        .category-row-scroll {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
            padding-bottom: 4px;
        }
        .category-row-scroll::-webkit-scrollbar {
            display: none;
        }
        .category-card {
            flex-shrink: 0;
            width: 100px;
            padding: 12px 8px;
            background: var(--gray-100);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
            border: none;
            outline: none;
        }
        .category-card:active {
            transform: scale(0.95);
            background: var(--gray-200);
        }
        .category-card-icon {
            width: 48px;
            height: 48px;
            border-radius: 10px;
            object-fit: cover;
            background: var(--gray-200);
            margin-bottom: 8px;
        }
        .category-card-name {
            font-size: 12px;
            font-weight: 600;
            color: var(--gray-600);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 4px;
        }
        .category-card-meta {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            font-size: 10px;
            color: var(--gray-600);
        }
        .category-card-flag {
            font-size: 12px;
        }
        .category-card-delay {
            font-size: 10px;
        }
        .category-card-delay.delay-good { color: #22c55e; }
        .category-card-delay.delay-warn { color: #f59e0b; }
        .category-card-delay.delay-bad { color: #ef4444; }
        .category-card-delay.delay-unknown { color: var(--gray-500); }
        .category-all-item .delay-unknown { color: var(--gray-500); }
        .station-card .delay-good  { color: #22c55e; }
        .station-card .delay-warn  { color: #f59e0b; }
        .station-card .delay-bad   { color: #ef4444; }
        .station-card .delay-unknown { color: var(--gray-500); }
        .search-result-item .delay-unknown { color: var(--gray-500); }

        /* 网格布局 */
        .category-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
            gap: 10px;
            justify-content: center;
        }
        .station-card {
            flex-shrink: 0;
            min-width: 0;
            width: 100%;
            padding: 10px 6px;
            background: var(--gray-100);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
            border: none;
            outline: none;
        }
        .station-card:active {
            transform: scale(0.95);
            background: var(--gray-200);
        }
        .station-card-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            object-fit: cover;
            background: var(--gray-200);
            margin-bottom: 4px;
        }
        /* 时区 4 段条 */
        .tz-bar {
            display: flex;
            gap: 2px;
            width: 100%;
            max-width: 48px;
            margin: 0 auto 3px;
            padding: 0 1px;
        }
        .tz-seg {
            flex: 1;
            height: 2px;
            border-radius: 1px;
            transition: background 0.3s;
        }
        .station-card-name {
            font-size: 11px;
            font-weight: 600;
            color: var(--gray-600);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 3px;
        }
        .station-card-meta {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 3px;
            font-size: 9px;
            color: var(--gray-600);
        }

        /* 空状态 */
        .category-empty {
            text-align: center;
            padding: 40px 20px;
            color: var(--gray-500);
            font-size: 14px;
        }

        /* ===== 推荐页区块样式 ===== */
        .recommend-section {
            margin-bottom: 24px;
        }
        .recommend-section:last-child {
            margin-bottom: 0;
        }
        .recommend-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            padding-left: 4px;
        }
        .recommend-icon {
            font-size: 16px;
        }
        .recommend-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--gray-600);
        }
        .recommend-section.collapsible .recommend-header {
            cursor: pointer;
            user-select: none;
        }
        .recommend-section.collapsible .recommend-header::before {
            content: '▼';
            font-size: 10px;
            color: var(--gray-500);
            margin-right: 4px;
            transition: transform 0.2s;
        }
        .recommend-section.collapsible.collapsed .recommend-header::before {
            content: '▶';
        }
        .recommend-section.collapsible.collapsed .category-grid {
            display: none;
        }
        .recommend-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
            gap: 10px;
            justify-content: center;
        }
        .recommend-card {
            width: 100%;
            padding: 10px 6px;
            background: var(--gray-100);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
            border: none;
            outline: none;
        }
        .recommend-card:active {
            transform: scale(0.95);
            background: var(--gray-200);
        }
        .recommend-card-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            object-fit: cover;
            background: var(--gray-200);
            margin-bottom: 6px;
        }
        .recommend-card-name {
            font-size: 11px;
            font-weight: 600;
            color: var(--gray-600);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 3px;
        }
        .recommend-card-meta {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 3px;
            font-size: 9px;
            color: var(--gray-600);
        }
        .recommend-card-flag {
            font-size: 11px;
        }
        .recommend-card-delay {
            font-size: 9px;
        }
        .recommend-card-delay.delay-good { color: #22c55e; }
        .recommend-card-delay.delay-warn { color: #f59e0b; }
        .recommend-card-dot {
            font-size: 12px;
            line-height: 1;
        }
        .recommend-card-dot.delay-good { color: #22c55e; }
        .recommend-card-dot.delay-warn { color: #f59e0b; }
        .recommend-card-dot.delay-bad { color: #ef4444; }
        .recommend-card-dot.delay-unknown { color: var(--gray-500); }

        .station-card-dot, .category-card-dot, .search-result-dot {
            font-size: 12px;
            line-height: 1;
        }
        .station-card-dot.delay-good,
        .category-card-dot.delay-good,
        .search-result-dot.delay-good { color: #22c55e; }
        .station-card-dot.delay-warn,
        .category-card-dot.delay-warn,
        .search-result-dot.delay-warn { color: #f59e0b; }
        .station-card-dot.delay-bad,
        .category-card-dot.delay-bad,
        .search-result-dot.delay-bad { color: #ef4444; }
        .station-card-dot.delay-unknown,
        .category-card-dot.delay-unknown,
        .search-result-dot.delay-unknown { color: var(--gray-500); }

        .search-result-meta .delay-good  { color: #22c55e; }
        .search-result-meta .delay-warn  { color: #f59e0b; }
        .search-result-meta .delay-bad   { color: #ef4444; }
        .search-result-meta .delay-unknown { color: var(--gray-500); }
        .search-result-dot {
            font-size: 10px;
            line-height: 1;
        }
        .recommend-card-delay.delay-bad { color: #ef4444; }
        .recommend-card-delay.delay-unknown { color: var(--gray-500); }

        .recommend-loading,
        .recommend-empty {
            grid-column: 1 / -1;
            text-align: center;
            padding: 20px;
            color: var(--gray-500);
            font-size: 12px;
        }

        /* ===== 查看全部弹窗 ===== */
        .category-all-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9900;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            animation: fadeIn 0.2s ease;
        }
        .category-all-panel {
            background: #fff;
            width: 100%;
            max-width: 800px;
            max-height: 85vh;
            border-radius: 20px 20px 0 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            animation: slideUp 0.3s ease;
        }
        .category-all-header {
            display: flex;
            align-items: center;
            padding: 16px 20px;
            border-bottom: 1px solid var(--gray-200);
            position: sticky;
            top: 0;
            background: #fff;
            z-index: 10;
        }
        .category-all-header h3 {
            flex: 1;
            margin: 0;
            font-size: 18px;
            font-weight: 600;
        }
        .category-all-count {
            font-size: 13px;
            color: var(--gray-500);
            margin-right: 12px;
        }
        .category-all-close {
            width: 36px;
            height: 36px;
            border: none;
            background: var(--gray-100);
            border-radius: 50%;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            transition: background 0.2s;
        }
        .category-all-close:hover {
            background: var(--gray-200);
        }
        .category-all-list {
            flex: 1;
            overflow-y: auto;
            padding: 12px 16px;
        }
        .category-all-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            border-radius: 12px;
            cursor: pointer;
            transition: background 0.2s;
        }
        .category-all-item:hover {
            background: var(--gray-100);
        }
        .category-all-item:active {
            background: var(--gray-200);
        }
        .category-all-icon {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
            background: var(--gray-200);
            flex-shrink: 0;
        }
        .category-all-info {
            flex: 1;
            min-width: 0;
        }
        .category-all-name {
            font-size: 15px;
            font-weight: 500;
            color: var(--gray-600);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .category-all-meta {
            font-size: 13px;
            color: var(--gray-500);
            margin-top: 4px;
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        @keyframes slideUp {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }

        /* 暗色模式适配 */
        @media (prefers-color-scheme: dark) {
            .category-card {
                background: var(--gray-200);
            }
            .station-card {
                background: var(--gray-200);
            }
            .category-all-panel {
                background: #1c1c1e;
            }
            .category-all-header {
                background: #1c1c1e;
                border-bottom-color: var(--gray-300);
            }
            .category-all-header h3 {
                color: #fff;
            }
            .category-all-close {
                background: var(--gray-300);
                color: #fff;
            }
            .category-all-close:hover {
                background: var(--gray-400);
            }
            .category-all-item:hover {
                background: var(--gray-300);
            }
            .category-all-item:active {
                background: var(--gray-400);
            }
            .category-all-name {
                color: #fff;
            }
            .category-all-meta {
                color: var(--gray-500);
            }
            .category-all-overlay {
                background: rgba(0, 0, 0, 0.7);
            }
            .category-row-more {
                color: var(--primary-light);
            }
            .category-row-more:hover {
                background: rgba(75, 127, 179, 0.2);
            }
            /* 录制面板暗色模式 */
            .record-picker {
                background: #2c2c2e;
            }
            .record-picker h3 {
                color: #fff;
            }
            .record-station-name {
                color: #a1a1aa;
            }
            .record-duration-item {
                border-color: #3a3a3c; background: #1c1c1e; color: #e4e4e7;
            }
            .record-duration-item.selected {
                border-color: #3b82f6; background: rgba(59,130,246,0.15); color: #60a5fa;
            }
            .record-start-btn {
                background: #ef4444; color: #fff;
            }
            .record-cancel-btn {
                background: #3a3a3c; color: #a1a1aa;
            }
            .record-export-dialog {
                background: #2c2c2e;
            }
            .record-export-dialog h3 {
                color: #fff;
            }
            .record-export-name {
                color: #e4e4e7;
            }
            .record-export-duration {
                color: #a1a1aa;
            }
            .record-export-close {
                background: #3a3a3c; color: #a1a1aa;
            }
        }

        /* ============ 用户手动暗色/亮色模式覆盖 ============ */
        /* br-dark-mode 类强制暗色，br-light-mode 类强制亮色 */
        html.br-dark-mode {
            --dark: #171717;
            --dark-light: #1a1a1a;
            --gray-100: #1f1f1f;
            --gray-200: #272727;
            --gray-300: #333333;
            --gray-400: #404040;
            --gray-500: #737373;
            --gray-600: #a3a3a3;
            --gray-700: #d4d4d4;
            --gray-800: #e5e5e5;
            --gray-900: #f5f5f5;
            --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
            --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
        }
        html.br-dark-mode body {
            background: linear-gradient(135deg, #171717 0%, #1a1a1a 100%);
        }
        html.br-dark-mode .app-container {
            background: var(--gray-100);
        }
        html.br-dark-mode .station-item {
            background: var(--gray-200);
            border-color: var(--gray-300);
        }
        html.br-dark-mode .station-name {
            color: var(--gray-800);
        }
        html.br-dark-mode .spp {
            background: #2a2a2c;
            color: #f2f2f2;
        }
        html.br-dark-mode .spp-hero {
            background: #2a2a2c;
        }
        html.br-dark-mode .spp-rec-item {
            background: #2a2a2c;
            color: #eee;
        }
        html.br-dark-mode .mine-card {
            background: var(--gray-200);
            border-color: var(--gray-300);
        }
        html.br-dark-mode .mine-lang-btn {
            background: var(--gray-200);
            border-color: var(--gray-400);
        }
        html.br-dark-mode .mine-lang-btn.active {
            color: var(--primary-light);
            border-color: var(--primary-light);
            background: rgba(75,127,179,0.15);
        }
        html.br-dark-mode .mine-theme-btn {
            background: var(--gray-200);
            border-color: var(--gray-400);
            color: var(--gray-600);
        }
        html.br-dark-mode .bottom-nav {
            background: rgba(26,26,46,0.95);
            border-top-color: rgba(255,255,255,0.08);
        }
        html.br-dark-mode .nav-label {
            color: var(--gray-500);
        }
        html.br-dark-mode .top-mini-wrapper {
            background: #1a1a2e;
        }
        html.br-dark-mode .spp-mini-text {
            color: #999;
        }

        html.br-light-mode {
            --dark: #ffffff;
            --dark-light: #f8f9fa;
            --gray-100: #ffffff;
            --gray-200: #f0f0f0;
            --gray-300: #e0e0e0;
            --gray-400: #cccccc;
            --gray-500: #999999;
            --gray-600: #666666;
            --gray-700: #333333;
            --gray-800: #1a1a1a;
            --gray-900: #000000;
        }
        html.br-light-mode body {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        }
        html.br-light-mode .app-container {
            background: var(--gray-100);
        }
        html.br-light-mode .station-item {
            background: var(--gray-100);
            border-color: var(--gray-300);
        }
        html.br-light-mode .station-name {
            color: var(--gray-800);
        }
        html.br-light-mode .spp {
            background: #ffffff;
            color: #1a1a1a;
        }
        html.br-light-mode .spp-hero {
            background: #ffffff;
        }
        html.br-light-mode .spp-rec-item {
            background: #f4f5f7;
            color: #222;
        }
        html.br-light-mode .mine-card {
            background: var(--gray-100);
            border-color: var(--gray-300);
        }
        html.br-light-mode .mine-lang-btn {
            background: var(--gray-100);
            border-color: var(--gray-300);
        }
        html.br-light-mode .mine-theme-btn {
            background: var(--gray-100);
            border-color: var(--gray-300);
            color: var(--gray-700);
        }
        html.br-light-mode .bottom-nav {
            background: #fff;
            border-top-color: rgba(0,0,0,0.08);
        }
        html.br-light-mode .top-mini-wrapper {
            background: var(--gray-50);
        }
        html.br-light-mode .spp-mini-text {
            color: var(--gray-700);
        }

        /* ============ 录音统一工具栏 ============ */
        .recording-toolbar {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: var(--card-bg);
            border-radius: 10px;
            margin-bottom: 10px;
            flex-wrap: wrap;
            border: 1px solid var(--gray-200);
        }
        .recording-toolbar-inner {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            width: 100%;
        }
        .recording-toolbar-group {
            display: flex;
            align-items: center;
            gap: 4px;
            background: var(--gray-100);
            border-radius: 8px;
            padding: 2px 6px;
        }
        .recording-toolbar-speed-btn {
            background: transparent;
            border: none;
            width: 28px;
            height: 28px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 700;
            color: var(--gray-600);
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            transition: background 0.15s;
        }
        .recording-toolbar-speed-btn:hover {
            background: var(--gray-200);
        }
        .recording-toolbar-speed-btn:active {
            background: var(--gray-300);
        }
        .recording-toolbar-speed-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--gray-700);
            min-width: 38px;
            text-align: center;
            font-variant-numeric: tabular-nums;
        }
        .recording-toolbar-sep {
            width: 1px;
            height: 20px;
            background: var(--gray-300);
            flex-shrink: 0;
        }
        .recording-toolbar-btn {
            background: var(--gray-100);
            border: 1px solid var(--gray-300);
            border-radius: 8px;
            padding: 4px 12px;
            cursor: pointer;
            font-size: 13px;
            color: var(--gray-600);
            transition: all 0.15s;
            display: flex;
            align-items: center;
            gap: 4px;
            white-space: nowrap;
            line-height: 1.4;
        }
        .recording-toolbar-btn:hover {
            background: var(--gray-200);
            color: var(--gray-700);
        }
        .recording-toolbar-btn:active {
            transform: scale(0.95);
        }
        .recording-toolbar-btn--active {
            background: rgba(75,127,179,0.12);
            border-color: var(--primary);
            color: var(--primary);
        }
        .recording-toolbar-btn--active:hover {
            background: rgba(75,127,179,0.2);
        }
        .recording-toolbar-loop-btn {
            font-size: 15px;
            padding: 4px 10px;
        }

        /* ============ 录音内联播放控件（列表项内） ============ */
        .recording-inline {
            padding: 8px 12px 6px;
            border-top: 1px solid var(--gray-300);
            margin-top: 6px;
        }
        .recording-inline-progress {
            height: 4px;
            background: var(--gray-300);
            border-radius: 2px;
            position: relative;
            cursor: pointer;
            margin-bottom: 6px;
        }
        .recording-inline-progress-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #4CAF50, #2196F3);
            border-radius: 2px;
            transition: width 0.15s linear;
        }
        .recording-inline-info {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .recording-inline-time {
            font-size: 11px;
            color: var(--gray-500);
            font-variant-numeric: tabular-nums;
            min-width: 80px;
        }
        .recording-inline-actions {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .recording-inline-btn {
            background: transparent;
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            color: var(--gray-600);
            transition: background 0.15s;
        }
        .recording-inline-btn:hover {
            background: var(--gray-200);
        }
        .recording-inline-btn:active {
            background: var(--gray-300);
        }
        .recording-inline-btn--play {
            width: 36px;
            height: 36px;
            font-size: 18px;
            color: var(--gray-700);
        }

        /* ============ 批量筛选下拉框 ============ */
        .recording-batch-filter {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            margin-bottom: 10px;
            background: var(--gray-100);
            border-radius: 8px;
            flex-wrap: wrap;
        }
        .recording-filter-select {
            background: var(--card-bg);
            border: 1px solid var(--gray-300);
            border-radius: 8px;
            padding: 6px 10px;
            font-size: 13px;
            color: var(--gray-700);
            cursor: pointer;
            min-width: 120px;
            max-width: 200px;
            appearance: auto;
            -webkit-appearance: auto;
        }
        .recording-filter-select:focus {
            outline: none;
            border-color: var(--primary);
        }
        .recording-filter-clear {
            background: transparent;
            border: none;
            font-size: 12px;
            color: var(--gray-500);
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 6px;
            transition: all 0.15s;
            white-space: nowrap;
        }
        .recording-filter-clear:hover {
            color: var(--gray-700);
            background: var(--gray-200);
        }

        /* ============ 录音工具栏/内联暗色模式适配 ============ */
        html.br-dark-mode .recording-toolbar {
            background: var(--gray-200);
            border-color: var(--gray-300);
        }
        html.br-dark-mode .recording-toolbar-group {
            background: var(--gray-100);
        }
        html.br-dark-mode .recording-toolbar-speed-btn:hover {
            background: var(--gray-300);
        }
        html.br-dark-mode .recording-toolbar-speed-btn:active {
            background: var(--gray-400);
        }
        html.br-dark-mode .recording-toolbar-btn {
            background: var(--gray-100);
            border-color: var(--gray-400);
            color: var(--gray-600);
        }
        html.br-dark-mode .recording-toolbar-btn:hover {
            background: var(--gray-300);
            color: var(--gray-700);
        }
        html.br-dark-mode .recording-toolbar-btn--active {
            background: rgba(75,127,179,0.2);
            border-color: var(--primary-light);
            color: var(--primary-light);
        }
        html.br-dark-mode .recording-inline {
            border-top-color: var(--gray-400);
        }
        html.br-dark-mode .recording-inline-progress {
            background: var(--gray-400);
        }
        html.br-dark-mode .recording-inline-btn:hover {
            background: var(--gray-300);
        }
        html.br-dark-mode .recording-inline-btn:active {
            background: var(--gray-400);
        }
        html.br-dark-mode .recording-toolbar-sep {
            background: var(--gray-400);
        }
        html.br-dark-mode .recording-batch-filter {
            background: var(--gray-200);
        }
        html.br-dark-mode .recording-filter-select {
            background: var(--gray-200);
            border-color: var(--gray-400);
            color: var(--gray-700);
        }
        html.br-dark-mode .recording-filter-select:focus {
            border-color: var(--primary-light);
        }
        html.br-dark-mode .recording-filter-clear:hover {
            background: var(--gray-300);
        }
