/* DEL Embed for Bandcamp – Admin */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap');

.bcwp-wrap { max-width: 900px !important; font-family: 'DM Sans', sans-serif; padding-top: 12px; }

/* Header */
.bcwp-header-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 4px;
}
.bcwp-header-top h1 { font-size: 1.6rem; font-weight: 600; margin: 0 0 2px; }
.bcwp-donate-btn {
	display: inline-block;
	flex-shrink: 0;
	width: 170px;
	transition: opacity .15s, transform .1s;
	margin-top: -4px;
}
.bcwp-donate-btn:hover { opacity: .85; transform: translateY(-1px); }
.bcwp-donate-svg {
	display: block;
	width: 170px;
	height: auto;
	border-radius: 5px;
}

/* About text */
.bcwp-about {
	font-size: 13px;
	line-height: 1.6;
	color: #777;
	margin: 4px 0 12px;
}
.bcwp-about p { margin: 0 0 4px; }
.bcwp-about p:last-child { margin-bottom: 0; }
.bcwp-about a { color: #2271b1; text-decoration: none; }
.bcwp-about a:hover { text-decoration: underline; }
.bcwp-about code {
	background: #f0f0f0;
	padding: 1px 6px;
	border-radius: 3px;
	font-size: 12px;
}

/* White box sections */
.bcwp-box {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 24px;
	margin-bottom: 28px;
}
.bcwp-box h2 { margin-top: 0; font-size: 1.1rem; font-weight: 600; }

/* Settings + Preview side-by-side layout */
.bcwp-settings-layout {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

.bcwp-settings-col {
	flex: 1;
	min-width: 0;
}

.bcwp-settings-col .form-table {
	width: auto;
}

.bcwp-settings-col .form-table th {
	padding: 12px 10px 12px 0;
	width: 120px;
}

.bcwp-settings-col .form-table td {
	padding: 12px 0;
}

.bcwp-preview-col {
	flex: 0 0 350px;
	width: 350px;
	box-sizing: border-box;
	background: #f8f9fa;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 16px 24px 24px;
	position: sticky;
	top: 42px;
}

.bcwp-preview-col h3 {
	margin: 0 0 12px;
	font-size: 13px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

#bcwp-preview-box {
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

/* Fluid embeds in preview: fill available width */
#bcwp-preview-box .bcwp-display-player-small-art,
#bcwp-preview-box .bcwp-display-player-slim,
#bcwp-preview-box .bcwp-display-player-slim-no-art {
	width: 100%;
}

/* Cover modes in preview */
#bcwp-preview-box .bcwp-cover-item {
	width: 100%;
}

#bcwp-preview-box .bcwp-cover-img {
	aspect-ratio: auto !important;
	width: 100%;
	height: auto;
}

/* Description text */
.bcwp-box .description {
	color: #666;
	margin: 0 0 8px;
}

/* Add release section */
.bcwp-add-section {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 16px 0 24px;
}

.bcwp-add-section input[type="url"] {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	font-family: inherit;
}

.bcwp-add-section input[type="url"]:focus {
	outline: none;
	border-color: #3c8dbc;
	box-shadow: 0 0 0 2px rgba(60,141,188,.15);
}

/* Releases grid */
.bcwp-grid {
	display: grid;
	gap: 16px;
	margin: 16px 0;
}

.bcwp-card {
	position: relative;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	overflow: hidden;
	cursor: grab;
	transition: border-color .15s, box-shadow 0.15s;
}

.bcwp-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	border-color: #ccc;
}

.bcwp-card.ui-sortable-helper {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	cursor: grabbing;
}

.bcwp-card-placeholder {
	width: 180px;
	height: 240px;
	border: 2px dashed #c0d8ec;
	border-radius: 10px;
	background: #f0f7ff;
}

.bcwp-card-remove {
	position: absolute;
	top: 4px;
	right: 4px;
	z-index: 10;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	font-size: 16px;
	line-height: 24px;
	text-align: center;
	cursor: pointer;
	padding: 0;
	opacity: 0;
	transition: opacity 0.15s;
}

.bcwp-card:hover .bcwp-card-remove {
	opacity: 1;
}

.bcwp-card-remove:hover {
	background: #d63638;
}

.bcwp-card-preview {
	width: 180px;
	height: 180px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f0;
}

.bcwp-card-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bcwp-card-loading {
	color: #999;
	font-size: 13px;
}

.bcwp-card-icon {
	font-size: 48px;
	color: #ccc;
}

