.dkt-fanza-set {
	--dkt-fanza-rose: #c94b78;
	--dkt-fanza-rose-dark: #a93660;
	--dkt-fanza-ink: #392c31;
	--dkt-fanza-line: #ecd8df;
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
	width: 100%;
	margin-block: clamp(2rem, 5vw, 3.5rem);
	padding: clamp(1rem, 3.5vw, 2.25rem);
	border: 1px solid var(--dkt-fanza-line);
	border-radius: clamp(1rem, 2.5vw, 1.4rem);
	background: linear-gradient(145deg, #fff, #fff8fa);
	box-shadow: 0 1rem 2.5rem rgb(67 37 47 / 8%);
	color: var(--dkt-fanza-ink);
}

.dkt-fanza-set--cta {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.dkt-fanza-product {
	display: grid;
	grid-template-columns: minmax(180px, 34%) 1fr;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	align-items: center;
	padding: clamp(1.25rem, 3vw, 2.5rem);
	border: 1px solid rgba(183, 70, 109, .2);
	border-radius: 24px;
	background: linear-gradient(135deg, #fff 0%, #fff8fa 100%);
	box-shadow: 0 18px 45px rgba(55, 25, 35, .08);
}

.dkt-fanza-product__media {
	display: grid;
	place-items: center;
	min-height: 180px;
	border-radius: 18px;
	background: #f8f2f3;
	overflow: hidden;
}

.dkt-fanza-product__media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 360px;
	object-fit: contain;
}

.dkt-fanza-product__eyebrow {
	margin: 0 0 .65rem;
	color: #b7466d;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .2em;
}

.dkt-fanza-product__body h2 {
	margin: 0;
	font-size: clamp(1.25rem, 2.4vw, 1.85rem);
	line-height: 1.5;
}

.dkt-fanza-product__actress,
.dkt-fanza-product__meta {
	margin: .75rem 0 0;
	color: #675b60;
}

.dkt-fanza-product__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem .8rem;
	font-size: .86rem;
}

.dkt-fanza-product__meta span + span::before {
	content: "·";
	margin-right: .8rem;
}

.dkt-fanza-product__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	min-height: 48px;
	margin-top: 1.25rem;
	padding: .8rem 1.25rem;
	border-radius: 999px;
	background: #171316;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 640px) {
	.dkt-fanza-product {
		grid-template-columns: 1fr;
		padding: 1.15rem;
		border-radius: 18px;
	}

	.dkt-fanza-product__media {
		min-height: 0;
	}

	.dkt-fanza-product__button {
		width: 100%;
	}
}

.dkt-fanza-set__label {
	margin: 0 0 .75rem;
	color: var(--dkt-fanza-rose-dark);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .16em;
	line-height: 1.4;
}

.dkt-fanza-video,
.dkt-fanza-gallery {
	position: relative;
	min-width: 0;
	margin: 0;
	padding: clamp(.85rem, 2vw, 1.25rem);
	border: 1px solid rgb(201 75 120 / 16%);
	border-radius: 1rem;
	background: rgb(255 255 255 / 86%);
}

.dkt-fanza-gallery {
	overflow: hidden;
	padding: clamp(.8rem, 2vw, 1.25rem);
	background:
		radial-gradient(circle at 100% 0, rgb(229 126 162 / 13%), transparent 30%),
		linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(255 247 250 / 94%));
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 80%);
}

