/**
 * Estilos da Seção Marryplay
 * Galeria de vídeos da Marry com player do Globoplay
 * Baseado no design do Figma node-id: 19248-208
 */

.marryplay-section {
	background: #cd3655; /* Vermelho do design */
	padding: 80px 112px;
	display: flex;
	flex-direction: column;
	gap: 64px;
	align-items: center;
	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow-x: hidden; /* Previne overflow horizontal */
	overflow-y: visible; /* Permite que as sombras dos cards sejam visíveis */
}

/* Header */
.marryplay-section__header {
	width: 100%;
	max-width: 1216px;
	margin: 0 auto; /* Centraliza e garante alinhamento */
}

.marryplay-section__header-content {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.marryplay-section__title {
	font-family: var(--font-family-headings); /* Bricolage Grotesque */
	font-size: var(--font-size-title); /* 4rem */
	font-weight: var(--font-weight-extrabold);
	line-height: var(--line-height-title); /* 1.1 */
	color: #ffffff;
	margin: 0;
}

.marryplay-section__description {
	font-family: var(--font-family-body); /* Globotipo Rounded */
	font-size: var(--font-size-description); /* 1.5rem */
	font-weight: var(--font-weight-normal);
	line-height: 1.5;
	color: #ffffff;
	margin: 0;
}

.marryplay-section__description p {
	margin: 0;
}

/* Card Grande - Vídeo Destaque */
.marryplay-section__featured {
	width: 100%;
	max-width: 1216px;
	overflow: visible; /* Permite que a sombra do card de destaque seja visível */
	margin: 0 auto; /* Centraliza e garante alinhamento */
}

.marryplay-section__featured-card {
	background: #ffffff;
	border-radius: 24px;
	padding: 24px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	display: block;
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.marryplay-section__featured-card--link:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	text-decoration: none;
	color: inherit;
}

.marryplay-section__featured-thumbnail {
	position: relative;
	width: 100%;
	aspect-ratio: 359 / 161;
	border-radius: 16px;
	overflow: hidden;
	background: #000000;
}

.marryplay-section__featured-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.marryplay-section__featured-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #333333;
	color: #ffffff;
	padding: 20px;
	text-align: center;
	font-family: var(--font-family-body);
	font-size: var(--font-size-base);
}

.marryplay-section__play-button--big {
	position: absolute;
	bottom: -16.07%;
	right: -16.07%;
	width: 112px;
	height: 112px;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: transform 0.3s ease;
	z-index: 10;
	text-decoration: none; /* Para links */
	display: block; /* Para links */
}

.marryplay-section__play-button--big:hover,
.marryplay-section__play-button--big:focus {
	transform: scale(1.1);
}

.marryplay-section__play-button--big:focus-visible {
	outline: 2px solid #fdc627;
	outline-offset: 4px;
	border-radius: 50%;
}

.marryplay-section__play-button--big svg {
	width: 100%;
	height: 100%;
	display: block;
	color: #d2a533; /* Amarelo do design */
}

.marryplay-section__featured-title {
	margin-top: 16px;
	padding: 0 8px;
}

.marryplay-section__featured-title h3 {
	font-family: var(--font-family-body);
	font-size: 1.25rem;
	font-weight: var(--font-weight-semibold);
	line-height: 1.4;
	color: #333333;
	margin: 0;
}

/* Carrossel de Vídeos com Swiper */
.marryplay-section__carousel {
	width: 100%;
	max-width: 1216px;
	position: relative;
	padding-bottom: 80px; /* Espaço aumentado para paginação ficar abaixo dos cards */
	overflow: visible !important; /* Permite que as sombras dos cards sejam visíveis */
	margin: 0 auto; /* Centraliza e garante alinhamento com o card de destaque */
}

/* Paginação do Swiper - posicionada abaixo dos cards */
.marryplay-section__carousel .swiper-pagination {
	bottom: 10px !important; /* Posiciona no fundo do container, acima do padding */
	position: absolute;
	left: 50% !important;
	transform: translateX(-50%) !important; /* Centraliza horizontalmente */
	width: auto !important;
	z-index: 10;
}

.marryplay-section__carousel.swiper {
	overflow: visible !important; /* Sobrescreve o overflow hidden padrão do Swiper */
}

.marryplay-section__carousel .swiper-wrapper {
	display: flex;
	align-items: stretch;
	overflow: visible !important; /* Permite que a sombra seja visível */
	margin-bottom: 50px !important; /* Cria espaço abaixo dos cards para a paginação */
}

