

/****************悬浮窗*****************/



/* 悬浮音乐播放器容器 - 固定在页面左下角 */
.music_player_float {
    position: fixed;
    bottom: 30px;
    left: 45px;
    z-index: 9999;
}

/* 唱片图标 - 可点击展开控制面板 */
.music_icon {
    width: 60px;
    height: 60px;
    background: repeating-radial-gradient(
                circle at center,
                #1a1a1a 0px,
                #1a1a1a 1px,
                #222 1px,
                #222 2px,
                #1a1a1a 2px,
                #1a1a1a 3px
            );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
}

/* 唱片封面图片样式 */
.music_icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* 默认音乐图标 - 当没有封面时显示 */
.music_icon .music_note {
    position: absolute;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.753);
}

/* 唱片中心白色圆点 - 模拟真实唱片的中心轴 */
.music_icon .center_dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: all 0.3s;
}

/* 展开状态下的唱片 - 尺寸变大 */
.music_player_float.expanded .music_icon {
    width: 80px;
    height: 80px;
    font-size: 40px;
}

/* 展开状态下的中心圆点 - 随唱片尺寸变化 */
.music_player_float.expanded .center_dot {
    width: 48px;
    height: 48px;
}

/* 控制面板1 - 播放控制按钮 */
.control_panel_1 {
    position: absolute;
    top: 20px;
    left: -20px;
    background: rgb(208, 207, 207);
    border-radius: 15px;
    padding: 15px 20px 15px 110px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: all 0.3s;
    z-index: -1;
    
}

