/**
 * Review YouTube – CSS (kế thừa phong cách & paginator từ review-map)
 */

.ry-review {
	box-sizing: border-box;
	max-width: 100%;
}

.ry-review *,
.ry-review *::before,
.ry-review *::after {
	box-sizing: inherit;
}

/* List — grid 3 cột */
.ry-review__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

.ry-review__item {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* Card YouTube giống ảnh */
.ry-review-card {
	background-color: #FFFBE6;
	padding: 32px 24px;
	gap: 16px;
	min-height: 0;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.ry-review-card__video {
	width: 100%;
	aspect-ratio: 297/203;
	border-radius: 16px;
	overflow: hidden;
	background: #ccc;
	flex-shrink: 0;
}

.ry-review-card__video iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

.ry-review-card__video-placeholder{
	width: 100%;
	height: 100%;
	background: #ddd;
}

.ry-review-card__info {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ry-review-card__title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	color: #1C1C1C;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ry-review-card__channel {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ry-review-card__logo {
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: #FFF;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.ry-review-card__logo img {
	height: 120%;
	width: 120%;
	object-fit: cover;
}

.ry-review-card__channel-name {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: #515151;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Paginator (bê y hệt từ review-map, chỉ đổi prefix class) */
.ry-review__pagination {
	margin-top: 24px;
	width: 100%;
}

.ry-review__pagination-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.ry-review__pagination-item {
	margin: 0;
	padding: 0;
}

.ry-review__pagination-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 48px;
	padding: 0 10px;
	box-sizing: border-box;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	color: #1C1C1C;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

a.ry-review__pagination-btn:hover {
	background: #ee8300;
	border-color: #ee8300;
	color: #fff;
	cursor: default;
	font-weight: 700;
}

.ry-review__pagination-btn--nav {
	min-width: auto;
	padding: 0 12px;
	gap: 4px;
}

.ry-review__pagination-btn--current {
	background: #ee8300;
	border-color: #ee8300;
	color: #fff;
	cursor: default;
	font-weight: 700;
}

.ry-review__pagination-btn--disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.ry-review__pagination-chevron {
	font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
	.ry-review__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}
}

@media (max-width: 640px) {
	.ry-review__list {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ry-review__pagination-btn {
		min-width: 36px;
		min-height: 36px;
		font-size: 14px;
	}
}

