/* StudioFlicks — profile.css
   Member profile pages (/member/{username}/), dark cinema context.
   Stat tiles + tabs copied from watchlist.css (that file only loads on the
   watchlist page); poster cards reuse cinema.css's .sf-movie-card. */

.sf-profile { padding: 0 0 64px; }
.sf-profile .sf-container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.sf-profile-private-note {
	background: rgba(230,57,70,.12);
	border: 1px solid rgba(230,57,70,.35);
	border-radius: var(--sf-radius);
	color: var(--sf-cinema-text);
	font-size: 13.5px;
	padding: 10px 14px;
	margin: 0 0 24px;
}

/* ── Cinematic title-card header ────────────────────────────────────────── */
.sf-profile-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 260px;
	margin-bottom: 60px;
	overflow: hidden;
	isolation: isolate;
}
.sf-profile-hero--gradient {
	background:
		radial-gradient(120% 150% at 12% 0%, rgba(245,185,66,.22), transparent 55%),
		linear-gradient(180deg, rgba(245,185,66,.08), var(--sf-cinema-bg) 82%);
}
.sf-profile-hero__backdrop {
	position: absolute; inset: 0; z-index: -2;
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: center 25%;
}
.sf-profile-hero__scrim {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgba(11,11,14,.35) 0%, rgba(11,11,14,.72) 62%, var(--sf-cinema-bg) 100%),
		linear-gradient(90deg, rgba(11,11,14,.55) 0%, rgba(11,11,14,.12) 60%);
}
.sf-profile-hero__inner {
	display: flex;
	align-items: flex-end;
	gap: 22px;
	width: 100%;
	padding-top: 96px;
	padding-bottom: 22px;
	flex-wrap: wrap;
}
.sf-profile-avatar {
	width: 108px; height: 108px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
	border: 3px solid var(--sf-gold);
	box-shadow: 0 0 0 4px rgba(11,11,14,.6), 0 6px 26px rgba(245,185,66,.35);
	background: var(--sf-cinema-card);
}
.sf-profile-id { flex: 1; min-width: 220px; }
.sf-profile-name {
	font-family: var(--sf-font-display);
	font-size: clamp(26px, 3.8vw, 40px);
	font-weight: 800;
	color: #fff;
	margin: 0 0 6px;
	line-height: 1.1;
	text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.sf-profile-bio { color: rgba(255,255,255,.82); font-size: 14px; margin: 0 0 8px; max-width: 60ch; }
.sf-profile-since {
	font-size: 11px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .1em;
	color: var(--sf-gold);
	margin: 0;
}
.sf-profile-actions { display: flex; gap: 8px; flex-wrap: wrap; align-self: flex-end; }

/* Header actions: gold primary, ghost outline secondary (scoped to the hero) */
.sf-profile-hero .sf-profile-actions .sf-profile-btn {
	background: var(--sf-gold); border-color: var(--sf-gold);
	color: #1a1205; font-weight: 700;
}
.sf-profile-hero .sf-profile-actions .sf-profile-btn:hover {
	background: var(--sf-gold-dark, #D99A1F); border-color: var(--sf-gold-dark, #D99A1F);
}
.sf-profile-hero .sf-profile-actions .sf-profile-btn--ghost {
	background: transparent; border-color: rgba(255,255,255,.5); color: #fff;
}
.sf-profile-hero .sf-profile-actions .sf-profile-btn--ghost:hover {
	background: rgba(255,255,255,.12); border-color: #fff;
}


/* Buttons */
.sf-profile-btn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 16px;
	font-size: 13px; font-weight: 600;
	font-family: var(--sf-font-ui);
	color: var(--sf-cinema-text);
	background: var(--sf-cinema-card);
	border: 1px solid var(--sf-cinema-border);
	border-radius: 20px;
	cursor: pointer;
	text-decoration: none;
	transition: background .2s, border-color .2s;
}
/* profile.js toggles this with `deleteBtn.hidden = !(mode === 'list' && …)`.
   The display above defeated that, leaving Delete list visible while creating a
   new list — a destructive control offered in a state the code means to hide it
   in. (Clicking it was inert, guarded by `if (!state.listId) return`.) */
.sf-profile-btn[hidden] { display: none; }
.sf-profile-btn:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.25); }
.sf-profile-btn--primary { background: var(--sf-accent); border-color: var(--sf-accent); color: #fff; }
.sf-profile-btn--primary:hover { background: var(--sf-accent-dark, #C1121F); border-color: var(--sf-accent-dark, #C1121F); }
.sf-profile-btn--ghost { background: transparent; }
.sf-profile-btn--danger { color: #f26d6d; border-color: rgba(230,57,70,.4); }

/* ── Stats panels (gold left-tick cards) ────────────────────────────────── */
.sf-profile-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	margin: 0 0 34px;
}
.sf-profile-stat {
	background: var(--sf-cinema-card);
	border: 1px solid var(--sf-cinema-border);
	border-left: 3px solid var(--sf-gold);
	border-radius: var(--sf-radius);
	padding: 15px 16px;
	display: flex; flex-direction: column; gap: 3px;
}
.sf-profile-stat__num {
	font-family: var(--sf-font-display);
	font-size: 28px; font-weight: 800;
	color: #fff;
	line-height: 1;
}
.sf-profile-stat__lbl {
	font-size: 10.5px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .11em;
	color: var(--sf-cinema-subtle, rgba(255,255,255,.4));
}

/* ── Top Billing ────────────────────────────────────────────────────────── */
.sf-topbilling__layout {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 24px;
	align-items: start;
}
.sf-topbilling__hero { position: relative; display: block; text-decoration: none; }
.sf-topbilling__badge {
	position: absolute; top: 10px; left: 10px; z-index: 2;
	font-family: var(--sf-font-display);
	font-size: 13px; font-weight: 800;
	color: #1a1205;
	background: var(--sf-gold);
	padding: 3px 11px;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(245,185,66,.45);
}
.sf-topbilling__poster {
	display: block;
	aspect-ratio: 2 / 3;
	border-radius: var(--sf-radius);
	overflow: hidden;
	border: 2px solid var(--sf-gold);
	box-shadow: 0 0 28px rgba(245,185,66,.28);
	background: var(--sf-cinema-card);
}
.sf-topbilling__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-topbilling__body { display: block; padding: 10px 2px 0; }
.sf-topbilling__title { display: block; color: var(--sf-cinema-text); font-weight: 700; font-size: 15px; line-height: 1.25; }
.sf-topbilling__hero:hover .sf-topbilling__title { color: var(--sf-gold); }
.sf-topbilling__year { display: block; color: var(--sf-cinema-subtle, rgba(255,255,255,.4)); font-size: 12px; margin-top: 2px; }
.sf-topbilling__rest .sf-profile-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }

/* ── Sections ───────────────────────────────────────────────────────────── */
.sf-profile-section { margin-bottom: 36px; }
.sf-profile .sf-section-header {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; margin-bottom: 16px;
}
.sf-profile .sf-section-title { margin: 0; }
.sf-profile-empty { color: var(--sf-cinema-muted); font-size: 14px; padding: 24px 0; }
.sf-profile-list-desc { color: var(--sf-cinema-muted); font-size: 14px; margin: 0 0 6px; max-width: 70ch; }
.sf-profile-list-count { color: var(--sf-cinema-subtle, rgba(255,255,255,.4)); font-size: 12px; margin: 0 0 16px; }

/* ── Poster grid ────────────────────────────────────────────────────────── */
.sf-profile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 16px;
}
.sf-profile-grid .sf-movie-card { width: auto; }
.sf-profile-grid .sf-movie-card.is-collapsed { display: none; }
.sf-profile-showmore { display: flex; justify-content: center; margin-top: 18px; }

/* ── Tabs (copied from watchlist.css underline variant) ─────────────────── */
.sf-profile-tabs {
	display: flex; gap: 4px; margin-bottom: 20px;
	border-bottom: 1px solid var(--sf-cinema-border);
	overflow-x: auto;
	scrollbar-width: none;
}
.sf-profile-tabs::-webkit-scrollbar { display: none; }
.sf-profile-tabs .sf-wl-tab {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 14px;
	font-size: .87rem; font-weight: 600;
	color: rgba(255,255,255,.45);
	text-decoration: none;
	border: none; border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	white-space: nowrap;
	transition: color .2s;
}
.sf-profile-tabs .sf-wl-tab:hover { color: #fff; }
.sf-profile-tabs .sf-wl-tab.active { color: #fff; border-bottom: 3px solid var(--sf-gold); }

/* ── Screening Log timeline ─────────────────────────────────────────────── */
.sf-screenlog { position: relative; padding-left: 26px; }
.sf-screenlog::before {
	content: ""; position: absolute;
	left: 6px; top: 8px; bottom: 8px; width: 2px;
	background: linear-gradient(var(--sf-gold), rgba(245,185,66,.04));
}
.sf-screenlog__month {
	position: relative;
	font-family: var(--sf-font-display);
	font-size: 13px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .08em;
	color: var(--sf-gold);
	margin: 22px 0 12px;
}
.sf-screenlog__month::before {
	content: ""; position: absolute;
	left: -26px; top: 50%; transform: translateY(-50%);
	width: 10px; height: 10px; border-radius: 50%;
	background: var(--sf-gold);
	box-shadow: 0 0 0 3px var(--sf-cinema-bg), 0 0 10px rgba(245,185,66,.6);
}
.sf-screenlog__entry {
	position: relative;
	display: flex; align-items: center; gap: 14px;
	padding: 10px 12px;
	background: var(--sf-cinema-card);
	border: 1px solid var(--sf-cinema-border);
	border-radius: var(--sf-radius);
	margin-bottom: 8px;
	text-decoration: none;
	transition: border-color .2s, transform .2s;
}
.sf-screenlog__entry::before {
	content: ""; position: absolute;
	left: -23px; top: 50%; transform: translateY(-50%);
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--sf-cinema-subtle, rgba(255,255,255,.4));
}
.sf-screenlog__entry:hover { border-color: rgba(245,185,66,.4); transform: translateX(2px); }
.sf-screenlog__thumb { flex: none; width: 38px; }
.sf-screenlog__thumb img { width: 38px; height: 56px; object-fit: cover; border-radius: 4px; display: block; }
.sf-screenlog__info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sf-screenlog__title { color: var(--sf-cinema-text); font-size: 14.5px; font-weight: 600; }
.sf-screenlog__date { color: var(--sf-cinema-subtle, rgba(255,255,255,.4)); font-size: 12px; }
.sf-profile-stars { color: var(--sf-gold); font-size: 13px; font-weight: 700; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
	.sf-screenlog__entry, .sf-profile-list-card, .sf-list-grid .sf-movie-card { transition: none; }
}

/* ── Lists ──────────────────────────────────────────────────────────────── */
.sf-profile-lists {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}
.sf-profile-list-card {
	display: block;
	background: var(--sf-cinema-card);
	border: 1px solid var(--sf-cinema-border);
	border-radius: var(--sf-radius-lg);
	padding: 14px;
	text-decoration: none;
	transition: border-color .2s, transform .2s;
}
.sf-profile-list-card:hover { border-color: rgba(255,255,255,.25); transform: translateY(-2px); }
.sf-profile-list-card__posters { display: flex; margin-bottom: 10px; }
.sf-profile-list-card__poster { width: 44px; margin-right: -12px; }
.sf-profile-list-card__poster img {
	width: 44px; height: 64px; object-fit: cover;
	border-radius: 4px; border: 1px solid var(--sf-cinema-border);
	display: block;
}
.sf-profile-list-card__title { display: block; color: var(--sf-cinema-text); font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.sf-profile-list-card__count { display: block; color: var(--sf-cinema-subtle, rgba(255,255,255,.4)); font-size: 12px; }

/* ── Activity ───────────────────────────────────────────────────────────── */
.sf-profile-activity { list-style: none; margin: 0; padding: 0; }
.sf-profile-activity__row {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	padding: 11px 2px;
	border-bottom: 1px solid var(--sf-cinema-border);
	font-size: 14px;
	color: var(--sf-cinema-muted);
}
.sf-profile-activity__text a { color: var(--sf-cinema-text); font-weight: 600; text-decoration: none; }
.sf-profile-activity__text a:hover { color: var(--sf-accent); }
.sf-profile-activity__text em { color: var(--sf-cinema-text); font-style: normal; font-weight: 600; }
.sf-profile-activity__time { color: var(--sf-cinema-subtle, rgba(255,255,255,.4)); font-size: 12px; white-space: nowrap; }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.sf-profile-pagination {
	display: flex; align-items: center; justify-content: center; gap: 18px;
	margin-top: 28px;
	font-size: 13.5px;
}
.sf-profile-page-link { color: var(--sf-cinema-text); font-weight: 600; text-decoration: none; }
.sf-profile-page-link:hover { color: var(--sf-accent); }
.sf-profile-page-info { color: var(--sf-cinema-subtle, rgba(255,255,255,.4)); }

/* ── Modal (own profile) ────────────────────────────────────────────────── */
.sf-profile-modal { position: fixed; inset: 0; z-index: 1000; }
.sf-profile-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.sf-profile-modal__panel {
	position: relative;
	max-width: 480px;
	margin: 8vh auto 0;
	background: var(--sf-cinema-card);
	border: 1px solid var(--sf-cinema-border);
	border-radius: var(--sf-radius-lg);
	padding: 22px;
	max-height: 80vh;
	overflow-y: auto;
}
.sf-profile-modal__title {
	font-family: var(--sf-font-display);
	font-size: 18px; font-weight: 800;
	color: var(--sf-cinema-text);
	margin: 0 0 16px;
}
.sf-profile-modal label {
	display: block;
	font-size: 12px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .06em;
	color: var(--sf-cinema-muted);
	margin-bottom: 12px;
}
.sf-profile-modal input[type="text"],
.sf-profile-modal input[type="search"],
.sf-profile-modal textarea {
	display: block;
	width: 100%;
	margin-top: 5px;
	padding: 9px 12px;
	font-size: 14px;
	font-family: var(--sf-font-body);
	color: var(--sf-cinema-text);
	background: var(--sf-cinema-bg, #0d0d0d);
	border: 1px solid var(--sf-cinema-border);
	border-radius: var(--sf-radius);
}
.sf-profile-modal input:focus, .sf-profile-modal textarea:focus { outline: none; border-color: var(--sf-accent); }
.sf-profile-modal__results, .sf-profile-modal__selected { list-style: none; margin: 8px 0 0; padding: 0; }
.sf-profile-modal__results li, .sf-profile-modal__selected li {
	display: flex; align-items: center; gap: 10px;
	padding: 7px 8px;
	border-radius: var(--sf-radius);
	font-size: 13.5px;
	color: var(--sf-cinema-text);
}
.sf-profile-modal__results li { cursor: pointer; }
.sf-profile-modal__results li:hover { background: rgba(255,255,255,.07); }
.sf-profile-modal__results img, .sf-profile-modal__selected img { width: 28px; height: 42px; object-fit: cover; border-radius: 3px; }
.sf-profile-modal__selected li { background: rgba(255,255,255,.05); margin-bottom: 4px; }
.sf-profile-modal__selected li[draggable="true"] { cursor: grab; }
.sf-profile-modal__selected li.is-dragging { opacity: .5; }
.sf-profile-pick-handle { color: var(--sf-cinema-subtle, rgba(255,255,255,.4)); font-size: 13px; line-height: 1; cursor: grab; }
.sf-profile-pick-pos {
	flex: none;
	min-width: 18px; text-align: center;
	font-family: var(--sf-font-display);
	font-size: 12px; font-weight: 800;
	color: var(--sf-cinema-muted);
}
.sf-profile-pick-title { flex: 1; }
.sf-profile-pick-move {
	background: none; border: none; cursor: pointer;
	color: var(--sf-cinema-muted); font-size: 14px; line-height: 1;
	padding: 2px 4px;
}
.sf-profile-pick-move:hover:not(:disabled) { color: var(--sf-cinema-text); }
.sf-profile-pick-move:disabled { opacity: .3; cursor: default; }
.sf-profile-modal__selected .sf-profile-pick-remove {
	background: none; border: none; cursor: pointer;
	color: var(--sf-cinema-muted); font-size: 16px; line-height: 1;
}
.sf-profile-modal__selected .sf-profile-pick-remove:hover { color: var(--sf-accent); }
.sf-profile-modal__footer { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.sf-profile-modal__spacer { flex: 1; }
.sf-profile-settings__check {
	display: flex; align-items: center; gap: 8px;
	text-transform: none; letter-spacing: 0;
	font-size: 13.5px; font-weight: 500;
	color: var(--sf-cinema-text);
	cursor: pointer;
}
.sf-profile-settings__check input { accent-color: var(--sf-accent); width: 15px; height: 15px; }

@media (max-width: 640px) {
	.sf-profile-hero { min-height: 200px; margin-bottom: 46px; }
	.sf-profile-hero__inner { padding-top: 64px; gap: 14px; }
	.sf-profile-avatar { width: 84px; height: 84px; }
	.sf-profile-actions { width: 100%; }
	.sf-profile-hero .sf-profile-actions .sf-profile-btn { flex: 1; justify-content: center; }
	.sf-profile-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
	.sf-profile-modal__panel { margin: 4vh 12px 0; }

	/* Top Billing: №1 becomes a full-row horizontal card, rest a 3-col grid */
	.sf-topbilling__layout { grid-template-columns: 1fr; gap: 18px; }
	.sf-topbilling__hero { display: flex; align-items: center; gap: 14px; }
	.sf-topbilling__poster { width: 96px; flex: none; }
	.sf-topbilling__body { padding: 0; }
	.sf-topbilling__rest .sf-profile-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ══ Shareable list page (/list/{id}/) ══════════════════════════════════ */

.sf-list-page { padding: 40px 0 64px; position: relative; overflow: hidden; }
.sf-list-page .sf-container { max-width: 1080px; margin: 0 auto; padding: 0 20px; position: relative; }

/* Blurred first-poster backdrop band behind the hero */
.sf-list-backdrop {
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 420px;
	background-size: cover;
	background-position: center 20%;
	filter: blur(48px) saturate(1.15);
	transform: scale(1.2);
	opacity: .28;
	pointer-events: none;
}
.sf-list-backdrop::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,.2), var(--sf-cinema-bg, #0d0d0d));
}

.sf-list-hero { max-width: 720px; margin-bottom: 36px; }
.sf-list-hero__kicker {
	font-size: 11px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .12em;
	color: var(--sf-accent);
	margin: 0 0 8px;
}
.sf-list-hero__title {
	font-family: var(--sf-font-display);
	font-size: clamp(26px, 4vw, 42px);
	font-weight: 800;
	line-height: 1.12;
	color: var(--sf-cinema-text);
	margin: 0 0 16px;
}
.sf-list-hero__desc { color: var(--sf-cinema-muted); font-size: 15px; line-height: 1.7; margin: 14px 0 0; }
.sf-list-hero__meta { color: var(--sf-cinema-subtle, rgba(255,255,255,.4)); font-size: 12.5px; margin: 10px 0 0; display: flex; gap: 8px; }

.sf-list-author { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.sf-list-author__avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--sf-cinema-border); }
.sf-list-author__meta { display: flex; flex-direction: column; line-height: 1.25; }
.sf-list-author__by { font-size: 11px; color: var(--sf-cinema-subtle, rgba(255,255,255,.4)); text-transform: uppercase; letter-spacing: .06em; }
.sf-list-author__name { font-size: 14.5px; font-weight: 700; color: var(--sf-cinema-text); }
.sf-list-author:hover .sf-list-author__name { color: var(--sf-accent); }

/* Share row */
.sf-list-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sf-list-share__btn {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 8px 15px;
	font-size: 13px; font-weight: 600;
	font-family: var(--sf-font-ui);
	color: var(--sf-cinema-text);
	background: var(--sf-cinema-card);
	border: 1px solid var(--sf-cinema-border);
	border-radius: 20px;
	cursor: pointer;
	text-decoration: none;
	position: relative;
	transition: background .2s, border-color .2s;
}
/* Same native-share pattern as .sf-share-btn in base.css. */
.sf-list-share__btn[hidden] { display: none; }
.sf-list-share__btn:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.25); }
.sf-list-share__btn--edit { border-color: rgba(230,57,70,.5); }
.sf-list-share__copied {
	position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
	background: var(--sf-accent); color: #fff;
	font-size: 11px; font-weight: 700;
	padding: 3px 10px; border-radius: 12px;
	opacity: 0; pointer-events: none;
	transition: opacity .2s;
	white-space: nowrap;
}
.sf-list-share__btn.is-copied .sf-list-share__copied { opacity: 1; }

/* Numbered grid */
.sf-list-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 18px;
}
.sf-list-grid .sf-movie-card { width: auto; transition: transform .2s; }
.sf-list-grid .sf-movie-card:hover { transform: translateY(-3px); }
.sf-list-grid__card .sf-movie-card__thumb { position: relative; }
.sf-list-grid__rating {
	position: absolute; top: 8px; right: 8px; z-index: 2;
	font-size: 11.5px; font-weight: 700;
	color: var(--sf-gold);
	background: rgba(0,0,0,.72);
	border: 1px solid rgba(255,255,255,.14);
	padding: 2px 8px;
	border-radius: 12px;
}
.sf-list-grid__rank {
	position: absolute; top: 8px; left: 8px; z-index: 2;
	font-family: var(--sf-font-display);
	font-size: 13px; font-weight: 800;
	color: #fff;
	background: rgba(0,0,0,.72);
	border: 1px solid rgba(255,255,255,.18);
	padding: 2px 8px;
	border-radius: 12px;
}

/* Author footer card */
.sf-list-footer { margin-top: 44px; }
.sf-list-footer__card {
	display: inline-flex; align-items: center; gap: 14px;
	background: var(--sf-cinema-card);
	border: 1px solid var(--sf-cinema-border);
	border-radius: var(--sf-radius-lg);
	padding: 14px 22px 14px 14px;
	text-decoration: none;
	transition: border-color .2s;
}
.sf-list-footer__card:hover { border-color: rgba(255,255,255,.3); }
.sf-list-footer__card img { border-radius: 50%; }
.sf-list-footer__card span { display: flex; flex-direction: column; gap: 2px; }
.sf-list-footer__card strong { color: var(--sf-cinema-text); font-size: 15px; }
.sf-list-footer__card em { color: var(--sf-cinema-muted); font-size: 12.5px; font-style: normal; }
.sf-list-footer__card:hover em { color: var(--sf-accent); }

@media (max-width: 640px) {
	.sf-list-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
}

/* Sign out sits in the settings modal — the only screen a member without
   wp-admin access can reach it from. Quiet, on the far side from Save: it is a
   way out, not the action the modal is for. */
.sf-profile-signout {
	font-size: 12px;
	color: var(--sf-cinema-subtle, rgba(245,245,247,.32));
	text-decoration: underline;
	align-self: center;
}
.sf-profile-signout:hover { color: var(--sf-accent); }

/* ── Account settings ────────────────────────────────────────────────────────
   Grouped into Profile / Account / Alerts. A password field sitting next to a
   bio field makes both look careless, and the groups answer different
   questions: who I am here, how I sign in, what reaches me. */

.sf-acct__avatar { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.sf-acct__avatar-img { border-radius: 50%; object-fit: cover; border: 1px solid var(--sf-cinema-border); }
.sf-acct__avatar-acts { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sf-acct__upload { cursor: pointer; }
.sf-acct__link {
	background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 11.5px;
	color: var(--sf-cinema-subtle); text-decoration: underline;
}
.sf-acct__link:hover { color: var(--sf-accent); }
.sf-acct__hint { margin: 0; font-size: 11px; color: var(--sf-cinema-subtle); line-height: 1.5; }

.sf-acct__group { border: 0; border-top: 1px solid var(--sf-cinema-border); margin: 16px 0 0; padding: 14px 0 0; }
.sf-acct__group legend {
	padding: 0; font-size: 10px; font-weight: 800; letter-spacing: .1em;
	text-transform: uppercase; color: var(--sf-cinema-subtle);
}
.sf-acct__current { margin: 0 0 10px; font-size: 12px; color: var(--sf-cinema-muted); }
.sf-acct__current b { color: var(--sf-cinema-text); font-weight: 600; }

/* The current-password field is revealed only when something needs it, and the
   label sets display, which beats the UA sheet's [hidden] at any specificity. */
.sf-profile-modal [data-sf-acct-confirm][hidden] { display: none; }

.sf-acct__msg { margin: 12px 0 0; font-size: 12.5px; color: #4ED6A5; }
.sf-acct__msg.is-error { color: var(--sf-accent); }
.sf-acct__msg[hidden] { display: none; }

/* Strength meter. Colour is the signal, so it is semantic (weak → strong) and
   independent of the accent — the accent means "primary action" everywhere else
   and a red bar here must read as "weak", not "selected". */
.sf-acct__meter { display: flex; align-items: center; gap: 9px; margin: 6px 0 0; }
.sf-acct__meter[hidden] { display: none; }
.sf-acct__meter-bar { flex: 1; height: 4px; border-radius: 3px; background: var(--sf-cinema-border); overflow: hidden; }
.sf-acct__meter-bar > span { display: block; height: 100%; width: 0; transition: width .18s, background .18s; }
.sf-acct__meter-bar > span.is-score-0,
.sf-acct__meter-bar > span.is-score-1 { background: #E5484D; }
.sf-acct__meter-bar > span.is-score-2 { background: #F5B942; }
.sf-acct__meter-bar > span.is-score-3 { background: #4ED6A5; }
.sf-acct__meter-bar > span.is-score-4 { background: #2FB98B; }
.sf-acct__meter-label { font-size: 11px; font-weight: 700; color: var(--sf-cinema-muted); min-width: 70px; }
