.basic_input {
	width: 100%;
	padding: 5px;
	border: 1px solid #ccc;
	font-size: 16px;
}

.select_input {
	width: 100%;
	padding: 5px;
	border: 1px solid #ccc;
	font-size: 16px;
	background: white;
}

.select_input:disabled {
	background: #f0f0f0;
	color: #999;
	cursor: not-allowed;
	opacity: 0.6;
}

.playlog_notes_detail input {
	width: 60px;
	padding: 3px;
	text-align: right;
	border: 1px solid #ccc;
	font-size: 16px;
	background: white;
}

/* 防止移动端缩放 */
input[type="number"], input[type="text"] {
	touch-action: manipulation;
	-webkit-user-select: text;
	user-select: text;
}

/* 隐藏number输入框的上下箭头 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

input[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
}

/* 只读输入框样式 */
input[type="number"][readonly] {
	cursor: default;
	opacity: 1;
}

/* 封面图片尺寸限制 */
#musicCover {
	width: 192px;
	height: 192px;
	object-fit: cover;
}

.autocomplete-container {
	position: relative;
}

.autocomplete-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 1px solid #ccc;
	border-top: none;
	max-height: 200px;
	overflow-y: auto;
	z-index: 9999;
	display: none;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.autocomplete-item {
	padding: 8px 10px;
	cursor: pointer;
	border-bottom: 1px solid #eee;
	display: block;
}

.autocomplete-item:hover {
	background: #f0f0f0;
}

.autocomplete-item:last-child {
	border-bottom: none;
}

.autocomplete-item-content {
	width: 100%;
}

.autocomplete-item-title {
	font-weight: bold;
	color: #333 !important;
	display: block;
	font-size: 13px;
	line-height: 1.4;
	margin-bottom: 2px;
}

.autocomplete-item-artist {
	font-size: 11px;
	color: #666 !important;
	display: block;
	line-height: 1.2;
}

.clear-button {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	background: #ccc;
	border-radius: 50%;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 14px;
	color: white;
	line-height: 1;
	z-index: 10;
}

.clear-button:hover {
	background: #999;
}

.clear-button.show {
	display: flex;
}

/* dx分星级样式 */
.playlog_deluxscore_star {
	height: 14px;
	width: auto;
	vertical-align: middle;
	display: inline-block;
	margin-left: 3px;
}

/* combo和sync可编辑文本样式（完全匹配官方版文本显示） */
#comboCount, #comboTotal, #syncCount, #syncTotal {
	outline: none;
	display: inline;
}

#comboCount[contenteditable="true"], #syncCount[contenteditable="true"] {
	cursor: text;
}

#comboCount[contenteditable="false"], #syncCount[contenteditable="false"] {
	cursor: default;
}

/* Rating 显示区域 */
.playlog_rating_detail_block {
	width: 142px;
}

.rating_block {
	position: absolute;
	top: 7px;
	right: 9px;
	width: 73px;
	height: 21px;
	line-height: 21px;
	color: white;
	text-align: right;
	font-size: 16px;
}

/* 判定表格样式 */
.playlog_notes_detail {
	width: 300px;
}

.playlog_notes_detail td {
	padding: 4px 5px;
	border: 1px solid #c0e5f7;
}

/* 判定表格不同列的颜色 - 官方版 */
.playlog_notes_detail tr td:nth-child(2) span,
.playlog_notes_detail tr td:nth-child(2) {
	color: #ffbc09; /* CP - 橙黄色 */
}

.playlog_notes_detail tr td:nth-child(3) span,
.playlog_notes_detail tr td:nth-child(3) {
	color: #ff9d00; /* Perfect - 橙色 */
}

.playlog_notes_detail tr td:nth-child(4) span,
.playlog_notes_detail tr td:nth-child(4) {
	color: #f75ea3; /* Great - 粉红色 */
}

.playlog_notes_detail tr td:nth-child(5) span,
.playlog_notes_detail tr td:nth-child(5) {
	color: #2fca4c; /* Good - 绿色 */
}

