/**
 * All My Vinyl — Release styles
 * Additions for multi-media releases. Loaded after amv.css.
 */

/* ── Leaderboard family filter ─────────────────────────────────────────── */
.amv-leaderboard__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

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

.amv-leaderboard__filter:hover,
.amv-leaderboard__filter--active {
	background: var(--accent);
	color: var(--base-3);
}

/* ── Top 5 — spacing between family blocks ─────────────────────────────── */
.amv-top5 + .amv-top5 {
	margin-top: 24px;
}

/* ── Activity stream — format label ────────────────────────────────────── */
.amv-activity__format {
	opacity: 0.7;
}


/* ── Cover shapes ──────────────────────────────────────────────────────────
   Music covers are square; Film & TV, Books, Comics and Games covers are
   portrait (2:3). Helpers add amv-cover--square / amv-cover--portrait to
   each cover; single releases get amv-cover-square / amv-cover-portrait on
   <body>. In mixed grids each tile keeps its own shape, aligned to the top. */

.amv-grid,
.amv-wishlist__grid {
	align-items: start;
}

.amv-card__cover.amv-cover--portrait,
.amv-wishlist__cover.amv-cover--portrait,
.amv-top5__cover.amv-cover--portrait {
	aspect-ratio: 2 / 3;
}

/* Top 5 — a long title (nowrap + ellipsis) must not widen its column. */
.amv-top5__item {
	min-width: 0;
}

/* Top 5 — portrait blocks are taller, so keep tiles a touch narrower. */
.amv-top5__cover.amv-cover--portrait {
	max-width: 180px;
	margin-left: auto;
	margin-right: auto;
}

/* Profile header — Featured card */
.amv-profile__featured-cover.amv-cover--portrait {
	aspect-ratio: 2 / 3;
	max-width: 120px;
}

/* Leaderboard — same height as square covers, narrower width */
.amv-leaderboard__cover.amv-cover--portrait {
	width: 52px;
	height: 78px;
}

.amv-leaderboard__cover-link {
	width: 78px;
	display: flex;
	justify-content: center;
}

/* Dashboard (APC table) — same row height, narrower width */
.amv-apc-cover.amv-cover--portrait {
	width: 48px;
	aspect-ratio: auto;
	height: 72px;
	margin: 0 auto;
}

/* Single release (GP "Release" template) — the cover shows at its natural
   shape; cap the height so tall portrait covers don't dominate the page. */
.single-release .gb-media-313f7504 {
	max-height: 70vh;
	width: auto;
}