/* 展开状态下的控制面板1 - 显示并滑入 */
.music_player_float.expanded .control_panel_1 {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 播放控制按钮基础样式 */
.control_btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

/* 播放控制按钮悬停效果 */
.control_btn:hover {
    background: #f0f0f0;
}

/* 播放按钮特殊样式 - 填充背景色 */
.play_btn {
    background: #97a2d5;
    color: white;
}

/* 播放按钮悬停效果 */
.play_btn:hover {
    background: rgba(61, 59, 72, 0.6);
}

/* 控制面板2 - 进度条和曲目信息 */
.control_panel_2 {
    position: absolute;
    top: -35px;
    left: -10px;
    background: rgb(69, 66, 82, 0.7);
	backdrop-filter: blur(3px);
    border-radius: 13px;
    padding: 1px;
    padding-bottom: 20px;
    width: 245px;
    height: 60px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: all 0.3s 0.1s;
    z-index: -1;
}

/* 展开状态下的控制面板2 - 显示并滑入 */
.music_player_float.expanded .control_panel_2 {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 当前播放曲目名称显示 */
.track_name {
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 30px;
    text-align: center;
    color: #fff;
}
/* 悬浮窗进度条容器 */
.progress_container {
    margin-bottom: 10px;
}

/* 悬浮窗进度条背景轨道 */
.float_progress_bar {
    width: 130px;
    margin-left: 100px;
    height: 4px;
    background: #b9b9b9a7;
    cursor: pointer;
    border-radius: 2px;
}

/* 悬浮窗进度条已播放部分 */
.float_progress {
    height: 100%;
    background: #ffffff;
    width: 0%;
    border-radius: 2px;
}










/****************播放器设置*****************/


	#main_control_panel{/*音乐盒子主控制面板 1 */
		position: absolute;
        background: rgba(61, 59, 72, 0.6);
        backdrop-filter: blur(4px);
		border-radius: 10px;
		padding: 20px;
		width: 500px;
        height: 330px;
		z-index: 9;
		display: none;
	}

    /* 主控制器内容容器 - 双列布局 */
    .main_control_content {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }
		#panel_title{/*音乐盒子标题 2 */
			font-size: 16px;
			margin-bottom: 10px;
			text-align: center;
			font-size: 13px;
			color: white;
		}

        .main_control_panel_button{/*返回按钮*/
            height: 30px;
			width: 40px;
			float: right;
            top: 5px;
            right: 5px;
            position: absolute;
			border-radius: 3px;
			background: rgba(255, 255, 255, 0);
			border: none;
			color: white;
			font-size: 16px;
			padding-top: 4px;
			font-weight: 100;
			font-family: Yu Gothic Light;
			transition: 0.2s;/*鼠标移出*/
        }
        .main_control_panel_button:hover{
            background: rgba(255, 72, 72, 0.2);
		    color: white;
		    cursor: pointer;
        }
        
        .current_cover img {/*封面图片样式*/
			width: 100%;
			height: 100%;
			object-fit: cover;
		}

		#current_cover{/*音乐海报图片 2 */
			width: 160px;
			height: 160px;
			margin: 0 auto 15px;
			background: #e0e0e0;
			border-radius: 8px;
			display: flex;
			align-items: center;
			justify-content: center;
			font-size: 40px;
			overflow: hidden;
			box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
		}

        /* 左列 - 播放控制区域 */
        .control_left_column {
            flex: 1;
            min-width: 200px;
        }

		
		#main_controls{/*音乐控制按钮 2 */
			display: flex;
			justify-content: center;
			align-items: center;
			gap: 15px;
			margin-bottom: 15px;
		}
			.main_control_btn {/*音乐控制按钮样式 3*/
				background: none;
				border: 2px solid #e1e1e1;
				cursor: pointer;
				font-size: 20px;
				width: 35px;
				height: 35px;
				border-radius: 50%;
				display: flex;
				align-items: center;
				justify-content: center;
				transition: all 0.2s;
			}
			.main_play_btn {/*播放按钮样式 3*/
				background: #667eea;
				color: white;
				width: 40px;
				height: 40px;
				font-size: 24px;
			}
		#volume_container{/*音量控制 2 */
			display: flex;
            width: 85%;
            margin-left: 20px;
			align-items: center;
			gap: 10px;
			margin-bottom: 15px;
		}
		#volume_slider{/*音量背景 3*/
			flex: 1;
			height: 3px;
			background: #d8d8d894;
			cursor: pointer;
			border-radius: 3px;
		}
		#volume_level{/*音量进度条 3*/
			height: 100%;
			background: #ffffff;
			width: 0%;
			border-radius: 3px;
		}
		#volume_text{/*音量文字 3*/
			font-size: 12px;
			width: 20px;
			text-align: left;
            color: white;
		}
		#progress_container_main{
			width: 100%;
			height: 6px;
			background: #e0e0e0;
			cursor: pointer;
			border-radius: 3px;
			margin-bottom: 8px;
		}
		#main_progress_container {/* 主控制器进度条容器 */
			margin-bottom: 5px;
		}
		#main_progress_bar {/* 主控制器进度条背景轨道 */
			width: 90%;
			margin-left: 12px;
			height: 5px;
			background: #c4c4c47e;
			cursor: pointer;
			border-radius: 3px;
			margin-bottom: 8px;
		}
		#main_progress {/* 主控制器进度条已播放部分 */
			height: 100%;
			background: #ffffff;
			width: 0%;
			border-radius: 3px;
		}
		#time_display{
            width: 95%;
            margin: auto;
			display: flex;
			justify-content: space-between;
			font-size: 12px;
			color: #ffffff;
		}

        /* 右列 - 播放列表区域 */
        .control_right_column {
            flex: 1;
            min-width: 200px;
            max-height: 300px;
            overflow-y: auto;
            color: white;
        }

		/* 播放列表容器 */
.playlist {
    max-height: 150px;
    padding-top: 15px;
}

/* 播放列表容器 - 适配双列布局 */
.playlist {
    max-height: 300px;
    padding-left: 15px;
    background-color: transparent;
}

/* 播放列表标题 */
.playlist_title {
    font-size: 14px;
    margin-bottom: 10px;
    margin-left: 10px;
    font-weight: bold;
}

/* 播放列表项目样式 */
.playlist_item {
    padding: 10px 0px 10px 20px;
    overflow-y: auto;
    margin-bottom: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    width: 88%;
    border-radius: 8px;
}

/* 播放列表项目悬停效果 */
.playlist_item:hover {
    background: #f3f3f386;
}

/* 当前播放的播放列表项目高亮 */
.playlist_item.active {
    background: #86a0ff;
    color: white;
}

/* 页面内容区域样式 */
.page_content {
    background: white;
    padding: 40px;
    max-width: 600px;
    margin: 50px auto;
    text-align: center;
}
