/* Metzina · Creadors — Frontend styles
   B&N editorial. Override des del tema si cal. */

.mc-feed {
	max-width: 1080px;
	margin: 0 auto;
	font-family: 'Asap', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #0a0a0a;
}

.mc-feed-header {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 18px 0 22px;
	border-bottom: 1px solid #d8d8d8;
	margin-bottom: 24px;
}
.mc-feed-avatar {
	width: 60px; height: 60px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.mc-feed-name {
	font-family: 'Eksell Display', 'Playfair Display', Georgia, serif;
	font-weight: 800;
	font-size: 22px;
	line-height: 1.1;
	color: #0a0a0a;
}
.mc-feed-handle {
	color: #555;
	font-size: 14px;
	text-decoration: none;
}
.mc-feed-handle:hover { color: #0a0a0a; text-decoration: underline; }

.mc-feed-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
}
@media (min-width: 768px) {
	.mc-feed-grid { gap: 8px; grid-template-columns: repeat(3, 1fr); }
}

.mc-feed-item {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f4f4f2;
}
.mc-feed-item img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}
.mc-feed-item:hover img { transform: scale(1.04); }

.mc-feed-badge {
	position: absolute;
	top: 8px; right: 8px;
	background: rgba(0,0,0,.75);
	color: #fff;
	font-size: 11px;
	padding: 2px 6px;
	border-radius: 2px;
	pointer-events: none;
}

.mc-feed-footer {
	margin-top: 24px;
	text-align: center;
	font-size: 14px;
	letter-spacing: 1px;
}
.mc-feed-footer a {
	color: #0a0a0a;
	text-decoration: none;
	border-bottom: 1px solid #0a0a0a;
	padding-bottom: 2px;
}
.mc-feed-footer a:hover { color: #555; border-color: #555; }

.mc-empty {
	padding: 60px 20px;
	text-align: center;
	color: #888;
	font-style: italic;
	font-family: 'Eksell Display', 'Playfair Display', Georgia, serif;
}

/* Grid de creadors */
.mc-creators-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 28px;
	max-width: 1080px;
	margin: 0 auto;
	font-family: 'Asap', sans-serif;
}
.mc-creator-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 24px 16px;
	border-top: 1px solid #d8d8d8;
}
.mc-creator-card .mc-avatar {
	width: 72px; height: 72px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 14px;
}
.mc-creator-name {
	font-family: 'Eksell Display', 'Playfair Display', serif;
	font-weight: 800;
	font-size: 18px;
	color: #0a0a0a;
	margin-bottom: 6px;
}
.mc-creator-link {
	color: #555;
	font-size: 13px;
	text-decoration: none;
	margin-bottom: 4px;
}
.mc-creator-link:hover { color: #0a0a0a; }
.mc-creator-count {
	font-size: 12px;
	color: #888;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-top: 4px;
}

/* Reels d'un creador */
.mc-reels {
	max-width: 1080px;
	margin: 0 auto;
	font-family: 'Asap', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #0a0a0a;
}
.mc-reels-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
@media (min-width: 768px) {
	.mc-reels-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
.mc-reel {
	margin: 0;
	display: flex;
	flex-direction: column;
}
.mc-reel-video {
	width: 100%;
	aspect-ratio: 9 / 16;
	object-fit: cover;
	background: #0a0a0a;
	display: block;
	border-radius: 14px;
	overflow: hidden;
}
.mc-reel-caption {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.4;
	color: #555;
}
.mc-reel-caption a {
	color: #555;
	text-decoration: none;
}
.mc-reel-caption a:hover { color: #0a0a0a; text-decoration: underline; }

/* Slider horitzontal (mostra 4, llisca per veure'n més) — amplada completa del contenidor */
.mc-reels-slider {
	position: relative;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}
.mc-reels-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.mc-reels-track::-webkit-scrollbar { display: none; }
.mc-reels-track .mc-reel {
	flex: 0 0 calc((100% - 3 * 16px) / 4);
	scroll-snap-align: start;
}
@media (max-width: 1024px) {
	.mc-reels-track .mc-reel { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 600px) {
	.mc-reels-track .mc-reel { flex-basis: 78%; }
}
.mc-slider-arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	z-index: 3;
	background: #0a0a0a;
	color: #fff;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	opacity: .9;
}
.mc-slider-arrow:hover { opacity: 1; }
.mc-slider-prev { left: 8px; }
.mc-slider-next { right: 8px; }
.mc-slider-arrow[hidden] { display: none; }

/* Paginació de la graella de reels */
.mc-reels-pagination {
	margin-top: 32px;
	text-align: center;
}
.mc-reels-pagination ul.page-numbers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}
.mc-reels-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	font-family: 'Asap', -apple-system, sans-serif;
	font-size: 14px;
	text-decoration: none;
	color: #0a0a0a;
	border: 1px solid #d8d8d8;
	background: #fff;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.mc-reels-pagination a.page-numbers:hover {
	border-color: #0a0a0a;
}
.mc-reels-pagination .page-numbers.current {
	background: #0a0a0a;
	color: #fff;
	border-color: #0a0a0a;
}
.mc-reels-pagination .page-numbers.dots {
	border-color: transparent;
}

.mc-reels-cta {
	margin-top: 28px;
	text-align: center;
}
.mc-reels-btn {
	display: inline-block;
	background: #0a0a0a;
	color: #fff;
	font-family: 'Eksell Display', 'Playfair Display', Georgia, serif;
	font-size: 18px;
	letter-spacing: .5px;
	text-decoration: none;
	padding: 12px 30px;
	border: 1px solid #0a0a0a;
	transition: background .2s ease, color .2s ease;
}
.mc-reels-btn:hover {
	background: #fff;
	color: #0a0a0a;
}

/* Cantonades arrodonides també a les imatges del feed */
.mc-feed-item {
	border-radius: 8px;
}

/* Lightbox dels posts */
.mc-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
}
.mc-lightbox.is-open { display: flex; }
.mc-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10,10,10,.92);
}
.mc-lightbox-content {
	position: relative;
	z-index: 1;
	max-width: 92vw;
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.mc-lightbox-media img,
.mc-lightbox-media video {
	max-width: 92vw;
	max-height: 80vh;
	width: auto;
	height: auto;
	display: block;
	border-radius: 10px;
	background: #000;
}
.mc-lightbox-close {
	position: absolute;
	top: -44px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	padding: 0 6px;
}
.mc-lightbox-cap {
	margin-top: 14px;
	max-width: 680px;
	text-align: center;
	color: #eee;
	font-family: 'Asap', -apple-system, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}
.mc-lightbox-cap p { margin: 0 0 8px; }
.mc-lightbox-cap a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid #fff;
	padding-bottom: 2px;
	font-size: 13px;
}
.mc-lightbox-cap a:hover { color: #bbb; border-color: #bbb; }

/* Navegació del carrousel dins el lightbox */
.mc-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #fff;
	font-size: 48px;
	line-height: 1;
	cursor: pointer;
	padding: 0 10px;
	z-index: 2;
	opacity: .85;
}
.mc-lightbox-nav:hover { opacity: 1; }
.mc-lightbox-prev { left: -58px; }
.mc-lightbox-next { right: -58px; }
.mc-lightbox-counter {
	margin-top: 10px;
	color: #bbb;
	font-size: 13px;
	font-family: 'Asap', -apple-system, sans-serif;
	letter-spacing: 1px;
}
@media (max-width: 768px) {
	.mc-lightbox-prev { left: 2px; }
	.mc-lightbox-next { right: 2px; }
	.mc-lightbox-nav { font-size: 36px; }
}
