/**
 * MK Theme — Movie "More about" accordion.
 *
 * Native <details>/<summary> styling, scoped to .mk-movie-more so it
 * never bleeds outside this block. Light-theme readability comes from
 * the Classic Hero Light wrapper classes (.mk-movie-template--light /
 * .mk-movie-single--light), with overrides kept intact at the bottom
 * of this file until Step 6 introduces preset class to markup.
 *
 * Step 5 (MK Theme 0.3.109) migration:
 *   - Base section now consumes Phase 4 v0.3 Level 2 --mk-movie-more-*
 *     component aliases instead of the old --mk-movie-* fallback names
 *     (which were a hybrid of working aliases and inline fallbacks).
 *   - component-tokens.css More About fallback values were updated in
 *     this step to mirror the actual 0.3.108 rendered values, so this
 *     migration is pixel-identical.
 *   - Light override block (L123–170 in 0.3.108) is intentionally NOT
 *     touched. Phase 4 v0.3 design alignment for light More About is
 *     deferred to Step 6 when the unified Classic Hero template adds
 *     mk-movie-preset--light to markup. Removing the override block
 *     here would reintroduce the 0.3.103 light readability bug.
 *
 * @since 0.3.103
 * @since 0.3.104 Light-variant selectors corrected to match real wrappers.
 * @since 0.3.109 Base section migrated to --mk-movie-more-* tokens (Step 5).
 * @since 0.3.110 Light overrides extended to also match .mk-movie-preset--light
 *                for unified Classic Hero template (Step 6).
 */

.mk-movie-more {
	margin: 24px auto;
	max-width: 1100px;
	padding: 0 20px;
	box-sizing: border-box;
	color: var(--mk-movie-more-fg);
}

.mk-movie-more[open] .mk-movie-more__summary-icon::before {
	transform: rotate( 180deg );
}

.mk-movie-more__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border: 1px solid var(--mk-movie-more-border);
	border-radius: 8px;
	background: var(--mk-movie-more-summary-bg);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
	user-select: none;
	transition: background 120ms ease, border-color 120ms ease;
}

.mk-movie-more__summary::-webkit-details-marker {
	display: none;
}

.mk-movie-more__summary:hover,
.mk-movie-more__summary:focus-visible {
	background: var(--mk-movie-more-summary-hover-bg);
	border-color: var(--mk-movie-more-border-strong);
}

.mk-movie-more__summary-label {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mk-movie-more__summary-icon {
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	position: relative;
}

.mk-movie-more__summary-icon::before {
	content: "";
	position: absolute;
	inset: 0;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate( 45deg );
	transform-origin: 60% 60%;
	transition: transform 160ms ease;
}

.mk-movie-more__grid {
	display: grid;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	gap: 16px 24px;
	margin-top: 14px;
	padding: 18px;
	border: 1px solid var(--mk-movie-more-border);
	border-radius: 8px;
	background: var(--mk-movie-more-grid-bg);
}

.mk-movie-more__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.mk-movie-more__label {
	font-size: 12px;
	font-weight: 500;
	color: var(--mk-movie-more-fg-muted);
	letter-spacing: 0.02em;
}

.mk-movie-more__value {
	font-size: 14px;
	line-height: 1.4;
	word-wrap: break-word;
	overflow-wrap: anywhere;
	color: var(--mk-movie-more-fg);
}

.mk-movie-more__value a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
	text-decoration-color: var(--mk-movie-more-link-underline);
}

.mk-movie-more__value a:hover {
	text-decoration-color: currentColor;
}

/* ── Light variant overrides ─────────────────────────────────────────── */
/* Step 5 note: this block uses hardcoded light colors targeting the legacy
   light markers (.mk-movie-template--light / .mk-movie-single--light).
   Step 6 note: each rule now also targets .mk-movie-template.mk-movie-preset--light
   to cover the new unified Classic Hero template. All three selector heads
   carry the same hardcoded values — no behavior drift. Full tokenization
   of light overrides is deferred to a post-migration cleanup. */

.mk-movie-template--light .mk-movie-more,
.mk-movie-single--light .mk-movie-more,
.mk-movie-template.mk-movie-preset--light .mk-movie-more {
	color: #1a1a1a;
}

.mk-movie-template--light .mk-movie-more__summary,
.mk-movie-single--light .mk-movie-more__summary,
.mk-movie-template.mk-movie-preset--light .mk-movie-more__summary {
	color: #1a1a1a;
	border-color: rgba( 0, 0, 0, 0.1 );
	background: #fafafa;
}

.mk-movie-template--light .mk-movie-more__summary:hover,
.mk-movie-template--light .mk-movie-more__summary:focus-visible,
.mk-movie-single--light .mk-movie-more__summary:hover,
.mk-movie-single--light .mk-movie-more__summary:focus-visible,
.mk-movie-template.mk-movie-preset--light .mk-movie-more__summary:hover,
.mk-movie-template.mk-movie-preset--light .mk-movie-more__summary:focus-visible {
	background: #f0f0f0;
	border-color: rgba( 0, 0, 0, 0.16 );
}

.mk-movie-template--light .mk-movie-more__grid,
.mk-movie-single--light .mk-movie-more__grid,
.mk-movie-template.mk-movie-preset--light .mk-movie-more__grid {
	border-color: rgba( 0, 0, 0, 0.08 );
	background: #fdfdfd;
}

.mk-movie-template--light .mk-movie-more__label,
.mk-movie-single--light .mk-movie-more__label,
.mk-movie-template.mk-movie-preset--light .mk-movie-more__label {
	color: rgba( 0, 0, 0, 0.55 );
}

.mk-movie-template--light .mk-movie-more__value,
.mk-movie-single--light .mk-movie-more__value,
.mk-movie-template.mk-movie-preset--light .mk-movie-more__value {
	color: #1a1a1a;
}

.mk-movie-template--light .mk-movie-more__value a,
.mk-movie-single--light .mk-movie-more__value a,
.mk-movie-template.mk-movie-preset--light .mk-movie-more__value a {
	color: #1a1a1a;
	text-decoration-color: rgba( 0, 0, 0, 0.3 );
}

.mk-movie-template--light .mk-movie-more__value a:hover,
.mk-movie-single--light .mk-movie-more__value a:hover,
.mk-movie-template.mk-movie-preset--light .mk-movie-more__value a:hover {
	text-decoration-color: currentColor;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media ( max-width: 1024px ) {
	.mk-movie-more__grid {
		grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	}
}

@media ( max-width: 768px ) {
	.mk-movie-more__grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		padding: 14px;
		gap: 14px 18px;
	}

	.mk-movie-more {
		padding: 0 16px;
	}
}

@media ( max-width: 480px ) {
	.mk-movie-more__grid {
		grid-template-columns: 1fr;
	}
}
