/* Course DRM — theme-agnostic storefront + player styling */

.coursedrm-catalog {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 260px, 1fr ) );
	gap: 28px;
	margin: 24px 0 40px;
}
.coursedrm-card {
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	background: #fff;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.04 );
	transition: transform .15s ease, box-shadow .15s ease;
}
.coursedrm-card:hover {
	transform: translateY( -3px );
	box-shadow: 0 10px 24px rgba( 0, 0, 0, 0.10 );
}
.coursedrm-card--membership {
	border-color: #6d4aff;
	box-shadow: 0 6px 20px rgba( 109, 74, 255, 0.18 );
}
.coursedrm-card__thumb {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f3f4f6;
}
.coursedrm-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.coursedrm-card__body {
	padding: 16px 18px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.coursedrm-card__title {
	font-size: 1.1rem;
	line-height: 1.3;
	margin: 0 0 6px;
}
.coursedrm-card__title a {
	color: inherit;
	text-decoration: none;
}
.coursedrm-card__price {
	color: #4b5563;
	margin-bottom: 14px;
	font-weight: 600;
}
.coursedrm-card__note {
	font-size: 0.85rem;
	color: #6d4aff;
	margin: 0 0 12px;
}
.coursedrm-btn {
	display: block;
	text-align: center;
	text-decoration: none;
	padding: 12px 14px;
	border-radius: 10px;
	font-weight: 700;
	margin-top: auto;
}
.coursedrm-btn--watch { background: #16a34a; color: #fff; }
.coursedrm-btn--watch:hover { background: #15803d; color: #fff; }
.coursedrm-btn--buy { background: #111827; color: #fff; }
.coursedrm-btn--buy:hover { background: #000; color: #fff; }

.coursedrm-h {
	margin: 8px 0 4px;
	font-size: 1.5rem;
}
.coursedrm-empty {
	color: #6b7280;
	margin: 4px 0 28px;
}
.coursedrm-banner {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
	padding: 14px 18px;
	border-radius: 12px;
	font-weight: 600;
	margin: 0 0 24px;
}

/* Player */
.coursedrm-player-wrap {
	max-width: 960px;
	margin: 0 auto;
}
.coursedrm-video {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 14px;
	display: block;
}
.coursedrm-player-meta {
	margin-top: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.coursedrm-badge {
	display: inline-block;
	font-size: 0.82rem;
	color: #374151;
	background: #f3f4f6;
	padding: 5px 12px;
	border-radius: 999px;
}
.coursedrm-backlink {
	font-size: 0.9rem;
	text-decoration: none;
	color: #4b5563;
}
.coursedrm-notice {
	padding: 16px 18px;
	border-radius: 12px;
	background: #fef3c7;
	border: 1px solid #fcd34d;
	color: #92400e;
	margin: 12px 0;
}
.coursedrm-notice a { color: #92400e; font-weight: 700; }
.coursedrm-notice--error {
	background: #fee2e2;
	border-color: #fca5a5;
	color: #991b1b;
}
