/* Cutplay — Home: vídeos em destaque, filtros discretos */

.cutplay-home {
	--cp-surface: rgba(255, 255, 255, 0.96);
	--cp-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
	--cp-radius: 18px;
	--cp-muted: #94a3b8;
}

.cutplay-home .header {
	background: rgba(255, 255, 255, 0.88) !important;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.cutplay-home .header .title {
	font-weight: 700;
	font-size: 1.05rem;
	background: linear-gradient(120deg, #fe9063 0%, #704ffe 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.cutplay-home .page-content {
	padding-top: 4px;
}

.cutplay-home .container.p-b50 {
	padding-left: 10px;
	padding-right: 10px;
	padding-bottom: 2rem !important;
}

/* Layout: filtros no topo, feed abaixo */
.cp-home-layout {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.cp-feed-section {
	margin-bottom: 0.5rem;
}

/* ---- Filtros discretos (topo) ---- */
.cp-filters-zone {
	margin-bottom: 0.65rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cp-filters-zone::before {
	content: "Filtrar";
	display: block;
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--cp-muted);
	margin-bottom: 0.45rem;
	padding-left: 2px;
}

.cp-section,
.cp-filter-step {
	background: transparent;
	border-radius: 0;
	padding: 0;
	margin-bottom: 0.35rem;
	box-shadow: none;
	border: none;
}

.cp-section-title,
.cp-section-sub,
.cp-filters-label,
.cp-hero {
	display: none !important;
}

.cp-filters-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: flex-end;
	margin-bottom: 0.25rem;
}

.cp-filter-chip {
	display: inline-block;
	margin-bottom: 0;
	opacity: 0.92;
}

.cp-filter-chip .detail {
	font-size: 0.65rem !important;
	color: var(--cp-muted) !important;
}

.cp-filter-chip .detail strong {
	font-weight: 600 !important;
	font-size: 0.62rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.cp-filter-chip .live-text {
	font-size: 8px;
	padding: 1px 4px;
	line-height: 10px;
	bottom: -5px;
}

/* Ícones de filtro menores */
.cp-filters-zone .story-bx {
	width: 50px !important;
	margin-bottom: 2px;
	background: linear-gradient(180deg, rgba(254, 144, 99, 0.7) 0%, rgba(112, 79, 254, 0.6) 100%) !important;
	box-shadow: none !important;
}

.cp-filters-zone .story-bx img {
	max-width: 38px !important;
	height: 38px !important;
	border-width: 2px !important;
}

.cp-filters-zone .categore-box .detail {
	font-size: 0.68rem !important;
	font-weight: 500 !important;
	color: #64748b !important;
}

.cp-filters-compact {
	margin-bottom: 0.15rem !important;
}

.cp-filters-compact .author-notification {
	margin-bottom: 0.25rem !important;
}

.spanFiltro {
	color: #94a3b8 !important;
	font-weight: 600 !important;
}

.cp-filter-chip .detail div {
	margin: 0;
	line-height: 1.15;
}

/* ---- Feed em evidência ---- */
.cutplay-home .post-area {
	max-width: 100%;
	margin: 0;
	padding: 0;
}

.cutplay-home .post-card,
.cutplay-home .cp-post-card {
	display: flex;
	flex-direction: column;
	background: transparent;
	border-radius: 0;
	padding: 0;
	margin-bottom: 1.25rem;
	box-shadow: none;
	border: none;
}

.cutplay-home .post-card .dz-media {
	order: -1;
	margin: 0 -10px 0.35rem;
}

.cutplay-home .post-card .top-meta {
	order: 0;
	margin-bottom: 0.2rem;
	padding: 0 2px;
}

.cutplay-home .post-card .video-comments {
	order: 1;
}

.cutplay-home .post-card .media.media-40 img {
	width: 32px;
	height: 32px;
}

.cutplay-home .post-card .meta-content .title {
	font-size: 0.82rem;
}

.cutplay-home .post-card .meta-content .title a {
	color: #334155;
	font-weight: 600;
}

.cutplay-home .post-card .meta-list li {
	color: var(--cp-muted);
	font-size: 0.7rem;
}

/* Horizontal e demais formatos */
.cutplay-home .post-card:not(.cp-feed-vertical) .videofeed {
	border-radius: 0 !important;
	box-shadow: none;
	width: 100%;
	display: block;
	min-height: 0 !important;
	max-height: 85vh;
	object-fit: contain;
	background: #0f172a;
}

/* Vertical: proporção 9:16, sem cortar laterais */
.cutplay-home .cp-feed-vertical .dz-media {
	display: flex;
	justify-content: center;
}

.cutplay-home .cp-feed-vertical .reel-area {
	position: relative;
	width: 100%;
	max-width: min(100%, calc(66vh * 9 / 16));
	height: auto !important;
	margin: 0 auto;
	border-radius: 14px;
	overflow: hidden;
	background: #0f172a;
}

.cutplay-home .cp-feed-vertical .reel-area video.videofeed-vertical {
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: 65vh !important;
	object-fit: contain !important;
	object-position: center center;
	display: block;
	border-radius: 14px !important;
	background: #0f172a;
}

.cutplay-home .cp-feed-vertical .video-loading {
	border-radius: 14px;
	max-height: 66vh;
}

.cutplay-home .video-comments {
	padding: 0 2px;
	margin-top: 0;
	position: relative;
	z-index: 3;
}

.cutplay-home .author-notification h4,
.cutplay-home .author-notification h6 {
	display: none;
}

#loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

#loading-overlay .spinner {
	width: 42px;
	height: 42px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fe9063;
	border-radius: 50%;
	animation: cp-spin 0.8s linear infinite;
}

@keyframes cp-spin {
	to { transform: rotate(360deg); }
}
