/* ============================================================
   YT Channel Slider — Front-end Styles
   ============================================================
   Todas as classes têm o prefixo .ytcs- para fácil customização.
   ============================================================ */

/* ── Reset / base ─────────────────────────────────────── */
.ytcs-wrapper *,
.ytcs-modal * {
	box-sizing: border-box;
}

/* ── Wrapper principal ───────────────────────────────── */
.ytcs-wrapper {
	--ytcs-primary:       #FF0000;
	--ytcs-primary-dark:  #cc0000;
	--ytcs-bg-card:       #ffffff;
	--ytcs-text-title:    #111111;
	--ytcs-text-sub:      #777777;
	--ytcs-text-link:     #FF0000;
	--ytcs-border:        #e8e8e8;
	--ytcs-radius:        10px;
	--ytcs-thumb-ratio:   56.25%; /* 16:9 */
	--ytcs-nav-size:      44px;
	--ytcs-nav-color:     #fff;
	--ytcs-nav-bg:        rgba(0,0,0,.70);
	--ytcs-dot-size:      10px;
	--ytcs-dot-active:    #FF0000;
	--ytcs-dot-inactive:  rgba(0,0,0,.2);
	--ytcs-play-bg:       #FF0000;
	--ytcs-play-size:     60px;
	--ytcs-shadow:        0 4px 20px rgba(0,0,0,.10);

	position: relative;
	width: 100%;
	padding: 0 0 40px; /* espaço para os dots */
}

/* ── Swiper overrides ────────────────────────────────── */
.ytcs-slider.swiper {
	overflow: hidden;
	padding-bottom: 20px !important; /* espaço para dots */
}

.ytcs-slider__wrapper.swiper-wrapper {
	align-items: stretch;
}

/* ── Slide ───────────────────────────────────────────── */
.ytcs-slide.swiper-slide {
	height: auto;
	display: flex;
}

/* ── Card ────────────────────────────────────────────── */
.ytcs-card {
	background: var(--ytcs-bg-card);
	border-radius: var(--ytcs-radius);
	box-shadow: var(--ytcs-shadow);
	border: 1px solid var(--ytcs-border);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	width: 100%;
	transition: transform .25s ease, box-shadow .25s ease;
}

.ytcs-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0,0,0,.15);
}

/* ── Thumb ───────────────────────────────────────────── */
.ytcs-card__thumb-wrap {
	position: relative;
	width: 100%;
	padding-top: var(--ytcs-thumb-ratio);
	overflow: hidden;
	background: #000;
}

.ytcs-card__thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease, opacity .3s ease;
}

.ytcs-card:hover .ytcs-card__thumb {
	transform: scale(1.05);
	opacity: .85;
}

/* ── Play button ─────────────────────────────────────── */
.ytcs-card__play-btn {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
}

.ytcs-card__play-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--ytcs-play-size);
	height: var(--ytcs-play-size);
	transition: transform .2s ease, opacity .2s ease;
}

.ytcs-card__play-icon svg {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

.ytcs-play-bg {
	fill: var(--ytcs-play-bg);
	opacity: .9;
	transition: opacity .2s;
}

.ytcs-play-arrow {
	fill: #fff;
}

.ytcs-card__play-btn:hover .ytcs-play-bg {
	opacity: 1;
}

.ytcs-card__play-btn:hover .ytcs-card__play-icon {
	transform: scale(1.1);
}

/* ── Body ────────────────────────────────────────────── */
.ytcs-card__body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.ytcs-card__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--ytcs-text-title);
	margin: 0;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ytcs-card__channel {
	font-size: 12px;
	color: var(--ytcs-text-sub);
	margin: 0;
}

.ytcs-card__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	color: var(--ytcs-text-link);
	text-decoration: none;
	margin-top: auto;
	padding-top: 8px;
	transition: opacity .2s;
}

.ytcs-card__link:hover {
	opacity: .75;
	text-decoration: underline;
}

/* ── Navigation arrows ───────────────────────────────── */
.ytcs-nav {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: var(--ytcs-nav-size) !important;
	height: var(--ytcs-nav-size) !important;
	background: var(--ytcs-nav-bg) !important;
	border-radius: 50% !important;
	top: calc(var(--ytcs-thumb-ratio) / 2) !important;
	transition: background .2s, transform .2s;
	z-index: 10;
}

.ytcs-nav::after {
	display: none !important; /* remove ícone padrão Swiper */
}

.ytcs-nav svg {
	width: 22px;
	height: 22px;
	stroke: var(--ytcs-nav-color);
	fill: none;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ytcs-nav--prev {
	left: 8px !important;
}

.ytcs-nav--next {
	right: 8px !important;
}

.ytcs-nav:hover {
	background: var(--ytcs-primary) !important;
	transform: scale(1.08);
}

.ytcs-nav.swiper-button-disabled {
	opacity: .35 !important;
	pointer-events: none !important;
}

/* ── Pagination dots ─────────────────────────────────── */
.ytcs-pagination.swiper-pagination {
	bottom: 0 !important;
}

.ytcs-pagination .swiper-pagination-bullet {
	width: var(--ytcs-dot-size) !important;
	height: var(--ytcs-dot-size) !important;
	background: var(--ytcs-dot-inactive) !important;
	opacity: 1 !important;
	transition: background .25s, transform .25s;
}

.ytcs-pagination .swiper-pagination-bullet-active {
	background: var(--ytcs-dot-active) !important;
	transform: scale(1.3);
}

/* ── Error message ───────────────────────────────────── */
.ytcs-error {
	background: #fff3f3;
	border: 1.5px solid #fca5a5;
	color: #991b1b;
	border-radius: 8px;
	padding: 14px 18px;
	font-size: 14px;
	line-height: 1.5;
}

/* ── Modal ───────────────────────────────────────────── */
.ytcs-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ytcs-modal[hidden] {
	display: none !important;
}

.ytcs-modal--open {
	animation: ytcs-fade-in .25s ease;
}

@keyframes ytcs-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.ytcs-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.88);
	cursor: pointer;
}

.ytcs-modal__box {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 900px;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 24px 80px rgba(0,0,0,.8);
	animation: ytcs-scale-in .25s ease;
}

@keyframes ytcs-scale-in {
	from { transform: scale(.9); opacity: 0; }
	to   { transform: scale(1);  opacity: 1; }
}

.ytcs-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 36px;
	height: 36px;
	background: rgba(255,255,255,.15);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s;
}

.ytcs-modal__close svg {
	width: 18px;
	height: 18px;
	stroke: #fff;
	fill: none;
	stroke-width: 2.5;
	stroke-linecap: round;
}

.ytcs-modal__close:hover {
	background: var(--ytcs-primary);
}

.ytcs-modal__embed-wrap {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
}

.ytcs-modal__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* ── Responsividade das setas ────────────────────────── */
@media (max-width: 767px) {
	.ytcs-nav {
		width: 36px !important;
		height: 36px !important;
	}
	.ytcs-nav svg {
		width: 18px;
		height: 18px;
	}
}
