.mmp-auth-page {
	min-height: 70vh;
	padding: 120px 20px 80px;
	background: var(--color-bg-main, #0f1419);
	color: var(--color-text-primary, #f0f0f0);
	display: flex;
	justify-content: center;
	align-items: flex-start;
}

.mmp-auth-card {
	width: min(100%, 480px);
	padding: 34px;
	border: 1px solid var(--color-border, rgba(255,255,255,.12));
	border-radius: 18px;
	background: var(--color-bg-secondary, rgba(20,20,20,.96));
	color: var(--color-text-primary, #f0f0f0);
	box-shadow: 0 20px 60px rgba(0,0,0,.24);
}

.mmp-auth-card h1 { margin: 0 0 24px; color: inherit; }
.mmp-auth-card form { display: grid; gap: 16px; }
.mmp-auth-card label { display: grid; gap: 7px; font-weight: 600; }
.mmp-auth-card input {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--color-border, #555);
	border-radius: 8px;
	background: var(--color-bg-tertiary, #090909);
	color: var(--color-text-primary, #fff);
}
.mmp-auth-card input:focus {
	border-color: var(--color-accent, #ea1217);
	outline: 2px solid color-mix(in srgb, var(--color-accent, #ea1217) 28%, transparent);
	outline-offset: 1px;
}
.mmp-auth-card button,
.mmp-auth-button {
	display: inline-block;
	padding: 12px 18px;
	border: 0;
	border-radius: 9px;
	background: var(--color-accent, #e21b23);
	color: var(--color-text-inverse, #fff);
	font-weight: 700;
	text-align: center;
	cursor: pointer;
}
.mmp-auth-card button:hover,
.mmp-auth-button:hover { background: var(--color-accent-dark, #b80d0f); }
.mmp-auth-card button:focus-visible,
.mmp-auth-button:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--color-accent, #ea1217) 40%, transparent);
	outline-offset: 2px;
}
.mmp-auth-card button:disabled,
.mmp-auth-button[aria-disabled="true"] {
	opacity: .6;
	cursor: not-allowed;
}
.mmp-auth-card a { color: var(--color-accent-light, #ff7c80); }
.mmp-auth-check {
	display: flex !important;
	align-items: center;
	gap: 6px;
	font-weight: 400 !important;
}
.mmp-auth-check input[type="checkbox"] {
	width: 14px !important;
	height: 14px !important;
	min-width: 14px !important;
	min-height: 14px !important;
	flex: 0 0 14px;
	display: inline-block;
	margin: 0;
	padding: 0;
}
.mmp-auth-error,
.mmp-auth-success { margin-bottom: 18px; padding: 12px; border-radius: 8px; }
.mmp-auth-error { background: rgba(180, 30, 35, .18); color: #ffb7b9; }
.mmp-auth-success { background: rgba(39, 174, 96, .18); color: #b9f4c8; }

.mmp-profile-page {
	min-height: 70vh;
	padding: 90px 20px 70px;
	background: var(--color-bg-main, #0f1419);
	color: var(--color-text-primary, #f0f0f0);
}
.mmp-profile-shell { width: min(100%, 1180px); margin: 0 auto; }
.mmp-profile-header,
.mmp-profile-stats,
.mmp-profile-nav,
.mmp-profile-panel {
	border: 1px solid var(--color-border, rgba(255,255,255,.12));
	background: var(--color-bg-secondary, rgba(20,20,20,.96));
}
.mmp-profile-header { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: 18px 18px 0 0; }
.mmp-profile-header h1 { margin: 0 0 5px; }
.mmp-profile-header p { margin: 0; opacity: .72; }
.mmp-profile-header .mmp-auth-button { margin-left: auto; }
.mmp-profile-avatar { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 50%; background: var(--color-accent, #ea1217); color: #fff; font-size: 28px; font-weight: 800; }
.mmp-profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-top: 0; }
.mmp-profile-stats div { display: grid; gap: 4px; padding: 18px; text-align: center; background: rgba(255,255,255,.025); }
.mmp-profile-stats strong { font-size: 24px; }
.mmp-profile-stats span { font-size: .8rem; opacity: .72; }
.mmp-profile-nav { display: flex; gap: 4px; flex-wrap: wrap; padding: 10px; border-top: 0; }
.mmp-profile-nav button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; cursor: pointer; pointer-events: auto; touch-action: manipulation; }
.mmp-profile-nav button:hover, .mmp-profile-nav button:focus-visible, .mmp-profile-nav button.is-active { background: var(--color-accent, #ea1217); color: #fff; }
.mmp-profile-panel[hidden] { display: none; }
.mmp-profile-panel.is-active { animation: mmp-profile-panel-in .2s ease-out; }
@keyframes mmp-profile-panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.mmp-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 16px; }
.mmp-profile-panel { min-height: 150px; padding: 20px; border-radius: 14px; }
.mmp-profile-panel h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1.1rem; }
.mmp-profile-count { margin-left: auto; font-size: .85rem; opacity: .7; }
.mmp-profile-empty { opacity: .68; }
.mmp-profile-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mmp-profile-list li { display: flex; justify-content: space-between; gap: 12px; }
.mmp-profile-list a { color: inherit; }
.mmp-community-actions { width: min(100% - 40px, 1180px); margin: 24px auto; padding: 24px; border: 1px solid var(--color-border, rgba(255,255,255,.12)); border-radius: 16px; background: var(--color-bg-secondary, rgba(20,20,20,.96)); color: var(--color-text-primary, #f0f0f0); }
.mmp-community-actions h2 { margin: 0 0 14px; }
.mmp-community-actions a { color: var(--color-accent-light, #ff7c80); }
.mmp-community-action-grid { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.mmp-community-action-grid form { display: flex; gap: 8px; align-items: end; }
.mmp-community-actions label { display: grid; gap: 6px; font-weight: 700; }
.mmp-community-actions select,
.mmp-community-actions textarea { border: 1px solid var(--color-border, #555); border-radius: 8px; background: var(--color-bg-tertiary, #090909); color: inherit; padding: 10px; }
.mmp-community-actions button { padding: 10px 14px; border: 0; border-radius: 8px; background: var(--color-accent, #ea1217); color: #fff; font-weight: 700; cursor: pointer; }
.mmp-community-actions button:hover,
.mmp-community-actions button:focus-visible { background: var(--color-accent-dark, #b80d0f); }
.mmp-community-actions button[aria-pressed="true"] { background: var(--color-accent-dark, #b80d0f); box-shadow: 0 0 0 2px rgba(234,18,23,.22); }
.mmp-community-actions button:disabled { opacity: .65; cursor: wait; }
.mmp-community-actions button.is-saving { position: relative; }
.mmp-community-actions button.is-saving::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 7px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: mmp-community-spin .7s linear infinite; }
.mmp-community-action-grid [data-mmp-community-status] { flex-basis: 100%; min-height: 1.25em; color: var(--color-text-secondary, #aaa); font-size: .9rem; }
.mmp-community-action-grid [data-mmp-community-status].is-error { color: #e55353; }
@keyframes mmp-community-spin { to { transform: rotate(360deg); } }
.mmp-community-review-form { display: grid; gap: 10px; max-width: 680px; margin-top: 18px; }
.mmp-vc-rating { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; text-align: center; border-color: rgba(54,211,153,.45); background: rgba(54,211,153,.1); color: #fff; }
.mmp-vc-rating .mmp-vc-rating-label,
.mmp-vc-rating .mmp-vc-rating-value,
.mmp-vc-rating .mmp-vc-rating-count { min-width: 0; }
.mmp-vc-rating .mmp-vc-rating-count { overflow-wrap: anywhere; }
.mmp-vc-rating-label { color: #8ff0c7; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mmp-vc-rating-value { color: #8ff0c7; font-size: 1.2rem; }
.mmp-vc-rating-value span { margin-left: 2px; font-size: .78rem; font-weight: 600; }
.mmp-vc-rating-count { color: rgba(255,255,255,.72); font-size: .76rem; }
html[data-theme="light"] .mmp-community-actions { border-color: #dce3e8; background: rgba(255,255,255,.94); }
html[data-theme="light"] .mmp-community-actions select,
html[data-theme="light"] .mmp-community-actions textarea { background: #fff; border-color: #cbd5dc; }
html[data-theme="light"] .mmp-vc-rating { background: rgba(12,120,82,.08); border-color: rgba(12,120,82,.3); color: #123; }
html[data-theme="light"] .mmp-vc-rating-label,
html[data-theme="light"] .mmp-vc-rating-value { color: #08704d; }
html[data-theme="light"] .mmp-vc-rating-count { color: #48606d; }

.mmp-desktop-auth-links {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-left: auto;
	order: 10;
	flex: 0 0 auto;
}
.mmp-mobile-auth-link {
	display: none !important;
}
.mmp-desktop-auth-links a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 13px;
	border: 1px solid rgba(234, 18, 23, .45);
	border-radius: 9px;
	background: rgba(234, 18, 23, .08);
	color: var(--color-text-primary, #f0f0f0);
	font-size: var(--font-size-sm, .875rem);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}
.mmp-desktop-auth-links a:hover,
.mmp-desktop-auth-links a:focus-visible {
	background: var(--color-accent, #ea1217);
	border-color: var(--color-accent, #ea1217);
	color: var(--color-text-inverse, #fff);
	transform: translateY(-1px);
}
.mmp-auth-icon {
	display: none;
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: 0 0 auto;
}

html[data-theme="light"] .mmp-auth-page {
	background: linear-gradient(135deg, #fff 0%, #f4f7f9 100%);
}
html[data-theme="light"] .mmp-profile-page { background: linear-gradient(135deg, #fff 0%, #f4f7f9 100%); }
html[data-theme="light"] .mmp-profile-header,
html[data-theme="light"] .mmp-profile-stats,
html[data-theme="light"] .mmp-profile-nav,
html[data-theme="light"] .mmp-profile-panel { border-color: #dce3e8; background: rgba(255,255,255,.94); }
html[data-theme="light"] .mmp-auth-card {
	border-color: #dce3e8;
	background: rgba(255,255,255,.94);
	box-shadow: 0 20px 55px rgba(30, 50, 65, .13);
}
html[data-theme="light"] .mmp-auth-card input {
	background: #fff;
	border-color: #cbd5dc;
}
html[data-theme="light"] .mmp-auth-error { background: #fff0f0; color: #9d2025; }
html[data-theme="light"] .mmp-auth-success { background: #edf9f1; color: #176b38; }
html[data-theme="light"] .mmp-desktop-auth-links a {
	background: rgba(234, 18, 23, .06);
	border-color: rgba(184, 13, 15, .3);
	color: var(--color-text-primary);
}

@media (max-width: 768px) {
	.mmp-auth-label { display: none; }
	.mmp-auth-icon { display: inline-flex; }
	.mmp-desktop-auth-links {
		display: flex;
		order: 5;
		gap: 4px;
		margin-left: 0;
	}
	.mmp-desktop-auth-links--subscriber {
		display: none;
	}
	.mmp-desktop-auth-links a {
		width: 38px;
		min-width: 38px;
		height: 38px;
		padding: 8px;
		justify-content: center;
		border-radius: 10px;
	}
	.mmp-auth-card { padding: 24px; }
	.mmp-profile-page { padding: 60px 12px 40px; }
	.mmp-profile-header { align-items: flex-start; flex-wrap: wrap; padding: 18px; }
	.mmp-profile-header > div:nth-child(2) { min-width: 0; flex: 1 1 calc(100% - 82px); }
	.mmp-profile-header h1 { overflow-wrap: anywhere; font-size: 1.35rem; }
	.mmp-profile-header .mmp-auth-button { width: 100%; margin-left: 0; }
	.mmp-profile-stats { grid-template-columns: repeat(2, 1fr); }
	.mmp-profile-grid { grid-template-columns: 1fr; }
	.mmp-profile-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px; }
	.mmp-profile-nav button { width: 100%; white-space: normal; text-align: center; font-size: .84rem; }
	.mmp-community-actions { width: calc(100% - 24px); padding: 18px; }
	.mmp-community-action-grid { display: grid; grid-template-columns: 1fr 1fr; }
	.mmp-community-action-grid label,
	.mmp-community-action-grid button { min-width: 0; }
}

@media (max-width: 420px) {
	.mmp-profile-page { padding-right: 8px; padding-left: 8px; }
	.mmp-profile-stats strong { font-size: 20px; }
	.mmp-profile-stats div { padding: 13px 8px; }
	.mmp-profile-nav { grid-template-columns: 1fr 1fr; }
	.mmp-profile-panel { padding: 16px; }
}

/* Single-content hero: poster, details, and community controls share one
   responsive layout while the controls remain outside the content flow. */
.hero--single > .hero__content {
	display: grid;
	grid-template-columns: minmax(96px, clamp(120px, 18vw, 160px)) minmax(0, 1fr);
	align-items: start;
	gap: var(--spacing-lg);
	width: 100%;
	max-width: 1280px;
	overflow: visible;
	padding: 58px 0 72px;
}
.hero--single > .hero__content > .hero__info {
	display: contents;
	min-width: 0;
	overflow: visible;
}
.hero--single > .hero__content > .hero__poster {
	grid-column: 1;
	grid-row: 1 / span 3;
	width: 100%;
	max-width: 160px;
	min-width: 0;
}
.hero--single > .hero__content > .hero__info > .breadcrumb,
.hero--single > .hero__content > .hero__info > .mmp-ultimate-pro-breadcrumbs,
.hero--single > .hero__content > .hero__info > .hero__title,
.hero--single > .hero__content > .hero__info > .tagline {
	grid-column: 2;
	min-width: 0;
}
.hero--single > .hero__content > .hero__info > .hero__meta {
	grid-column: 1 / -1;
	grid-row: 4;
}
.hero--single > .hero__content > .hero__info > .hero__title,
.hero--single > .hero__content > .hero__info > .tagline {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	word-wrap: break-word;
	overflow-wrap: break-word;
	word-break: break-word;
}
.hero--single > .hero__content > .hero__info > .hero__title {
	margin: 0 0 var(--spacing-md);
}
.hero--single > .hero__content > .hero__info > .tagline {
	margin: 0 0 var(--spacing-md);
}
.hero--single > .hero__content > .hero__info > .hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: flex-start;
	gap: var(--spacing-md);
	margin: 0;
}
.hero--single > .hero__content > .hero__info > .hero__meta .meta-card {
	flex: 0 1 auto;
	width: auto;
	min-width: 104px;
	max-width: 100%;
	box-sizing: border-box;
}

.mmp-community-hero-actions {
	position: absolute;
	bottom: 24px;
	left: 24px;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: calc(100% - 48px);
}
.mmp-community-icon-button {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(143,240,199,.58);
	border-radius: 50%;
	background: rgba(54,211,153,.14);
	color: #8ff0c7;
	font-size: 1.15rem;
	line-height: 1;
	backdrop-filter: blur(8px);
	cursor: pointer;
	transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.mmp-community-icon-button:hover,
.mmp-community-icon-button:focus-visible,
.mmp-community-icon-button[aria-pressed="true"] {
	background: #36d399;
	border-color: #36d399;
	color: #06261b;
	transform: translateY(-2px);
}
.mmp-community-icon-button:focus-visible,
.mmp-rating-save:focus-visible { outline: 3px solid #8bd8ff; outline-offset: 3px; }
.mmp-rating-panel {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 300px;
	padding: 10px 14px;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 999px;
	background: rgba(8,18,30,.92);
	color: #fff;
	box-shadow: 0 12px 30px rgba(0,0,0,.28);
	backdrop-filter: blur(12px);
}
.mmp-rating-panel[hidden] { display: none; }
.mmp-rating-panel label { white-space: nowrap; font-size: .82rem; font-weight: 700; }
.mmp-rating-panel input[type="range"] { width: 130px; accent-color: #36d399; }
.mmp-rating-panel output { min-width: 34px; font-weight: 800; }
.mmp-rating-save {
	padding: 7px 12px;
	border: 0;
	border-radius: 999px;
	background: #36d399;
	color: #06261b;
	font-weight: 800;
	cursor: pointer;
}
.mmp-community-hero-actions [data-mmp-community-status] {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	width: max-content;
	max-width: 260px;
	color: #fff;
	font-size: .78rem;
}
.mmp-community-hero-actions [data-mmp-community-status].is-error { color: #ffb4b4; }
html[data-theme="light"] .mmp-community-icon-button { background: rgba(54,211,153,.12); color: #08704d; border-color: rgba(12,120,82,.35); }
html[data-theme="light"] .mmp-rating-panel { background: rgba(255,255,255,.94); color: #102a43; border-color: rgba(16,42,67,.2); }
html[data-theme="light"] .mmp-community-icon-button:hover,
html[data-theme="light"] .mmp-community-icon-button:focus-visible,
html[data-theme="light"] .mmp-community-icon-button[aria-pressed="true"] { background: #36d399; border-color: #36d399; color: #06261b; }

/* Person hero favorite uses the same independent control treatment as
   movie and TV hero actions. */
.hero--person {
	padding-bottom: calc(var(--spacing-lg) + 56px);
}
.hero--person .mmp-community-person-action {
	position: absolute;
	bottom: 24px;
	left: 24px;
	width: auto;
	max-width: calc(100% - 48px);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
}
.hero--person .mmp-community-person-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}
.hero--person .mmp-community-action-link {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 14px;
	border: 1px solid rgba(143,240,199,.58);
	border-radius: 999px;
	background: rgba(54,211,153,.14);
	color: #8ff0c7;
	font-size: .85rem;
	font-weight: 700;
	text-decoration: none;
	backdrop-filter: blur(8px);
}
.hero--person .mmp-community-action-link:hover,
.hero--person .mmp-community-action-link:focus-visible {
	background: #36d399;
	border-color: #36d399;
	color: #06261b;
}
.hero--person .mmp-community-person-controls [data-mmp-community-status] {
	color: #fff;
	font-size: .78rem;
}

@media (max-width: 700px) {
	.hero--single > .hero__content {
		grid-template-columns: minmax(88px, clamp(100px, 28vw, 120px)) minmax(0, 1fr);
		gap: 12px;
		padding: 56px 0 62px;
	}
	.hero--single > .hero__content > .hero__poster {
		max-width: 120px;
	}
	.hero--single > .hero__content > .hero__info > .hero__meta {
		gap: 8px;
	}
	.hero--single > .hero__content > .hero__info > .hero__meta .meta-card {
		min-width: 78px;
		padding: 8px 6px;
		text-align: center;
	}
	.hero--single > .hero__content > .hero__info > .hero__meta .meta-label {
		font-size: .58rem;
		letter-spacing: .25px;
		line-height: 1.2;
	}
	.hero--single > .hero__content > .hero__info > .hero__meta .meta-value {
		font-size: .72rem;
		line-height: 1.25;
		overflow-wrap: anywhere;
	}
	.mmp-community-hero-actions {
		bottom: 14px;
		left: 14px;
		gap: 6px;
		max-width: calc(100% - 28px);
	}
	.mmp-community-icon-button { width: 36px; height: 36px; font-size: 1rem; }
	.mmp-rating-panel {
		position: absolute;
		top: calc(100% + 10px);
		left: 0;
		min-width: 270px;
		border-radius: 18px;
		flex-wrap: wrap;
		justify-content: flex-end;
	}
	.mmp-rating-panel label { flex-basis: 100%; }
	.mmp-rating-panel input[type="range"] { flex: 1; }
	.hero--person {
		padding-bottom: calc(var(--spacing-lg) + 52px);
	}
	.hero--person .mmp-community-person-action {
		bottom: 14px;
		left: 14px;
		max-width: calc(100% - 28px);
	}
	.hero--person .mmp-community-person-controls { gap: 6px; }
	.hero--person .mmp-community-action-link {
		min-height: 36px;
		padding: 0 12px;
		font-size: .78rem;
	}
}

@media (max-width: 380px) {
	.hero--single > .hero__content {
		grid-template-columns: 82px minmax(0, 1fr);
		gap: 10px;
		padding-bottom: 58px;
	}
	.hero--single > .hero__content > .hero__poster { max-width: 82px; }
	.hero--single > .hero__content > .hero__info > .hero__meta { gap: 6px; }
	.hero--single > .hero__content > .hero__info > .hero__meta .meta-card {
		min-width: 70px;
		padding: 7px 4px;
	}
}
