.loaf-feed {
	padding: 1.25rem 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	display: flex;
	justify-content: center;
	background: #fff;
}
.loaf-feed__inner { width: 100%; }

.loaf-feed__profile { display: flex; align-items: center; justify-content: center; gap: 2rem; padding: 1rem 1.5rem; flex-wrap: wrap; }
.loaf-feed__profile-left { display: flex; align-items: center; gap: 0.875rem; }
.loaf-feed__avatar-ring { width: 56px; height: 56px; border-radius: 50%; padding: 3px; background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.loaf-feed__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; display: block; }
.loaf-feed__info { display: flex; flex-direction: column; gap: 0.125rem; }
.loaf-feed__name { font-size: 0.9375rem; font-weight: 600; color: #262626; line-height: 1.3; }
.loaf-feed__handle { font-size: 0.8125rem; color: #8e8e8e; line-height: 1.3; }
.loaf-feed__profile-right { display: flex; align-items: center; gap: 1.5rem; }
.loaf-feed__stats { display: flex; gap: 1.5rem; }
.loaf-feed__stat { display: flex; flex-direction: column; align-items: center; gap: 0; }
.loaf-feed__stat-number { font-size: 1rem; font-weight: 700; color: #262626; line-height: 1.3; }
.loaf-feed__stat-label { font-size: 0.75rem; color: #8e8e8e; line-height: 1.3; }
.loaf-feed__follow-btn { display: inline-flex; align-items: center; gap: 0.375rem; background: var(--loaf-accent, #e50809); color: #fff; font-size: 0.875rem; font-weight: 600; padding: 0.5rem 1.25rem; border-radius: 4px; text-decoration: none; transition: filter 0.2s ease; white-space: nowrap; }
.loaf-feed__follow-btn:hover { filter: brightness(0.92); color: #fff; }
.loaf-feed__follow-btn svg { flex-shrink: 0; }

.loaf-feed__carousel { position: relative; }
.loaf-feed__track { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.loaf-feed__track::-webkit-scrollbar { display: none; }
.loaf-feed__slide { flex: 0 0 calc(20% - 3.2px); scroll-snap-align: start; min-width: 0; }
.loaf-feed__image-link { display: block; aspect-ratio: 3 / 4; overflow: hidden; }
.loaf-feed__image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.loaf-feed__image-link:hover .loaf-feed__image { transform: scale(1.05); }
.loaf-feed__caption { font-size: 0.8125rem; color: #8e8e8e; line-height: 1.5; margin: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.loaf-feed__prev,
.loaf-feed__next { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 56px; background: rgba(0, 0, 0, 0.6); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; z-index: 2; transition: background 0.2s ease; padding: 0; }
.loaf-feed__prev { left: 0; border-radius: 0 56px 56px 0; justify-content: center; padding-right: 4px; }
.loaf-feed__next { right: 0; border-radius: 56px 0 0 56px; justify-content: center; padding-left: 4px; }
.loaf-feed__prev:hover,
.loaf-feed__next:hover { background: rgba(0, 0, 0, 0.85); }

.loaf-feed__empty { text-align: center; color: #8e8e8e; padding: 2rem; }

@media (max-width: 1024px) {
	.loaf-feed__slide { flex: 0 0 calc(33.333% - 2.67px); }
}
@media (max-width: 600px) {
	.loaf-feed__profile { flex-direction: column; gap: 1rem; text-align: center; }
	.loaf-feed__profile-left { flex-direction: column; }
	.loaf-feed__profile-right { flex-direction: column; gap: 1rem; }
	.loaf-feed__slide { flex: 0 0 100%; }
	.loaf-feed__image-link { aspect-ratio: 1 / 1; }
	.loaf-feed__image { object-position: center; }
	.loaf-feed__prev,
	.loaf-feed__next { width: 28px; height: 48px; }
}

/* --- Accessibility & motion --- */
.loaf-feed__prev[disabled],
.loaf-feed__next[disabled] { opacity: 0; pointer-events: none; }

.loaf-feed__image-link:focus-visible,
.loaf-feed__follow-btn:focus-visible,
.loaf-feed__prev:focus-visible,
.loaf-feed__next:focus-visible { outline: 2px solid var(--loaf-accent, #e50809); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.loaf-feed__track { scroll-behavior: auto; }
	.loaf-feed__image { transition: none; }
	.loaf-feed__image-link:hover .loaf-feed__image { transform: none; }
}
