.mtv-search-container {
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
}

.mtv-search-wrapper {
	width: 100%;
	max-width: 800px;
}

.mtv-search-box {
	margin-bottom: 30px;
}

.mtv-search-form {
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

.mtv-search-input {
	flex: 1;
	min-width: 300px;
	padding: 12px 20px;
	font-size: 16px;
	border: 2px solid #ddd;
	border-radius: 25px;
	outline: none;
	transition: border-color 0.3s;
}

.mtv-search-input:focus {
	border-color: #0073aa;
}

.mtv-search-button,
.mtv-refresh-button {
	padding: 12px 30px;
	font-size: 16px;
	border: none;
	border-radius: 25px;
	cursor: pointer;
	transition: all 0.3s;
	font-weight: 500;
}

.mtv-search-button {
	background-color: #0073aa;
	color: white;
}

.mtv-search-button:hover {
	background-color: #005a87;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

.mtv-refresh-button {
	background-color: #46b450;
	color: white;
}

.mtv-refresh-button:hover {
	background-color: #3a9e42;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(70, 180, 80, 0.3);
}

.mtv-search-results {
	margin-top: 30px;
}

.mtv-result-item {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 15px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s;
}

.mtv-result-item:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mtv-result-row {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.mtv-result-filename {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	flex: 1;
	min-width: 200px;
}

.mtv-result-resolution {
	background-color: #f0f0f0;
	padding: 5px 15px;
	border-radius: 15px;
	font-size: 14px;
	color: #666;
	white-space: nowrap;
}

.mtv-download-button {
	background-color: #0073aa;
	color: white;
	padding: 6px 16px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 13px;
	text-decoration: none;
	display: inline-block;
	transition: background-color 0.3s;
	white-space: nowrap;
}

.mtv-download-button:hover:not(:disabled) {
	background-color: #005a87;
}

.mtv-download-button:disabled,
.mtv-download-button.loading {
	background-color: #999;
	cursor: not-allowed;
	opacity: 0.7;
}

.mtv-loading {
	text-align: center;
	padding: 40px;
}

.mtv-spinner {
	border: 4px solid #f3f3f3;
	border-top: 4px solid #0073aa;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 15px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.mtv-message {
	padding: 15px;
	border-radius: 5px;
	margin-top: 20px;
	text-align: center;
	font-size: 14px;
}

.mtv-message.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.mtv-message.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.mtv-message.info {
	background-color: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

/* 弹窗遮罩层 */
.mtv-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.mtv-modal-overlay.show {
	opacity: 1;
}

/* 弹窗内容 */
.mtv-modal {
	background: #fff;
	border-radius: 12px;
	padding: 30px 40px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	max-width: 400px;
	width: 90%;
	text-align: center;
	transform: scale(0.8);
	transition: transform 0.3s ease;
	position: relative;
}

.mtv-modal-overlay.show .mtv-modal {
	transform: scale(1);
}

.mtv-modal-icon {
	font-size: 56px;
	margin-bottom: 20px;
	line-height: 1;
	font-weight: bold;
	display: block;
}

.mtv-modal-icon.success {
	color: #46b450;
}

.mtv-modal-icon.error {
	color: #dc3232;
}

.mtv-modal-icon.info {
	color: #0073aa;
}

.mtv-modal-message {
	font-size: 16px;
	color: #333;
	line-height: 1.5;
	font-weight: 500;
}

.mtv-modal.success .mtv-modal-message {
	color: #155724;
}

.mtv-modal.error .mtv-modal-message {
	color: #721c24;
}

.mtv-modal.info .mtv-modal-message {
	color: #0c5460;
}

.mtv-no-results {
	text-align: center;
	padding: 40px;
	color: #888;
	font-size: 16px;
}

@media (max-width: 768px) {
	.mtv-search-form {
		flex-direction: column;
	}
	
	.mtv-search-input {
		width: 100%;
		min-width: auto;
	}
	
	.mtv-search-button,
	.mtv-refresh-button {
		width: 100%;
	}
	
	.mtv-result-row {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-start;
	}
	
	.mtv-result-filename {
		flex-basis: 100%;
		width: 100%;
		margin-bottom: 10px;
	}
	
	.mtv-result-resolution {
		flex-shrink: 0;
		margin-right: 10px;
	}
}

/* ===== 点播需求表单样式优化 ===== */
.mtv-demand-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.mtv-demand-columns {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.mtv-demand-column {
	flex: 1;
}

.mtv-demand-column-form {
	flex-basis: 50%;
}

.mtv-demand-column-list {
	flex-basis: 50%;
}

.mtv-demand-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    letter-spacing: -0.01em;
}

/* 消息提示 */
.mtv-demand-message {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    border-left: 4px solid transparent;
    background-color: #f8fafc;
}

.mtv-demand-message-success {
    border-left-color: #10b981;
    background-color: #ecfdf5;
    color: #065f46;
}

.mtv-demand-message-error {
    border-left-color: #ef4444;
    background-color: #fef2f2;
    color: #991b1b;
}

/* 表单区域 */
.mtv-demand-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.mtv-demand-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mtv-demand-field label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.mtv-demand-field input {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border 0.2s, box-shadow 0.2s;
    background-color: #f8fafc;
    outline: none;
}

.mtv-demand-field input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #ffffff;
}

.mtv-demand-field input::placeholder {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* 操作按钮 */
.mtv-demand-actions {
    margin-top: 0.5rem;
}

.mtv-demand-submit {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.mtv-demand-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.mtv-demand-submit:active:not(:disabled) {
    transform: translateY(0);
}

.mtv-demand-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #94a3b8;
    box-shadow: none;
}

/* 最新需求列表 */
.mtv-demand-list {
    margin-top: 2rem;
}

.mtv-demand-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: white;
}

.mtv-demand-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 400px;
}

.mtv-demand-table thead {
    background-color: #f1f5f9;
    border-bottom: 2px solid #cbd5e1;
}

.mtv-demand-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
}

.mtv-demand-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.mtv-demand-table tbody tr:last-child td {
    border-bottom: none;
}

.mtv-demand-table tbody tr:hover {
    background-color: #f8fafc;
}

/* 操作链接（删除） */
.mtv-demand-delete {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background-color: #fee2e2;
    color: #b91c1c;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.2s;
    border: 1px solid rgba(185, 28, 28, 0.1);
}

.mtv-demand-delete:hover {
    background-color: #fecaca;
    color: #991b1b;
}

/* 空状态提示 */
.mtv-demand-empty {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f8fafc;
    border-radius: 16px;
    color: #64748b;
    font-size: 1rem;
    border: 1px dashed #cbd5e1;
}

/* 响应式微调 */
@media (max-width: 600px) {
    .mtv-demand-wrapper {
        padding: 1.5rem;
        margin: 1rem;
    }

    .mtv-demand-title {
        font-size: 1.5rem;
    }

    .mtv-demand-table th,
    .mtv-demand-table td {
        padding: 0.75rem 1rem;
    }
}

@media (min-width: 900px) {
	.mtv-demand-wrapper {
		max-width: 1000px;
	}

	.mtv-demand-columns {
		flex-direction: row;
		align-items: flex-start;
	}

	.mtv-demand-column-form {
		max-width: 420px;
	}
}
