:root {
	--bg: #0c0c0e;
	--bg-elev: #141417;
	--bg-elev-2: #1b1b20;
	--line: #2a2a31;
	--line-soft: #1f1f25;
	--fg: #e9e9ec;
	--fg-dim: #9a9aa3;
	--fg-mute: #6e6e77;
	--red: #d4202f;
	--red-bright: #ec1b27;
	--red-glow: rgba(212, 32, 47, 0.45);
	--silver-1: #f4f4f6;
	--silver-2: #b7b7c0;
	--radius: 6px;
	--maxw: 1200px;
	--header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* The hidden attribute must win even on elements we give an explicit display (modal, banner,
   toggled buttons). Without this, display:flex/inline-flex would override [hidden]. */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
	background:
		radial-gradient(1200px 600px at 50% -12%, rgba(212, 32, 47, 0.07), transparent 60%),
		var(--bg);
	color: var(--fg);
	font-family: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.siteHeader {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 0 28px;
	background: linear-gradient(180deg, rgba(18, 18, 21, 0.96), rgba(12, 12, 14, 0.9));
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(8px);
}

/* Left/right columns flex equally so the centre nav is truly centered between them. */
.brand { display: flex; align-items: center; flex: 1 1 0; }
.brandLogo { height: 70px; width: auto; display: block; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7)); }

.mainNav { display: flex; align-items: center; justify-content: center; gap: 26px; }
.navLink {
	position: relative;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--fg-dim);
	padding: 6px 2px;
	transition: color 0.15s;
}
.navLink:hover { color: var(--fg); }
.navLink.isActive { color: var(--fg); }
.navLink.isActive::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -3px;
	height: 2px;
	background: var(--red);
	box-shadow: 0 0 8px var(--red-glow);
}

.socials { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.socialLink { color: var(--fg-mute); display: inline-flex; transition: color 0.15s, transform 0.15s; }
.socialLink:hover { color: var(--fg); transform: translateY(-1px); }
.socialLink svg { width: 18px; height: 18px; display: block; fill: currentColor; }

.stage { max-width: var(--maxw); margin: 0 auto; padding: 28px; }
/* The live/watch page uses a wider canvas for its three-column layout. */
.stage.stageWide { max-width: 1850px; }

/* ---------- Mobile nav: a hamburger toggles the main nav as a dropdown under the header (<=991px) ---------- */
.navToggle { display: none; flex: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 40px; padding: 0 9px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.navToggleBar { display: block; height: 2px; width: 100%; background: var(--fg); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
/* Desktop: the wrapper is transparent so the nav + account menu stay direct header flex items (nav centred, account right). */
.headerNav { display: contents; }
@media (max-width: 991px) {
	.navToggle { display: flex; }
	.siteHeader { gap: 12px; padding: 0 16px; }
	.brand { flex: 1 1 auto; }
	.brandLogo { height: 46px; }
	/* The whole nav (links + account buttons) drops down from under the header; the hamburger sits on the right. */
	.headerNav {
		position: absolute; top: 100%; left: 0; right: 0;
		display: none; flex-direction: column;
		padding: 6px 0 4px; background: var(--bg-elev);
		border-bottom: 1px solid var(--line); box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5);
	}
	.siteHeader.navOpen .headerNav { display: flex; }
	.mainNav { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; }
	.mainNav .navLink { padding: 13px 22px; font-size: 14px; }
	.mainNav .navLink.isActive::after { display: none; }
	/* Account buttons sit under Contact: divided off, side by side, full width. */
	.userMenu { flex: none; justify-content: stretch; gap: 10px; margin-top: 6px; padding: 12px 20px; border-top: 1px solid var(--line); }
	.userMenu .btn { flex: 1 1 0; padding: 10px 12px; font-size: 12px; justify-content: center; text-align: center; }
	.siteHeader.navOpen .navToggleBar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.siteHeader.navOpen .navToggleBar:nth-child(2) { opacity: 0; }
	.siteHeader.navOpen .navToggleBar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 380px) {
	.brandLogo { height: 38px; }
	.userMenu .btn { padding: 6px 9px; letter-spacing: 0.5px; }
}

/* ---------- Contact page ---------- */
.contactWrap { display: flex; justify-content: center; padding: 48px 20px; }
.contactCard {
	width: 100%;
	max-width: 560px;
	background: var(--bg-elev);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 32px 30px;
}
.contactTitle { font-size: 26px; font-weight: 700; letter-spacing: 0.5px; }
.contactSub { color: var(--fg-dim); font-size: 14px; margin: 8px 0 24px; }

.contactForm .formRow { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.contactForm label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--fg-dim); }
.contactForm input, .contactForm textarea {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--fg);
	font-family: inherit;
	font-size: 14px;
	padding: 10px 12px;
	width: 100%;
}
.contactForm textarea { resize: vertical; min-height: 130px; }
.contactForm input:focus, .contactForm textarea:focus {
	outline: none;
	border-color: var(--red);
	box-shadow: 0 0 0 2px rgba(212, 32, 47, 0.18);
}
.contactSubmit { width: 100%; justify-content: center; margin-top: 6px; }

.fieldError { color: var(--red-bright); font-size: 12px; }
.errorBox {
	background: rgba(212, 32, 47, 0.1);
	border: 1px solid rgba(212, 32, 47, 0.4);
	color: var(--red-bright);
	border-radius: var(--radius);
	padding: 11px 16px;
	margin-bottom: 16px;
	font-size: 14px;
}

/* Honeypot: kept in the DOM for bots but pushed off-screen and out of the tab order. */
.hpField { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	padding: 11px 18px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--bg-elev-2);
	color: var(--fg);
	transition: all 0.15s;
}
.btn:hover { border-color: var(--fg-mute); }
.btnPrimary { background: var(--red); border-color: var(--red); color: #fff; }
.btnPrimary:hover { background: var(--red-bright); border-color: var(--red-bright); }
/* Destructive action (cancel a promotion): muted by default, red on hover so it is not the loud default. */
.btnDanger { background: transparent; border-color: var(--line); color: var(--fg-dim); }
.btnDanger:hover { border-color: var(--red); color: var(--red-bright); }

.contactSent { text-align: center; }
.contactSent .contactSub { margin-bottom: 26px; }
.sentMark {
	width: 64px;
	height: 64px;
	margin: 4px auto 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(212, 32, 47, 0.12);
	border: 1px solid var(--red);
}
.sentMark svg { width: 32px; height: 32px; fill: var(--red-bright); }


/* ---------- Modal ---------- */
body.modalOpen { overflow: hidden; }
.modalOverlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(4, 4, 6, 0.72);
	backdrop-filter: blur(3px);
}
.modalDialog {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: var(--bg-elev);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 32px 36px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.modalClose { position: absolute; top: 18px; right: 18px; background: none; border: none; cursor: pointer; color: var(--fg-mute); padding: 4px; line-height: 0; }
.modalClose:hover { color: var(--fg); }
.modalClose svg { width: 22px; height: 22px; display: block; }
.modalTitle { text-align: center; font-size: 24px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--silver-1); }
.modalRule { width: 54px; height: 3px; margin: 10px auto 16px; border-radius: 2px; background: var(--red); box-shadow: 0 0 8px var(--red-glow); }
.modalSub { text-align: center; color: var(--fg-dim); font-size: 14px; line-height: 1.5; max-width: 470px; margin: 0 auto 26px; }

