/* MyAnimeList importer detail panels. */
.dtm-mal-details {
	--dtm-mal-accent: #2e51a2;
	margin: 28px 0 8px;
	padding: 24px;
	border: 1px solid rgba(127, 127, 127, 0.22);
	border-radius: 12px;
	background: rgba(127, 127, 127, 0.06);
}

.dtm-mal-details > header {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 22px;
}

.dtm-mal-details > header div {
	min-width: 84px;
	padding: 10px;
	border-radius: 8px;
	color: #fff;
	text-align: center;
	background: var(--dtm-mal-accent);
}

.dtm-mal-details > header span,
.dtm-mal-details > header small {
	display: block;
	font-size: 11px;
}

.dtm-mal-details > header strong {
	font-size: 26px;
	line-height: 1.1;
}

.dtm-mal-details > header h2 {
	flex: 1;
	margin: 0;
}

.dtm-mal-details > header a {
	font-weight: 600;
}

.dtm-mal-details h3 {
	margin: 24px 0 12px;
	font-size: 18px;
}

.dtm-mal-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	overflow: hidden;
	border-radius: 8px;
	background: rgba(127, 127, 127, 0.18);
}

.dtm-mal-fact {
	padding: 11px 13px;
	background: var(--dt-body-background, #fff);
}

.dtm-mal-fact dt {
	margin-bottom: 3px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.65;
}

.dtm-mal-fact dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.dtm-mal-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.dtm-mal-chips span {
	padding: 6px 10px;
	border-radius: 999px;
	color: #fff;
	background: var(--dtm-mal-accent);
}

.dtm-mal-prose p:last-child {
	margin-bottom: 0;
}

.dtm-mal-cards,
.dtm-mal-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 12px;
}

.dtm-mal-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(127, 127, 127, 0.2);
	border-radius: 8px;
	background: var(--dt-body-background, #fff);
}

.dtm-mal-card img {
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
}

.dtm-mal-card span {
	padding: 9px;
}

.dtm-mal-card strong,
.dtm-mal-card small {
	display: block;
}

.dtm-mal-card small {
	margin-top: 4px;
	opacity: 0.7;
}

.dtm-mal-gallery {
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.dtm-mal-gallery img {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	border-radius: 7px;
	object-fit: cover;
}

.dtm-mal-details details {
	margin-top: 22px;
}

.dtm-mal-details summary {
	cursor: pointer;
	font-weight: 600;
}

@media (max-width: 760px) {
	.dtm-mal-details {
		padding: 16px;
	}

	.dtm-mal-details > header {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.dtm-mal-details > header h2 {
		min-width: calc(100% - 120px);
	}

	.dtm-mal-facts {
		grid-template-columns: 1fr;
	}
}
