/* 音乐播放器样式 */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.95), rgba(20, 20, 40, 0.98));
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 9999;
    font-family: 'Microsoft YaHei', sans-serif;
    overflow: hidden;
    transition: all 0.3s ease;
}

.music-player.minimized {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.music-player.minimized .player-content,
.music-player.minimized .player-controls,
.music-player.minimized .playlist {
    display: none;
}

.music-player.closed {
    display: none;
}

.player-header {
    background: linear-gradient(135deg, #D4AF37, #b8941f);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.player-title {
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
}

.player-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.player-content {
    padding: 15px;
}

.current-track {
    text-align: center;
    margin-bottom: 15px;
}

.track-name {
    color: #fff;
    font-size: 14px;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #D4AF37, #f4e8c1);
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
}

.control-btn {
    background: transparent;
    border: 2px solid rgba(212, 175, 55, 0.5);
    color: #D4AF37;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
}

.control-btn:hover {
    background: #D4AF37;
    color: #1a1a1a;
    transform: scale(1.1);
}

.control-btn.play-btn {
    width: 50px;
    height: 50px;
    background: #D4AF37;
    color: #1a1a1a;
    font-size: 20px;
}

.control-btn.play-btn:hover {
    background: #f4e8c1;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.volume-icon {
    color: #D4AF37;
    font-size: 16px;
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-level {
    height: 100%;
    background: #D4AF37;
    border-radius: 2px;
    width: 80%;
}

.playlist {
    max-height: 200px;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-item {
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.playlist-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
}

.playlist-item.active {
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
}

.playlist-item .delete-btn {
    margin-left: auto;
    color: #ff4d4f;
    opacity: 0;
    transition: opacity 0.2s;
}

.playlist-item:hover .delete-btn {
    opacity: 1;
}

.music-player-restore {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #D4AF37, #b8941f);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.music-player-restore:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

/* 霓虹灯滚动横幅样式 */
.neon-scroll-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(90deg, #ff0080, #00ffaa);
    z-index: 9998;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.neon-scroll-text {
    position: absolute;
    white-space: nowrap;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
    animation: neonBlink 2s infinite;
}

@keyframes neonBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 倒计时样式 */
.countdown-container {
    position: fixed;
    z-index: 9999;
    padding: 10px 15px;
    border-radius: 10px;
    background: #1a2a6c;
    color: #ffffff;
    border: 2px solid rgba(0, 238, 255, 0.5);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.countdown-title {
    white-space: normal;
    word-break: break-all;
    color: #ff00de;
    text-shadow: 0 0 10px #ff00de;
    font-weight: bold;
}

.countdown-timer {
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #ffffff;
}

.countdown-timer span {
    display: inline-block;
    min-width: 35px;
    padding: 2px 5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    margin: 0 2px;
}

/* 数据统计窗口样式 */
.stats-container {
    position: fixed;
    z-index: 9997;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.95), rgba(20, 20, 40, 0.98));
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 20px;
    min-width: 200px;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-item:last-child {
    border-bottom: none;
}

.stats-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.stats-value {
    color: #D4AF37;
    font-size: 16px;
    font-weight: bold;
}

/* 悬浮弹窗样式 */
.floating-window-container {
    position: fixed;
    z-index: 10000;
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: move;
    overflow: hidden;
}

.floating-window-glowing-border {
    border: 3px solid transparent;
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 400% 400%;
    animation: neonGlow 3s ease infinite;
    padding: 0;
}

@keyframes neonGlow {
    0% { background-position: 0% 50%; box-shadow: 0 0 15px rgba(255, 0, 0, 0.8); }
    25% { background-position: 100% 50%; box-shadow: 0 0 15px rgba(255, 127, 0, 0.8); }
    50% { background-position: 100% 50%; box-shadow: 0 0 15px rgba(255, 255, 0, 0.8); }
    75% { background-position: 0% 50%; box-shadow: 0 0 15px rgba(0, 255, 0, 0.8); }
    100% { background-position: 0% 50%; box-shadow: 0 0 15px rgba(255, 0, 0, 0.8); }
}

.floating-window-content {
    background: #ffffff;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.floating-window-header {
    background: linear-gradient(135deg, #D4AF37, #b8941f);
    color: white;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.floating-window-title {
    font-size: 14px;
    font-weight: bold;
}

.floating-window-close {
    background: #ff4d4f;
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
}

.floating-window-body {
    padding: 0;
    margin: 0;
    max-height: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-window-image,
.floating-window-video {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

@media (max-width: 768px) {
    .music-player {
        width: 300px;
        right: 10px;
        bottom: 10px;
    }

    .stats-container {
        left: 10px !important;
        right: 10px !important;
        bottom: 80px !important;
    }
}