.bcwp-players {
	display: grid;
	gap: 20px;
	justify-items: center;
}

.bcwp-player {
	text-align: center;
}

.bcwp-player iframe {
	display: block;
	border: 0;
	margin: 0 auto;
}

/* Fluid-width modes: iframe stretches to fill grid cell */
.bcwp-display-player-slim,
.bcwp-display-player-slim-no-art {
	width: 100%;
}

.bcwp-display-player-slim iframe,
.bcwp-display-player-slim-no-art iframe {
	width: 100% !important;
}

/* Small artwork needs min-width so Bandcamp shows the cover */
.bcwp-display-player-small-art {
	width: 100%;
	min-width: 400px;
}

.bcwp-display-player-small-art iframe {
	width: 100% !important;
}

.bcwp-cover-item {
	text-align: center;
}

.bcwp-cover-item a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.bcwp-cover-img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
	border-radius: 4px;
}

.bcwp-cover-artist {
	display: block;
	padding: 8px 0 0;
	font-size: 12px;
	color: #666;
}

.bcwp-cover-title {
	display: block;
	padding: 4px 0 8px;
	font-weight: 600;
	font-size: 14px;
}

.bcwp-error {
	color: #d63638;
	font-style: italic;
}

/* Share-trap wrapper: makes embed positionable for the click-trap overlay.
   Explicit dimensions match the iframe exactly so the trap stays inside. */
.bcwp-embed-wrap {
	position: relative;
	display: inline-block;
	vertical-align: top;
	font-size: 0;
	line-height: 0;
	max-width: 100%;
	overflow: hidden;
}

.bcwp-embed-wrap iframe {
	display: block;
	vertical-align: top;
}

/* Lock wrap dimensions to iframe size per display mode */
.bcwp-display-player-big .bcwp-embed-wrap {
	width: 350px;
	height: 470px;
}

.bcwp-display-artwork-embed .bcwp-embed-wrap {
	width: 350px;
	height: 350px;
}

.bcwp-display-player-small-art .bcwp-embed-wrap {
	display: block;
	width: 100%;
	height: 120px;
}

.bcwp-display-player-slim .bcwp-embed-wrap,
.bcwp-display-player-slim-no-art .bcwp-embed-wrap {
	display: block;
	width: 100%;
	height: 42px;
}

/* Invisible click-trap positioned over Bandcamp's "Share / Embed" link.
   Intercepts the click and opens our share modal instead of Bandcamp's broken share page. */
.bcwp-share-trap {
	position: absolute;
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	z-index: 4;
	-webkit-tap-highlight-color: transparent;
	outline: none;
}

.bcwp-share-trap:focus {
	outline: none;
}

/* player-big: 350x470 — Share/Embed text in the title row below cover */
.bcwp-display-player-big .bcwp-share-trap {
	top: 360px;
	right: 8px;
	width: 50px;
	height: 20px;
}

/* player-small-art: 400x120 fluid — Share text in title row at top, before BC logo */
.bcwp-display-player-small-art .bcwp-share-trap {
	top: 8px;
	right: 65px;
	width: 50px;
	height: 18px;
}

/* artwork-embed: 350x350 minimal — Share at bottom-right */
.bcwp-display-artwork-embed .bcwp-share-trap {
	top: 328px;
	right: 8px;
	width: 95px;
	height: 16px;
}


/* Share modal */
.bcwp-share-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 99998;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.bcwp-share-modal-backdrop.bcwp-open {
	display: flex;
}

.bcwp-share-modal {
	background: #fff;
	color: #222;
	border-radius: 12px;
	max-width: 420px;
	width: 100%;
	padding: 22px 24px 20px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	max-height: 90vh;
	overflow-y: auto;
}

.bcwp-share-modal h3 {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.bcwp-share-close {
	background: none;
	border: 0;
	font-size: 22px;
	cursor: pointer;
	color: #777;
	padding: 0;
	width: 28px;
	height: 28px;
	line-height: 1;
}

.bcwp-share-close:hover {
	color: #222;
}

.bcwp-share-row {
	margin: 0 0 14px;
}

.bcwp-share-row label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #666;
	margin-bottom: 4px;
}

.bcwp-share-input-row {
	display: flex;
	gap: 6px;
}

.bcwp-share-input-row input {
	flex: 1;
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 12px;
	font-family: monospace;
	color: #333;
	background: #f8f8f8;
	min-width: 0;
}

.bcwp-share-copy {
	background: #2271b1;
	color: #fff;
	border: 0;
	padding: 0 14px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
}

.bcwp-share-copy:hover {
	background: #135e96;
}

.bcwp-share-copy.bcwp-copied {
	background: #00a32a;
}

.bcwp-share-socials {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.bcwp-share-socials a {
	flex: 1;
	min-width: 80px;
	text-align: center;
	padding: 9px 10px;
	background: #f3f3f3;
	border-radius: 6px;
	color: #333;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: background 0.15s;
}

.bcwp-share-socials a:hover {
	background: #e5e5e5;
}