.bcwp-card-title {
	padding: 8px 10px 2px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bcwp-card-type {
	padding: 0 10px 4px;
	font-size: 11px;
	color: #999;
}

.bcwp-card-shortcode {
	padding: 0 8px 8px;
}

.bcwp-card-shortcode input {
	width: 100%;
	font-size: 10px;
	font-family: monospace;
	padding: 3px 5px;
	border: 1px solid #ddd;
	background: #f7f7f7;
	color: #666;
	cursor: pointer;
	border-radius: 3px;
	box-sizing: border-box;
}

.bcwp-copy-btn {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 4px 0;
	font-size: 10px;
	font-family: inherit;
	color: #2271b1;
	background: none;
	border: 1px solid #ddd;
	border-radius: 3px;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.bcwp-copy-btn:hover {
	background: #f0f0f0;
	color: #135e96;
}

/* Color swatches */
.bcwp-color-swatches {
	display: flex;
	gap: 6px;
	align-items: center;
}

.bcwp-swatch {
	display: inline-block;
	cursor: pointer;
	padding: 2px;
	border: 2px solid transparent;
	border-radius: 50%;
	transition: border-color 0.15s;
}

.bcwp-swatch:hover {
	border-color: #999;
}

.bcwp-swatch-active {
	border-color: #0073aa;
}

.bcwp-swatch input[type="radio"] {
	display: none;
}

.bcwp-swatch-color {
	display: block;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Sortable placeholder */
.ui-sortable-helper {
	z-index: 100;
}

/* Help page */
.bcwp-help-section {
	margin: 8px 0 16px;
	line-height: 1.7;
}
.bcwp-help-section h3 {
	margin: 20px 0 8px;
	font-size: 14px;
	font-weight: 600;
}
.bcwp-help-section p {
	margin: 0 0 8px;
}
.bcwp-help-table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0 20px;
	font-size: 13px;
}
.bcwp-help-table th,
.bcwp-help-table td {
	padding: 10px 14px;
	border: 1px solid #e0e0e0;
	text-align: left;
	vertical-align: top;
}
.bcwp-help-table th {
	background: #f5f5f5;
	font-weight: 600;
}
.bcwp-help-table code {
	background: #f0f0f0;
	padding: 1px 6px;
	border-radius: 3px;
	font-size: 12px;
}

/* Pool layout (Slider / Slideshow pages) */
.bcwp-pool-layout {
	margin: 16px 0 24px;
}

.bcwp-pool-section {
	margin-bottom: 20px;
}

.bcwp-pool-section h3 {
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 8px;
	color: #333;
}

.bcwp-pool-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	min-height: 80px;
	padding: 12px;
	background: #f8f9fa;
	border: 1px solid #eee;
	border-radius: 8px;
}

.bcwp-pool-selected {
	background: #f0f7ff;
	border-color: #c0d8ec;
	min-height: 100px;
}

.bcwp-pool-card {
	position: relative;
	width: 100px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	transition: border-color .15s, opacity .15s, box-shadow .15s;
}

.bcwp-pool-card:hover {
	border-color: #0073aa;
	box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

.bcwp-pool-card-used {
	opacity: 0.35;
	cursor: default;
}

.bcwp-pool-card-used:hover {
	border-color: #ddd;
	box-shadow: none;
}

.bcwp-pool-card-selected {
	cursor: grab;
}

.bcwp-pool-card-selected.ui-sortable-helper {
	cursor: grabbing;
	box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.bcwp-pool-thumb {
	width: 100px;
	height: 100px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f0;
}

.bcwp-pool-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bcwp-pool-label {
	padding: 4px 6px;
	font-size: 10px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bcwp-pool-remove {
	position: absolute;
	top: 2px;
	right: 2px;
	z-index: 10;
	background: rgba(0,0,0,.6);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	font-size: 14px;
	line-height: 20px;
	text-align: center;
	cursor: pointer;
	padding: 0;
	opacity: 0;
	transition: opacity .15s;
}

.bcwp-pool-card:hover .bcwp-pool-remove {
	opacity: 1;
}

.bcwp-pool-remove:hover {
	background: #d63638;
}

.bcwp-pool-placeholder {
	width: 100px;
	height: 130px;
	border: 2px dashed #c0d8ec;
	border-radius: 6px;
	background: #e8f0fe;
}

.bcwp-pool-empty-hint {
	margin: 4px 0 0;
	font-style: italic;
}

/* Range slider styling */
input[type="range"] {
	vertical-align: middle;
	margin-right: 8px;
}

/* Duplicate notices */
.bcwp-dup-notice {
	background: #fff2f2;
	border: 2px solid #d63638;
	border-radius: 8px;
	padding: 14px 18px;
	margin: 12px 0 16px;
	font-size: 13px;
	line-height: 1.7;
	box-shadow: 0 2px 8px rgba(214, 54, 56, 0.1);
}
.bcwp-dup-notice a {
	color: #2271b1;
	text-decoration: none;
	font-weight: 500;
}
.bcwp-dup-notice a:hover {
	text-decoration: underline;
}
.bcwp-dup-row {
	padding: 4px 0;
}
.bcwp-dup-row + .bcwp-dup-row {
	border-top: 1px solid #eee;
}
