/**
 * Página de Vídeos – layout premium
 * UI/UX profissional, tema vídeo (violeta/índigo)
 */

.videos-page {
	--videos-primary: #7c3aed;
	--videos-primary-dark: #6d28d9;
	--videos-bg: #faf5ff;
	--videos-border: #e9d5ff;
	--videos-text: #1e1b4b;
	--videos-muted: #6b7280;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	background: var(--videos-bg);
	color: var(--videos-text);
}

.videos-page *,
.videos-page *::before,
.videos-page *::after {
	box-sizing: inherit;
}

.videos-container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	width: 100%;
}

/* Breadcrumb */
.videos-page .videos-breadcrumb-bar {
	background: #f5f3ff;
	border-bottom: 1px solid var(--videos-border);
}

.videos-page .videos-breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--videos-muted);
	padding: 0.75rem 0;
	flex-wrap: wrap;
}

.videos-page .videos-breadcrumb a {
	color: var(--videos-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.videos-page .videos-breadcrumb a:hover {
	color: var(--videos-primary);
}

.videos-page .videos-breadcrumb-current {
	color: var(--videos-text);
	font-weight: 600;
}

.videos-page .videos-breadcrumb svg {
	width: 0.875rem;
	height: 0.875rem;
	color: #a78bfa;
	flex-shrink: 0;
}

/* Hero */
.videos-page .videos-hero {
	position: relative;
	padding: 3.5rem 0 4.5rem;
	overflow: hidden;
}

.videos-page .videos-hero-bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 40%, #4c1d95 100%);
}

.videos-page .videos-hero-pattern {
	position: absolute;
	inset: 0;
	opacity: 0.12;
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z' fill='%23ffffff' fill-opacity='0.14'/%3E%3C/svg%3E");
}

.videos-page .videos-hero-glow {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at top left, rgba(255, 255, 255, 0.35), transparent 55%),
		radial-gradient(circle at bottom right, rgba(167, 139, 250, 0.25), transparent 55%);
	pointer-events: none;
}

.videos-page .videos-hero-inner {
	position: relative;
	z-index: 1;
}

.videos-page .videos-hero-content {
	max-width: 42rem;
	margin: 0 auto;
	text-align: center;
	color: #f5f3ff;
}

.videos-page .videos-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 1rem;
	border-radius: 9999px;
	background: rgba(30, 27, 75, 0.5);
	border: 1px solid rgba(233, 213, 255, 0.6);
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 1.25rem;
	backdrop-filter: blur(10px);
}

.videos-page .videos-hero-badge svg {
	width: 1.1rem;
	height: 1.1rem;
	flex-shrink: 0;
}

.videos-page .videos-hero-title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.03em;
	margin: 0 0 1rem;
	color: #f5f3ff;
	text-shadow: 0 1px 3px rgba(30, 27, 75, 0.4);
}

.videos-page .videos-hero-desc {
	font-size: 1.05rem;
	line-height: 1.7;
	margin: 0 auto 1.5rem;
	max-width: 36rem;
	color: rgba(233, 213, 255, 0.95);
}

.videos-page .videos-hero-search {
	max-width: 32rem;
	margin: 0 auto 1.25rem;
}

.videos-page .videos-hero-search-wrap {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.75rem 1rem;
	border-radius: 1rem;
	background: rgba(30, 27, 75, 0.55);
	border: 1px solid rgba(233, 213, 255, 0.4);
	backdrop-filter: blur(12px);
}

.videos-page .videos-hero-search-wrap svg {
	width: 1.1rem;
	height: 1.1rem;
	color: rgba(233, 213, 255, 0.95);
	flex-shrink: 0;
}

.videos-page .videos-hero-input {
	flex: 1;
	min-width: 0;
	border: none;
	outline: none;
	background: transparent;
	color: #faf5ff;
	font-size: 0.95rem;
}

.videos-page .videos-hero-input::placeholder {
	color: rgba(233, 213, 255, 0.7);
}

.videos-page .videos-hero-clear {
	font-size: 0.8rem;
	font-weight: 600;
	color: #c4b5fd;
	text-decoration: none;
	padding: 0.25rem 0.7rem;
	border-radius: 9999px;
	background: rgba(30, 27, 75, 0.6);
	border: 1px solid rgba(233, 213, 255, 0.4);
	white-space: nowrap;
}

.videos-page .videos-hero-clear:hover {
	background: rgba(30, 27, 75, 0.85);
	color: #e9d5ff;
}

