/* Explore v2 (config/explore2.php). Cards, carousel and hover preview reuse the HOT/WOW
   styles via the .trending wrapper; this file only adds what Explore v2 introduces. */

.explore2 {
	color: #fff;
}

/* Category / channel buttons */
.explore2-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 6px 0 18px;
}
.explore2-chip {
	min-height: 40px;
	padding: 0 16px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.06);
	color: #e8ecef;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.explore2-chip:hover {
	border-color: #0ab39f;
	background: rgba(10, 179, 159, 0.14);
}
.explore2-chip.is-on {
	background: #0ab39f;
	border-color: #0ab39f;
	color: #04201c;
	font-weight: 600;
}
.explore2-chip:focus-visible,
.explore2-more:focus-visible,
.explore2-back:focus-visible,
.explore2-load-more:focus-visible {
	outline: 2px solid #3fd6c1;
	outline-offset: 2px;
}

/* Rows */
.explore2-row {
	margin-bottom: 8px;
}
.explore2-row-head {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin: 14px 0 6px;
}
.explore2-row-title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #fff;
}
.explore2-more {
	min-height: 44px;
	padding: 0 4px;
	border: 0;
	background: transparent;
	color: #0ab39f;
	font-size: 14px;
	cursor: pointer;
}
.explore2-more:hover {
	color: #3fd6c1;
}

/* Card additions */
/* Each card keeps its badge/title/click-area layers to itself, and the hovered card (which holds
   the hover preview) sits above its neighbours; otherwise a neighbour's title or click area covers
   the preview's Play button. */
.explore2-card {
	position: relative;
	isolation: isolate;
}
.container .top .trending .explore2-card.is-hover-preview {
	z-index: 50;
}
.explore2-duration {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.78);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	pointer-events: none;
}
.explore2-card-meta {
	display: block;
	margin-top: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0;
	opacity: 0.85;
}
.explore2-badge {
	background: #0ab39f;
	color: #04201c;
}

/* Loading and messages */
.explore2-skeleton-row {
	margin: 14px 0 22px;
}
.explore2-skeleton-title {
	width: 180px;
	height: 18px;
	margin-bottom: 12px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.08);
}
.explore2-skeleton-cards {
	display: flex;
	gap: 14px;
	overflow: hidden;
}
.explore2-skeleton-cards span {
	flex: 0 0 236px;
	height: 133px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	animation: explore2-pulse 1.4s ease-in-out infinite;
}
@keyframes explore2-pulse {
	50% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
	.explore2-skeleton-cards span { animation: none; }
}
.explore2-note {
	color: #c9d0d6;
	font-size: 14px;
}

/* Category page (Show more): below the header (z 9999) and the video viewer (z 999) */
.explore2-page {
	position: fixed;
	inset: 0;
	z-index: 990;
	overflow-y: auto;
	padding-top: 90px;
	background: #0d0f12;
	color: #fff;
}
/* The carousel arrows and card menus underneath share the viewer's z-index (999); hide them
   while the category page covers the home page. */
body.explore2-page-open .btn-cirle,
body.explore2-page-open .option {
	visibility: hidden;
}
.explore2-page-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px 32px 64px;
	box-sizing: border-box;
}
.explore2-crumbs {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #9aa4ae;
	font-size: 15px;
}
.explore2-back {
	min-height: 44px;
	padding: 0 4px;
	border: 0;
	background: transparent;
	color: #0ab39f;
	font-size: 15px;
	cursor: pointer;
}
.explore2-page-head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 6px 0 14px;
}
.explore2-page-title {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	color: #fff;
}
.explore2-page-count {
	color: #9aa4ae;
	font-size: 14px;
}
.explore2-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
}
/* More specific than the shared `.container .top .trending .card` size (220×170 / 48%). */
.container .top .explore2-page .explore2-grid .card {
	width: 100%;
	height: auto;
	min-width: 0;
	margin: 0;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	background-size: cover;
	background-position: center;
	background-color: #1b2027;
}
.explore2-grid .card-body {
	position: absolute;
	inset: 0;
	z-index: 1;
	cursor: pointer;
}
.explore2-page-foot {
	display: flex;
	justify-content: center;
	padding-top: 28px;
}
.explore2-load-more {
	min-width: 180px;
	min-height: 48px;
	padding: 0 28px;
	border-radius: 24px;
	border: 1px solid #0ab39f;
	background: transparent;
	color: #3fd6c1;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.explore2-load-more:hover:not(:disabled) {
	background: rgba(10, 179, 159, 0.14);
}
.explore2-load-more:disabled {
	opacity: 0.7;
	cursor: wait;
}

/* Phones */
@media (max-width: 576px) {
	.explore2-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: none;
	}
	.explore2-chips::-webkit-scrollbar {
		display: none;
	}
	.explore2-row-title {
		font-size: 18px;
	}
	.explore2-page {
		padding-top: 70px;
	}
	.explore2-page-inner {
		padding: 12px 16px 48px;
	}
	.explore2-page-title {
		font-size: 24px;
	}
	.explore2-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
}
