/**
 * All My Vinyl — Activity feed (2.10.0)
 * [amv_activity] and [amv_recent_activity]. Breakpoint: (max-width: 767px)
 * only, as in amv.css. The old .amv-activity__* rules in amv.css and
 * amv-release.css are no longer used.
 */

.amv-feed {
	display: grid;
	gap: 1rem;
	min-width: 0;
}

/* Filters: same look as the Top 5 / Wishlist tabs */
.amv-feed__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.amv-feed__filter {
	background: none;
	border: 1px solid var(--accent, #1a1a2e);
	color: var(--accent, #1a1a2e);
	padding: 6px 14px;
	border-radius: 40px;
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.amv-feed__filter:hover,
.amv-feed__filter--active {
	background: var(--accent, #1a1a2e);
	color: var(--base-3, #fff);
}

.amv-feed__filter:focus-visible {
	outline: 2px solid var(--accent, #1a1a2e);
	outline-offset: 2px;
}

.amv-feed__list {
	display: grid;
	gap: 0.75rem;
	min-width: 0;
}

.amv-feed[aria-busy="true"] .amv-feed__list {
	opacity: 0.6;
	transition: opacity 0.2s;
}

/* Entry */
.amv-feed__item {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	min-width: 0;
	padding: 1rem 1.1rem;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.amv-feed__avatar {
	flex: none;
}

.amv-feed__avatar img {
	display: block;
	width: 48px;
	height: 48px;
	max-width: none;
	border-radius: 50%;
	object-fit: cover;
}

.amv-feed__body {
	flex: 1;
	min-width: 0;
	display: grid;
	gap: 0.6rem;
}

.amv-feed__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.amv-feed__user,
.amv-feed__title {
	font-weight: 700;
	color: var(--accent, #1a1a2e);
	text-decoration: none;
}

.amv-feed__user:hover,
.amv-feed__title:hover {
	text-decoration: underline;
}

/* Covers: one, or a strip */
.amv-feed__covers {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.5rem;
}

.amv-feed__cover,
.amv-feed__cover-more {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 6px;
	overflow: hidden;
	background: #eee;
}

.amv-feed__cover.amv-cover--portrait {
	width: 44px;
	height: 66px;
}

.amv-feed__item--single .amv-feed__cover {
	width: 96px;
	height: 96px;
}

.amv-feed__item--single .amv-feed__cover.amv-cover--portrait {
	width: 66px;
	height: 99px;
}

.amv-feed__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.2s ease;
}

.amv-feed__cover:hover img {
	opacity: 0.85;
}

.amv-feed__cover--empty {
	color: #9fa8da;
	font-size: 1.2rem;
	text-decoration: none;
}

.amv-feed__cover-more {
	background: #f0f1fa;
	color: var(--accent, #1a1a2e);
	font-size: 0.9rem;
	font-weight: 700;
}

/* Time, likes */
.amv-feed__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	font-size: 0.8rem;
	color: #888;
}

.amv-like {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 4px 10px;
	border: 1px solid #e0e0e8;
	border-radius: 40px;
	background: none;
	color: #7a7a99;
	font-size: 0.85rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.amv-like:hover,
.amv-like:focus-visible {
	border-color: #b42318;
	color: #b42318;
	background: none;
}

.amv-like[aria-pressed="true"] {
	border-color: #f3c4c0;
	background: #fbe9e7;
	color: #b42318;
}

.amv-like--own,
.amv-like--own:hover {
	border-color: #e0e0e8;
	color: #7a7a99;
	cursor: default;
}

.amv-like__count {
	font-variant-numeric: tabular-nums;
}

.amv-like__icon--on,
.amv-like[aria-pressed="true"] .amv-like__icon--off {
	display: none;
}

.amv-like[aria-pressed="true"] .amv-like__icon--on {
	display: block;
}

.amv-feed__likers {
	color: #555;
}

.amv-feed__likers a {
	color: inherit;
	font-weight: 600;
}

/* Show more */
.amv-feed__more {
	justify-self: center;
	background-color: var(--accent, #1a1a2e);
	color: var(--base-3, #fff);
	border: none;
	border-radius: 40px;
	padding: 0.6rem 1.4rem;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.amv-feed__more:hover {
	opacity: 0.85;
}

.amv-feed__more:disabled {
	opacity: 0.6;
	cursor: wait;
}

.amv-feed__more[hidden],
.amv-feed__empty[hidden] {
	display: none;
}

.amv-feed__empty {
	margin: 0;
	color: #666;
}

/* Profile: Recent activity */
.amv-feed--recent {
	margin-top: 20px;
}

.amv-feed__heading {
	margin: 0;
}

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
	.amv-feed__item {
		gap: 0.7rem;
		padding: 0.85rem;
	}

	.amv-feed__avatar img {
		width: 40px;
		height: 40px;
	}

	.amv-feed__text {
		font-size: 0.9rem;
	}

	.amv-feed__cover,
	.amv-feed__cover-more {
		width: 52px;
		height: 52px;
	}

	.amv-feed__cover.amv-cover--portrait {
		width: 36px;
		height: 54px;
	}
}