.dkt-fanza-gallery::before {
	position: absolute;
	inset: clamp(.75rem, 2vw, 1.1rem) auto auto 0;
	width: 3px;
	height: 1.45rem;
	border-radius: 0 999px 999px 0;
	background: linear-gradient(#d86a91, #f0c3d2 58%, transparent);
	content: "";
}

.dkt-fanza-video__inner {
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
	min-height: 0;
	aspect-ratio: 16 / 9;
	margin: 0;
	overflow: hidden;
	border-radius: .8rem;
	background: transparent;
	box-shadow: 0 .6rem 1.5rem rgb(36 20 26 / 12%);
}

.dkt-fanza-video__player {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	max-width: 100%;
	max-height: none;
	margin: 0;
	border: 0;
	overflow: hidden;
	background: transparent;
}

/*
 * DMM's legacy iframe creates a 4:3 player canvas and centers the 16:9
 * movie inside it. Crop only those internal letterbox bands; the saved URL
 * and the actual movie canvas stay untouched. Direct video files still use
 * the ordinary full-size rule above.
 */
.dkt-fanza-video__inner.is-iframe > .dkt-fanza-video__player {
	top: 0;
	bottom: auto;
	height: 133.3334%;
	transform: translateY(-12.5%);
}

video.dkt-fanza-video__player {
	object-fit: contain;
}

.dkt-fanza-gallery__header {
	position: relative;
	z-index: 1;
	margin: 0 0 clamp(.65rem, 1.4vw, .9rem);
	padding: 0 0 clamp(.55rem, 1.2vw, .75rem);
	border-bottom: 1px solid rgb(201 75 120 / 18%);
}

.dkt-fanza-gallery__header .dkt-fanza-set__label {
	margin: 0;
	font-size: clamp(.7rem, 1.3vw, .78rem);
	letter-spacing: .18em;
	line-height: 1.3;
}

.dkt-fanza-gallery__grid {
	--dkt-fanza-masonry-columns: 3;
	--dkt-fanza-gallery-gap: clamp(.5rem, 1.25vw, .75rem);
	position: relative;
	display: grid;
	grid-template-columns: repeat(var(--dkt-fanza-masonry-columns), minmax(0, 1fr));
	gap: var(--dkt-fanza-gallery-gap);
	align-items: start;
}

.dkt-fanza-gallery__grid.is-masonry-ready {
	display: block;
}

.dkt-fanza-gallery__grid[data-item-count="1"],
.dkt-fanza-gallery__grid[data-visible-count="1"] {
	grid-template-columns: minmax(0, 1fr);
}

.dkt-fanza-gallery__grid[data-item-count="2"],
.dkt-fanza-gallery__grid[data-visible-count="2"] {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.single .dkt-fanza-gallery__item {
	position: relative;
	display: block;
	box-sizing: border-box;
	max-width: 100%;
	overflow: hidden;
	border: 1px solid rgb(201 75 120 / 22%);
	border-radius: .85rem;
	background: #fff;
	box-shadow: 0 .5rem 1.25rem rgb(65 35 45 / 9%);
	text-decoration: none;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.dkt-fanza-gallery__grid.is-masonry-ready > .dkt-fanza-gallery__item {
	position: absolute;
	top: 0;
	left: 0;
	transform: translate3d(var(--dkt-fanza-masonry-x, 0), var(--dkt-fanza-masonry-y, 0), 0);
	transition-property: border-color, box-shadow;
}

body.single .dkt-fanza-gallery__item:hover,
body.single .dkt-fanza-gallery__item:focus-visible {
	border-color: rgb(201 75 120 / 48%);
	outline: none;
	transform: translateY(-2px);
	box-shadow: 0 .75rem 1.5rem rgb(65 35 45 / 12%);
}

body.single .dkt-fanza-gallery__grid.is-masonry-ready > .dkt-fanza-gallery__item:hover,
body.single .dkt-fanza-gallery__grid.is-masonry-ready > .dkt-fanza-gallery__item:focus-visible {
	transform: translate3d(var(--dkt-fanza-masonry-x, 0), calc(var(--dkt-fanza-masonry-y, 0px) - 2px), 0);
}

body.single .dkt-fanza-gallery__item img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	border-radius: 0;
	object-fit: contain;
}

.dkt-fanza-lightbox[hidden] {
	display: none;
}

.dkt-fanza-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	grid-template-rows: 1fr auto;
	place-items: center;
	padding: clamp(2.75rem, 6vw, 4rem) clamp(.75rem, 3vw, 2rem) 1rem;
	background: rgb(19 13 16 / 92%);
}

.dkt-fanza-lightbox__stage {
	display: grid;
	width: 100%;
	height: 100%;
	min-height: 0;
	place-items: center;
}

body.single .dkt-fanza-lightbox__stage img {
	display: block;
	width: auto;
	height: auto;
	max-width: 95vw;
	max-height: 88vh;
	margin: 0;
	border-radius: .6rem;
	box-shadow: 0 1rem 3rem rgb(0 0 0 / 35%);
	object-fit: contain;
}

.dkt-fanza-lightbox__close {
	position: absolute;
	top: max(.75rem, env(safe-area-inset-top));
	right: max(.75rem, env(safe-area-inset-right));
	display: grid;
	width: 2.75rem;
	height: 2.75rem;
	place-items: center;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 35%);
	border-radius: 50%;
	background: rgb(35 24 29 / 82%);
	color: #fff;
	font: 300 1.8rem/1 sans-serif;
	cursor: pointer;
}

.dkt-fanza-lightbox__close:focus-visible {
	outline: 3px solid #f2a7c1;
	outline-offset: 3px;
}