.marryplay-section__carousel .swiper-slide {
	width: auto !important; /* Remove largura fixa para que fiquem mais próximos */
	height: auto;
	padding: 0; /* Sem padding para manter alinhamento com o card de destaque */
	box-sizing: border-box;
	flex-shrink: 0; /* Previne que os slides encolham */
}

.marryplay-section__video-card {
	width: 280px;
	min-width: 280px; /* Largura mínima para manter consistência */
	background: #d2a533; /* Amarelo do design */
	border-radius: 24px;
	padding: 8px;
	box-shadow: 16px 16px 2px 0px rgba(0, 0, 0, 0.25);
	position: relative;
	overflow: visible; /* Mudado de hidden para visible para não cortar a sombra */
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	margin: 0; /* Remove qualquer margem que possa interferir */
	margin-right: 0; /* Garante que não há margem direita extra */
}

.marryplay-section__video-card:hover,
.marryplay-section__video-card--link:hover {
	transform: translateY(-4px);
	box-shadow: 20px 20px 4px 0px rgba(0, 0, 0, 0.3);
	text-decoration: none;
	color: inherit;
}

.marryplay-section__video-thumbnail {
	position: relative;
	width: 100%;
	height: 160px;
	border-radius: 16px;
	overflow: hidden;
	background: #000000;
}

.marryplay-section__video-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.marryplay-section__video-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #333333;
	color: #ffffff;
	padding: 12px;
	text-align: center;
	font-family: var(--font-family-body);
	font-size: var(--font-size-sm);
}

.marryplay-section__video-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 16px;
	pointer-events: none;
}

.marryplay-section__play-button--small {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 64px;
	height: 64px;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: transform 0.3s ease;
	z-index: 10;
	text-decoration: none; /* Para links */
	display: block; /* Para links */
}

.marryplay-section__play-button--small:hover,
.marryplay-section__play-button--small:focus {
	transform: translate(-50%, -50%) scale(1.1);
}

.marryplay-section__play-button--small:focus-visible {
	outline: 2px solid #fdc627;
	outline-offset: 4px;
	border-radius: 50%;
}

.marryplay-section__play-button--small svg {
	width: 100%;
	height: 100%;
	display: block;
	color: #ffffff;
}

.marryplay-section__video-title {
	margin-top: 12px;
	padding: 0 8px 8px;
	flex-grow: 1;
	display: flex;
	align-items: flex-start;
}

.marryplay-section__video-title h4 {
	font-family: var(--font-family-body);
	font-size: 1rem;
	font-weight: var(--font-weight-semibold);
	line-height: 1.4;
	color: #333333;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Modal/Player de Vídeo */
.marryplay-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.marryplay-modal--active {
	opacity: 1;
	visibility: visible;
}

.marryplay-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(4px);
	cursor: pointer;
}

.marryplay-modal__content {
	position: relative;
	width: 90%;
	max-width: 1200px;
	aspect-ratio: 16 / 9;
	background: #000000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	z-index: 1;
}

.marryplay-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border: none;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease, transform 0.3s ease;
	z-index: 10;
}

.marryplay-modal__close:hover {
	background: rgba(255, 255, 255, 1);
	transform: rotate(90deg);
}

.marryplay-modal__close:focus {
	outline: 2px solid #fdc627;
	outline-offset: 2px;
}

.marryplay-modal__close svg {
	width: 20px;
	height: 20px;
	color: #333;
	pointer-events: none;
}

