/* ========== 现代轻拟物（微立体）主题变量 ========== */
        :root {
            --main-color: #6f7cff;
            --main-color-2: #8f97ff;
            --accent-color: #ff7b7b;

            --bg-start: #12151d;
            --bg-mid: #181c27;
            --bg-end: #0f1218;

            --surface: rgba(255, 255, 255, 0.08);
            --surface-strong: rgba(255, 255, 255, 0.12);
            --surface-soft: rgba(255, 255, 255, 0.06);
            --surface-raise: rgba(255, 255, 255, 0.14);
            --surface-inset: rgba(0, 0, 0, 0.22);

            --text1: #f7f9ff;
            --text2: rgba(247, 249, 255, 0.76);
            --text3: rgba(247, 249, 255, 0.52);
            --line: rgba(255, 255, 255, 0.10);
            --background: rgba(255, 255, 255, 0.06);
            --card-bg: rgba(255, 255, 255, 0.08);
            --shadow: rgba(0, 0, 0, 0.35);
            --success: #4ade80;
            --error: #ff6b6b;
            --white: #11131a;

            --radius-xl: 28px;
            --radius-lg: 22px;
            --radius-md: 16px;
            --radius-sm: 12px;

            --shadow-1: 0 18px 45px rgba(0, 0, 0, 0.28);
            --shadow-2: 0 8px 18px rgba(0, 0, 0, 0.22);
            --inset-1: inset 1px 1px 0 rgba(255, 255, 255, 0.08), inset -1px -1px 0 rgba(0, 0, 0, 0.18);
            --inset-2: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
        }

        body.light-mode {
            --main-color: #6675f7;
            --main-color-2: #8f9cff;
            --accent-color: #ff6b6b;

            --bg-start: #f5f8ff;
            --bg-mid: #eef2ff;
            --bg-end: #ffffff;

            --surface: rgba(255, 255, 255, 0.72);
            --surface-strong: rgba(255, 255, 255, 0.88);
            --surface-soft: rgba(255, 255, 255, 0.56);
            --surface-raise: rgba(255, 255, 255, 0.98);
            --surface-inset: rgba(152, 164, 192, 0.18);

            --text1: #1f2431;
            --text2: #51607a;
            --text3: #8c98ad;
            --line: rgba(86, 101, 132, 0.16);
            --background: rgba(255, 255, 255, 0.78);
            --card-bg: rgba(255, 255, 255, 0.88);
            --shadow: rgba(79, 96, 130, 0.16);
            --white: #ffffff;

            --shadow-1: 0 18px 36px rgba(108, 126, 166, 0.18);
            --shadow-2: 0 8px 18px rgba(108, 126, 166, 0.12);
            --inset-1: inset 1px 1px 0 rgba(255, 255, 255, 0.8), inset -1px -1px 0 rgba(148, 163, 184, 0.18);
            --inset-2: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(148, 163, 184, 0.16);
        }

        /* ========== 基础重置 ========== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Noto Sans SC', 'Montserrat', sans-serif;
        }

        html,
        body {
            height: 100%;
        }

        body {
            color: var(--text1);
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            background:
                radial-gradient(circle at 12% 18%, rgba(111, 124, 255, 0.22), transparent 28%),
                radial-gradient(circle at 88% 84%, rgba(255, 123, 123, 0.13), transparent 24%),
                linear-gradient(145deg, var(--bg-start), var(--bg-mid) 52%, var(--bg-end));
            transition: background 0.35s ease, color 0.35s ease;
        }

        body.light-mode {
            background:
                radial-gradient(circle at 12% 18%, rgba(102, 117, 247, 0.14), transparent 28%),
                radial-gradient(circle at 88% 84%, rgba(255, 170, 120, 0.12), transparent 24%),
                linear-gradient(145deg, var(--bg-end), var(--bg-mid) 52%, var(--bg-start));
        }

        .icon {
            display: inline-block;
            width: 1.2em;
            height: 1.2em;
            fill: currentColor;
            flex-shrink: 0;
        }

        .icon1 {
            width: 1.2em;
            height: 1.2em;
            fill: currentColor;
            transform: rotate(180deg);
            display: none;
            opacity: 0.72;
            transition: transform 0.25s ease, opacity 0.25s ease;
        }

        /* ========== 画布容器 ========== */
        .container {
            width: min(1100px, calc(100vw - 24px));
            max-height: calc(100vh - 24px);
            border-radius: var(--radius-xl);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            position: relative;
            z-index: 10;
            background: linear-gradient(180deg, var(--surface-strong), var(--surface));
            border: 1px solid var(--line);
            box-shadow: var(--shadow-1);
            backdrop-filter: blur(22px) saturate(135%);
            -webkit-backdrop-filter: blur(22px) saturate(135%);
        }

        body.light-mode .container {
            box-shadow:
                0 20px 50px rgba(88, 102, 136, 0.18),
                inset 1px 1px 0 rgba(255, 255, 255, 0.85);
        }

        /* ========== 头部 ========== */
        header {
            color: var(--text1);
            padding: 20px 18px 38px;
            text-align: center;
            overflow: hidden;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            position: relative;
            z-index: -1;
            background-image: url(bg-1.webp);
        }

        body.light-mode header {
            background-image: url('bg-2.webp');
        }

        header h1 {
            font-size: 32px;
            font-weight: 700;
            line-height: 1.1;
            margin: 0 auto 10px;
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            width: fit-content;
            color: var(--text1);
            letter-spacing: 0.02em;
        }

        body.light-mode header h1 {
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.92);
        }

        header p {
            font-size: 15px;
            color: var(--text2);
            position: relative;
            z-index: 2;
            max-width: 600px;
            margin: 0 auto;
        }

        /* ========== 主体布局 ========== */
        .content1 {
            display: flex;
            min-height: 0;
            position: relative;
            flex-direction: row-reverse;
            overflow: hidden;
            background:
                linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05)),
                radial-gradient(circle at 20% 0%, rgba(111, 124, 255, 0.14), transparent 36%),
                radial-gradient(circle at 85% 100%, rgba(255, 123, 123, 0.09), transparent 32%);
            border-radius: 20px 20px 0 0;
            border-top: 1px solid var(--card-bg);
            top: -20px;
        }

        .player-section {
            flex: 2;
            min-width: 320px;
            display: flex;
            flex-direction: column;
            padding: 24px;
            position: relative;
            overflow: hidden;
            z-index: 0;
            background: linear-gradient(135deg, rgb(238 239 255), rgba(255, 255, 255, 0.05)), radial-gradient(circle at 20% 0%, rgba(111, 124, 255, 0.14), transparent 36%), radial-gradient(circle at 85% 100%, rgba(255, 123, 123, 0.09), #ffffff 32%);
        }

        .player-section::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.12), transparent 24%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.16)),
                var(--player-bg-image);
            background-size: cover;
            background-position: center;
            filter: blur(30px) saturate(120%) brightness(0.48);
            transform: scale(1.18);
            z-index: -1;
            transition: filter 0.35s ease, background-image 0.35s ease;
        }

        body.light-mode .player-section::before {
            filter: blur(28px) saturate(110%) brightness(1.08) opacity(0.28);
            background: #fff;
        }

        .radio-list {
            flex: 1;
            min-width: 320px;
            display: flex;
            flex-direction: column;
            max-height: 600px;
            background: linear-gradient(180deg, var(--surface-strong), var(--surface-soft));
            transition: background 0.35s ease, border 0.35s ease, transform 0.35s ease;
        }

        .radio-list-scroll-area {
            overflow-y: auto;
            overflow-x: hidden;
            flex: 1;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }

        .radio-list-scroll-area::-webkit-scrollbar {
            width: 6px;
        }

        .radio-list-scroll-area::-webkit-scrollbar-track {
            background: transparent;
            border-radius: 999px;
        }

        .radio-list-scroll-area::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.22);
            border-radius: 999px;
        }

        body.light-mode .radio-list-scroll-area::-webkit-scrollbar-thumb {
            background: rgba(171, 178, 231, 0.24);
        }

        .radio-list h2 {
            padding: 16px 20px;
            color: var(--text1);
            font-size: 19px;
            display: flex;
            align-items: center;
            gap: 10px;
            position: sticky;
            top: 0;
            z-index: 5;
            font-weight: 700;
            margin: 0;
            justify-content: space-between;
        }

        /* ========== 搜索与分类 ========== */
        body.light-mode .search-container {
            background: #ffffff;
        }
        .search-container {
            background: linear-gradient(45deg, #596087, #4e5366);
        }
        .search-box {
            display: flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(180deg, var(--surface-raise), var(--surface));
            border-radius: 16px;
            padding: 10px 16px;
            margin: 0 18px;
            background: rgb(180 195 232 / 18%);
            transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
        }

        .search-box:focus-within {
            border-color: rgba(111, 124, 255, 0.55);
            box-shadow:
                0 10px 24px rgba(0, 0, 0, 0.16),
                inset 1px 1px 0 rgba(255, 255, 255, 0.1),
                0 0 0 3px rgba(111, 124, 255, 0.14);
            transform: translateY(-1px);
        }

        .search-box svg {
            color: var(--text3);
        }

        .search-box input {
            flex: 1;
            border: none;
            outline: none;
            background: transparent;
            color: var(--text1);
            font-size: 14px;
        }

        .search-box input::placeholder {
            color: var(--text3);
        }

        .search-box input:-webkit-autofill,
        .search-box input:-webkit-autofill:hover,
        .search-box input:-webkit-autofill:focus,
        .search-box input:-webkit-autofill:active {
            transition: background-color 5000s ease-in-out 0s;
            -webkit-text-fill-color: var(--text1) !important;
            box-shadow: 0 0 0 1000px transparent inset !important;
        }

        .category-wrapper {
            position: relative;
        }

        .category-filter {
            display: block; 
            padding: 12px 0 6px 16px; 
            max-height: 54px;
            overflow: hidden;
            transition: max-height 0.35s ease-in-out;
        }
        .category-filter::before {
            content: "";
            float: right;     /* 靠右浮动 */
            width: 46px;      /* 留给箭头的宽度空间 */
            /* height: 40px;  <-- 删掉或注释掉原来的 40px */
            height: 20px;    /* 占位高度，确保只影响第一行 */
}
        .category-filter.expanded {
            max-height: 320px;
        }

        .btn-toggle-categories {
            position: absolute;
            top: 12px;
            right: 14px;
            z-index: 5;
            width: 32px;
            height: 32px;
            background: linear-gradient(180deg, var(--surface-raise), var(--surface));
            border: 1px solid var(--line);
            color: var(--text3);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            box-shadow: var(--shadow-2), var(--inset-1);
            transition: transform 0.2s ease, box-shadow 0.25s ease, color 0.25s ease;
        }

        .btn-toggle-categories:hover {
            color: var(--text1);
            transform: translateY(-1px);
            box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16), var(--inset-1);
        }

        .btn-toggle-categories .icon {
            transition: transform 0.3s ease;
        }

        .btn-toggle-categories.expanded .icon {
            transform: rotate(180deg);
        }

        .category-btn {
    display: inline-block; 
    margin: 0 5px 8px 0;  
    border: 1px solid transparent;
    background: linear-gradient(180deg, var(--surface-raise), var(--surface));
    color: var(--text2);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    font-weight: 600;
    box-shadow: var(--shadow-2), var(--inset-1);
}

        .category-btn:hover {
            transform: translateY(-1px);
            color: var(--text1);
            border-color: rgba(111, 124, 255, 0.18);
        }

        .category-btn.active {
            background: linear-gradient(180deg, var(--main-color-2), var(--main-color));
            color: #fff;
            box-shadow:
                0 10px 20px rgba(111, 124, 255, 0.28),
                inset 1px 1px 0 rgba(255, 255, 255, 0.18);
        }

        /* ========== 电台列表项 ========== */
        .station {
            display: flex;
            align-items: center;
            padding: 16px 20px;
            cursor: pointer;
            transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
            position: relative;
        }

        body.light-mode .station {
            border-bottom: 1px solid rgba(86, 101, 132, 0.08);
        }

        .station:hover {
            background: rgba(255, 255, 255, 0.06);
            transform: translateX(1px);
        }

        body.light-mode .station:hover {
            background: rgba(102, 117, 247, 0.06);
        }

        .station.active {
            background: linear-gradient(90deg, rgba(111, 124, 255, 0.16), rgba(255, 255, 255, 0.03));
            box-shadow: inset 3px 0 0 var(--main-color);
        }

        body.light-mode .station.active {
            background: linear-gradient(90deg, rgba(102, 117, 247, 0.12), rgba(255, 255, 255, 0.56));
        }

        .station-logo {
            width: 52px;
            height: 52px;
            border-radius: 16px;
            margin-right: 14px;
            flex-shrink: 0;
            overflow: hidden;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
            border: 1px solid var(--line);
            box-shadow: var(--shadow-2), var(--inset-1);
        }

        .station-logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            background: #fff;
        }

        .station-info {
            flex: 1;
            min-width: 0;
        }

        .station-name {
            color: var(--text1);
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 15px;
            font-weight: 700;
        }

        .station-genre {
            font-size: 13px;
            color: var(--text3);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* ========== 正在播放卡片 ========== */
        .now-playing {
            position: relative;
            background: linear-gradient(180deg, var(--surface-raise), var(--surface));
            border-radius: 26px;
            padding: 24px;
            margin-bottom: 14px;
            box-shadow: var(--shadow-1), var(--inset-1);
        }

        .now-playing h3 {
            color: var(--text2);
            font-size: 15px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 700;
            position: relative;
            z-index: 1;
        }

        .track-info {
            display: flex;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        .track-details {
            flex: 1;
            min-width: 0;
        }

        .track-title {
            font-size: 24px;
            font-weight: 800;
            color: var(--text1);
            margin-bottom: 8px;
        }

        .track-artist {
            font-size: 18px;
            color: var(--text2);
            margin-bottom: 16px;
        }

        .track-album {
            font-size: 15px;
            color: var(--text3);
        }

        .track-title,
        .track-artist,
        .track-album {
            display: -webkit-box;
    -webkit-line-clamp: 2;            /* 限制最多显示 2 行 */
    -webkit-box-orient: vertical;     /* 设置盒子子元素的排列方式为垂直 */
    overflow: hidden;                 /* 隐藏超出部分 */
    text-overflow: ellipsis;          /* 超出部分显示省略号 */
    word-break: break-all; 
        }

        .album-art.is-playing {
            animation: spin 10s linear infinite;
        }

        .rotate2 {
            width: 74.3%;
    height: 74.3%;
    border-radius: 50%;
    overflow: hidden;
        }

/* ==================== 新增：黑胶唱机整体容器 ==================== */
.vinyl-wrapper {
    position: relative;
    /* 替换：使用 clamp 让唱片在 100px 到 156px 之间随屏幕自适应缩放 */
    width: clamp(100px, 15vw, 156px);
    height: clamp(100px, 15vw, 156px);
    /* 替换：间距也随屏幕变窄自动缩小 */
    margin: 0 clamp(12px, 2.5vw, 24px) 0 clamp(15px, 3vw, 30px);
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==================== 优化：唱片样式（去掉了原本的margin，由父级控制） ==================== */
.album-art {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 2px solid #000000;
    background: conic-gradient(from 0rad at 50% 50%, #141417 0%, #656574 15%, #141417 35%, #4E4E5B 50%, #141417 70%, #656574 85%, #141417 100%);
    box-shadow: 0 18px 36px rgb(108 126 166 / 22%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 2;
}
.album-art img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            background: white;
            border-radius: 50%;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
        }
/* ==================== 优化：唱针 ==================== */
.track-cover {
    /* 替换：唱针宽度、定位和轴心全部改为百分比，实现完美等比缩放 */
    width: 22.4%;             
    position: absolute;
    z-index: 5;
    top: -1.2%;              
    left: -19.2%;             
    transform: rotate(0deg);
    transform-origin: 42.8% 12%;
    transition: transform ease 0.3s;
}
.track-cover img {
    filter: drop-shadow(5px 4px 2px rgba(0, 0, 0, 0.28));
    transition: transform ease 0.3s;
    width: 100%;
    height: auto;
}
/* ==================== 优化：音符生成区域（直接覆盖唱机） ==================== */
.music-notes-container {
    position: absolute;
    inset: 0;               /* 撑满整个唱机区域 */
    pointer-events: none;
    z-index: 1;
}

        .music-note {
            position: absolute;
            top: 25%;
            right: 25%;
            color: var(--main-color);
            opacity: 0;
            animation: float-up 2.5s ease-out forwards;
            font-size: 18px;
        }

        @keyframes float-up {
            0% {
                transform: translate(0, 0) scale(0.82);
                opacity: 0.84;
            }

            100% {
                transform: translate(40px, -80px) scale(1.18);
                opacity: 0;
            }
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .track-program {
            /* 当 JS 将其设置为 display: flex 时生效 */
            align-items: flex-start; /* 关键：对齐到顶部，使图标固定在第一行 */
            justify-content: center;
            margin: 0 auto;
            padding: 8px 16px;
            width: fit-content;
            max-width: 100%;         /* 限制最大宽度，确保在移动端能正常折行 */
            color: var(--text1);
            font-size: 15px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        /* 新增：微调节目单内的图标位置，使其与第一行文字完美对齐 */
        .track-program .icon {
            margin-top: 1px;        
            flex-shrink: 0;          /* 防止文字多的时候图标被挤压变形 */
        }

        body.light-mode .track-program {
            color: var(--main-color);
        }

        .player-controls {
            display: flex;
            flex-direction: row;
            align-items: center;
            padding: 0 20px;
            justify-content: center;
            gap: 60px;
            margin: 20px 0;
        }

        .control-buttons {
            display: flex;
            align-items: center;
            gap: 18px;
        }

        .btn {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
            background: linear-gradient(180deg, var(--surface-raise), var(--surface));
            color: var(--text2);
            border: 1px solid var(--line);
            font-size: 20px;
            box-shadow: var(--shadow-2), var(--inset-1);
        }

        .btn:hover {
            transform: translateY(-2px);
            color: var(--text1);
            border-color: rgba(111, 124, 255, 0.22);
            box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18), var(--inset-1);
        }

        .btn:active {
            transform: translateY(1px) scale(0.99);
        }

        .btn-play {
            width: 72px;
            height: 72px;
            font-size: 28px;
            color: #fff;
            background: linear-gradient(180deg, var(--main-color-2), var(--main-color));
            border-color: rgba(255, 255, 255, 0.08);
            box-shadow:
                0 18px 28px rgba(111, 124, 255, 0.32),
                inset 1px 1px 0 rgba(255, 255, 255, 0.18);
        }

        .btn-play:hover {
            color: #fff;
            background: linear-gradient(180deg, #95a0ff, #6d79ff);
            box-shadow:
                0 20px 30px rgba(111, 124, 255, 0.40),
                inset 1px 1px 0 rgba(255, 255, 255, 0.24);
        }

        .volume-control {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
            max-width: 220px;
        }

        .volume-icon {
            color: var(--text2);
            font-size: 20px;
            width: 24px;
            text-align: center;
        }

        .volume-slider {
            flex: 1;
            -webkit-appearance: none;
            height: 8px;
            border-radius: 999px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
            outline: none;
            transition: box-shadow 0.25s ease, background 0.25s ease;
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
        }

        body.light-mode .volume-slider {
            background: linear-gradient(180deg, rgba(86, 101, 132, 0.18), rgba(86, 101, 132, 0.10));
            box-shadow: inset 0 1px 2px rgba(86, 101, 132, 0.14);
        }

        .volume-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #f5f8ff;
            border: 1px solid var(--line);
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            box-shadow: var(--shadow-2), var(--inset-1), var(--shadow-1);
        }
        .volume-slider::-webkit-slider-thumb:hover {
            transform: scale(1.15);
        }

        /* ========== 状态 / 底部 / 提示 ========== */
        .radio-status {
            background: linear-gradient(180deg, var(--surface-raise), var(--surface));
            border-radius: 16px;
            padding: 10px 18px;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 14px;
            width: 100%;
            justify-content: center;
            box-shadow: var(--shadow-2), var(--inset-1);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .status-indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--error);
            flex-shrink: 0;
        }

        .status-text {
            color: var(--text2);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-weight: 500;
        }

        .status-text strong {
            color: var(--text1);
        }

        footer {
            text-align: center;
            padding: 14px;
            color: var(--text3);
            font-size: 14px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
            border-top: 1px solid var(--line);
            margin-top: -20px;
        }

        body.light-mode footer {
            background: rgb(106 116 129);
            color: #fff;
        }

        .notification {
            position: fixed;
            top: 60px;
            right: 20px;
            background: linear-gradient(180deg, rgba(32, 38, 54, 0.96), rgba(18, 22, 32, 0.96));
            color: white;
            padding: 14px 20px;
            border-radius: 16px;
            z-index: 1000;
            transition: all 0.3s ease;
            max-width: 320px;
            display: flex;
            align-items: center;
            gap: 10px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
        }

        body.light-mode .notification {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 255, 0.92));
            color: var(--text1);
            border-color: rgba(86, 101, 132, 0.10);
        }

        .notification svg {
            font-size: 18px;
            color: var(--main-color);
        }

        /* ========== 主题切换 ========== */
        .theme-switch {
            display: inline-flex;
            align-items: center;
            cursor: pointer;
            margin-left: 10px;
        }

        .theme-switch-input {
            display: none;
        }

        .theme-switch-label {
            position: relative;
            width: 52px;
            height: 28px;
            background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
            border: 1px solid var(--line);
            border-radius: 999px;
            transition: background 0.25s ease, box-shadow 0.25s ease;
            background: rgb(0 29 99 / 62%);
        }

        .theme-switch-label .icon {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            padding: 4px;
            box-sizing: content-box;
            transition: all 0.3s ease;
        }

        .theme-switch-label .icon-moon {
            left: 3px;
            opacity: 1;
            color: #ffd86a;
        }

        .theme-switch-label .icon-sun {
            right: 3px;
            opacity: 0;
            transform: translateY(-50%) scale(0.5);
            color: #ffd24a;
        }

        .theme-switch-input:checked + .theme-switch-label .icon-moon {
            opacity: 0;
            transform: translateY(-50%) scale(0.5);
        }

        .theme-switch-input:checked + .theme-switch-label .icon-sun {
            opacity: 1;
            transform: translateY(-50%) scale(1);
        }

        /* ========== 辅助 ========== */
        .track-program,
        .now-playing,
        .radio-status,
        .search-box,
        .station,
        .category-btn,
        .btn,
        .btn-toggle-categories,
        .theme-switch-label {
            -webkit-tap-highlight-color: transparent;
        }

.laba {
    /* 替换：喇叭在 40px 到 70px 之间自适应，间距也改为弹性 */
    margin: 0 clamp(15px, 3.5vw, 40px) 0 clamp(10px, 2vw, 20px);
    opacity: 0.55;
    width: clamp(40px, 6.5vw, 70px);
    height: auto;
    flex-shrink: 0; /* 关键：防止喇叭被挤压变形 */
}

        body.light-mode .laba {
            opacity: 0.95;
        }

/* ========== 历史节目单 ========== */
        .history-list {
            margin-top: 15px;
            padding: 0 20px;
            max-height: 96px; /* 控制最大高度，超出部分滚动 */
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 10px;
            transition: all 0.3s ease;
        }

        .history-list::-webkit-scrollbar {
            width: 4px;
        }
        .history-list::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.22);
            border-radius: 999px;
        }
        body.light-mode .history-list::-webkit-scrollbar-thumb {
            background: rgba(171, 178, 231, 0.24);
        }

        .history-list h4 {
            font-size: 13px;
            color: var(--text2);
            margin: 0;
            font-weight: 700;
        }

        .history-list ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6px;
        }

        .history-list li {
            font-size: 13px;
            color: var(--text1);
            position: relative;
            padding-left: 12px;
            line-height: 1.4;
            display: flex;
            align-items: flex-start;
            word-break: break-all;
        }

        .history-list li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 6px;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: var(--main-color);
        }

        .history-list li .time {
            color: var(--text3);
            font-size: 11px;
            margin-right: 8px;
            flex-shrink: 0;
            margin-top: 1px;
        }
        /* ========== 移动端 ========== */
        @media (max-width: 768px) {
            body {
                align-items: flex-start;
                overflow: hidden;
            }
            .history-list ul {
                grid-template-columns: 1fr;
            }
            .search-container {
                background: transparent;
            }
            .category-filter {
                max-height: 50px;
            }
            .laba {
                position: absolute;
                top: 30px;
                right: 0px;
                width: 40px;
                height: 40px;
                margin: 0;
                display: block;
            }
            .container {
                width: 100vw;
                max-width: none;
                max-height: none;
                min-height: 100vh;
                border-radius: 0;
                box-shadow: none;
                border: none;
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
            }

            header p {
                display: none;
            }

            header {
                padding: 14px 14px 24px;
            }

            header h1 {
                font-size: 26px;
            }

            .content1 {
                flex-direction: column;
                overflow: hidden;
                height: 100vh;
            }

            .player-section {
                flex: 1;
                padding: 28px 20px 28px;
                overflow-y: auto;
            }

            .rotate2 {
                width: 116px;
                height: 116px;
            }

            .track-details {
                margin-top: 40px;
            }

            .track-title {
                font-size: 22px;
            }

            .track-artist {
                font-size: 16px;
                margin-bottom: 6px;
            }

            .track-album {
                display: none;
            }

            .player-controls {
                flex-direction: column;
                gap: 18px;
                padding: 0 8px;
                margin: 14px 0;
            }

            .control-buttons {
                gap: 16px;
            }

            .volume-control {
                max-width: 300px;
            }

            .radio-list {
                position: fixed;
                bottom: -10px;
                left: 0;
                right: 0;
                height: 100%;
                max-height: 80vh;
                z-index: 10;
                border-left: none;
                border-radius: 24px 24px 0 0;
                box-shadow: 0 -14px 40px rgb(0 0 0 / 7%);
                transform: translateY(calc(100% - 68px));
                background: linear-gradient(180deg, var(--surface-strong), var(--surface));
            }

            .radio-list.expanded {
                transform: translateY(0);
            }

            .radio-list h2 {
                cursor: pointer;
                flex-shrink: 0;
                border-radius: 24px 24px 0 0;
            }

            .icon1 {
                display: inline-block;
            }

            .search-container {
                border-radius: 16px 16px 0 0;
                backdrop-filter: blur(16px);
                -webkit-backdrop-filter: blur(16px);
            }

            .search-box {
                margin: 0 16px;
                padding: 10px 14px;
            }

            .radio-list-scroll-area {
                backdrop-filter: blur(16px);
                -webkit-backdrop-filter: blur(16px);
            }

            .station {
                padding: 14px 16px;
            }

            .station-logo {
                width: 48px;
                height: 48px;
            }

            .now-playing h3, footer {
                display: none;
            }

            .track-info {
        flex-direction: column;
        text-align: center;
        margin-top: -32px; /* 调整间距 */
    }

    /* 移动端只需让包裹层整体居中，内部的唱针和音符会自动完美贴合！ */
    .vinyl-wrapper {
        margin: 0 auto 10px; 
        width: 160px;
        height: 160px;
    }
    
    .track-details {
        margin-top: 10px; /* 大幅缩减不必要的安全边距 */
    }

    /* 音符在移动端也无需手动改 left，直接继承居中 */
    .music-notes-container {
        inset: 0;
    }
        }

        @media (max-width: 480px) {
            header h1 {
                font-size: 22px;
                gap: 10px;
            }

            .track-title {
                font-size: 20px;
            }

            .btn {
                width: 52px;
                height: 52px;
            }

            .btn-play {
                width: 68px;
                height: 68px;
                font-size: 26px;
            }
        }
