.rbatv-yt-shorts-wrap {
	margin: 24px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.rbatv-yt-shorts-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.rbatv-yt-shorts-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0;
	color: #1a1a1a;
}

.rbatv-yt-shorts-carousel {
	position: relative;
}

.rbatv-yt-shorts-track {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding: 4px 2px 12px;
	scrollbar-width: none;
	cursor: grab;
}

.rbatv-yt-shorts-track::-webkit-scrollbar {
	display: none;
}

.rbatv-yt-shorts-track:focus-visible {
	outline: 2px solid #0b5fff;
	outline-offset: 2px;
}

.rbatv-yt-shorts-track.rbatv-yt-shorts-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
	user-select: none;
}

.rbatv-yt-shorts-track.rbatv-yt-shorts-dragging .rbatv-yt-shorts-thumb {
	pointer-events: none;
}

.rbatv-yt-shorts-card {
	flex: 0 0 auto;
	scroll-snap-align: start;
	width: 42%;
}

@media ( min-width: 600px ) {
	.rbatv-yt-shorts-card {
		width: 27%;
	}
}

@media ( min-width: 900px ) {
	.rbatv-yt-shorts-card {
		width: 19%;
	}
}

@media ( min-width: 1200px ) {
	.rbatv-yt-shorts-card {
		width: 15.5%;
	}
}

.rbatv-yt-shorts-thumb {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 9 / 16;
	background-color: #111;
	background-size: cover;
	background-position: center;
	border: 0;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	padding: 0;
}

.rbatv-yt-shorts-duration {
	position: absolute;
	top: 8px;
	left: 8px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 4px;
	line-height: 1.4;
}

.rbatv-yt-shorts-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.85);
	color: #111;
	border-radius: 50%;
	font-size: 15px;
	padding-left: 3px;
	transition: transform 0.15s ease, background 0.15s ease;
}

.rbatv-yt-shorts-thumb:hover .rbatv-yt-shorts-play,
.rbatv-yt-shorts-thumb:focus-visible .rbatv-yt-shorts-play {
	transform: translate(-50%, -50%) scale(1.08);
	background: #fff;
}

.rbatv-yt-shorts-title-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px 10px 10px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0) 100%);
	text-align: left;
}

.rbatv-yt-shorts-title-overlay span {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Modal de reprodução */
.rbatv-yt-shorts-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rbatv-yt-shorts-modal[hidden] {
	display: none;
}

.rbatv-yt-shorts-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
}

.rbatv-yt-shorts-modal-content {
	position: relative;
	z-index: 1;
	width: min(92vw, 400px);
	aspect-ratio: 9 / 16;
}

.rbatv-yt-shorts-modal-frame {
	width: 100%;
	height: 100%;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}

.rbatv-yt-shorts-modal-frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.rbatv-yt-shorts-modal-close {
	position: absolute;
	top: -38px;
	right: 0;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.rbatv-yt-shorts-admin-notice {
	padding: 10px 14px;
	background: #fff3cd;
	border: 1px solid #ffe69c;
	border-radius: 4px;
	color: #664d03;
}
