/* Steel Members – mobile-first styles. Brand colour: sky blue. */
:root {
	--sm-brand: #0ea5e9;
	--sm-brand-dark: #0369a1;
	--sm-brand-soft: #e0f2fe;
	--sm-text: #0f172a;
	--sm-muted: #64748b;
	--sm-card: #ffffff;
	--sm-border: #e2e8f0;
	--sm-radius: 14px;
}

/* Buttons */
.sm-btn {
	display: inline-block;
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--sm-brand);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
	text-align: center;
	transition: background .15s ease;
}
.sm-btn:hover, .sm-btn:focus { background: var(--sm-brand-dark); }
.sm-btn--ghost { background: transparent; color: var(--sm-brand) !important; box-shadow: inset 0 0 0 2px var(--sm-brand); }
.sm-btn--ghost:hover { background: var(--sm-brand-soft); }

/* Notices / status */
.sm-notice, .sm-status {
	padding: 14px 16px;
	border-radius: var(--sm-radius);
	background: var(--sm-brand-soft);
	color: var(--sm-text);
	margin: 0 0 20px;
}
.sm-status.is-active { background: #dcfce7; }
.sm-status.is-expired { background: #fef3c7; }

/* Player */
.sm-player {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background: #000;
	border-radius: var(--sm-radius);
	overflow: hidden;
	margin-bottom: 20px;
}
.sm-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Locked */
.sm-locked {
	position: relative;
	border-radius: var(--sm-radius);
	overflow: hidden;
	background: #0f172a;
	aspect-ratio: 16 / 9;
	margin-bottom: 20px;
}
.sm-locked__img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px) brightness(.6); transform: scale(1.1); }
.sm-locked__overlay {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	padding: 16px; color: #fff; text-align: center;
}
.sm-locked__overlay p { margin: 0 0 6px; font-size: 1.05rem; }
.sm-lock { font-size: 2rem; }

/* Download box */
.sm-download {
	display: flex; flex-direction: column; gap: 12px;
	padding: 16px; margin-bottom: 20px;
	border: 1px solid var(--sm-border); border-radius: var(--sm-radius);
	background: var(--sm-card);
}
.sm-download span { color: var(--sm-muted); }
.sm-download--owned { background: #f0fdf4; }

/* Library grid */
.sm-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; -webkit-overflow-scrolling: touch; }
.sm-filters a {
	flex: 0 0 auto; padding: 8px 14px; border-radius: 999px;
	background: var(--sm-brand-soft); color: var(--sm-brand-dark); text-decoration: none; font-size: .9rem;
}
.sm-filters a.is-active { background: var(--sm-brand); color: #fff; }

.sm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sm-card { display: block; color: var(--sm-text); text-decoration: none; }
.sm-card__media { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #1e293b; }
.sm-card__media img, .sm-card__placeholder { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.sm-card:hover .sm-card__media img { transform: scale(1.04); }
.sm-card.is-locked .sm-card__media img { filter: blur(6px) brightness(.75); }
.sm-badge {
	position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px;
	background: rgba(15, 23, 42, .75); color: #fff; font-size: .75rem;
}
.sm-card__lock { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 1.6rem; }
.sm-card__title { padding: 8px 2px 0; font-weight: 600; font-size: .95rem; line-height: 1.3; }

.sm-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 24px; }
.sm-pager a { min-width: 40px; padding: 8px 12px; border-radius: 8px; text-align: center; background: var(--sm-brand-soft); text-decoration: none; }
.sm-pager a.is-active { background: var(--sm-brand); color: #fff; }

/* Gallery + lightbox */
.sm-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.sm-gallery__item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.sm-lightbox {
	position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, .92);
	display: flex; align-items: center; justify-content: center;
}
.sm-lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; }
.sm-lightbox button {
	position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 999px;
	width: 48px; height: 48px; font-size: 1.5rem; cursor: pointer;
}
.sm-lightbox .sm-lb-close { top: 16px; right: 16px; }
.sm-lightbox .sm-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.sm-lightbox .sm-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Plans */
.sm-plans { display: grid; grid-template-columns: 1fr; gap: 16px; }
.sm-plan {
	position: relative; padding: 24px 20px; text-align: center;
	border: 1px solid var(--sm-border); border-radius: var(--sm-radius); background: var(--sm-card);
}
.sm-plan.is-featured { border: 2px solid var(--sm-brand); box-shadow: 0 10px 30px rgba(14, 165, 233, .18); }
.sm-plan__tag {
	position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
	padding: 4px 12px; border-radius: 999px; background: var(--sm-brand); color: #fff; font-size: .8rem; font-weight: 600;
}
.sm-plan h3 { margin: 0 0 8px; }
.sm-plan__price { font-size: 2rem; font-weight: 800; color: var(--sm-text); }
.sm-plan__per { color: var(--sm-muted); margin-bottom: 12px; }
.sm-plan ul { list-style: none; margin: 0 0 18px; padding: 0; }
.sm-plan li { padding: 4px 0; }
.sm-plan li::before { content: "✓ "; color: var(--sm-brand); font-weight: 700; }
.sm-plan .sm-btn { width: 100%; }
.sm-plans__note { text-align: center; color: var(--sm-muted); font-size: .9rem; margin-top: 16px; }

@media (min-width: 640px) {
	.sm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.sm-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sm-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sm-download { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) {
	.sm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sm-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sm-plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
