/* MyAIPornList — layout & components */
:root {
	--mpl-primary: #c94b8e;
	--mpl-secondary: #7c3aed;
	--mpl-bg: #0f0b12;
	--mpl-card: #1a1422;
	--mpl-text: #ffffff;
	--mpl-muted: #ffffff;
	/* Brand card titles keep their own tone (not pure white); pros/cons use inline colors in HTML. */
	--mpl-brand-title: #f4edf7;
	--mpl-radius: 14px;
	--mpl-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body.mpl-body {
	margin: 0;
	background: var(--mpl-bg);
	color: var(--mpl-text);
	line-height: 1.55;
	min-height: 100vh;
}

.mpl-skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--mpl-primary);
	color: #fff;
	padding: 0.5rem 1rem;
	z-index: 100;
}
.mpl-skip-link:focus {
	left: 1rem;
}

.mpl-container {
	width: min(1180px, 100% - 2rem);
	margin-inline: auto;
}

/* Header */
.mpl-site-header {
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(15, 11, 18, 0.92);
	backdrop-filter: blur(10px);
	position: sticky;
	top: 0;
	z-index: 50;
}

.mpl-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
}

.mpl-branding .custom-logo-link img {
	max-height: 101px; /* +15% vs previous 88px cap */
	width: auto;
	display: block;
}

.mpl-site-title {
	font-size: 1.15rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--mpl-text);
	letter-spacing: 0.02em;
}

.mpl-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1rem;
}
.mpl-menu a {
	color: var(--mpl-muted);
	text-decoration: none;
}
.mpl-menu a:hover {
	color: var(--mpl-text);
}

/* Hero */
.mpl-hero {
	padding: 2rem 0 1rem;
}
.mpl-hero-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	color: #ffffff;
	/* Same luminous glow as brand names (scaled slightly for larger type) */
	text-shadow:
		0 0 8px rgba(201, 75, 142, 0.55),
		0 0 16px rgba(124, 58, 237, 0.38),
		0 0 32px rgba(124, 58, 237, 0.2),
		0 1px 0 rgba(255, 255, 255, 0.08);
}
.mpl-hero-sub {
	margin: 0;
	color: var(--mpl-muted);
	max-width: 52ch;
}

/* Toolbar */
.mpl-toolbar {
	padding-bottom: 1.25rem;
}
.mpl-toolbar-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	align-items: flex-end;
	justify-content: space-between;
}
.mpl-toolbar-block {
	flex: 1 1 280px;
}
.mpl-toolbar-sort {
	flex: 0 1 260px;
}
/* Desktop: tag filter + sort on one row, side by side */
@media (min-width: 768px) {
	.mpl-toolbar-inner {
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: flex-start;
		align-items: flex-end;
		gap: 1.5rem;
	}
	.mpl-toolbar-block.mpl-toolbar-tags {
		flex: 1 1 auto;
		min-width: 0;
		max-width: min(420px, 100%);
	}
	.mpl-toolbar-block.mpl-toolbar-sort {
		flex: 0 0 auto;
		width: auto;
		min-width: 220px;
		max-width: 320px;
	}
}
.mpl-toolbar-label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--mpl-muted);
	margin-bottom: 0.45rem;
}
/* Tag filter: multi-select dropdown */
.mpl-toolbar-tags {
	position: relative;
	z-index: 20;
}
.mpl-tag-dropdown {
	max-width: 360px;
}
.mpl-tag-dropdown__summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	padding: 0.55rem 0.85rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: var(--mpl-card);
	color: var(--mpl-text);
	font-size: 0.95rem;
	user-select: none;
}
.mpl-tag-dropdown__summary::-webkit-details-marker {
	display: none;
}
.mpl-tag-dropdown__summary::after {
	content: "▼";
	font-size: 0.65rem;
	opacity: 0.7;
	margin-left: auto;
}
.mpl-tag-dropdown[open] .mpl-tag-dropdown__summary::after {
	transform: rotate(180deg);
}
.mpl-tag-dropdown__title {
	font-weight: 600;
}
.mpl-tag-dropdown__badge {
	font-size: 0.8rem;
	color: var(--mpl-muted);
	font-weight: 400;
}
.mpl-tag-dropdown__panel {
	margin-top: 0.35rem;
	padding: 0.75rem 0.85rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: var(--mpl-card);
	box-shadow: var(--mpl-shadow);
	max-height: min(320px, 55vh);
	overflow-y: auto;
}
.mpl-tag-dropdown__help {
	margin: 0 0 0.65rem;
	font-size: 0.78rem;
	color: var(--mpl-muted);
	line-height: 1.4;
}
.mpl-tag-dropdown__options {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.mpl-tag-dropdown__option {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	cursor: pointer;
	font-size: 0.9rem;
	line-height: 1.35;
}
.mpl-tag-dropdown__option input {
	margin-top: 0.2rem;
	accent-color: var(--mpl-primary);
	flex-shrink: 0;
}
.mpl-tag-dropdown__clear {
	margin-top: 0.75rem;
	width: 100%;
	padding: 0.45rem 0.65rem;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.05);
	color: var(--mpl-muted);
	font-size: 0.85rem;
	cursor: pointer;
}
.mpl-tag-dropdown__clear:hover {
	border-color: var(--mpl-primary);
	color: var(--mpl-text);
}
.mpl-tag-dropdown__empty {
	margin: 0;
	font-size: 0.9rem;
	color: var(--mpl-muted);
}