.videos-page .videos-hero-stats {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-top: 0.5rem;
}

.videos-page .videos-hero-stat {
	text-align: center;
}

.videos-page .videos-hero-stat-value {
	display: block;
	font-size: 1.25rem;
	font-weight: 700;
	color: #f5f3ff;
	margin-bottom: 0.1rem;
}

.videos-page .videos-hero-stat-label {
	font-size: 0.8rem;
	color: rgba(233, 213, 255, 0.95);
}

.videos-page .videos-hero-wave {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 70px;
	background: linear-gradient(to top, var(--videos-bg), transparent);
	pointer-events: none;
}

/* Filter bar */
.videos-page .videos-filter-bar-wrap {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(250, 245, 255, 0.97);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--videos-border);
	padding: 0.75rem 0;
	margin-bottom: 1.5rem;
}

.videos-page .videos-filter-bar {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	overflow-x: auto;
	padding-bottom: 0.15rem;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.videos-page .videos-filter-bar::-webkit-scrollbar {
	display: none;
}

.videos-page .videos-filter-icon {
	width: 1rem;
	height: 1rem;
	color: var(--videos-muted);
	flex-shrink: 0;
}

.videos-page .videos-filter-pill {
	flex-shrink: 0;
	padding: 0.4rem 0.9rem;
	border-radius: 9999px;
	font-size: 0.8rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--videos-muted);
	background: #f5f3ff;
	border: 1px solid transparent;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.videos-page .videos-filter-pill:hover {
	background: #ede9fe;
	color: var(--videos-text);
}

.videos-page .videos-filter-pill-active {
	background: var(--videos-primary);
	color: #f5f3ff;
	border-color: var(--videos-primary);
	box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

.videos-page .videos-filter-pill-active:hover {
	background: var(--videos-primary-dark);
	color: #f5f3ff;
}

/* Sections */
.videos-page .videos-section {
	padding: 2rem 0 2.5rem;
}

.videos-page .videos-section-featured {
	padding-top: 1.5rem;
}

.videos-page .videos-section-header {
	margin-bottom: 1.25rem;
}

.videos-page .videos-section-header-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem;
}

.videos-page .videos-section-title {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--videos-text);
	margin: 0 0 0.25rem;
}

.videos-page .videos-section-title svg {
	width: 1.25rem;
	height: 1.25rem;
	color: var(--videos-primary);
}

.videos-page .videos-section-subtitle {
	font-size: 0.9rem;
	color: var(--videos-muted);
	margin: 0;
}

.videos-page .videos-section-subtitle strong {
	color: var(--videos-text);
}

.videos-page .videos-results-pill {
	display: inline-flex;
	align-items: center;
	margin-left: 0.35rem;
	padding: 0.15rem 0.5rem;
	border-radius: 9999px;
	background: #ede9fe;
	color: var(--videos-primary-dark);
	font-size: 0.72rem;
	font-weight: 600;
}

/* Grid */
.videos-page .videos-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	min-width: 0;
}

.videos-page .videos-grid-featured {
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.videos-page .videos-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.videos-page .videos-grid-featured {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.videos-page .videos-grid-all {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem;
	}
}

/* Video card */
.videos-page .video-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 1rem;
	border: 1px solid var(--videos-border);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 3px rgba(30, 27, 75, 0.06);
	transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.videos-page .video-card:hover {
	border-color: var(--videos-primary);
	box-shadow: 0 12px 32px -12px rgba(124, 58, 237, 0.35);
	transform: translateY(-2px);
}

.videos-page .video-card-thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #1e1b4b;
}

.videos-page .video-card-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.videos-page .video-card:hover .video-card-thumb img {
	transform: scale(1.05);
}

.videos-page .video-card-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(30, 27, 75, 0.4);
	opacity: 0.9;
	transition: background 0.25s ease, opacity 0.25s ease;
}

.videos-page .video-card:hover .video-card-play {
	background: rgba(124, 58, 237, 0.5);
	opacity: 1;
}

.videos-page .video-card-play svg {
	width: 4rem;
	height: 4rem;
	color: #fff;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.videos-page .video-card-featured .video-card-play svg {
	width: 3.5rem;
	height: 3.5rem;
}

.videos-page .video-card-duration {
	position: absolute;
	bottom: 0.5rem;
	right: 0.5rem;
	padding: 0.2rem 0.5rem;
	border-radius: 0.25rem;
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
}

