﻿        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        :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;
            padding-top: 20px;
            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: 80px;
        }

        .header {
            padding: 12px 20px 6px 20px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
        }

        .header-content {
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            margin-bottom: 4px;
        }

        .header-left, .header-right {
            flex: 1;
            display: flex;
            align-items: center;
        }
        .header-left {
            justify-content: flex-start;
        }
        .header-right {
            justify-content: flex-end;
        }

        .header-center {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }


        .header-icon {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            cursor: pointer;
            transition: transform 0.12s ease, filter 0.3s ease;
            box-shadow:
                0 4px 8px rgba(0,0,0,0.2),
                0 8px 16px rgba(0,0,0,0.15);
            transform: perspective(300px) translateZ(0);
            animation: moonPulse 4s ease-in-out infinite;
        }

        .header-icon.playing {
            animation: iconRotate 4s linear infinite;
            filter: brightness(1.4) drop-shadow(0 0 18px rgba(255,220,100,1));
            box-shadow:
                0 0 20px rgba(255,220,80,0.5),
                0 0 40px rgba(255,200,60,0.3);
        }

        .header-icon.playing.pulse-simulated {
            animation: iconRotate 4s linear infinite, glowPulse 1.5s ease-in-out infinite;
        }

        .header-icon:active {
            transform: perspective(300px) translateZ(-4px);
            box-shadow:
                0 2px 4px rgba(0,0,0,0.3),
                0 4px 8px rgba(0,0,0,0.2);
        }

        @keyframes iconRotate {
            from { transform: perspective(300px) translateZ(0) rotate(0deg); }
            to { transform: perspective(300px) translateZ(0) rotate(360deg); }
        }

        @keyframes glowPulse {
            0%, 100% {
                box-shadow:
                    0 0 20px rgba(255,220,80,0.5),
                    0 0 40px rgba(255,200,60,0.3);
            }
            50% {
                box-shadow:
                    0 0 35px rgba(255,220,80,0.9),
                    0 0 60px rgba(255,200,60,0.7);
            }
        }

        @keyframes moonPulse {
            0%, 100% {
                transform: perspective(300px) translateZ(0) scale(1);
                filter: brightness(1.25) drop-shadow(0 0 22px rgba(100,150,220,0.7));
                box-shadow:
                    0 4px 8px rgba(0,0,0,0.2),
                    0 0 30px rgba(100,150,220,0.35),
                    0 0 50px rgba(100,150,220,0.15);
            }
            50% {
                transform: perspective(300px) translateZ(0) scale(0.88);
                filter: brightness(0.85) drop-shadow(0 0 4px rgba(100,150,220,0.2));
                box-shadow:
                    0 4px 8px rgba(0,0,0,0.2),
                    0 8px 16px rgba(0,0,0,0.15);
            }
        }

        .header-title {
            font-size: 26px;
            font-weight: bold;
            letter-spacing: 4px;
            font-family: "YouYuan", "幼圆", sans-serif;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        /* ============ 顶部搜索栏（替换收藏区域） ============ */
        .top-search-section {
            background: rgba(255,255,255,0.12);
            padding: 5px 16px;
            backdrop-filter: blur(6px);
            min-height: 38px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .top-search-section .bottom-search-box {
            flex: 1;
            margin-bottom: 0;
        }
        .top-search-section .bottom-search-box .bottom-search-input {
            height: 30px;
            font-size: 12px;
            padding: 0 30px 0 30px;
            background: rgba(255,255,255,0.20);
            border-color: rgba(255,255,255,0.15);
            color: #fff;
        }
        .top-search-section .bottom-search-box .bottom-search-input::placeholder {
            color: rgba(255,255,255,0.5);
        }
        .top-search-section .bottom-search-box .search-icon {
            font-size: 13px;
            color: rgba(255,255,255,0.6);
        }
        .top-search-section .bottom-search-box .search-clear {
            width: 18px;
            height: 18px;
            font-size: 11px;
            background: rgba(255,255,255,0.2);
            color: rgba(255,255,255,0.7);
        }
        .top-search-section .ai-search-btn {
            height: 24px;
            font-size: 11px;
            padding: 0 7px;
            background: rgba(255,255,255,0.12);
            border-color: rgba(255,255,255,0.20);
            color: rgba(255,255,255,0.85);
        }
        .top-search-section .ai-search-btn:hover {
            background: rgba(255,255,255,0.22);
            border-color: rgba(255,255,255,0.35);
        }
        /* 顶部搜索框状态颜色（覆盖白色主题） */
        .top-search-section .bottom-search-box[data-status="online"] .bottom-search-input {
            border-color: rgba(67,233,123,0.60);
            box-shadow: inset 0 0 0 0.75px rgba(67,233,123,0.20);
        }
        .top-search-section .bottom-search-box[data-status="server-offline"] .bottom-search-input {
            border-color: rgba(255,200,0,0.60);
            box-shadow: inset 0 0 0 0.75px rgba(255,200,0,0.20);
        }
        .top-search-section .bottom-search-box[data-status="no-internet"] .bottom-search-input {
            border-color: rgba(231,76,60,0.60);
            box-shadow: inset 0 0 0 0.75px rgba(231,76,60,0.20);
        }


        /* ============ 搜索和筛选 ============ */
        .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: 14px;
            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: 20px;
            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: 13px;
            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: 16px;
        }

        .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.playing .station-name {
            color: #0d3060;
        }

        /* 卡片视图（适老化改造：只保留图标+名称，字体大，对比度高） */
        .station-list.card-view {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 10px;
        }

        .station-list.card-view .station-item {
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 16px 10px 24px;
            gap: 8px;
            aspect-ratio: auto;
            min-height: 100px;
            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: 56px;
            height: 56px;
            margin-right: 0;
            border-radius: 14px;
        }

        .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: 15px;
            text-align: center;
            white-space: normal;
            line-height: 1.3;
            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 .station-dot {
            font-size: 13px;
            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 .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: 14px;
            font-weight: 500;
            color: var(--gray-800);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            flex-shrink: 1;
            min-width: 0;
        }

        .station-meta {
            font-size: 11px;
            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: 20px;
                letter-spacing: 3px;
            }

            .header-icon {
                width: 34px;
                height: 34px;
            }

            .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: #1e293b;
            border-radius: 16px;
            padding: 16px 18px 14px;
            min-width: 210px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.5);
            border: 1px solid rgba(255,255,255,0.1);
            text-align: center;
        }
        .cache-picker h3 {
            margin: 0 0 10px 0;
            font-size: 15px;
            font-weight: 600;
            color: #e2e8f0;
            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: rgba(0,0,0,0.3);
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.06);
        }
        .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, #1e293b 0%, transparent 100%);
        }
        .cache-picker .wheel-viewport .wheel-overlay-bottom {
            bottom: 0;
            background: linear-gradient(to top, #1e293b 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 rgba(255,255,255,0.04);
        }
        .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: #475569;
            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: #475569;
            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: #f1f5f9;
        }
        .cache-picker .wheel-item.center .wheel-unit {
            font-size: 13px;
            color: #94a3b8;
        }
        /* 上下箭头按钮 */
        .cache-picker .wheel-arrow {
            display: block;
            width: 36px;
            height: 22px;
            margin: 3px auto;
            padding: 0;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            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: rgba(255,255,255,0.1);
            color: #94a3b8;
        }
        .cache-picker .wheel-arrow:active {
            transform: scale(0.9);
            background: rgba(255,255,255,0.06);
        }
        /* === 按钮 === */
        .cache-picker .cache-cancel-btn {
            display: block;
            width: 100%;
            margin-top: 10px;
            padding: 12px 16px;
            background: transparent;
            border: 1px solid rgba(100,116,139,0.3);
            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: rgba(100,116,139,0.1);
            color: #94a3b8;
        }
        .cache-picker .cache-stop-btn {
            display: block;
            width: 100%;
            margin-top: 4px;
            padding: 8px;
            background: transparent;
            border: 1px solid rgba(239,68,68,0.3);
            border-radius: 8px;
            color: #ef4444;
            font-size: 13px;
            cursor: pointer;
            text-align: center;
            transition: all 0.2s;
        }
        .cache-picker .cache-stop-btn:hover {
            background: rgba(239,68,68,0.1);
            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 rgba(255,255,255,0.1);
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            color: #aaa;
            transition: all 0.2s;
            background: rgba(255,255,255,0.03);
        }
        .cache-picker .cache-delay-option:hover {
            border-color: var(--primary);
            color: #fff;
        }
        .cache-picker .cache-delay-option.selected {
            border-color: var(--primary);
            color: #fff;
            background: rgba(13, 48, 96, 0.2);
        }
        .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-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 {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 800px;
            background: rgba(248,249,250,0.88);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border-top: 1px solid rgba(0,0,0,0.08);
            box-shadow: 0 -2px 16px rgba(0,0,0,0.10);
            z-index: 999;
            padding: 6px 10px;
            padding-bottom: max(6px, env(safe-area-inset-bottom));
            display: flex;
            flex-direction: column-reverse;
            gap: 4px;
        }
        .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);
        }
        /* 下载管理 — 区域标题 & 进行中 */
        .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: flex-end;
        }
        .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;
            }

        /* ============ 帮助面板 ============ */
        .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; }
        .auth-skip-btn {
            background: none; border: none;
            color: rgba(148,163,184,0.5); font-size: 12px;
            cursor: pointer; padding: 6px 16px;
            transition: color 0.2s;
        }
        .auth-skip-btn:hover { color: rgba(148,163,184,0.9); }

        /* ===== 账户项在设置中的样式 ===== */
        .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: 11px; padding: 4px 12px; }
        }
        @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: 10px; }
        }

        /* 未登录时隐藏主页面和底部栏，只显示登录弹窗 */
        body:not(.br-authenticated) .app-container,
        body:not(.br-authenticated) .bottom-action-bar { display: none !important; }
        body.br-authenticated .app-container { display: flex; flex-direction: column; min-height: 100vh; }

        /* ============ 暗色模式 ============ */
        @media (prefers-color-scheme: dark) {
            :root {
                --gray-100: #1a1a2e;
                --gray-200: #16213e;
                --gray-300: #0f3460;
                --gray-400: #1a3a6a;
                --gray-500: #4a6fa5;
                --gray-600: #7a9bc5;
                --gray-700: #a8c5e0;
                --gray-800: #c8dce8;
                --gray-900: #e0eef5;
                --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, #0a0a1a 0%, #0d1528 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-800);
            }
            .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-600);
            }
            .station-item .station-heat {
                color: #f87171;
            }
            .station-item .meta-lang {
                color: var(--gray-600);
            }
            .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);
            }
            .top-search-section {
                background: rgba(0,0,0,0.25);
            }
            .top-search-section .bottom-search-box .bottom-search-input {
                background: rgba(255,255,255,0.08);
                color: var(--gray-800);
            }
            .top-search-section .bottom-search-box .bottom-search-input::placeholder {
                color: var(--gray-600);
            }
            .top-search-section .bottom-search-box .search-icon {
                color: var(--gray-600);
            }
            .top-search-section .ai-search-btn {
                background: rgba(75,127,179,0.20);
                border-color: rgba(75,127,179,0.35);
                color: var(--gray-700);
            }
            /* 收藏栏暗色模式 CSS 已移除 */
            .bottom-action-bar {
                background: rgba(26,26,46,0.92);
                border-top-color: rgba(255,255,255,0.08);
            }
            .bottom-search-input {
                background: var(--gray-300);
                border-color: var(--gray-400);
                color: var(--gray-800);
            }
            .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: 8%;
            background: #ffffff;
            color: #1a1a1a;
            border-radius: 20px 20px 0 0;
            box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
            z-index: 9000;
            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; 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; }
        .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 .spp-logo.spinning { animation: spp-spin 6s linear infinite; }
        @keyframes spp-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
        .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; }
        .spp-loc { font-size: 13px; color: #888; margin-top: 5px; }
        .spp-close {
            flex-shrink: 0; width: 38px; height: 38px; border: none;
            background: rgba(0,0,0,0.06); border-radius: 50%;
            font-size: 22px; line-height: 1; color: #666; cursor: pointer;
        }
        .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; }
        .spp-action {
            flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
            padding: 12px 0; border: none; border-radius: 14px;
            background: #eafaf0; color: #16a34a; cursor: pointer;
        }
        .spp-action:active { transform: scale(0.97); }
        .spp-action.recording { background: #fdecec; color: #ef4444; }
        .spp-action.is-favorite { background: #fef9e7; color: #f59e0b; }
        .spp-action-icon { font-size: 22px; }
        .spp-action-label { font-size: 12px; font-weight: 600; }
        .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 { position: relative; }
        .spp-rec-dot {
            position: absolute; top: 6px; right: 6px;
            width: 9px; height: 9px; border-radius: 50%;
            box-shadow: 0 0 0 1.5px rgba(255,255,255,0.85);
        }
        .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: #1c1c1e; 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.15); }
            .spp-action.recording { background: rgba(239,68,68,0.18); }
            .spp-action.is-favorite { background: rgba(245,158,11,0.18); }
            .spp-close { background: rgba(255,255,255,0.1); color: #ccc; }
            .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-item {
            display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
            gap: 5px; width: 100%; height: 80px; box-sizing: border-box;
            padding: 10px 4px; border: none; border-radius: 12px;
            background: #f4f5f7; color: #222;
            font-size: 12px; 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%; height: 2.6em; line-height: 1.3; overflow: hidden; position: relative; }
        .spp-rec-name { display: inline-block; white-space: nowrap; padding-right: 0; }
        .spp-rec-name.scroll { animation: spp-rec-scroll 6s linear infinite; }
        @keyframes spp-rec-scroll {
            0%   { transform: translateX(0); }
            15%  { transform: translateX(0); }
            85%  { transform: translateX(calc(-100% + var(--rec-wrap-w, 100%))); }
            100% { transform: translateX(calc(-100% + var(--rec-wrap-w, 100%))); }
        }

        /* ===== 浮动页收起后的迷你滚动字幕 ===== */
        .spp-mini {
            position: fixed;
            left: 0; right: 0; bottom: 64px;
            margin: 0 auto;
            max-width: 800px;
            z-index: 8000;
            display: flex; align-items: center; gap: 10px;
            padding: 8px 14px;
            /* 品牌蓝渐变：与白色电台列表明显区分，一眼识别为播放器条 */
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
            border-radius: 14px 14px 6px 6px;
            box-shadow: 0 -4px 20px rgba(13,48,96,0.35);
            cursor: pointer;
            transform: translateY(22px);
            opacity: 0;
            transition: transform .3s cubic-bezier(.22,.61,.36,1), opacity .3s ease;
        }
        .spp-mini.show { transform: translateY(0); opacity: 1; }
        .spp-mini.hidden { display: none; }
        .spp-mini-logo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #eee; box-shadow: 0 0 0 1.5px rgba(255,255,255,0.5); }
        .spp-mini-marquee { flex: 1; overflow: hidden; }
        .spp-mini-text {
            display: inline-block; white-space: nowrap;
            font-size: 14px; font-weight: 600; color: #fff;
            padding-left: 100%;
            animation: spp-mini-scroll 12s linear infinite;
        }
        @keyframes spp-mini-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
        .spp-mini-expand { color: rgba(255,255,255,0.85); font-size: 18px; flex-shrink: 0; line-height: 1; }
        @media (prefers-color-scheme: dark) {
            .spp-rec-item { background: #2a2a2c; color: #eee; }
            .spp-rec-item:active { background: #343436; }
            .spp-mini { background: linear-gradient(135deg, #0a2748 0%, var(--primary-dark) 60%, var(--primary) 100%); box-shadow: 0 -4px 20px rgba(0,0,0,0.6); }
            .spp-rec-dot { box-shadow: 0 0 0 1.5px rgba(0,0,0,0.35); }
            .spp-mini-text { color: #f2f2f2; }
            .spp-mini-expand { color: rgba(255,255,255,0.75); }
        }

        /* ===== 定时关闭倒计时徽标（浮动） ===== */
        .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); }
        }