.mpl-select {
	width: 100%;
	max-width: 320px;
	padding: 0.55rem 0.75rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: var(--mpl-card);
	color: var(--mpl-text);
	font-size: 0.95rem;
}

/* Grid: 3 desktop, 1 mobile */
.mpl-grid-wrap {
	padding-bottom: 3rem;
}
/* Independent columns (round-robin): only the column with an expanded card grows downward. */
.mpl-brand-grid {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 1rem;
}

.mpl-brand-col {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.mpl-brand-col:empty {
	display: none;
}

@media (max-width: 767px) {
	.mpl-brand-grid {
		flex-direction: column;
	}
	.mpl-brand-col {
		width: 100%;
	}
}

/* Card */
.mpl-card {
	background: var(--mpl-card);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: var(--mpl-radius);
	padding: 1.1rem 1.15rem 1rem;
	box-shadow: var(--mpl-shadow);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-height: 0;
}
.mpl-card-top {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.mpl-card-title-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.45rem 0.65rem;
}
.mpl-card-title {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.3;
	flex: 1;
	min-width: 0;
	color: var(--mpl-brand-title);
	/* Soft luminous glow (layered text-shadow “halo”) */
	text-shadow:
		0 0 6px rgba(201, 75, 142, 0.55),
		0 0 14px rgba(124, 58, 237, 0.35),
		0 0 28px rgba(124, 58, 237, 0.18),
		0 1px 0 rgba(255, 255, 255, 0.06);
}
.mpl-card-title--logo {
	text-shadow: none;
	color: transparent;
	line-height: 0;
}
.mpl-card-title--logo .mpl-card-logo__img {
	display: block;
	max-height: 26px;
	width: auto;
	max-width: min(100%, 220px);
	height: auto;
	object-fit: contain;
	object-position: left center;
}
.mpl-card-title-row .mpl-badge--rating {
	flex-shrink: 0;
}
.mpl-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
}
.mpl-badge {
	font-size: 0.78rem;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--mpl-muted);
}
.mpl-badge--rating {
	color: #ffd36a;
	border: 1px solid rgba(255, 211, 106, 0.45);
}
.mpl-badge--cat {
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.mpl-card-snippet-row {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}
.mpl-card-snippet {
	margin: 0;
	flex: 1;
	font-size: 0.9rem;
	color: var(--mpl-muted);
}
/* When the accordion is open, hide the truncated line — the panel shows the full description. */
.mpl-card-snippet-row:has(.mpl-expand-btn[aria-expanded="true"]) .mpl-card-snippet {
	display: none;
}

.mpl-expand-btn {
	flex-shrink: 0;
	margin-top: 0.1rem;
	width: 2rem;
	height: 2rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.05);
	color: var(--mpl-text);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s, background 0.15s;
}
.mpl-expand-btn:hover {
	background: rgba(201, 75, 142, 0.2);
	border-color: var(--mpl-primary);
}
.mpl-expand-btn[aria-expanded="true"] .mpl-expand-icon {
	display: inline-block;
	transform: rotate(180deg);
}

