/* ============================================================
   AVChecker ベース
   共演チェッカー / 人物アバター / 作品カード / 判定パネル

   ★ 見出しはテーマと干渉するため h タグを使わない。
     .avc-checker__title などクラス側でサイズと太さを持つ。
   ============================================================ */
.avc-checker,
.avc-result,
.avc-ptiles,
.avc-works {
	--avc-accent: #d6336c;
	--avc-accent-soft: rgba(214, 51, 108, .1);
	--avc-hit: #157f3c;
	--avc-warn: #a1670a;
	--avc-line: #e4e6e9;
	--avc-soft: #f7f8fa;
	--avc-dim: #8b929e;
	--avc-ink: #1d2327;
}

/* ============================================================
   人物アバター
   ============================================================ */
.avc-av {
	position: relative;
	display: block;
	flex: none;
	border-radius: 50%;
	overflow: hidden;
	background: #eceef1;
	line-height: 0;
}
.avc-av img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.avc-av__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: linear-gradient(135deg, #c9ced6, #aab1bb);
	user-select: none;
}
.avc-av--actress .avc-av__ph {
	background: linear-gradient(135deg, #e6a8c8, #d1789f);
}
.avc-av--actor .avc-av__ph {
	background: linear-gradient(135deg, #9dbde0, #6f93bd);
}

.avc-av--sm { width: 38px; height: 38px; }
.avc-av--md { width: 60px; height: 60px; }
.avc-av--lg { width: 72px; height: 72px; }
.avc-av--xl { width: 120px; height: 120px; }

.avc-av--sm .avc-av__ph { font-size: 15px; }
.avc-av--md .avc-av__ph { font-size: 22px; }
.avc-av--lg .avc-av__ph { font-size: 26px; }
.avc-av--xl .avc-av__ph { font-size: 44px; }

/* ============================================================
   人物タイル
   ============================================================ */
/*
 * 列数は固定にする。auto-fill だと画面幅しだいで
 * 最終行が半端に余って「途中で切れている」ように見えるため、
 * 12・24・72 といった割り切れる件数と組みで使う。
 */
.avc-ptiles {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px 10px;
}
@media (max-width: 900px) {
	.avc-ptiles {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.avc-ptiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
/* ウィジェットなど幅が読めない場所は自動で */
.avc-ptiles--sm {
	grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
}
.avc-ptile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: inherit;
	text-align: center;
}
.avc-ptile:hover .avc-av {
	box-shadow: 0 0 0 2px var(--avc-accent);
}
.avc-ptile:hover .avc-ptile__name {
	color: var(--avc-accent);
}
.avc-ptile__name {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	max-width: 100%;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.avc-ptile__meta {
	font-size: 10px;
	color: var(--avc-dim);
}

/* ============================================================
   チェッカー
   ============================================================ */
.avc-checker {
	max-width: 900px;
	margin: 0 auto 2.5em;
}
.avc-checker__head {
	text-align: center;
	margin-bottom: 16px;
}
.avc-checker__title {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: .01em;
	color: var(--avc-ink);
}
.avc-checker__lead {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.7;
	color: #656c76;
}

/* --- 入力フォーム（対戦カード風） --- */
.avc-checker__form {
	padding: 20px;
	background:
		radial-gradient(120% 150% at 50% -20%, rgba(214, 51, 108, .09) 0%, rgba(214, 51, 108, 0) 60%),
		var(--avc-soft);
	border: 1px solid var(--avc-line);
	border-radius: 16px;
}
.avc-checker__slots {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 12px;
	align-items: start;
}
.avc-checker__x {
	align-self: center;
	margin-top: 18px;
	font-size: 20px;
	font-weight: 300;
	color: #c3c9d1;
}

/* --- スロット --- */
.avc-slot {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.avc-slot__avatar {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	overflow: hidden;
	background: #eaedf1;
	border: 3px solid #fff;
	box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	transition: border-color .18s, box-shadow .18s;
}
.avc-slot__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.avc-slot__init {
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
}
.avc-slot--actress .avc-slot__avatar:has(.avc-slot__init) {
	background: linear-gradient(135deg, #e6a8c8, #d1789f);
}
.avc-slot--actor .avc-slot__avatar:has(.avc-slot__init) {
	background: linear-gradient(135deg, #9dbde0, #6f93bd);
}
.avc-slot__icon svg {
	width: 34px;
	height: 34px;
	color: #b8bfc8;
}
.avc-slot.is-chosen .avc-slot__avatar {
	border-color: #fff;
	box-shadow: 0 0 0 2px var(--avc-accent), 0 4px 14px rgba(214, 51, 108, .22);
}

.avc-slot__role {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	color: #fff;
	background: #b6bcc4;
	border-radius: 3px;
	padding: 2px 9px;
}
.avc-slot--actress .avc-slot__role { background: #d78bb4; }
.avc-slot--actor .avc-slot__role { background: #6f9bd1; }

.avc-field {
	position: relative;
	min-width: 0;
}
.avc-field__control {
	position: relative;
	width: 100%;
}
.avc-slot__input {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
	border: 1px solid #d3d7dd;
	border-radius: 9px;
	background: #fff;
	box-sizing: border-box;
	transition: border-color .15s, box-shadow .15s;
}
.avc-slot__input:focus {
	outline: none;
	border-color: var(--avc-accent);
	box-shadow: 0 0 0 3px var(--avc-accent-soft);
}
.avc-slot.is-chosen .avc-slot__input {
	border-color: var(--avc-hit);
	background: #f6fbf7;
	font-weight: 700;
}

/* 固定表示（女優ページなどで片側を確定させている場合） */
.avc-slot__fixed {
	display: block;
	padding: 10px 12px;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

@media (max-width: 560px) {
	.avc-checker__form {
		padding: 16px 14px;
	}
	.avc-checker__slots {
		grid-template-columns: 1fr auto 1fr;
		gap: 8px;
	}
	.avc-slot__avatar {
		width: 62px;
		height: 62px;
	}
	.avc-slot__init {
		font-size: 23px;
	}
	.avc-checker__x {
		font-size: 16px;
		margin-top: 14px;
	}
}

/* --- サジェスト --- */
.avc-field__list {
	position: absolute;
	z-index: 30;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: 320px;
	overflow-y: auto;
	margin: 0;
	padding: 4px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--avc-line);
	border-radius: 11px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .13);
}
.avc-field__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 9px;
	border-radius: 8px;
	cursor: pointer;
}
.avc-field__item.is-active {
	background: #f1f3f5;
}
.avc-field__item img {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
	background: #eceef0;
}
.avc-field__item-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}
.avc-field__item-name {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.avc-field__item-kana {
	font-size: 11px;
	color: var(--avc-dim);
}
.avc-field__item-count {
	font-size: 11px;
	color: var(--avc-dim);
	flex: none;
}
.avc-field__empty {
	padding: 12px;
	font-size: 13px;
	color: var(--avc-dim);
	text-align: center;
}

.avc-checker__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 16px;
	padding: 13px 24px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .02em;
	color: #fff;
	background: linear-gradient(135deg, #e0457a, #a52a86);
	border: none;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 5px 16px rgba(165, 42, 134, .3);
	transition: filter .15s, transform .1s, box-shadow .15s;
}
.avc-checker__submit:hover {
	filter: brightness(1.06);
	box-shadow: 0 7px 20px rgba(165, 42, 134, .4);
}
.avc-checker__submit:active {
	transform: translateY(1px);
}
.avc-checker__submit-icon svg {
	width: 17px;
	height: 17px;
	display: block;
}

.avc-checker__hint {
	margin: 9px 2px 0;
	font-size: 12px;
	color: var(--avc-dim);
	text-align: center;
}

/* --- コンパクト版（ページ下部に置くとき） --- */
.avc-checker--compact {
	max-width: 100%;
	margin-bottom: 0;
}
.avc-checker--compact .avc-checker__head {
	text-align: left;
	margin-bottom: 12px;
}
.avc-checker--compact .avc-checker__title {
	font-size: 1.02rem;
	font-weight: 700;
}
.avc-checker--compact .avc-checker__form {
	padding: 0;
	background: none;
	border: none;
	border-radius: 0;
}
.avc-checker--compact .avc-slot__avatar {
	width: 62px;
	height: 62px;
}
.avc-checker--compact .avc-slot__init {
	font-size: 23px;
}
.avc-checker--compact .avc-checker__submit {
	margin-top: 14px;
	padding: 11px 20px;
	font-size: 14px;
}

/* ============================================================
   結果
   ============================================================ */
.avc-checker__result {
	margin-top: 22px;
	transition: opacity .15s;
}
.avc-checker__result.is-loading {
	opacity: .4;
}
.avc-checker__result:empty {
	display: none;
}

.avc-result {
	border: 1px solid var(--avc-line);
	border-radius: 14px;
	padding: 22px;
	background: #fff;
}
.avc-result.is-hit {
	border-color: rgba(21, 127, 60, .3);
	box-shadow: 0 2px 16px rgba(21, 127, 60, .07);
}

.avc-result__head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}
.avc-result__x {
	font-size: 20px;
	color: #c3c9d1;
	font-weight: 700;
}

.avc-person {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 190px;
}
.avc-person__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.avc-person__role {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	color: #fff;
	background: #b6bcc4;
	border-radius: 3px;
	padding: 1px 6px;
	align-self: flex-start;
	margin-bottom: 3px;
}
.avc-person--actress .avc-person__role {
	background: #d78bb4;
}
.avc-person--actor .avc-person__role {
	background: #6f9bd1;
}
.avc-person__name {
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	color: inherit;
}
.avc-person__name:hover {
	color: var(--avc-accent);
}
.avc-person__kana,
.avc-person__count {
	font-size: 11px;
	color: var(--avc-dim);
}

/* --- 判定 --- */
.avc-verdict {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 20px 0 0;
	padding: 16px;
	border-radius: 11px;
	background: var(--avc-soft);
}
.avc-verdict__badge {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .06em;
	color: #fff;
	padding: 5px 14px;
	border-radius: 20px;
}
.avc-verdict.is-hit {
	background: rgba(21, 127, 60, .07);
}
.avc-verdict.is-hit .avc-verdict__badge {
	background: var(--avc-hit);
}
.avc-verdict.is-miss .avc-verdict__badge {
	background: #97a0ab;
}
.avc-verdict__count {
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
	color: var(--avc-hit);
	font-variant-numeric: tabular-nums;
}
.avc-verdict__count small {
	font-size: 15px;
	margin-left: 2px;
}
.avc-verdict__meta {
	font-size: 13px;
	color: #58606b;
}
.avc-verdict__meta span {
	display: block;
	font-size: 10px;
	color: #9aa1ab;
	letter-spacing: .04em;
}
.avc-verdict__text {
	margin: 0;
	font-size: 14px;
	color: #58606b;
}

/* --- カバレッジ --- */
.avc-coverage {
	margin: 16px auto 0;
	max-width: 520px;
}
.avc-coverage__bar {
	height: 6px;
	background: #e6e8eb;
	border-radius: 3px;
	overflow: hidden;
}
.avc-coverage__bar span {
	display: block;
	height: 100%;
	background: var(--avc-hit);
}
.avc-coverage.is-low .avc-coverage__bar span {
	background: #d99b21;
}
.avc-coverage__text {
	margin: 7px 0 0;
	font-size: 12px;
	color: #6b7280;
	text-align: center;
	line-height: 1.7;
}
.avc-coverage__warn {
	color: var(--avc-warn);
}
.avc-coverage.is-none {
	font-size: 13px;
	color: var(--avc-dim);
	text-align: center;
}

/* --- 作品グリッド --- */
.avc-works {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-top: 20px;
}
@media (max-width: 900px) {
	.avc-works {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
.avc-work {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--avc-line);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .16s, transform .16s;
}
.avc-work:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
	transform: translateY(-2px);
}
.avc-work__thumb {
	position: relative;
	aspect-ratio: 16 / 11;
	background: #f1f3f5;
	display: flex;
	align-items: center;
	justify-content: center;
}
.avc-work__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.avc-work__noimg {
	font-size: 11px;
	color: #a7adb5;
	letter-spacing: .04em;
}

/* --- カードのバッジ（予約 / NEW / セール） --- */
.avc-badges {
	position: absolute;
	top: 6px;
	left: 6px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	z-index: 2;
	pointer-events: none;
}
.avc-badge2 {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1.5;
	color: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
	white-space: nowrap;
}
.avc-badge2.is-new {
	background: linear-gradient(135deg, #ff5e8a, #e0326a);
}
.avc-badge2.is-soon {
	background: linear-gradient(135deg, #8e6fe0, #6a41c9);
}
.avc-badge2.is-sale {
	background: linear-gradient(135deg, #ff8a3d, #f2542d);
}
.avc-work__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 9px 10px 11px;
}
.avc-work__hinban {
	font-size: 10px;
	font-weight: 700;
	color: var(--avc-accent);
	letter-spacing: .03em;
}
.avc-work__title {
	font-size: 12px;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.avc-work__date {
	font-size: 10px;
	color: #9aa1ab;
}
.avc-result__more {
	margin: 12px 0 0;
	text-align: center;
	font-size: 12px;
	color: var(--avc-dim);
}

/* --- 共演なしのときの提案 --- */
.avc-suggest-block {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--avc-line);
}
.avc-suggest-block__title {
	font-size: 13px;
	font-weight: 700;
	margin: 0 0 12px;
	color: #58606b;
}

.avc-error {
	padding: 14px;
	border-radius: 8px;
	background: #fdf0f0;
	color: #8a1f1f;
	font-size: 13px;
}

/* ============================================================
   スマホ調整
   ============================================================ */
@media (max-width: 600px) {
	.avc-checker__title {
		font-size: 1.14rem;
	}
	.avc-checker__lead {
		font-size: 12.5px;
	}
	.avc-checker__submit {
		padding: 13px;
	}
	.avc-slot__input,
	.avc-slot__fixed {
		/* 16px 未満だと iOS が自動ズームする */
		font-size: 16px;
	}
	.avc-field__list {
		max-height: 52vh;
	}

	.avc-result {
		padding: 16px 14px;
		border-radius: 12px;
	}
	.avc-result__head {
		gap: 10px;
	}
	.avc-person {
		min-width: 0;
		flex: 1 1 42%;
		gap: 9px;
	}
	.avc-person__name {
		font-size: 14px;
	}
	.avc-av--lg {
		width: 56px;
		height: 56px;
	}
	.avc-av--lg .avc-av__ph {
		font-size: 21px;
	}
	.avc-verdict {
		gap: 6px 14px;
		padding: 14px 12px;
	}
	.avc-verdict__count {
		font-size: 28px;
	}
	.avc-verdict__meta {
		font-size: 12px;
	}
	.avc-works {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.avc-coverage__text {
		font-size: 11.5px;
	}
}


