/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 30%, #0f1f4a 60%, #0a0a1a 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    overflow-x: hidden;
    gap:20px;
    position: relative;
    /* 平滑过渡 */
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 背景网格 */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 136, 255, 0.066) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 136, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}


.container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 100px 15px 15px 15px;
    z-index: 1;
}

/* 信号波纹背景 */
.signal-ripple {
    position: fixed;
    border: 1px solid rgba(0, 136, 255, 0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    /* 默认关机状态 - 不播放动画 */
    width: 0;
    height: 0;
    animation: none;
}

/* 开机状态 - 激活波纹动画 */
.power-on .signal-ripple:nth-of-type(1) {
    animation: rippleExpand 12s ease-out infinite;
    animation-delay: 0s;
}

.power-on .signal-ripple:nth-of-type(2) {
    animation: rippleExpand 12s ease-out infinite;
    animation-delay: 3s;
}

.power-on .signal-ripple:nth-of-type(3) {
    animation: rippleExpand 12s ease-out infinite;
    animation-delay: 6s;
}

.power-on .signal-ripple:nth-of-type(4) {
    animation: rippleExpand 12s ease-out infinite;
    animation-delay: 9s;
}

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 120vmax;
        height: 120vmax;
        opacity: 0;
    }
}

/* CD机主体 */
.cd-player-metro {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 850px;
}