.dkt-fanza-lightbox__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	width: 3rem;
	height: 3rem;
	place-items: center;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 30%);
	border-radius: 50%;
	background: rgb(35 24 29 / 76%);
	color: #fff;
	font: 300 2rem/1 sans-serif;
	cursor: pointer;
	transform: translateY(-50%);
}

.dkt-fanza-lightbox__nav.is-previous {
	left: max(.75rem, env(safe-area-inset-left));
}

.dkt-fanza-lightbox__nav.is-next {
	right: max(.75rem, env(safe-area-inset-right));
}

.dkt-fanza-lightbox__nav:focus-visible {
	outline: 3px solid #f2a7c1;
	outline-offset: 3px;
}

.dkt-fanza-lightbox[data-count="1"] .dkt-fanza-lightbox__nav {
	display: none;
}

.dkt-fanza-lightbox__position {
	margin: .65rem 0 0;
	color: #fff;
	font-size: .75rem;
	letter-spacing: .08em;
}

html.dkt-fanza-lightbox-open,
body.dkt-fanza-lightbox-open {
	overflow: hidden;
}

.dkt-fanza-cta {
	display: flex;
	justify-content: center;
	margin: 0;
	padding: clamp(.25rem, 1vw, .75rem) 0 0;
}

body.single .dkt-fanza-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .65rem;
	width: min(100%, 32rem);
	min-height: 3.5rem;
	padding: .9rem 1.5rem;
	border: 1px solid rgb(137 35 73 / 18%);
	border-radius: 999px;
	background: linear-gradient(135deg, var(--dkt-fanza-rose-dark), #da628c);
	box-shadow: 0 .7rem 1.45rem rgb(164 47 85 / 24%);
	color: #fff !important;
	-webkit-text-fill-color: #fff;
	font-size: clamp(.94rem, 2vw, 1.02rem);
	font-weight: 800;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	opacity: 1;
	transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

body.single .dkt-fanza-cta__button:hover,
body.single .dkt-fanza-cta__button:focus-visible {
	color: #fff !important;
	-webkit-text-fill-color: #fff;
	filter: brightness(.95);
	transform: translateY(-1px);
	box-shadow: 0 .9rem 1.8rem rgb(164 47 85 / 30%);
}

@media (max-width: 900px) {
	.dkt-fanza-gallery__grid {
		--dkt-fanza-masonry-columns: 2;
	}
}

@media (max-width: 560px) {
	.dkt-fanza-gallery__grid {
		--dkt-fanza-masonry-columns: 2;
	}
}

@media (max-width: 420px) {
	.dkt-fanza-set {
		gap: 1rem;
		padding: .85rem;
	}

	.dkt-fanza-video,
	.dkt-fanza-gallery {
		padding: .7rem;
	}

	.dkt-fanza-gallery__header {
		margin-bottom: .55rem;
		padding-bottom: .5rem;
	}

	.dkt-fanza-gallery__grid {
		gap: .55rem;
	}

	.dkt-fanza-lightbox__nav {
		width: 2.6rem;
		height: 2.6rem;
	}

	body.single .dkt-fanza-cta__button {
		min-height: 3.25rem;
		padding-inline: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dkt-fanza-gallery__item,
	.dkt-fanza-gallery__item img,
	.dkt-fanza-cta__button {
		transition: none;
	}
}

/*
 * Structured single posts give the media section the full article width.
 * Keep SAMPLE MOVIE fluid on desktop even when the theme or an embed adds a
 * fixed/max size, and let the 16:9 box determine the section's natural height.
 * Mobile intentionally keeps the existing rules above unchanged.
 */
@media (min-width: 1024px) {
	body.single .single-standard-flow__section.is-media > .dkt-fanza-set--media,
	body.single .single-standard-flow__section.is-media > .dkt-fanza-set--media > .dkt-fanza-video {
		width: 100%;
		max-width: none;
		height: auto;
		min-height: 0;
		align-self: start;
	}

	body.single .single-standard-flow__section.is-media > .dkt-fanza-set--media .dkt-fanza-video__inner {
		width: 100%;
		max-width: none;
		height: auto;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	body.single .single-standard-flow__section.is-media > .dkt-fanza-set--media .dkt-fanza-video__player {
		width: 100%;
		max-width: none;
	}

	body.single .single-standard-flow__section.is-media > .dkt-fanza-set--media .dkt-fanza-video__inner.is-iframe > .dkt-fanza-video__player {
		top: 0;
		bottom: auto;
		height: 100%;
		transform: none;
	}
}
