/* プレイリストボタン */
.playlist-button {
	display: inline-block;
	background-color: #4CAF50;
	color: #fff;
	border: none;
	margin-left: 6px;
	padding: 2px 6px;
	cursor: pointer;
	font-size: 0.7rem;
	border-radius: 4px;
	vertical-align: middle;
	transition: background-color 0.2s ease;
}
.playlist-button:hover {
	background-color: #45a049;
}

/* プレイリストモーダル */
.playlist-modal {
	display: none;
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
}
.playlist-modal-content {
	background-color: #fefefe;
	margin: 5% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 80%;
	max-width: 600px;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.playlist-seekbar {
	display: none;
	height: 5px;
	background: #e0e0e0;
	border-radius: 3px;
	overflow: hidden;
	margin: -10px 0 15px 0;
}
.playlist-seekbar.animate {
	display: block;
}
.playlist-seekbar.animate .playlist-seekbar-fill {
	animation: playlist-seekbar-fill 1s ease-out forwards;
}
@keyframes playlist-seekbar-fill {
	from { width: 0%; }
	to { width: 100%; }
}
.playlist-seekbar-fill {
	height: 100%;
	background: #4CAF50;
	width: 0;
}
.playlist-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}
.playlist-modal-close {
	color: #aaa;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	line-height: 1;
}
.playlist-modal-close:hover,
.playlist-modal-close:focus {
	color: #000;
}
.playlist-tabs {
	display: flex;
	border-bottom: 2px solid #ddd;
	margin-bottom: 20px;
}
.playlist-tab {
	padding: 10px 20px;
	cursor: pointer;
	border: none;
	background: none;
	font-size: 16px;
	color: #666;
	border-bottom: 2px solid transparent;
	transition: all 0.3s;
}
.playlist-tab.active {
	color: #4CAF50;
	border-bottom-color: #4CAF50;
	font-weight: bold;
}
.playlist-tab:hover {
	color: #4CAF50;
}
.playlist-list {
	max-height: 400px;
	overflow-y: auto;
}
.playlist-item {
	display: block;
	width: 100%;
	padding: 12px 15px;
	margin-bottom: 8px;
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 5px;
	cursor: pointer;
	text-align: left;
	transition: all 0.2s;
	font-size: 14px;
}
.playlist-item:hover {
	background-color: #e9ecef;
	border-color: #4CAF50;
	transform: translateX(5px);
}
.playlist-item:active {
	background-color: #4CAF50;
	color: #fff;
}
.playlist-loading {
	text-align: center;
	padding: 20px;
	color: #666;
}
.playlist-empty {
	text-align: center;
	padding: 20px;
	color: #999;
}