/* ── FacetWP buttons (Reset, Load more) — match site buttons ───────────── */
.facetwp-reset,
.facetwp-load-more {
	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;
	line-height: 1.2;
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.facetwp-reset:hover,
.facetwp-reset:focus {
	background-color: var(--accent, #1a1a2e);
	color: var(--base-3, #fff);
	opacity: 0.85;
}

.facetwp-load-more {
	margin-top: 40px;
}

.facetwp-load-more:hover,
.facetwp-load-more:focus {
	background-color: var(--accent-2, #1a1a2e);
	color: #fff;
}

/* ── Top 5 — tabs when a collector has more than one media type ────────── */
.amv-top5__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.amv-top5__header .amv-top5__heading {
	margin: 0;
}

.amv-top5__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.amv-top5__tab {
	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-top5__tab:hover,
.amv-top5__tab--active {
	background: var(--accent, #1a1a2e);
	color: var(--base-3, #fff);
}

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

/* ── My Collection (dashboard list) ────────────────────────────────────── */
.amv-collection {
	display: grid;
	gap: 1rem;
	min-width: 0;
}

.amv-collection__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem 1rem;
}

.amv-collection__field {
	display: grid;
	gap: 0.3rem;
	flex: 0 1 auto;
}

.amv-collection__field--search {
	flex: 1 1 220px;
}

.amv-collection__field label {
	font-size: 0.8rem;
	font-weight: 600;
	color: #1a1a2e;
}

.amv-collection__field input,
.amv-collection__field select {
	width: 100%;
	padding: 0.55rem 0.8rem;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 0.95rem;
	background: #fff;
}

.amv-collection__field input:focus,
.amv-collection__field select:focus {
	outline: 2px solid var(--accent, #1a1a2e);
	outline-offset: 0;
	border-color: var(--accent, #1a1a2e);
}

.amv-collection__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.amv-collection__btn {
	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;
}

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

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

.amv-collection__summary,
.amv-collection__none {
	margin: 0;
	font-size: 0.9rem;
	color: #555;
}

.amv-collection__table-wrap {
	overflow-x: auto;
}

.amv-collection__table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	font-size: 0.95rem;
}

.amv-collection__table th {
	text-align: left;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #666;
	padding: 0.75rem;
	border-bottom: 1px solid #eee;
}

.amv-collection__table td {
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid #f0f0f5;
	vertical-align: middle;
}

.amv-collection__table tbody tr:last-child td {
	border-bottom: 0;
}

.amv-collection__col-cover {
	width: 96px;
}

.amv-collection__title a {
	font-weight: 600;
	color: #1a1a2e;
	text-decoration: none;
}

.amv-collection__title a:hover {
	text-decoration: underline;
}

.amv-collection__status {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 0.2rem 0.6rem;
	border-radius: 40px;
	background: #f0f1fa;
	color: #1a1a2e;
}

.amv-collection__status--owned {
	background: #e7f4ec;
	color: #2e7d32;
}

.amv-collection__status--wanted {
	background: #fbe9e7;
	color: #b42318;
}

.amv-collection__col-actions {
	white-space: nowrap;
	text-align: right;
}

.amv-collection__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	background: transparent;
	border: 0;
	padding: 0;
	border-radius: 8px;
	color: #1a1a2e;
	text-decoration: none;
	cursor: pointer;
}

.amv-collection__action .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

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

.amv-collection__action:hover {
	background: #f0f1fa;
	color: #1a1a2e;
}

.amv-collection__action--delete:hover {
	color: #b42318;
}

.amv-delete-modal__error {
	color: #b42318;
	font-size: 0.9rem;
}

.amv-collection__pager {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.amv-collection__pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.2rem;
	height: 2.2rem;
	padding: 0 0.7rem;
	border-radius: 40px;
	background: #f0f1fa;
	color: var(--accent, #1a1a2e);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.amv-collection__pager .page-numbers.current {
	background-color: var(--accent, #1a1a2e);
	color: var(--base-3, #fff);
}

.amv-collection__pager .page-numbers.dots {
	background: transparent;
}

/* Phones: each row becomes a compact card. */
@media (max-width: 640px) {
	.amv-collection__table thead {
		display: none;
	}

	.amv-collection__table,
	.amv-collection__table tbody {
		display: block;
		background: transparent;
	}

	.amv-collection__table tr {
		display: grid;
		grid-template-columns: 64px 1fr;
		gap: 0.15rem 0.9rem;
		background: #fff;
		border-radius: 12px;
		padding: 0.75rem;
		margin-bottom: 0.75rem;
	}

	.amv-collection__table td {
		display: block;
		padding: 0;
		border: 0;
		grid-column: 2;
		min-width: 0;
	}

	.amv-collection__table td.amv-collection__col-cover {
		grid-column: 1;
		grid-row: 1 / span 4;
		width: auto;
	}

	.amv-collection__table .amv-apc-cover {
		width: 64px;
	}

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

	.amv-collection__col-actions {
		text-align: left;
	}

	.amv-collection__col-actions {
		margin-top: 0.25rem;
		margin-left: -0.5rem;
	}
}

/* ── Collector stats line (profile header) ─────────────────────────────── */
/* A row of chips: icon, count, noun. Media type chips link to the
   collection grid filtered to that type. */
.amv-profile__stats {
	margin: 0.6rem 0 0.2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.amv-profile__stat {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.75rem 0.3rem 0.6rem;
	border-radius: 40px;
	background: rgba(255, 255, 255, 0.6);
	color: #1a1a2e;
	font-size: 0.85rem;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease;
}

a.amv-profile__stat:hover,
a.amv-profile__stat:focus-visible {
	background: #fff;
	color: #1a1a2e;
}

.amv-profile__stat strong {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.amv-profile__stat-icon {
	flex: none;
	color: var(--accent-2, #7a7a99);
}

.amv-profile__stat--wanted .amv-profile__stat-icon {
	color: #b42318;
}

@media (max-width: 768px) {
	.amv-profile__stats {
		justify-content: center;
	}
}

/* ── FacetWP search (keyword) — full width ─────────────────────────────── */
/* FacetWP wraps the input in an inline-block span and gives the input a
   240px min-width, so width:100% on the input alone has no effect. */
.facetwp-facet-keyword .facetwp-input-wrap {
	display: block;
	width: 100%;
}

.facetwp-facet-keyword input.facetwp-search {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}


/* ════════════════════════════════════════════
   Moved from Customizer → Additional CSS (2.7.3)
════════════════════════════════════════════ */

/* Shared AMV button look */
.amv-cover-art-btn,
.amv-empty-state__link {
	display: inline-flex;
	justify-content: center;
	padding: 0.7rem 1.4rem;
	border: none;
	border-radius: 50px;
	background-color: var(--accent);
	color: var(--base-3);
	font-size: 1rem;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.5s ease 0s;
}

.amv-cover-art-btn:hover,
.amv-empty-state__link:hover,
.amv-wishlist__buy-btn:hover {
	opacity: 0.85;
	color: var(--base-3);
}

/* Leaderboard */
.amv-leaderboard__item {
	background: #F5F5F7;
}

.amv-leaderboard__collector-avatar,
.amv-leaderboard__collector-avatar img {
	width: 36px;
	height: 36px;
}

.amv-leaderboard__collector-avatar img {
	display: block;
	border-radius: 50%;
}

/* Activity and Most Active — keep long names and titles inside the column */
.amv-activity {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.amv-activity__pagination {
	flex-wrap: wrap;
	width: 100%;
	max-width: 100%;
}

.amv-activity__item {
	max-width: 100%;
	min-width: 0;
}

.amv-activity__content {
	flex: 1;
	min-width: 0;
	overflow-wrap: break-word;
	word-break: break-word;
}

.amv-activity__text,
.amv-activity__text * {
	max-width: 100% !important;
	white-space: normal !important;
	overflow-wrap: break-word !important;
	word-break: break-word !important;
}

.amv-most-active__info {
	min-width: 0;
	overflow: hidden;
}

.amv-most-active__name,
.amv-most-active__location,
.amv-most-active__count {
	max-width: 100% !important;
	white-space: normal !important;
	overflow-wrap: break-word !important;
	word-break: break-word !important;
}

/* Tablets and phones */
@media (max-width: 767px) {

	/* Dashboard welcome */
	.amv-welcome__greeting {
		font-size: 1.6rem !important;
		margin: 0 0 1rem !important;
	}

	.amv-welcome__subline {
		font-size: 0.95rem !important;
	}

	/* Profile header stacks */
	.amv-profile__header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.amv-profile__header--has-featured {
		align-items: center;
	}

	.amv-profile__main {
		flex: 1 1 100%;
		flex-direction: column;
		align-items: center;
		width: 100%;
		text-align: center;
	}

	.amv-profile__featured {
		flex: 1 1 100%;
		width: 100%;
		align-items: center;
	}

	.amv-profile__info {
		width: 100%;
	}

	/* Top 5: three across (two on small phones) instead of one tall column */
	.amv-top5__grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem 0.75rem;
	}

	.amv-top5__item {
		flex: none;
		width: auto;
		min-width: 0;
	}

	.amv-top5__heading {
		text-align: center;
	}

	.amv-top5__header {
		justify-content: center;
	}

	/* Leaderboard rows stack */
	.amv-leaderboard__item {
		flex-direction: column;
		align-items: center;
		padding: 1.25rem 1rem;
		text-align: center;
	}

	.amv-leaderboard__rank {
		min-width: auto;
		font-size: 2.5rem;
	}

	.amv-leaderboard__cover {
		width: 100px;
		height: 100px;
	}

	.amv-leaderboard__cover.amv-cover--portrait {
		width: 67px;
		height: 100px;
	}

	.amv-leaderboard__info {
		align-items: center;
		width: 100%;
	}

	.amv-leaderboard__title,
	.amv-leaderboard__artist {
		white-space: normal;
		text-align: center;
	}

	.amv-leaderboard__collectors {
		justify-content: center;
	}

	.amv-leaderboard__vote {
		flex-direction: column;
		align-items: center;
	}
}

@media (max-width: 600px) {

	.amv-activity__item {
		flex-direction: column;
		align-items: center;
		gap: 0.5rem;
		text-align: center;
	}

	.amv-activity__avatar img {
		width: 44px;
		height: 44px;
	}

	.amv-activity__text {
		font-size: 0.875rem;
	}

	.amv-most-active__item {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

@media (max-width: 420px) {

	.amv-top5__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Activity — Newer / Older (2.7.15, replaces numbered pages) */
.amv-activity__pagination {
	display: flex;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.amv-activity__nav {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1.1rem;
	border-radius: 40px;
	background-color: var(--accent, #1a1a2e);
	color: var(--base-3, #fff);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.amv-activity__nav:hover {
	opacity: 0.85;
	color: var(--base-3, #fff);
}

.amv-activity__nav--older {
	margin-left: auto;
}

/* Homepage — site stats band [amv_site_stats] (2.7.16) */
.amv-site-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
	text-align: center;
}

.amv-site-stats__num {
	display: block;
	font-size: clamp(2.5rem, 2vw + 1.75rem, 3.5rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--accent, #1a1a2e);
}

.amv-site-stats__label {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--contrast-3, #555);
}

@media (max-width: 600px) {
	.amv-site-stats {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}