/* Modal reuses the .contactForm field styles; add the subject <select> to match. */
.contactForm select {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--fg);
	font-family: inherit;
	font-size: 14px;
	padding: 10px 38px 10px 12px;
	width: 100%;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239a9aa3'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
}
.contactForm select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 2px rgba(212, 32, 47, 0.18); }
.contactForm label .req { color: var(--red); }
.contactForm label .optional { color: var(--fg-mute); text-transform: none; letter-spacing: 0; }

.formError {
	background: rgba(212, 32, 47, 0.1);
	border: 1px solid rgba(212, 32, 47, 0.4);
	color: var(--red-bright);
	border-radius: var(--radius);
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 14px;
}
.modalActions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 4px; }
.contactSend .sendIcon { width: 15px; height: 15px; fill: currentColor; }
.contactSend.isSending { opacity: 0.65; cursor: default; }
.modalPrivacy { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 18px 0 0; font-size: 12px; color: var(--fg-mute); }
.modalPrivacy svg { width: 13px; height: 13px; fill: currentColor; flex: none; }

.contactDone { text-align: center; padding: 8px 0 4px; }
.contactDone .doneMark {
	width: 60px; height: 60px; margin: 0 auto 16px;
	border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: rgba(212, 32, 47, 0.12); border: 1px solid var(--red);
}
.contactDone .doneMark svg { width: 30px; height: 30px; fill: var(--red-bright); }
.contactDone h3 { font-size: 20px; color: var(--silver-1); margin-bottom: 8px; }
.contactDone p { color: var(--fg-dim); font-size: 14px; margin-bottom: 22px; }

@media (max-width: 560px) {
	.modalOverlay { padding: 10px; align-items: flex-start; }
	.modalDialog, .modalDialog.isWide { max-width: none; max-height: calc(100vh - 20px); padding: 26px 18px; }
	.betaText { font-size: 12px; }
}

/* ---------- Header auth menu + generic modal (account flows, contact) ---------- */
.userMenu { display: flex; align-items: center; gap: 10px; flex: 1 1 0; justify-content: flex-end; }
.btnSmall { padding: 8px 14px; font-size: 12px; }
.btnGhost { background: transparent; }
.btnGhost:hover { background: var(--bg-elev-2); }
.btnBlock { width: 100%; }

.modalBody { min-height: 40px; }
.modalLoading { text-align: center; color: var(--fg-mute); padding: 30px 0; }
.modalError { text-align: center; color: var(--red-bright); padding: 24px 0; }

/* Field styling for modal/auth forms, matching the contact form. */
.modalForm .formRow { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.modalForm label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--fg-dim); }
.modalForm label .req { color: var(--red); }
.modalForm label .optional { color: var(--fg-mute); text-transform: none; letter-spacing: 0; }
.modalForm input, .modalForm textarea, .modalForm select {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--fg);
	font-family: inherit;
	font-size: 14px;
	padding: 11px 12px;
	width: 100%;
}
.modalForm textarea { resize: vertical; min-height: 120px; }
.modalForm select {
	appearance: none;
	padding-right: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239a9aa3'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
}
.modalForm input:focus, .modalForm textarea:focus, .modalForm select:focus {
	outline: none; border-color: var(--red); box-shadow: 0 0 0 2px rgba(212, 32, 47, 0.18);
}
.modalForm .sendIcon { width: 15px; height: 15px; fill: currentColor; }
.btn.isSending { opacity: 0.65; cursor: default; }

.checkRow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-dim); margin: -4px 0 16px; cursor: pointer; }
.checkRow input { width: auto; }

.modalAlt { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-top: 16px; font-size: 13px; color: var(--fg-dim); }
.modalAlt a { color: var(--red-bright); }
.modalAlt a:hover { color: var(--fg); text-decoration: underline; }
.modalAlt .altSep { color: var(--fg-mute); }

/* Standalone /account and /Contact pages reuse the modal card, centered. */
.authPage { display: flex; justify-content: center; padding: 10px 0 40px; }
.authPage .modalDialog { max-width: 460px; box-shadow: none; }
/* The standalone /account card holds the wide settings layout, so match the wide modal (not the 460px auth width). */
.authPage .authCard { max-width: 760px; padding: 30px 30px 30px 15px; }

/* Success panel the modal JS renders after a successful submit. */
.modalDone { text-align: center; padding: 10px 0 4px; }
.modalDone .doneMark {
	width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(212, 32, 47, 0.12); border: 1px solid var(--red);
}
.modalDone .doneMark svg { width: 30px; height: 30px; fill: var(--red-bright); }
.modalDone h3 { font-size: 20px; color: var(--silver-1); margin-bottom: 8px; }
.modalDone p { color: var(--fg-dim); font-size: 14px; margin-bottom: 22px; }
.modalDone .btnBlock + .btnBlock { margin-top: 10px; }