.marryplay-modal__player {
	position: relative;
	width: 100%;
	height: 100%;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.marryplay-modal__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Swiper Navigation e Pagination */
.marryplay-section__carousel .swiper-button-prev,
.marryplay-section__carousel .swiper-button-next {
	color: #ffffff;
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	transition: background 0.3s ease;
}

.marryplay-section__carousel .swiper-button-prev:hover,
.marryplay-section__carousel .swiper-button-next:hover {
	background: rgba(255, 255, 255, 0.3);
}

.marryplay-section__carousel .swiper-button-prev::after,
.marryplay-section__carousel .swiper-button-next::after {
	font-size: 20px;
	font-weight: bold;
}

.marryplay-section__carousel .swiper-pagination-bullet {
	background: rgba(255, 255, 255, 0.5);
	opacity: 1;
	width: 12px;
	height: 12px;
}

.marryplay-section__carousel .swiper-pagination-bullet-active {
	background: #ffffff;
}

/* Responsividade */

/* Breakpoint para notebooks de tela pequena (1366x768) */
@media (max-width: 1366px) {
	.marryplay-section {
		padding: 60px 80px;
		gap: 56px;
	}
	
	.marryplay-section__header,
	.marryplay-section__featured,
	.marryplay-section__carousel {
		max-width: 1100px;
	}
	
	.marryplay-section__video-card {
		width: 260px;
	}
}

/* Breakpoint tablet (até 991.98px) */
@media (max-width: 991.98px) {
	.marryplay-section {
		padding: 50px 32px;
		gap: 40px;
	}
	
	.marryplay-section__header,
	.marryplay-section__featured,
	.marryplay-section__carousel {
		max-width: 100%;
	}
	
	.marryplay-section__title {
		font-size: var(--font-size-title-mobile); /* 2.5rem */
	}
	
	.marryplay-section__description {
		font-size: var(--font-size-description-mobile); /* 1.125rem */
	}
	
	.marryplay-section__featured-card {
		padding: 20px;
	}
	
	.marryplay-section__video-card {
		width: 220px;
	}
	
	.marryplay-section__carousel .swiper-button-prev,
	.marryplay-section__carousel .swiper-button-next {
		width: 40px;
		height: 40px;
	}
	
	.marryplay-section__carousel .swiper-button-prev::after,
	.marryplay-section__carousel .swiper-button-next::after {
		font-size: 16px;
	}
	
	.marryplay-section__play-button--big {
		width: 88px;
		height: 88px;
	}
}

/* Breakpoint mobile (até 767.98px) */
@media (max-width: 767.98px) {
	.marryplay-section {
		padding: 32px 16px;
		gap: 24px;
		overflow-x: hidden; /* Garante que não há overflow horizontal */
	}
	
	.marryplay-section__header-content {
		gap: 12px;
	}
	
	.marryplay-section__title {
		font-size: var(--font-size-title-mobile); /* 2.5rem */
		line-height: 1.2;
	}
	
	.marryplay-section__description {
		font-size: var(--font-size-description-mobile); /* 1.125rem */
		line-height: 1.5;
		padding: 0 8px;
	}
	
	.marryplay-section__featured {
		width: 100%;
	}
	
	.marryplay-section__featured-card {
		padding: 12px;
		border-radius: 16px;
	}
	
	.marryplay-section__featured-thumbnail {
		border-radius: 12px;
	}
	
	.marryplay-section__featured-title {
		margin-top: 12px;
		padding: 0 4px;
	}
	
	.marryplay-section__featured-title h3 {
		font-size: 1rem;
		line-height: 1.3;
	}
	
	/* Remove o ícone de play no mobile */
	.marryplay-section__play-button--big {
		display: none !important;
	}
	
	.marryplay-section__carousel {
		width: 100%;
		max-width: 100%;
		padding-bottom: 80px; /* Espaço aumentado para paginação ficar abaixo dos cards */
		overflow: hidden; /* Previne overflow no carrossel */
	}
	
	/* Paginação mais abaixo no mobile para não sobrepor os cards */
	.marryplay-section__carousel .swiper-pagination {
		bottom: 10px !important; /* Posiciona no fundo do container, acima do padding */
		left: 50% !important;
		transform: translateX(-50%) !important; /* Centraliza horizontalmente */
		width: auto !important;
		z-index: 10;
	}
	
	.marryplay-section__carousel .swiper-wrapper {
		overflow: visible; /* Permite sombras, mas o container controla o overflow */
		margin-bottom: 50px !important; /* Cria espaço abaixo dos cards para a paginação no mobile */
	}
	
	.marryplay-section__video-card {
		width: 180px;
		padding: 6px;
		border-radius: 16px;
	}
	
	.marryplay-section__carousel .swiper-button-prev,
	.marryplay-section__carousel .swiper-button-next {
		display: none; /* Esconde navegação em mobile */
	}
	
	.marryplay-section__video-thumbnail {
		height: 100px;
		border-radius: 12px;
	}
	
	.marryplay-section__video-title {
		margin-top: 8px;
		padding: 0 4px 6px;
	}
	
	.marryplay-section__video-title h4 {
		font-size: 0.875rem;
		line-height: 1.3;
	}
	
	.marryplay-section__play-button--small {
		width: 48px;
		height: 48px;
	}
	
	.marryplay-section__play-button--small svg {
		width: 100%;
		height: 100%;
	}
	
	.marryplay-modal__content {
		width: 95%;
		margin: 0 16px;
	}
	
	.marryplay-modal__close {
		top: 8px;
		right: 8px;
		width: 32px;
		height: 32px;
	}
	
	.marryplay-modal__close svg {
		width: 16px;
		height: 16px;
	}
}