.mpl-panel {
	border-top: 1px dashed rgba(255, 255, 255, 0.1);
	padding-top: 0.75rem;
	margin-top: 0.25rem;
	animation: mpl-open 0.22s ease-out;
}
@keyframes mpl-open {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.mpl-panel[hidden] {
	display: none !important;
}

.mpl-panel-h {
	margin: 0 0 0.35rem;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--mpl-muted);
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.35rem 0.45rem;
}
.mpl-panel-h__count {
	text-transform: none;
	letter-spacing: 0.02em;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.75);
}
.mpl-panel-h--after-block {
	margin-top: 0.85rem;
}
.mpl-panel-section {
	margin-bottom: 0.75rem;
}
.mpl-panel-section p {
	margin: 0;
	font-size: 0.9rem;
}
/* Preserve line breaks from the Text editor (textarea) in the backend. */
.mpl-panel-text {
	white-space: pre-line;
}
.mpl-pre {
	margin: 0;
	white-space: pre-wrap;
	font-family: inherit;
	font-size: 0.88rem;
	color: var(--mpl-muted);
}
.mpl-pre--pros-cons strong {
	font-weight: 700;
}
.mpl-price-tag {
	font-size: 1.25rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0;
}

.mpl-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.35rem;
}
.mpl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 0.9rem;
	border-radius: 10px;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: filter 0.15s, transform 0.1s;
}
.mpl-btn--primary {
	background: linear-gradient(135deg, var(--mpl-primary), var(--mpl-secondary));
	color: #fff;
}
.mpl-btn--primary:hover {
	filter: brightness(1.08);
}
.mpl-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.2);
	color: var(--mpl-text);
}
.mpl-btn--ghost:hover {
	border-color: var(--mpl-primary);
}

.mpl-link-hint {
	margin: 0;
	font-size: 0.72rem;
	color: var(--mpl-muted);
	opacity: 0.85;
}

.mpl-site-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding: 2rem 0 2.5rem;
	color: var(--mpl-muted);
	font-size: 0.8rem;
}
.mpl-footer-inner {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	max-width: 42rem;
	margin-inline: auto;
}
.mpl-footer-brand .custom-logo-link {
	display: inline-block;
}
.mpl-footer-brand .custom-logo-link img {
	max-height: 62px; /* +20% vs previous 52px cap */
	width: auto;
	display: block;
}
.mpl-footer-site-name {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--mpl-text);
	text-decoration: none;
	letter-spacing: 0.02em;
}
.mpl-footer-site-name:hover {
	color: var(--mpl-primary);
}
.mpl-footer-text {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.55;
	color: var(--mpl-muted);
	max-width: 36rem;
}
.mpl-footer-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem 0.65rem;
}
.mpl-footer-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.05);
	color: var(--mpl-text);
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.mpl-footer-btn:hover {
	border-color: var(--mpl-primary);
	background: rgba(201, 75, 142, 0.12);
	color: var(--mpl-text);
}

.mpl-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* hidden cards for filter */
.mpl-card.is-hidden {
	display: none !important;
}

/* Static pages (legal, etc.) */
.mpl-page {
	padding: 2rem 0 3rem;
	max-width: min(720px, 100%);
}
.mpl-page-header {
	margin-bottom: 1.25rem;
}
.mpl-page-title {
	margin: 0;
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	font-weight: 700;
	color: var(--mpl-text);
}
.mpl-page-content {
	color: rgba(255, 255, 255, 0.92);
}
.mpl-page-content > *:first-child {
	margin-top: 0;
}
.mpl-page-content > *:last-child {
	margin-bottom: 0;
}
.mpl-page-content h2,
.mpl-page-content h3 {
	margin: 1.5rem 0 0.65rem;
	color: var(--mpl-text);
}
.mpl-page-content p {
	margin: 0 0 1rem;
}
.mpl-page-content ul,
.mpl-page-content ol {
	margin: 0 0 1rem;
	padding-left: 1.35rem;
}
.mpl-page-content a {
	color: var(--mpl-primary);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}
.mpl-page-content a:hover {
	color: #e8a4c8;
}
.mpl-page-pagination {
	margin-top: 2rem;
	font-size: 0.9rem;
	color: var(--mpl-muted);
}
.mpl-page-pagination-label {
	margin-right: 0.35rem;
}