/* My Account panel */
.acctRows { margin-bottom: 6px; }
.acctRow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.acctLabel { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--fg-mute); }
.acctValue { color: var(--fg); font-size: 14px; word-break: break-all; }
.acctBadge { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; }
.acctBadge.ok { background: rgba(60, 180, 90, 0.16); color: #76d093; }
.acctBadge.warn { background: rgba(212, 32, 47, 0.16); color: #ff8a8a; }
.acctNudge { background: var(--bg-elev-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-top: 16px; }
.acctNudge p { font-size: 13px; line-height: 1.5; color: var(--fg-dim); margin-bottom: 12px; }
.acctSection { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.acctHead { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--fg-dim); margin-bottom: 14px; }
.inlineForm { display: inline-block; }

/* Flash banner shown after a no-JS redirect (full-page account flows). */
.siteFlash { max-width: var(--maxw); margin: 16px auto -6px; padding: 11px 16px; border-radius: var(--radius); font-size: 14px; }
.siteFlash.ok { background: rgba(60, 180, 90, 0.12); border: 1px solid rgba(60, 180, 90, 0.4); color: #9fe0b3; }
.siteFlash.err { background: rgba(212, 32, 47, 0.1); border: 1px solid rgba(212, 32, 47, 0.4); color: var(--red-bright); }

@media (max-width: 560px) {
	.userMenu { gap: 6px; }
	.btnSmall { padding: 7px 11px; }
}

/* ---------- Account settings (left nav + right content, claude.ai-style) ---------- */
.modalDialog.isWide { max-width: 760px; padding: 30px 30px 30px 15px; }

.modalToast {
	position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 5;
	font-size: 13px; padding: 7px 15px; border-radius: 999px;
	background: rgba(60, 180, 90, 0.16); border: 1px solid rgba(60, 180, 90, 0.45); color: #9fe0b3;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.settingsLayout { display: grid; grid-template-columns: 188px 1fr; min-height: 360px; }

.settingsNav { display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); padding-right: 14px; }
.settingsNavItem {
	display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
	background: none; border: none; font: inherit; font-size: 14px; color: var(--fg-dim);
	padding: 9px 12px; border-radius: var(--radius); cursor: pointer; transition: background 0.12s, color 0.12s;
}
.settingsNavItem svg { width: 17px; height: 17px; flex: none; }
.settingsNavItem:hover { background: var(--bg-elev-2); color: var(--fg); }
.settingsNavItem.is-active { background: var(--bg-elev-2); color: var(--fg); }
.settingsNavItem.is-active svg { color: var(--red-bright); }
.settingsLogoutForm { margin-top: auto; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.settingsNavItem.isLogout { color: var(--fg-mute); }
.settingsNavItem.isLogout:hover { color: var(--red-bright); background: rgba(212, 32, 47, 0.1); }

.settingsContent { padding-left: 26px; }
.settingsTitle { font-size: 18px; font-weight: 700; color: var(--silver-1); margin-bottom: 20px; }
.settingsGroup { margin-bottom: 24px; }
.settingsGroup:last-child { margin-bottom: 0; }
.settingsGroupHead { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--fg-mute); margin-bottom: 12px; }
.settingsActions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.settingsEmpty { color: var(--fg-mute); font-size: 14px; }

/* A label + control row (the notification preference) */
.toggleRow { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.toggleTitle { font-size: 14px; color: var(--fg); }
.toggleHint { font-size: 12.5px; color: var(--fg-mute); margin-top: 3px; line-height: 1.45; }

/* My Account chat-icon picker (click to cycle + save), like the avatar in app settings. */
.iconRow { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.iconRowTitle { font-size: 13px; font-weight: 600; color: var(--silver-1); margin-bottom: 3px; }
.iconPicker { width: 40px; height: 40px; flex: none; padding: 0; border: none; border-radius: 50%; background: var(--bg-elev-2); box-shadow: 0 0 0 1px var(--line); cursor: pointer; overflow: hidden; }
.iconPicker img { width: 100%; height: 100%; object-fit: contain; display: block; }
.iconPicker img.isCover { object-fit: cover; }

/* Custom pill toggle (brand red when on) */
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.switch .track {
	position: absolute; inset: 0; border-radius: 999px;
	background: var(--bg-elev-2); border: 1px solid var(--line); transition: background 0.15s, border-color 0.15s;
}
.switch .thumb {
	position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--silver-2); transition: transform 0.15s, background 0.15s; pointer-events: none;
}
.switch input:checked ~ .track { background: var(--red); border-color: var(--red); }
.switch input:checked ~ .thumb { transform: translateX(18px); background: #fff; }
.switch input:focus-visible ~ .track { box-shadow: 0 0 0 2px rgba(212, 32, 47, 0.35); }

@media (max-width: 560px) {
	.modalDialog.isWide { max-width: 760px; }
	.settingsLayout { grid-template-columns: 1fr; min-height: 0; }
	.settingsNav { flex-direction: row; flex-wrap: wrap; gap: 4px; border-right: none; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 12px; }
	.settingsNavItem { width: auto; }
	.settingsLogoutForm { margin-top: 0; border-top: none; padding-top: 0; }
	.settingsContent { padding-left: 0; padding-top: 18px; }
}

/* ---------- Public band pages (/bands search + /band/{slug} profile) ---------- */
.bandsHead { margin-bottom: 18px; }
.bandsHead h1 { font-size: 26px; font-weight: 700; letter-spacing: 1px; color: var(--silver-1); }
.bandsSub { color: var(--fg-dim); font-size: 14px; margin-top: 4px; }

.bandSearch { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px 18px; margin-bottom: 22px; }
.searchGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 18px; }
.searchToggles { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 2px; }
.switchRow { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--fg-dim); }
.searchActions { margin-left: auto; display: flex; gap: 10px; }

.resultsMeta { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--fg-mute); margin: 4px 0 14px; }
.bandsEmpty { color: var(--fg-mute); padding: 30px 0; text-align: center; }

.bandGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 18px; }
.bandCard { display: block; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color 0.15s; }
.bandCard:hover { border-color: var(--red); }
.placeholderArt, .bandCardArt, .bpPhoto.noArt, .bpAlbumArt.noArt {
	background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 10px, rgba(255,255,255,0) 10px 20px), var(--bg-elev-2);
}
.bandCardArt { aspect-ratio: 16 / 10; }
.bandCardArt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bandCardName { padding: 11px 12px 2px; font-weight: 600; font-size: 14px; color: var(--silver-1); line-height: 1.25; }
.bandCardMeta { padding: 0 12px 12px; font-size: 12px; color: var(--fg-mute); }

/* My Tracks: saved-track list, one row each. Album art -> band photo -> band logo cascade is in tracks.js. */
.trackList { display: flex; flex-direction: column; gap: 8px; }
.trackRow { display: flex; align-items: center; gap: 14px; padding: 10px 12px; background: var(--bg-elev-2); border: 1px solid var(--line); border-radius: 8px; transition: border-color 0.15s; }
.trackRow:hover { border-color: rgba(236, 27, 39, .35); }
.trackArt { flex: none; width: 56px; height: 56px; border-radius: 4px; overflow: hidden; background: var(--bg-elev); position: relative; display: block; }
.trackArt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trackArtFallback { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 10px, rgba(255,255,255,0) 10px 20px), var(--bg-elev-2); }
.trackMain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.trackTitle { font-size: 15px; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trackTitle a { color: inherit; text-decoration: none; }
.trackTitle a:hover { color: var(--red-bright); }
.trackSub { font-size: 13px; color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trackSub a { color: var(--fg-dim); text-decoration: none; }
.trackSub a:hover { color: #fff; text-decoration: underline; }
.trackSub .sep { color: var(--fg-mute); margin: 0 6px; }
.trackChips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.trackMeta { flex: none; display: flex; align-items: center; gap: 14px; color: var(--fg-mute); font-size: 12px; white-space: nowrap; }
.trackInRotation { color: var(--red-bright); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; font-size: 11px; }
.trackRemove { flex: none; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg-mute); cursor: pointer; transition: color 0.15s, background 0.15s, border-color 0.15s; }
.trackRemove:hover { color: #fff; border-color: var(--red); background: rgba(212, 32, 47, .16); }
.trackRemove svg { width: 13px; height: 13px; fill: currentColor; }
@media (max-width: 620px) {
	.trackMeta, .trackChips { display: none; }
}

.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 26px; }
.pager .hint { color: var(--fg-mute); font-size: 13px; }

/* Profile */
.bandProfile { max-width: 1040px; margin: 0 auto; }
.bpHead { display: flex; gap: 26px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 30px; }
.bpPhoto { width: 260px; aspect-ratio: 16 / 12; flex: none; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.bpPhoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bpIdentity { flex: 1 1 280px; }
.bpKicker { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.bpName { font-size: 34px; font-weight: 700; letter-spacing: 0.5px; color: var(--silver-1); line-height: 1.1; }
.bpTags { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
.bpTag { font-size: 12px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-dim); }
.bpTag.isActive { color: #76d093; border-color: rgba(60,180,90,.4); }
/* Our normalised genre families (prominent, red-tinted) + modifier tags (small, muted), both link to search. */
.bpGenreTags { margin: -10px 0 0; }
.bpModTags { margin: 8px 0 0; }
.bpFamily { color: var(--silver-1); border-color: rgba(212, 32, 47, 0.45); }
.bpMod { font-size: 11px; padding: 3px 9px; color: var(--fg-mute); border-color: var(--line-soft); text-transform: lowercase; }

/* Genre family + tag chips, identical to /admin/Genres. Used as links in the band card; white text on hover. */
.gChip { display: inline-block; font-size: 11px; padding: 2px 8px; margin: 2px 4px 2px 0; border-radius: 999px; background: rgba(212, 32, 47, .14); border: 1px solid rgba(212, 32, 47, .4); color: #f0b9bf; text-decoration: none; }
.gTag { display: inline-block; font-size: 11px; padding: 2px 7px; margin: 2px 4px 2px 0; border-radius: 4px; background: rgba(255, 255, 255, .05); color: var(--fg-mute); text-decoration: none; }
a.gChip:hover, a.gTag:hover { color: #fff; }
/* Follow + Edit buttons share a row on the profile head. */
.bpActions { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin-top: 16px; }
.bpActions .panelBtn { margin-top: 0; }

.bpGrid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; align-items: start; }
.bpSection { margin-bottom: 30px; }
.bpSectionTitle { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--red); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.bpBio { color: var(--fg-dim); line-height: 1.65; font-size: 14px; white-space: pre-line; }

.bpAlbum { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.bpAlbum:last-child { border-bottom: none; }
.bpAlbumArt { width: 96px; height: 96px; flex: none; border-radius: 5px; overflow: hidden; border: 1px solid var(--line-soft); }
.bpAlbumArt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bpAlbumName { font-weight: 600; font-size: 16px; color: var(--silver-1); }
.bpAlbumMeta { font-size: 12px; color: var(--fg-mute); margin: 2px 0 10px; }
.bpTracks { list-style: none; margin: 0; padding: 0; }
.bpTrack { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; flex-wrap: wrap; }
.bpTrackNo { width: 22px; text-align: right; color: var(--fg-mute); font-variant-numeric: tabular-nums; }
.bpTrackName { color: var(--fg); }
.bpTrackLen { color: var(--fg-mute); font-variant-numeric: tabular-nums; }
.bpVideo { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--red-bright); }
.bpVideo svg { width: 13px; height: 13px; fill: currentColor; }
.bpVideo:hover { color: #fff; }
/* Video status (i) badge: colour conveys state, the title gives the label on hover. */
.vidStatus { display: inline-flex; align-items: center; cursor: help; }
.vidStatus svg { width: 14px; height: 14px; display: block; }
.vidStatus.green { color: #4caf6d; }
.vidStatus.blue { color: #4a9fe0; }
.vidStatus.red { color: var(--red-bright); }
/* "+" to add a video to a track (logged-in members); appears on row hover, always shown on touch. */
.bpAddVideo { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: none; border-radius: 50%; background: none; color: var(--fg-mute); font-size: 19px; line-height: 1; cursor: pointer; opacity: 0.38; transition: opacity 0.15s, color 0.15s; }
.bpTrack:hover .bpAddVideo, .bpAddVideo:focus-visible, .bpAddVideo:hover { opacity: 1; }
.bpAddVideo:hover { color: #fff; }

/* Inline checkbox + label row (e.g. the "I verify this is a real music video" confirmation). */
.checkRow { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--fg-dim); margin: 2px 0 8px; cursor: pointer; }
.checkRow input { margin-top: 2px; flex: none; }

/* Custom checkbox: hidden native input + a drawn mark. House rule: no vanilla form elements. */
.checkBox { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--fg-dim); margin: 12px 0 8px; cursor: pointer; }
.checkBox input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkBoxMark { flex: none; width: 18px; height: 18px; margin-top: 1px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-elev-2); position: relative; transition: border-color .15s, background .15s; }
.checkBox:hover .checkBoxMark { border-color: var(--fg-mute); }
.checkBox input:focus-visible + .checkBoxMark { border-color: var(--red); box-shadow: 0 0 0 2px rgba(212, 32, 47, .25); }
.checkBox input:checked + .checkBoxMark { background: var(--red); border-color: var(--red); }
.checkBoxMark::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; transition: opacity .12s; }
.checkBox input:checked + .checkBoxMark::after { opacity: 1; }
.checkBoxText { flex: 1; }

/* Submit-band chooser: two selectable option cards split by a divider (radio centred against the text) */
.chooser { max-width: 470px; margin: 0 auto 22px; }
.chooserOption { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elev-2); cursor: pointer; transition: border-color .15s, background .15s; }
.chooserOption:hover { border-color: var(--fg-mute); }
.chooserOption input { position: absolute; opacity: 0; width: 0; height: 0; }
.chooserRadio { flex: none; width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 50%; position: relative; transition: border-color .15s; }
.chooserOption:hover .chooserRadio { border-color: var(--fg-mute); }
.chooserOption input:focus-visible + .chooserRadio { border-color: var(--red); box-shadow: 0 0 0 2px rgba(212, 32, 47, .25); }
.chooserOption input:checked + .chooserRadio { border-color: var(--red); }
.chooserRadio::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red-glow); transform: translate(-50%, -50%) scale(0); transition: transform .12s; }
.chooserOption input:checked + .chooserRadio::after { transform: translate(-50%, -50%) scale(1); }
.chooserOption:has(input:checked) { border-color: var(--red); background: rgba(212, 32, 47, .07); }
.chooserBody { display: flex; flex-direction: column; gap: 4px; }
.chooserHeading { font-size: 15px; font-weight: 700; letter-spacing: .3px; color: var(--silver-1); }
.chooserText { font-size: 13px; line-height: 1.5; color: var(--fg-dim); }
.chooserDivider { height: 1px; margin: 14px 2px; background: var(--line); }

/* Custom confirm dialog (window.SiteConfirm). House rule: never use the browser's confirm(). */
.confirmOverlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .66); }
.confirmDialog { width: 100%; max-width: 380px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.confirmMsg { margin: 0 0 20px; color: var(--fg); font-size: 14px; line-height: 1.55; }
.confirmActions { display: flex; justify-content: flex-end; gap: 10px; }

/* Frequency: the genre-preference button (player bar) + picker dialog. The animated bars are Phase 4. */
.freqBtn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: #fff; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 7px 12px; cursor: pointer; transition: color .15s, border-color .15s; }
.freqBtn:hover { color: #fff; border-color: var(--red); }
.freqBtn svg { width: 15px; height: 15px; fill: currentColor; display: block; }
.freqOverlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 4, 6, .72); }
.freqDialog { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 8px; padding: 26px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.freqTitle { font-size: 20px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--silver-1); margin: 0 0 6px; }
.freqSub { color: var(--fg-dim); font-size: 13px; line-height: 1.5; margin: 0 0 12px; }
.freqCount { color: var(--red-bright); font-weight: 600; white-space: nowrap; }
.freqTools { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.freqAll { background: transparent; border: 1px solid var(--line); color: var(--fg-dim); border-radius: var(--radius); padding: 5px 13px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: border-color .15s, color .15s; }
.freqAll:hover { border-color: var(--red); color: #fff; }
.freqGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-bottom: 20px; }
.freqOpt { margin: 7px 0; }
.freqOpt input:disabled ~ .checkBoxText { opacity: .4; }
.freqActions { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 520px) { .freqGrid { grid-template-columns: 1fr; } }

.bpFacts { margin: 0 0 18px; }
.bpFacts dt { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--fg-mute); margin-top: 12px; }
.bpFacts dd { font-size: 14px; color: var(--fg); margin: 2px 0 0; }

/* Country + genre tags link to the search page; keep the pill look, add a hover. */
a.bpTag { text-decoration: none; transition: color 0.15s, border-color 0.15s; }
a.bpTag:hover { color: #fff; border-color: var(--red); }

/* Band logo, shown above the facts when the band also has a member photo (the main image). */
.bpLogo { margin-bottom: 18px; border-radius: var(--radius); display: flex; align-items: flex-start; justify-content: left; }
.bpLogo img { max-width: 100%; width: auto; height: auto; object-fit: contain; }

/* Related/social links + the Metal Archives link, under the facts. */
.bpLinks { margin: 0 0 18px; }
.bpLinksTitle { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--fg-mute); margin-bottom: 10px; }
.bpLink { display: block; padding: 8px 12px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg-dim); font-size: 13px; font-weight: 600; text-decoration: none; transition: color 0.15s, border-color 0.15s; }
.bpLink:hover { color: #fff; border-color: var(--red); }
.bpLinkMa { color: var(--silver-2); }

/* My Account > Bands tab: the member's own bands + the submit-from-MA note. */
.settingsLead { color: var(--fg-dim); font-size: 14px; line-height: 1.6; margin: 0 0 18px; }
.myBandList { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.myBandRow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.myBandName { font-weight: 600; color: var(--silver-1); margin-right: auto; }
.myBandBadge { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--fg-mute); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.myBandBadge.ok { color: #76d093; border-color: rgba(60, 180, 90, .4); }
.bandsNote { margin-top: 16px; font-size: 13px; color: var(--fg-dim); line-height: 1.6; padding-top: 14px; border-top: 1px solid var(--line-soft); }

/* Promotions list (My Account) */
.myPromoList { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.myPromoRow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
a.myPromoRow:hover { border-color: var(--red); background: var(--bg-elev-2); }
a.myPromoRow:hover .myPromoTitle { color: #fff; }
.myPromoKind { flex: none; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--fg-dim); background: var(--bg-elev-2); border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px; }
.myPromoBody { display: flex; flex-direction: column; gap: 2px; margin-right: auto; min-width: 0; }
.myPromoTitle { font-weight: 600; color: var(--silver-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.myPromoMeta { font-size: 12px; color: var(--fg-mute); }
.myPromoBadge { flex: none; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--fg-mute); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.myPromoBadge.ok { color: #76d093; border-color: rgba(60, 180, 90, .4); }
.myPromoBadge.warn { color: #e8c06b; border-color: rgba(220, 170, 70, .4); }
.myPromoBadge.err { color: #ec6a76; border-color: rgba(236, 65, 80, .4); }

/* ---------- Song picker (modal) ---------- */
.songPicker { display: flex; flex-direction: column; }
.pickSearch { margin: 4px 0 10px; }
.pickSearch input { width: 100%; font: inherit; color: var(--fg); background: var(--bg-elev-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; }
.pickSearch input:focus { outline: none; border-color: var(--red); }
.pickList { height: 48vh; overflow-y: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.pickRow { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.pickRow:last-child { border-bottom: 0; }
.pickRow:hover { background: var(--bg-elev-2); }
.pickRow.isTaken { opacity: .5; cursor: not-allowed; }
.pickRow input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.pickRadio { flex: none; width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 50%; position: relative; }
.pickRow input:checked + .pickRadio { border-color: var(--red); }
.pickRow input:checked + .pickRadio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--red); }
.pickArt { flex: none; width: 40px; height: 40px; object-fit: cover; border-radius: 4px; background: var(--bg-elev-2); }
.pickInfo { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.pickSongName { color: var(--silver-1); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pickBandName { color: var(--fg-mute); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pickTaken { flex: none; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--fg-mute); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.pickSentinel { height: 1px; }
.pickEmpty { color: var(--fg-mute); padding: 18px; text-align: center; }
.pickFoot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; }
.pickError { color: var(--err); font-size: 13px; margin-right: auto; }

/* ---------- Promotion builder page ---------- */
.promoPage { max-width: 940px; margin: 0 auto; padding: 26px 16px 64px; }
.promoHead { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.promoArt { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; background: var(--bg-elev-2); flex: none; }
.promoKicker { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--red); }
.promoSongTitle { margin: 2px 0 4px; font-size: 26px; color: var(--silver-1); }
.promoBandLine { color: var(--fg-dim); }
.promoBandLine a { color: var(--fg-dim); }
.promoBandLine a:hover { color: var(--fg); }
.promoAlbum { color: var(--fg-mute); }

.promoBuild { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }
.promoMain { min-width: 0; }
/* The builder's main column reads as a panel, matching the side card and the site's settings look. */
.promoCard { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.promoCard .promoNotice, .promoCard .promoActive { padding: 8px 4px; }
.promoPrice { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.promoPriceLabel { color: var(--fg-dim); }
.promoPriceValue { font-size: 22px; font-weight: 700; color: var(--silver-1); }

.iconSelect { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.iconSelectBtn { display: inline-flex; align-items: center; gap: 8px; font: inherit; color: var(--fg); background: var(--bg-elev-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 11px; cursor: pointer; }
.iconSelectBtn img { width: 22px; height: 22px; object-fit: contain; }
.iconClear { font: inherit; font-size: 12px; color: var(--fg-mute); background: none; border: 0; cursor: pointer; }
.iconClear:hover { color: var(--fg); }
.iconGrid { flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; max-height: 188px; overflow-y: auto; margin-top: 8px; padding: 8px; background: var(--bg-elev-2); border: 1px solid var(--line); border-radius: var(--radius); }
.iconGridItem { display: flex; align-items: center; justify-content: center; padding: 6px; background: none; border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.iconGridItem:hover { border-color: var(--red); background: var(--bg-elev); }
.iconGridItem img { width: 28px; height: 28px; object-fit: contain; }

.ctaPreview { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 12px; }
.ctaPreviewLabel { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--fg-mute); }
.ctaPreviewNone { color: var(--fg-mute); font-size: 13px; }

.promoCheckout { margin-top: 8px; }
.promoSuccess, .promoNotice, .promoActive { text-align: center; padding: 18px 4px; }
.promoNotice h2, .promoActive h2, .promoSuccess h2 { color: var(--silver-1); margin: 0 0 8px; }
.promoNotice p, .promoActive p, .promoSuccess p { color: var(--fg-dim); line-height: 1.6; margin: 0 0 16px; }
.promoActiveCta { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; }
.promoFinePrint { font-size: 12px; color: var(--fg-mute); line-height: 1.5; margin: 26px 0 0; }
/* Beat the more specific ".promoActive p" rule above so the fine print keeps its top spacing in the Mine view. */
.promoActive .promoFinePrint { margin-top: 26px; }
.promoActive .settingsActions { justify-content: center; }   /* the song "Mine" panel is centered */
.promoSuccess .doneMark { width: 54px; height: 54px; margin: 0 auto 12px; color: #76d093; }
.promoSuccess .doneMark svg { width: 100%; height: 100%; fill: currentColor; }

/* Payment in a themed modal: a dark overlay framing the embedded (Stripe) checkout and the payment-received
   screen, so the white Stripe iframe sits inside an on-brand dialog instead of bare on the page. */
.promoModal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.promoModalBackdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); }
.promoModalDialog { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); padding: 22px; }
.promoModalClose { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1; color: var(--fg-mute); background: transparent; border: 0; border-radius: var(--radius); cursor: pointer; z-index: 1; }
.promoModalClose:hover { color: #fff; background: var(--bg-elev-2); }
.promoModal .promoCheckout { margin-top: 0; background: #fff; border-radius: var(--radius); padding: 4px; }
.promoModal .promoSuccess { padding: 10px 4px 4px; }

/* Ad status page facts list */
.adFacts { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.adFacts > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.adFacts dt { color: var(--fg-mute); }
.adFacts dd { margin: 0; color: var(--silver-1); text-align: right; }

/* ============================ Site footer ============================ */
.siteFooter { margin-top: 48px; border-top: 1px solid var(--line); background: var(--bg-elev); }
.footerInner { max-width: 1100px; margin: 0 auto; padding: 36px 22px 26px; display: flex; flex-wrap: wrap; gap: 32px; }
.footerCol { display: flex; flex-direction: column; gap: 9px; min-width: 150px; }
.footerBrand { flex: 1 1 280px; gap: 12px; }
.footerLogo { max-width: 130px; height: auto; }
.footerTag { color: var(--fg-mute); font-size: 13px; line-height: 1.6; max-width: 320px; margin: 0; }
.footerCol h4 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--silver-2); }
.footerCol a { color: var(--fg-dim); text-decoration: none; font-size: 14px; transition: color .15s; }
.footerCol a:hover { color: #fff; }
.footerBar { max-width: 1100px; margin: 0 auto; padding: 14px 22px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 8px; color: var(--fg-mute); font-size: 12px; }
.footerDot { opacity: .5; }

/* ============================ Content pages (shared prose) ============================ */
.contentWrap { max-width: 860px; margin: 0 auto; padding: 34px 22px 56px; }
.prose { color: var(--fg-dim); line-height: 1.7; }
.prose h1 { color: var(--silver-1); font-size: 30px; margin: 0 0 18px; line-height: 1.2; }
.prose h2 { color: var(--silver-1); font-size: 20px; margin: 30px 0 10px; }
.prose h3 { color: var(--silver-1); font-size: 16px; margin: 22px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 0 0 7px; }
.prose a { color: var(--red); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--silver-1); }
.helpNote { margin-top: 22px; padding: 12px 14px; background: var(--bg-elev-2); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius); font-size: 14px; color: var(--fg-dim); }

/* ============================ Help layout ============================ */
.helpWrap { max-width: 1080px; }
.helpLayout { display: flex; gap: 34px; align-items: flex-start; }
.helpSidebar { flex: 0 0 230px; position: sticky; top: 18px; }
.helpSidebarTitle { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--silver-2); margin: 0 0 12px; padding-left: 12px; }
.helpNav { display: flex; flex-direction: column; gap: 2px; }
.helpNavGroup { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--fg-mute); margin: 14px 0 5px; padding-left: 12px; }
.helpNavGroup:first-child { margin-top: 0; }
.helpNavLink { display: block; padding: 7px 12px; border-radius: var(--radius); color: var(--fg-dim); text-decoration: none; font-size: 14px; border-left: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.helpNavLink:hover { background: var(--bg-elev-2); color: #fff; }
.helpNavLink.isActive { background: var(--bg-elev-2); color: #fff; border-left-color: var(--red); }
.helpContent { flex: 1 1 auto; min-width: 0; }

/* Glossary definition list */
.glossary { margin: 0; }
.glossary dt { color: var(--silver-1); font-weight: 600; margin-top: 16px; }
.glossary dd { margin: 4px 0 0; color: var(--fg-dim); }

/* ============================ Legal pages ============================ */
.legalMeta { color: var(--fg-mute); font-size: 13px; margin: -8px 0 22px; }

/* ============================ About page ============================ */
.aboutHero { display: flex; gap: 30px; align-items: center; margin: 4px 0 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.aboutPhoto { flex: 0 0 220px; width: 220px; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-elev-2); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.aboutPhoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aboutIntro { flex: 1 1 300px; }
.aboutKicker { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--fg-mute); margin-bottom: 6px; }
.aboutPage .aboutName { font-size: 34px; line-height: 1.1; margin: 0 0 6px; color: var(--silver-1); }
.aboutPage .aboutRole { color: var(--silver-2); font-size: 15px; margin: 0 0 12px; }
.aboutPage .aboutName a { color: inherit; text-decoration: none; }
.aboutPage .aboutName a:hover { text-decoration: underline; }

/* ============================ Content pages: responsive ============================ */
@media (max-width: 760px) {
  .helpLayout { flex-direction: column; }
  .helpSidebar { position: static; flex: 1 1 auto; width: 100%; }
  .footerInner { gap: 24px; }
}

.promoSide { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.promoSideTitle { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--fg-dim); }
.promoSideEmpty { color: var(--fg-mute); font-size: 13px; line-height: 1.6; }
.promoPlays { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; max-height: 60vh; overflow-y: auto; }
.promoPlays li { color: var(--fg); font-size: 13px; font-variant-numeric: tabular-nums; padding-bottom: 7px; border-bottom: 1px solid var(--line-soft); }

@media (max-width: 760px) {
    .promoBuild { grid-template-columns: 1fr; }
}

/* ---------- Advertisements (builder preview + homepage units) ---------- */
/* Ad preview is shown at the true homepage banner width (1072), so the ad pages widen to fit it. */
.adPreviewWrap { max-width: 1104px; margin: 0 auto 22px; }
.adPreviewStage { display: flex; justify-content: center; margin-top: 8px; padding: 16px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); }
/* A tile is a ~square unit sized to the homepage Active Genres column (340px). Without this it inherits
   .adTile's width:100% and blows up to the full preview-stage width (up to ~1072px, the banner width).
   Banners are unaffected; applies to both the ad Details page and the builder's live preview. */
.adPreviewStage .adTile { width: 340px; max-width: 100%; }
.promoPage.promoWide { max-width: 1140px; }
/* Empty banner preview (no image yet): blend in as a site panel like the chat panel, a min height of 120px
   that grows with the text, no "add an image" placeholder. */
.adUnit.adNoImg { min-height: 120px; display: flex; align-items: center; background: var(--bg-elev); }
.adUnit.adNoImg img { display: none; }
.adUnit.adNoImg .adText { position: static; inset: auto; max-width: none; background: none; padding: 16px 22px; }

/* Ad image uploader (matches the band-edit image box: styled "Set image" button over a relative box, no
   raw file input). Reuses .imgUploadBtn / .imgRemove / .uploadInput. The chosen file previews here and in
   the live ad preview above; it uploads with the checkout request. */
.adImageBox { position: relative; width: 100%; max-width: 360px; aspect-ratio: 16 / 6; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background-color: var(--bg-elev-2); }
.adImageBox.noArt { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 10px, rgba(255, 255, 255, 0) 10px 20px); }
.adImageBox img { width: 100%; height: 100%; object-fit: contain; display: block; }

.adUnit { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-elev-2); text-decoration: none; color: var(--fg); }
.adUnit img { display: block; width: 100%; height: auto; }
.adUnit .adText { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,0)); }
.adUnit .adText strong { color: #fff; font-size: 14px; }
.adUnit .adText span { color: rgba(255,255,255,.82); font-size: 12px; }
/* Banner: the image and caption share ONE grid cell, so the banner height is the TALLER of the two. On wide
   screens the image keeps its natural strip height; on narrow screens the caption (which never crops) drives
   a taller box while the image cover-fills behind it. Fonts + padding shrink fluidly, so no JS, no cropping. */
.adBanner { width: 100%; max-width: 1072px; display: grid; }
.adBanner > img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; }
.adBanner .adText { grid-area: 1 / 1; position: static; max-width: 72%; justify-content: center; gap: clamp(5px, 1.4vw, 13px); padding: 14px clamp(16px, 4vw, 40px); background: linear-gradient(to right, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 52%, rgba(0,0,0,0) 100%); }
.adBanner .adText strong { font-family: 'Oswald', sans-serif; font-size: clamp(17px, 4.4vw, 36px); font-weight: 700; line-height: 1.05; letter-spacing: 0.5px; text-transform: uppercase; color: #f3eceb; text-shadow: 0 1px 1px rgba(0, 0, 0, .8); }
.adBanner .adText span { font-family: 'Barlow Semi Condensed', sans-serif; font-size: clamp(12px, 1.9vw, 16px); font-weight: 500; line-height: 1.35; letter-spacing: 0.3px; color: #c7b6b4; }
/* "Advertisement" marker, top-right of the banner. */
.adBanner::after { content: "Advertisement"; position: absolute; top: 0; right: 0; z-index: 2; padding: 2px 7px; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, .72); background: rgba(0, 0, 0, .45); border-bottom-left-radius: 6px; pointer-events: none; }
@media (max-width: 640px) { .adBanner .adText { max-width: 100%; } }
/* Tile: fills the column at its natural (auto) height. Caption sits top-left in the banner's fonts; the
   "Advertisement" marker sits bottom-right (same style as the banner's). */
.adTile { width: 100%; }
.adTile .adText { inset: 0 0 auto 0; gap: 4px; padding: 13px 15px; align-items: flex-start; background: linear-gradient(180deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .5) 50%, rgba(0, 0, 0, 0) 100%); }
.adTile .adText strong { font-family: 'Oswald', sans-serif; font-size: 23px; font-weight: 700; line-height: 1.08; letter-spacing: 0.5px; text-transform: uppercase; color: #f3eceb; text-shadow: 0 1px 2px rgba(0, 0, 0, .85); }
.adTile .adText span { font-family: 'Barlow Semi Condensed', sans-serif; font-size: 14px; font-weight: 500; line-height: 1.35; letter-spacing: 0.3px; color: #c7b6b4; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.adTile::after { content: "Advertisement"; position: absolute; bottom: 0; right: 0; z-index: 2; padding: 2px 7px; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, .72); background: rgba(0, 0, 0, .45); border-top-left-radius: 6px; pointer-events: none; }

/* Homepage slots + slide carousel */
.adSlot { position: relative; }
.adSlotBanner { margin-top: 14px; }   /* the tile sits in the band column, spaced by its 20px gap (matches the panels) */
.adSlot .adUnit { transition: transform .55s ease, opacity .55s ease; }
.adSlot .adUnit.adIn { transform: translateX(40px); opacity: 0; }
.adSlot .adUnit.adOut { position: absolute; top: 0; left: 0; right: 0; transform: translateX(-40px); opacity: 0; pointer-events: none; }

/* Fullscreen corner ad: a plain site-styled card (not the image-overlay unit), bottom-right and aligned
   with the now-playing overlay on the left, the same distance above the control bar (--barH). It slides
   down with the bar when the controls auto-hide. Hidden on mobile portrait fullscreen (it would clash with
   the overlay there; landscape has room). */
.adCorner { position: absolute; right: 20px; bottom: calc(var(--barH, 64px) + 12px); z-index: 40; width: 300px; max-width: 38vw; transition: transform 0.25s ease; }
.player.controlsHidden .adCorner { transform: translateY(var(--barH, 64px)); }
.adPromo { position: relative; background: rgba(10, 10, 12, 0.82); border: 1px solid rgba(255, 255, 255, 0.1); border-left: 3px solid var(--red); border-radius: 6px; padding: 14px 16px; box-shadow: 0 8px 28px rgba(0, 0, 0, .55); backdrop-filter: blur(8px); }
.adPromo .adKicker { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 6px; }
.adPromoHeading { display: block; font-size: 16px; font-weight: 700; line-height: 1.2; color: var(--silver-1); }
.adPromoText { margin: 5px 0 0; font-size: 13px; line-height: 1.45; color: var(--fg-dim); }
.adPromoLink { margin-top: 12px; display: inline-flex; align-items: center; gap: 7px; }
.adPromoLink .extIcon { width: 14px; height: 14px; fill: currentColor; }
.adCornerClose { position: absolute; top: -10px; right: -10px; z-index: 1; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #000; color: #fff; font-size: 17px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
@media (orientation: portrait) and (max-width: 820px) {
	.player.isFullscreen .adCorner { display: none; }
}

/* ---------- Manual band inline editor (the profile in edit mode for its owner) ---------- */
.bandEdit input, .bandEdit select, .bandEdit textarea { font: inherit; color: var(--fg); background: var(--bg-elev-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; }
.bandEdit input:focus, .bandEdit select:focus, .bandEdit textarea:focus { outline: none; border-color: var(--red); }

.editBar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 22px; }
.editBarText { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.editBadge { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--fg-mute); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.editBadge.ok { color: #76d093; border-color: rgba(60, 180, 90, .4); }
.editHint { font-size: 12px; color: var(--fg-mute); }
.editBarActions { display: flex; gap: 10px; }

.bpNameInput { width: 100%; font-size: 30px; font-weight: 700; color: var(--silver-1); }
.editRow { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.editRow input, .editRow select { min-width: 120px; font-size: 13px; }
.bpBioInput { width: 100%; line-height: 1.6; font-size: 14px; resize: vertical; }

/* Upload affordance over a photo / logo / album-art area. */
.bpPhoto, .editLogo, .bpAlbumArt { position: relative; }
.imgUpload { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 6px; }
.imgUploadBtn { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 3; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, .72); border: 1px solid var(--line); border-radius: var(--radius); padding: 5px 10px; cursor: pointer; white-space: nowrap; }
.imgUploadBtn.sm { font-size: 10px; padding: 3px 7px; }
.imgUploadBtn:hover { border-color: var(--red); }
.imgUploadBtn input { display: none; }
/* Remove (X) over an image box; appears only when an image is present. */
.imgRemove { position: absolute; top: 6px; right: 6px; z-index: 4; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(0, 0, 0, .66); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.imgRemove:hover { color: var(--red); border-color: var(--red); background: rgba(0, 0, 0, .82); }
.imgRemove svg { width: 12px; height: 12px; display: block; }
.editLogo { position: relative; min-height: 96px; border: 1px dashed var(--line); border-radius: var(--radius); display: block; text-align: center; padding: 0; margin-bottom: 18px; }
.editLogo img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

.editAlbumHead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.inlineAddForm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.inlineAddForm input { font-size: 13px; }
.inlineAddForm input[name=name] { flex: 1; min-width: 140px; }
.lenInput { width: 72px; }
.ytInput { flex: 1; min-width: 150px; }
.typeInput { width: 180px; }
.discoEmpty { color: var(--fg-mute); font-size: 14px; margin: 0 0 14px; }
/* Inline track edit (pencil) controls. */
.trackEditBtn { background: none; border: none; color: var(--fg-mute); cursor: pointer; padding: 0 2px; display: inline-flex; align-items: center; }
.trackEditBtn:hover { color: var(--red); }
.trackEditBtn svg { width: 14px; height: 14px; display: block; }
.inlineAddForm.isEditing { padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev-2); }
.yearInput { width: 84px; }
.addAlbumForm { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }

.editFacts { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 18px; }
.editFacts label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--fg-mute); }
.editFacts input { font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--fg); }

.editLinkRow { display: flex; align-items: center; gap: 8px; }
.editLinkRow .bpLink { flex: 1; margin-bottom: 0; }
.trackDel { display: inline; }
.trackDelBtn { background: none; border: none; color: var(--fg-mute); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; }
.trackDelBtn:hover { color: var(--red); }

.bandEditToast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--bg-elev); border: 1px solid var(--red); color: #fff; padding: 10px 18px; border-radius: var(--radius); font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 300; }
.bandEditToast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* AJAX upload progress bar over an image box. */
.uploadProgress { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 5px; background: rgba(0, 0, 0, .55); border-radius: 3px; overflow: hidden; z-index: 2; }
.uploadBar { display: block; height: 100%; width: 0; background: var(--red); transition: width 0.15s; }
/* Empty logo box gets the same striped placeholder as the photo box. */
.editLogo.noArt { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 10px, rgba(255, 255, 255, 0) 10px 20px); background-color: var(--bg-elev-2); }
/* Spacer + rule above the Create button in the Add a band dialog. */
hr.modalHr { border: none; border-top: 1px solid var(--line); margin: 22px 0 16px; }
.editLiveLink { font-size: 12px; color: var(--red-bright); text-decoration: none; }
.editLiveLink:hover { text-decoration: underline; }

@media (max-width: 820px) {
	.bpGrid { grid-template-columns: 1fr; }
	.bpPhoto { width: 100%; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
	.stage { padding: 16px; }
	.bpName { font-size: 26px; }
	.bpHead { gap: 16px; margin-bottom: 22px; }
	.bpActions { flex-wrap: wrap; }
}