.playlog_notes_detail tr td:nth-child(6) span,
.playlog_notes_detail tr td:nth-child(6) {
	color: #8c8c8c; /* Miss - 灰色 */
}

.playlog_notes_detail span[contenteditable] {
	display: inline-block;
	min-width: 15px;
	outline: none;
	font-size: 11px;
	font-weight: bold;
	text-align: right;
}

.playlog_notes_detail span[contenteditable="true"] {
	cursor: text;
}

.playlog_notes_detail span[contenteditable="false"] {
	cursor: default;
}

/* 复制结果按钮样式 */
.copy_result_button {
	background: linear-gradient(to bottom, #ff69b4, #ff1493);
	color: white;
	border: 2px solid #fff;
	border-radius: 25px;
	padding: 12px 30px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	outline: none;
}

.copy_result_button:hover {
	background: linear-gradient(to bottom, #ff1493, #ff69b4);
	transform: translateY(-2px);
	box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.copy_result_button:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.button_icon {
	width: 20px;
	height: 20px;
	vertical-align: middle;
}

.copy_result_message {
	margin-top: 10px;
	font-size: 14px;
	min-height: 20px;
	color: #333;
	font-weight: bold;
}

.copy_result_message.success {
	color: #28a745;
}

.copy_result_message.error {
	color: #dc3545;
}


/* BREAK详情展开/收起按钮 */
.break_toggle_btn {
	position: absolute;
	left: 315px; /* 表格宽度300px + 15px间距 */
	top: 0;
	background: linear-gradient(to bottom, #ff69b4, #ff1493);
	border: 1px solid #fff;
	color: white;
	font-size: 14px;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	outline: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	min-width: 30px;
	text-align: center;
	font-weight: bold;
	z-index: 10;
	opacity: 0; /* 初始隐藏，等待定位完成 */
}

.break_toggle_btn.positioned {
	opacity: 1; /* 定位完成后显示 */
}

.break_toggle_btn:hover {
	background: linear-gradient(to bottom, #ff1493, #ff69b4);
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.break_toggle_btn:active {
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* BREAK详情容器 */
.break_detail_container {
	background: #f8f9fa;
	padding: 0 !important;
	border: none !important;
}

.break_detail_content {
	padding: 10px 15px;
	background: linear-gradient(to bottom, #fff5f8, #ffe8f0);
	border-top: 2px solid #ff69b4;
}

.break_detail_section {
	margin-bottom: 12px;
}

.break_detail_section:last-child {
	margin-bottom: 0;
}

.break_detail_title {
	font-size: 12px;
	font-weight: bold;
	color: #ff1493;
	margin-bottom: 6px;
	text-align: left;
}

.break_detail_inputs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.break_detail_item {
	display: flex;
	align-items: center;
	background: white;
	border: 1px solid #ffc0cb;
	border-radius: 4px;
	padding: 4px 8px;
	flex: 1;
	min-width: 80px;
}

.break_detail_item label {
	font-size: 11px;
	color: #666;
	margin-right: 6px;
	white-space: nowrap;
	font-weight: normal;
}

.break_detail_item span[contenteditable] {
	flex: 1;
	min-width: 30px;
	text-align: right;
	font-size: 11px;
	font-weight: bold;
	color: #ff1493;
	outline: none;
	cursor: text;
}

.break_detail_toggle_container {
	text-align: center;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #ffc0cb;
}

.break_detail_toggle_btn {
	background: linear-gradient(to bottom, #ff69b4, #ff1493);
	color: white;
	border: none;
	border-radius: 12px;
	padding: 4px 16px;
	font-size: 11px;
	cursor: pointer;
	outline: none;
	transition: all 0.2s ease;
}

.break_detail_toggle_btn:hover {
	background: linear-gradient(to bottom, #ff1493, #ff69b4);
	transform: translateY(-1px);
}

.break_detail_toggle_btn:active {
	transform: translateY(0);
}
