/* TR Video Manager - Frontend Styles */

.trvm-single-wrap,
.trvm-shorts-wrap {
	max-width: 640px;
	margin: 0 auto;
}

.trvm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.trvm-card {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.08);
	transition: transform .2s ease, box-shadow .2s ease;
}

.trvm-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.trvm-thumb-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	cursor: pointer;
	overflow: hidden;
}

.trvm-shorts-card .trvm-thumb-wrap {
	aspect-ratio: 9 / 16;
	max-width: 320px;
	margin: 0 auto;
}

.trvm-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.trvm-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	background: rgba(220, 30, 30, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease, transform .2s ease;
}

.trvm-thumb-wrap:hover .trvm-play-btn {
	background: rgba(220, 30, 30, 1);
	transform: translate(-50%, -50%) scale(1.08);
}

.trvm-play-btn span {
	width: 0;
	height: 0;
	border-top: 11px solid transparent;
	border-bottom: 11px solid transparent;
	border-left: 18px solid #fff;
	margin-left: 4px;
}

.trvm-thumb-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.trvm-title {
	padding: 12px 14px;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: #1a1a1a;
}

.trvm-loadmore-wrap {
	text-align: center;
	margin: 30px 0;
}

.trvm-load-more-btn {
	background: #dc1e1e;
	color: #fff;
	border: none;
	padding: 12px 32px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	transition: background .2s ease;
}

.trvm-load-more-btn:hover {
	background: #b91717;
}

.trvm-load-more-btn:disabled {
	background: #aaa;
	cursor: default;
}

.trvm-empty {
	text-align: center;
	color: #777;
	padding: 30px 0;
}