.cd-player-body {
    display: flex;
    width: 100%;
    min-height: 550px;
    background: linear-gradient(145deg, #2a2a3a, #1a1a2a);
    border-radius: 20px;
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.3),
        5px 5px 15px rgba(0, 0, 0, 0.2),
        inset 2px 2px 5px rgba(255, 255, 255, 0.05),
        inset -2px -2px 5px rgba(0, 0, 0, 0.3);
    border: 2px solid #3a3a4a;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* 左侧转盘区域 */
.turntable-section {
    flex: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-right: 2px solid #3a3a4a;
    position: relative;
}

.turntable-base {
    width: 100%;
    padding-top: 100%; /* 保持正方形 */
    background: linear-gradient(145deg, #1a1a2a, #0a0a1a);
    border-radius: 20px;
    box-shadow:
        inset 5px 5px 15px rgba(0, 0, 0, 0.5),
        inset -2px -2px 8px rgba(255, 255, 255, 0.05);
    position: relative;
}

/* 黑胶唱片 */
.vinyl-record {
    width: calc(100% - 40px);
    aspect-ratio: 1 / 1; /* 使用 aspect-ratio 保持正方形 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        #1a1a1a 0%,
        #0a0a0a 40%,
        #1a1a1a 60%,
        #0a0a0a 100%
    );
    border-radius: 50%;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    cursor: grab;
}

.vinyl-record:active {
    cursor: grabbing;
}

.vinyl-record.dragging {
    /* 拖拽时禁用过渡效果，使响应更灵敏 */
    transition: none;
}

.vinyl-record:has(~ .drag-hint) {
    cursor: default;
}

/* 拖拽提示箭头 */
.drag-hint {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    pointer-events: none;
    z-index: 5;
}

.drag-hint.visible {
    display: flex;
}

.hint-arrow {
    font-size: 24px;
    color: #0088ff;
    text-shadow: 0 0 10px rgba(0, 136, 255, 0.6);
    opacity: 0.6;
}

.up-arrow {
    animation: arrowUp 1.5s ease-in-out infinite;
}

.down-arrow {
    animation: arrowDown 1.5s ease-in-out infinite;
}

@keyframes arrowUp {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

@keyframes arrowDown {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

.vinyl-grooves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        transparent 0px,
        transparent 2px,
        rgba(255, 255, 255, 0.02) 2px,
        rgba(255, 255, 255, 0.02) 4px
    );
}

.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25%;
    height: 25%;
    background: linear-gradient(145deg, #0088ff, #0055cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

.label-center {
    width: 20%;
    aspect-ratio: 1;
    background: #1a1a1a;
    border-radius: 50%;
    margin-bottom: 2%;
}

.label-text {
    font-family: 'Orbitron', monospace;
    font-size: clamp(8px, 2.5%, 14px);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vinyl-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(255, 255, 255, 0.05) 45%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 55%,
        transparent 60%
    );
    pointer-events: none;
}

/* 唱针 */
.tonearm {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 10;
}

.tonearm-base {
    width: 34px;
    height: 34px;
    background: linear-gradient(145deg, #3a3a4a, #2a2a2a);
    border-radius: 50%;
    position: relative;
    box-shadow:
        0 5px 10px rgba(0, 0, 0, 0.3),
        inset 1px 1px 2px rgba(255, 255, 255, 0.1);
}

.tonearm-arm {
    width: 180px;
    height: 6px;
    background: linear-gradient(90deg, #3a3a4a, #2a2a2a);
    border-radius: 3px;
    position: absolute;
    right: 17px;
    top: 14px;
    transform-origin: right center;
    transform: rotate(10deg);
    transition: transform 0.5s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.tonearm-arm.playing {
    transform: rotate(-25deg);
}

.tonearm-head {
    width: 16px;
    height: 22px;
    background: linear-gradient(145deg, #3a3a4a, #2a2a2a);
    border-radius: 3px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* 右侧控制面板 */
.control-panel {
    width: 300px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 品牌区域 */
.brand-section {
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #3a3a4a;
}

.brand-name {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 900;
    color: #0088ff;
    text-shadow: 0 0 10px rgba(0, 136, 255, 0.5);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.brand-model {
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    color: #6666aa;
    letter-spacing: 2px;
}

/* 返回按钮 - 设备上方居中 */
.back-btn {
    position: absolute;
    bottom: calc(100% + 25px);
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-btn:hover {
    border-color: rgba(255, 80, 80, 0.6);
    background: rgba(255, 80, 80, 0.1);
    transform: translateX(-50%) scale(1.1);
}

.back-btn:active {
    transform: translateX(-50%) scale(1.05);
}

.back-icon {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.back-btn:hover .back-icon {
    color: #ff5050;
}


.light-strip {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.light-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: linear-gradient(145deg, #1a1a2a, #0a0a1a);
    border-radius: 8px;
    border: 1px solid #2a2a3a;
}

.light-label {
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    font-weight: 700;
    color: #8888aa;
    letter-spacing: 1px;
}

.light-indicator {
    width: 30px;
    height: 6px;
    background: #1a1a2a;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.power-light .light-indicator.active {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88, inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.power-light .light-indicator.error {
    background: #ff3333;
    box-shadow: 0 0 10px #ff3333, inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.power-light .light-indicator.checking {
    background: #ffcc00;
    box-shadow: 0 0 10px #ffcc00, inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

/* SERVER 灯 - 显示 Emilia 服务状态 */
.server-light .light-indicator.active {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88, inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.server-light .light-indicator.error {
    background: #ff3333;
    box-shadow: 0 0 10px #ff3333, inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.server-light .light-indicator.checking {
    background: #ffcc00;
    box-shadow: 0 0 10px #ffcc00, inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

/* 音量控制条 */
.volume-bar {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 17px 8px 12px;
    background: linear-gradient(145deg, #1a1a2a, #0a0a1a);
    border-radius: 8px;
    border: 1px solid #2a2a3a;
}

.volume-slider {
    flex: 1;
    height: 6px;
    background: #1a1a2a;
    border-radius: 3px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
    cursor: pointer;
}

.volume-fill {
    height: 100%;
    width: 75%;
    background: linear-gradient(90deg,
        #0088ff 0%,
        #00aaff 50%,
        #0088ff 100%
    );
    border-radius: 3px;
    transition: width 0.1s ease;
    box-shadow: 0 0 8px rgba(0, 136, 255, 0.4);
}

.volume-knob {
    position: absolute;
    width: 14px;
    height: 14px;
    background: linear-gradient(145deg, #4a4a5a, #3a3a3a);
    border-radius: 50%;
    left: calc(75% - 7px);
    top: 50%;
    transform: translateY(-50%);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 1px 1px 2px rgba(255, 255, 255, 0.1);
    border: 1px solid #5a5a6a;
    cursor: grab;
    transition: left 0.1s ease;
}

.volume-knob:hover {
    background: linear-gradient(145deg, #5a5a6a, #4a4a4a);
    transform: translateY(-50%) scale(1.1);
}

.volume-knob:active {
    cursor: grabbing;
    background: linear-gradient(145deg, #3a3a4a, #2a2a2a);
    transform: translateY(-50%) scale(1.05);
}

/* 显示屏 */
.display-screen {
    background: linear-gradient(145deg, #0a1a2a, #051020);
    border-radius: 12px;
    padding: 15px;
    box-shadow:
        inset 3px 3px 8px rgba(0, 0, 0, 0.5),
        inset -1px -1px 3px rgba(255, 255, 255, 0.05);
    border: 1px solid #2a3a4a;
    min-height: 140px;
    position: relative;
    overflow: hidden;
}

.screen-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* 播放器视图 */
.player-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: opacity 0.3s ease;
}

.track-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label {
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    color: #2a3a4a;
    transition: color 0.6s ease, text-shadow 0.6s ease;
}

.power-on .info-label {
    color: #4466aa;
}

.info-value {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #2a3a4a;
    text-shadow: none;
    transition: color 0.6s ease, text-shadow 0.6s ease;
}

.power-on .info-value {
    color: #0088ff;
    text-shadow: 0 0 10px rgba(0, 136, 255, 0.6);
}

.time-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-display {
    font-family: 'Orbitron', monospace;
    display: flex;
    flex-direction: row;
    font-size: 26px;

}

.time-current,
.time-total {
    font-weight: 700;
    color: #2a3a4a;
    transition: color 0.6s ease;
}

.power-on .time-current,
.power-on .time-total {
    color: #0088ff;
    text-shadow: 0 0 15px rgba(0, 136, 255, 0.6);
}

.time-divider {
    margin: auto 4px;
    color: #2a2a3a;
    transition: color 0.6s ease;
}

.power-on .time-divider {
    color: #4466aa;
}

.status-text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #0088ff;
    text-shadow: 0 0 8px rgba(0, 136, 255, 0.5);
}

/* 进度条区域 - 内联样式，与status-text同一行 */
.screen-progress-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.screen-progress-inline .progress-label {
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    font-weight: 600;
    color: #4466aa;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.power-on .screen-progress-inline .progress-label {
    color: #0088ff;
    text-shadow: 0 0 6px rgba(0, 136, 255, 0.4);
}

.screen-progress-inline .progress-bar {
    flex: 1;
    height: 8px;
    min-width: 80px;
    background: linear-gradient(90deg, #1a2a3a, #0f1a2a);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
    border: 1px solid #2a3a4a;
}

.screen-progress-inline .progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
        #0088ff 0%,
        #00aaff 50%,
        #0088ff 100%
    );
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 136, 255, 0.6);
    transition: width 0.3s ease;
    position: relative;
}

.screen-progress-inline .progress-percent {
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    font-weight: 700;
    color: #4466aa;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.power-on .screen-progress-inline .progress-percent {
    color: #0088ff;
    text-shadow: 0 0 6px rgba(0, 136, 255, 0.4);
}

/* 按钮区域 */
.button-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.button-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.primary-controls {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.primary-controls .control-btn {
    flex: 1;
    padding: 12px 8px;
}

.secondary-controls {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.secondary-controls .control-btn {
    flex: 1;
}

.control-btn {
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    background: linear-gradient(145deg, #2a2a3a, #1a1a2a);
    border: 1px solid #3a3a4a;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.3),
        -2px -2px 6px rgba(255, 255, 255, 0.03),
        inset 1px 1px 2px rgba(255, 255, 255, 0.05);
    min-height: 55px;
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.primary-controls .btn-icon {
    width: 22px;
    height: 22px;
}

.btn-text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* 播放列表视图 */
.playlist-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #0a1a2a, #051020);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.playlist-view.active {
    opacity: 1;
    pointer-events: auto;
}

/* 播放列表项容器 - 自定义滚动条 */
.playlist-items {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
}

/* 自定义滚动条样式 */
.playlist-items::-webkit-scrollbar {
    width: 6px;
}

.playlist-items::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    margin: 4px;
}

.playlist-items::-webkit-scrollbar-thumb {
    background: rgba(0, 136, 255, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.playlist-items::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 136, 255, 0.5);
}

/* Firefox 滚动条样式 */
.playlist-items {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 136, 255, 0.3) rgba(0, 0, 0, 0.2);
}

/* 播放列表项 */
.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    margin-bottom: 4px;
}

.playlist-item:hover {
    background: rgba(0, 136, 255, 0.1);
    border-color: rgba(0, 136, 255, 0.3);
    transform: translateX(2px);
}

.playlist-item.active {
    background: rgba(0, 136, 255, 0.2);
    border-color: #0088ff;
    box-shadow: 0 0 15px rgba(0, 136, 255, 0.3);
}

.playlist-item-index {
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #6666aa;
    min-width: 28px;
    text-align: center;
}

.playlist-item.active .playlist-item-index {
    color: #0088ff;
    text-shadow: 0 0 8px rgba(0, 136, 255, 0.5);
}

.playlist-item-title {
    flex: 1;
    font-size: 13px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item.active .playlist-item-title {
    color: #0088ff;
    font-weight: 500;
}

/* 视图切换动画 */
.player-view.hidden {
    opacity: 0;
    pointer-events: none;
}

.control-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background: linear-gradient(145deg, #3a3a4a, #2a2a3a);
    box-shadow:
        10px 10px 20px #0a0a1a,
        -3px -3px 8px #4a4a5e,
        inset 1px 1px 2px rgba(255, 255, 255, 0.2);
}

.control-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow:
        5px 5px 10px #0a0a1a,
        -5px -5px 10px #4a4a5e,
        inset 2px 2px 4px #0a0a1a;
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 取消模式样式（上传时的提交按钮） */
.control-btn.cancel-mode {
    background: linear-gradient(145deg, #8a2a2a, #6a1a1a);
    border: 1px solid #9a3a3a;
    color: #ffcccc;
}

.control-btn.cancel-mode:hover:not(:disabled) {
    background: linear-gradient(145deg, #9a3a3a, #7a2a2a);
    border-color: #aa4a4a;
    transform: translateY(-1px);
    box-shadow:
        0 6px 12px rgba(200, 50, 50, 0.3),
        inset 1px 1px 2px rgba(255, 255, 255, 0.1);
}

.control-btn.cancel-mode:active:not(:disabled) {
    transform: translateY(0);
    box-shadow:
        2px 2px 6px rgba(200, 50, 50, 0.3),
        inset 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* 播放列表视图 */
.playlist-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #0a1a2a, #051020);
}

.playlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #2a3a4a;
}

.playlist-title {
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #0088ff;
    text-shadow: 0 0 8px rgba(0, 136, 255, 0.5);
}

.back-to-player-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-player-btn svg {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.3);
}

.back-to-player-btn:hover {
    border-color: rgba(255, 80, 80, 0.6);
    background: rgba(255, 80, 80, 0.1);
}

.back-to-player-btn:hover svg {
    color: #ff5050;
}

.playlist-items {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.playlist-item:hover {
    background: rgba(0, 136, 255, 0.1);
    border-color: rgba(0, 136, 255, 0.3);
}

.playlist-item.active {
    background: rgba(0, 136, 255, 0.2);
    border-color: #0088ff;
}

.playlist-item-index {
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #6666aa;
    min-width: 24px;
}

.playlist-item.active .playlist-item-index {
    color: #0088ff;
}

.playlist-item-title {
    flex: 1;
    font-size: 12px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item.active .playlist-item-title {
    color: #0088ff;
    font-weight: 500;
}

/* 使用说明样式 */
.manual-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2;
}

.manual-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    width: 100%;
    padding:0 15px 0 15px;
}

/* 密钥配置按钮 */
.key-config-btn {
    background: linear-gradient(145deg, #2a2a3a, #1a1a2a);
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.3),
        -2px -2px 6px rgba(255, 255, 255, 0.05),
        inset 1px 1px 2px rgba(255, 255, 255, 0.05);
}


.manual-toggle {
    flex: 1;
    min-width: 0;
    background: linear-gradient(145deg, #2a2a3a, #1a1a2a);
    border: 2px solid #444455;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.3),
        -2px -2px 6px rgba(58, 58, 78, 0.5),
        inset 1px 1px 2px rgba(255, 255, 255, 0.1);
}

.manual-toggle:hover {
    background: linear-gradient(145deg, #3a3a4a, #2a2a3a);
    transform: translateY(-1px);
    box-shadow:
        6px 6px 12px rgba(0, 0, 0, 0.4),
        -3px -3px 8px rgba(58, 58, 78, 0.6),
        inset 1px 1px 3px rgba(255, 255, 255, 0.15);
}

.manual-toggle:active {
    transform: translateY(0);
    box-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.3),
        -1px -1px 3px rgba(58, 58, 78, 0.5),
        inset 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.manual-icon {
    width: 20px;
    height: 20px;
    color: #0088ff;
    flex-shrink: 0;
}

.manual-toggle span {
    color: #ffffff;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.manual-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

.manual-content.expanded {
    max-height: 500px;
    margin-top: 15px;
}

.manual-paper {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.manual-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0088ff, #0055cc, #0088ff);
    box-shadow: 0 0 10px rgba(0, 136, 255, 0.5);
}

.manual-header {
    background: linear-gradient(135deg, #1a1a3a 0%, #0a0a2a 100%);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #3a3a4a;
}

.manual-title {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 900;
    color: #0088ff;
    text-shadow: 0 0 10px rgba(0, 136, 255, 0.5);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.manual-subtitle {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 12px;
    color: #8888aa;
    letter-spacing: 1px;
}

.manual-steps {
    padding: 25px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0088ff, #0055cc);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow:
        0 4px 8px rgba(0, 136, 255, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.step-text {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
    flex: 1;
    padding-top: 5px;
}

/* 底部信息 */
.footer-info {
    width: 100%;
    max-width: 500px;
    margin: 15px auto 0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    z-index: 2;
}

.footer-divider {
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(102, 119, 136, 0.6),
        transparent
    );
    margin-bottom: 10px;
}

.footer-line {
    text-align: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-line:hover {
    opacity: 1;
}

.icp-link {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 11px;
    color: #667788;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-link:hover {
    color: #88aacc;
}

.icp-separator {
    color: #667788;
    font-size: 12px;
    margin: 0 8px;
}

/* 触摸设备性能优化 */
@media (pointer: coarse) {
    /* 禁用背景网格 */
    .grid-overlay {
        display: none;
    }

    /* 禁用波纹动画 */
    .signal-ripple {
        display: none !important;
        animation: none !important;
    }

    /* 禁用拖拽提示箭头动画 */
    .hint-arrow {
        animation: none !important;
    }

    /* 简化黑胶唱片的阴影和渐变 */
    .vinyl-record {
        box-shadow:
            0 5px 15px rgba(0, 0, 0, 0.3),
            inset 0 0 0 2px rgba(255, 255, 255, 0.1);
        /* 启用硬件加速 */
        will-change: transform;
        transform: translate(-50%, -50%) rotate(0deg);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    /* 简化黑胶唱针阴影 */
    .tonearm-arm {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    /* 简化 CD 机主体阴影 */
    .cd-player-body {
        box-shadow:
            0 10px 20px rgba(0, 0, 0, 0.3),
            2px 2px 8px rgba(0, 0, 0, 0.2);
        border: 1px solid #3a3a4a;
    }

    .control-btn:hover:not(:disabled) {
        background: linear-gradient(145deg, #2a2a3a, #1a1a2a);
        border: none;
        box-shadow:
            4px 4px 10px rgba(0, 0, 0, 0.3),
            -2px -2px 6px rgba(255, 255, 255, 0.03),
            inset 1px 1px 2px rgba(255, 255, 255, 0.05);
    }


    .control-btn {
        /* 减少过渡动画 */
        transition: transform 0.2s ease, background 0.2s ease;

        /* 简化按钮阴影 */
        box-shadow:
            2px 2px 6px rgba(0, 0, 0, 0.3),
            -1px -1px 3px rgba(255, 255, 255, 0.03);
    }

    /* 简化唱针底座阴影 */
    .tonearm-base {
        box-shadow:
            0 3px 6px rgba(0, 0, 0, 0.3),
            inset 1px 1px 2px rgba(255, 255, 255, 0.1);
    }

    /* 简化转盘底座阴影 */
    .turntable-base {
        box-shadow:
            inset 3px 3px 10px rgba(0, 0, 0, 0.4),
            inset -1px -1px 5px rgba(255, 255, 255, 0.05);
    }

    /* 禁用屏幕过渡动画 */
    .player-view,
    .playlist-view,
    .screen-progress-inline {
        transition: none !important;
        animation: none !important;
    }

    /* 禁用进度条填充动画 */
    .screen-progress-inline .progress-fill {
        transition: none !important;
    }
}

/* 响应式设计 */
@media (max-width: 900px) {
    .container {
        padding: 100px 15px 15px 15px;
    }

    .cd-player-body {
        flex-direction: column;
        min-height: auto;
    }

    .tonearm-base {
        width: 34px;
        height: 34px;
    }

    .tonearm-arm {
        width: 220px;
        height: 6px;
    }

    .tonearm-head {
        width: 16px;
        height: 22px;
    }

    .turntable-section {
        border-right: none;
        border-bottom: 2px solid #3a3a4a;
        padding: 20px;
    }

    .control-panel {
        width: 100%;
        padding: 20px;
    }

    .brand-name {
        font-size: 16px;
    }

    .manual-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 100px 15px 15px 15px;
    }

    .tonearm-base {
        width: 30px;
        height: 30px;
    }

    .tonearm-arm {
        width: 180px;
        height: 5px;
    }

    .tonearm-head {
        width: 14px;
        height: 20px;
    }

    .brand-name {
        font-size: 14px;
    }

    .manual-toggle {
        padding: 12px 16px;
    }

    .manual-icon {
        width: 18px;
        height: 18px;
    }

    .manual-toggle span {
        font-size: 13px;
    }

    .manual-header {
        padding: 16px;
    }

    .manual-title {
        font-size: 16px;
    }

    .manual-steps {
        padding: 20px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .step-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 100px 10px 10px 10px;
    }

    .tonearm-base {
        width: 26px;
        height: 26px;
    }

    .tonearm-arm {
        width: 120px;
        height: 4px;
    }

    .tonearm-head {
        width: 12px;
        height: 18px;
    }

    .control-panel {
        padding: 15px;
    }

    .brand-name {
        font-size: 12px;
    }

    .brand-model {
        font-size: 9px;
    }

    .info-label {
        font-size: 8px;
    }

    .info-value {
        font-size: 14px;
    }

    .time-display {
        font-size: 16px;
    }

    .btn-text {
        font-size: 11px;
    }

    .btn-icon {
        width: 18px;
        height: 18px;
    }

    .footer-divider {
        width: 220px;
    }

    .icp-link {
        font-size: 10px;
    }
}

/* 密钥配置询问弹窗（共享样式） */
.key-config-prompt-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.key-config-prompt-overlay.active {
    display: flex;
    opacity: 1;
}

.key-config-prompt-modal {
    background: linear-gradient(145deg, #2a2a3a, #1a1a2a);
    border: 2px solid #3a3a4a;
    border-radius: 20px;
    padding: 30px;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.key-config-prompt-header {
    text-align: center;
    margin-bottom: 20px;
}

.key-config-prompt-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

.key-config-prompt-content {
    text-align: center;
}

.key-config-prompt-content p {
    color: #ccccdd;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.key-config-prompt-content .prompt-detail {
    color: #888899;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.key-config-prompt-actions {
    display: flex;
    gap: 10px;
}

.key-config-prompt-actions button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Noto Sans SC", sans-serif;
}

.key-config-prompt-actions .btn-cancel {
    background: #3a3a4a;
    color: #ccccdd;
}

.key-config-prompt-actions .btn-cancel:hover {
    background: #4a4a5a;
}

.key-config-prompt-actions .btn-confirm {
    background: linear-gradient(135deg, #00aa55, #009944);
    color: #ffffff;
}

.key-config-prompt-actions .btn-confirm:hover {
    background: linear-gradient(135deg, #00bb66, #00aa55);
    box-shadow: 0 4px 15px rgba(0, 170, 85, 0.3);
}