.videos-page .video-card-badge {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	padding: 0.2rem 0.5rem;
	border-radius: 0.25rem;
	background: var(--videos-primary);
	color: #f5f3ff;
	font-size: 0.7rem;
	font-weight: 700;
}

.videos-page .video-card-body {
	padding: 1rem 1.1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.videos-page .video-card-category {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--videos-primary);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 0.35rem;
}

.videos-page .video-card-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--videos-text);
	margin: 0 0 0.4rem;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.videos-page .video-card:hover .video-card-title {
	color: var(--videos-primary);
}

.videos-page .video-card-excerpt {
	font-size: 0.85rem;
	color: var(--videos-muted);
	line-height: 1.5;
	margin: 0 0 0.5rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.videos-page .video-card-meta {
	font-size: 0.78rem;
	color: #9ca3af;
	margin-top: auto;
}

/* Empty state */
.videos-page .videos-empty {
	text-align: center;
	padding: 3rem 1.5rem;
	background: #f5f3ff;
	border-radius: 1rem;
	border: 1px dashed var(--videos-border);
}

.videos-page .videos-empty-icon {
	width: 4rem;
	height: 4rem;
	margin: 0 auto 1rem;
	display: block;
	color: #a78bfa;
}

.videos-page .videos-empty h3 {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--videos-text);
	margin: 0 0 0.35rem;
}

.videos-page .videos-empty p {
	font-size: 0.9rem;
	color: var(--videos-muted);
	margin: 0 0 1rem;
}

.videos-page .videos-empty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 1.2rem;
	border-radius: 9999px;
	border: 1px solid var(--videos-primary);
	background: #ede9fe;
	color: var(--videos-primary-dark);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.videos-page .videos-empty-btn:hover {
	background: #ddd6fe;
	color: #4c1d95;
}

/* Legal section */
.videos-page .videos-legal-section {
	padding: 2rem 0 3rem;
	background: var(--videos-bg);
	border-top: 1px solid var(--videos-border);
}

.videos-page .videos-legal {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	padding: 1.25rem 1.35rem;
	background: #ede9fe;
	border-radius: 1rem;
	border: 1px solid #ddd6fe;
	font-size: 0.85rem;
	color: #5b21b6;
	line-height: 1.7;
}

.videos-page .videos-legal-icon {
	flex-shrink: 0;
	color: var(--videos-primary);
}

.videos-page .videos-legal-icon svg {
	width: 1.2rem;
	height: 1.2rem;
}

/* Scroll top */
body .videos-scroll-top {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	z-index: 50;
	width: 2.75rem;
	height: 2.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--videos-primary);
	color: #f5f3ff;
	border: none;
	border-radius: 9999px;
	box-shadow: 0 4px 14px rgba(124, 58, 237, 0.45);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body .videos-scroll-top:hover {
	background: var(--videos-primary-dark);
	transform: scale(1.08);
	box-shadow: 0 6px 22px rgba(109, 40, 217, 0.5);
}

body .videos-scroll-top svg {
	width: 1.1rem;
	height: 1.1rem;
}

/* Paginação (SEO-friendly, acessível) */
.videos-page .videos-pagination {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--videos-border);
}

.videos-page .videos-pagination-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.videos-page .videos-pagination-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.videos-page .videos-pagination-link,
.videos-page .videos-pagination-current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.65rem;
	font-size: 0.9rem;
	font-weight: 500;
	border-radius: 0.6rem;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.videos-page .videos-pagination-link {
	color: var(--videos-text);
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--videos-border);
}

.videos-page .videos-pagination-link:hover {
	background: #ede9fe;
	border-color: var(--videos-primary);
	color: var(--videos-primary-dark);
}

.videos-page .videos-pagination-current {
	background: var(--videos-primary);
	color: #fff;
	border: 1px solid var(--videos-primary);
	cursor: default;
}

.videos-page .videos-pagination-ellipsis {
	min-width: 2.5rem;
	height: 2.5rem;
	align-items: center;
	justify-content: center;
	color: var(--videos-muted);
	font-size: 0.9rem;
	user-select: none;
}

.videos-page .videos-pagination-prev .videos-pagination-link,
.videos-page .videos-pagination-next .videos-pagination-link {
	padding-left: 0.9rem;
	padding-right: 0.9rem;
}

.videos-page .videos-pagination-link svg {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}
