/* 다독다독 숲속 극장 — 영상 목록과 영상 페이지 */

.dktheater,
.dktheater-post {
	--dkt-ink: #1a1a1a;
	--dkt-sub: #767676;
	--dkt-line: #e8e2d4;
	--dkt-cream: #fffdf7;
	--dkt-red: #e84343;
	--dkt-green: #2d6a4f;
	box-sizing: border-box;
	color: var(--dkt-ink);
	word-break: keep-all;
	overflow-wrap: anywhere;
}

.dktheater *,
.dktheater-post * {
	box-sizing: border-box;
}

.dktheater .screen-reader-text,
.dktheater-post .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
	border: 0;
}

/* ---------- 목록 ---------- */

.dktheater {
	width: 100%;
	margin: 0;
	padding: 56px 24px 88px;
	scroll-margin-top: 110px;
}

.dktheater .dktheater__inner {
	max-width: 1100px;
	margin: 0 auto;
}

.dktheater__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 28px;
	padding: 0 0 18px;
	border-bottom: 2px solid var(--dkt-ink);
}

.dktheater .dktheater__total {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--dkt-sub);
}

.dktheater__total strong {
	font-weight: 700;
	color: var(--dkt-red);
}

.dktheater__search {
	display: flex;
	flex: none;
	gap: 6px;
	margin: 0;
}

.dktheater .dktheater__search input[type="search"] {
	width: 220px;
	height: 42px;
	margin: 0;
	padding: 0 14px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--dkt-ink);
	background: #fff;
	border: 1.5px solid #e2dccd;
	border-radius: 21px;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.dktheater .dktheater__search input[type="search"]:focus {
	border-color: var(--dkt-ink);
}

.dktheater .dktheater__search button {
	flex: none;
	height: 42px;
	margin: 0;
	padding: 0 20px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: #fff !important;
	background: var(--dkt-ink) !important;
	border: 0 !important;
	border-radius: 21px;
	box-shadow: none;
	cursor: pointer;
}

.dktheater .dktheater__search button:hover,
.dktheater .dktheater__search button:focus-visible {
	background: var(--dkt-red) !important;
}

.dktheater .dktheater__grid {
	display: grid;
	grid-template-columns: repeat(var(--dkt-cols, 3), minmax(0, 1fr));
	gap: 40px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dktheater .dktheater-card {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dktheater .dktheater-card__link {
	display: block;
	color: var(--dkt-ink);
	text-decoration: none !important;
	border-radius: 16px;
}

.dktheater-card__link:focus-visible {
	outline: 3px solid #f2b705;
	outline-offset: 3px;
}

.dktheater-card__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #2b2b2b;
	border-radius: 16px;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dktheater-card__link:hover .dktheater-card__thumb,
.dktheater-card__link:focus-visible .dktheater-card__thumb {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.dktheater-card__thumb .dktheater-card__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	border-radius: 0;
}

.dktheater-card__noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 52px;
	background: linear-gradient(135deg, #3a5a40, #1f3b2c);
}

/* 재생 단추 모양 */
.dktheater-card__play,
.dktheater-player__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: 0;
	padding: 0;
	background: rgba(232, 67, 67, 0.92) !important;
	border: 0 !important;
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
	transform: translate(-50%, -50%);
	transition: transform 0.15s ease, background 0.15s ease;
}

.dktheater-card__play::after,
.dktheater-player__play::after {
	position: absolute;
	top: 50%;
	left: 54%;
	width: 0;
	height: 0;
	border-top: 11px solid transparent;
	border-bottom: 11px solid transparent;
	border-left: 18px solid #fff;
	content: "";
	transform: translate(-50%, -50%);
}

.dktheater-card__link:hover .dktheater-card__play {
	transform: translate(-50%, -50%) scale(1.1);
}

.dktheater-card__tag {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	color: #fff;
	background: rgba(0, 0, 0, 0.65);
	border-radius: 12px;
}

.dktheater-card__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	margin: 14px 2px 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--dkt-ink);
}

.dktheater-card__link:hover .dktheater-card__title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dktheater-card__date {
	display: block;
	margin: 6px 2px 0;
	font-size: 14px;
	color: #999;
}

.dktheater-new {
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-left: 2px;
	font-size: 11px;
	font-weight: 800;
	line-height: 18px;
	color: #fff;
	text-align: center;
	vertical-align: 2px;
	background: #ff9f1c;
	border-radius: 50%;
}

.dktheater .dktheater__empty {
	margin: 0;
	padding: 64px 20px;
	font-size: 16px;
	line-height: 1.8;
	color: var(--dkt-sub);
	text-align: center;
}

.dktheater .dktheater__empty a {
	color: var(--dkt-red);
}

.dktheater__paging {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 48px 0 0;
}

.dktheater .dktheater__page {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: #444;
	text-decoration: none !important;
	background: #fff;
	border: 1.5px solid #e2dccd;
	border-radius: 20px;
}

.dktheater a.dktheater__page:hover,
.dktheater a.dktheater__page:focus-visible {
	color: var(--dkt-red);
	border-color: var(--dkt-red);
}

.dktheater .dktheater__page.is-current {
	color: #fff;
	background: var(--dkt-ink);
	border-color: var(--dkt-ink);
}

/* ---------- 홈 화면 섹션 모양 ---------- */

.dktheater.dktheater--home {
	padding: 72px 24px;
	background: #fff8ec;
}

.dktheater__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 36px;
}

.dktheater .dktheater__title {
	margin: 0;
	padding: 0;
	font-size: 28px;
	font-weight: 900;
	line-height: 1.3;
	color: var(--dkt-ink);
}

.dktheater__subtitle {
	margin-left: 10px;
	font-size: 15px;
	font-weight: 500;
	color: #999;
}

.dktheater .dktheater__link {
	flex: none;
	padding: 7px 16px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--dkt-red);
	background: transparent;
	text-decoration: none !important;
	border: 1.5px solid var(--dkt-red);
	border-radius: 20px;
}

.dktheater .dktheater__link:hover,
.dktheater .dktheater__link:focus-visible {
	color: #fff;
	background: var(--dkt-red);
}

/* ---------- 영상 페이지 ---------- */

#primary.dktheater-primary {
	width: 100% !important;
	max-width: 100%;
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.dktheater-post {
	width: 100%;
	max-width: 968px;
	margin: 0 auto;
	padding: 48px 24px 88px;
}

.ast-theme-transparent-header .dktheater-post {
	padding-top: 148px;
}

.dktheater-post .dktheater-post__back {
	margin: 0 0 24px;
	font-size: 15px;
}

.dktheater-post .dktheater-post__back a {
	color: var(--dkt-sub);
	text-decoration: none;
}

.dktheater-post .dktheater-post__back a:hover {
	color: var(--dkt-red);
	text-decoration: underline;
}

.dktheater-post__head {
	margin: 0 0 22px;
}

.dktheater-post .dktheater-post__title {
	margin: 0 0 8px;
	padding: 0;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.45;
	color: var(--dkt-ink);
}

.dktheater-post .dktheater-post__meta {
	margin: 0;
	font-size: 14px;
	color: var(--dkt-sub);
}

.dktheater-player {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #111;
	border-radius: 18px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.dktheater-player.dktheater-player--vertical {
	max-width: 400px !important;
	margin: 0 auto;
	aspect-ratio: 9 / 16;
}

.dktheater-player .dktheater-player__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	border-radius: 0;
	opacity: 0.92;
}

.dktheater-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.dktheater-player .dktheater-player__play {
	width: 84px;
	height: 84px;
	cursor: pointer;
}

.dktheater-player .dktheater-player__play::after {
	border-top-width: 16px;
	border-bottom-width: 16px;
	border-left-width: 26px;
}

.dktheater-player .dktheater-player__play:hover,
.dktheater-player .dktheater-player__play:focus-visible {
	background: #cf2f2f !important;
	transform: translate(-50%, -50%) scale(1.08);
}

.dktheater-player .dktheater-player__play:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.dktheater-player__go {
	position: absolute;
	bottom: 16px;
	left: 50%;
	padding: 8px 18px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	background: rgba(0, 0, 0, 0.6);
	border-radius: 20px;
	transform: translateX(-50%);
}

.dktheater-player__noscript {
	position: absolute;
	bottom: 16px;
	left: 16px;
	color: #fff !important;
}

.dktheater-post .dktheater-post__source {
	margin: 12px 4px 0;
	font-size: 14px;
	text-align: right;
}

.dktheater-post .dktheater-post__source a {
	color: var(--dkt-sub);
	text-decoration: none;
}

.dktheater-post .dktheater-post__source a:hover {
	color: var(--dkt-red);
	text-decoration: underline;
}

.dktheater-post .dktheater-post__body {
	margin: 28px 0 0;
	padding: 28px 4px 0;
	font-size: 17px;
	line-height: 1.9;
	color: #2a2a2a;
	border-top: 1px solid var(--dkt-line);
}

.dktheater-post .dktheater-post__body p,
.dktheater-post .dktheater-post__body li {
	font-size: inherit;
}

.dktheater-post .dktheater-post__body p {
	margin: 0 0 1.2em;
}

.dktheater-post .dktheater-post__body > *:last-child {
	margin-bottom: 0;
}

.dktheater-post .dktheater-post__body img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.dktheater.dktheater--others {
	margin: 56px 0 0;
	padding: 40px 0 0;
	border-top: 2px solid var(--dkt-ink);
}

.dktheater-post .dktheater-post__more {
	margin: 0 0 24px;
	padding: 0;
	font-size: 22px !important;
	font-weight: 800 !important;
	line-height: 1.4;
	color: var(--dkt-ink);
}

.dktheater--others .dktheater__grid {
	gap: 28px 20px;
}

.dktheater--others .dktheater-card__title {
	font-size: 16px;
}

.dktheater-post .dktheater-post__list {
	margin: 44px 0 0;
	text-align: center;
}

.dktheater-post .dktheater-post__list a {
	display: inline-block;
	min-width: 132px;
	padding: 12px 28px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	color: #fff;
	text-decoration: none !important;
	background: var(--dkt-ink);
	border-radius: 26px;
}

.dktheater-post .dktheater-post__list a:hover,
.dktheater-post .dktheater-post__list a:focus-visible {
	background: var(--dkt-red);
}

/* ---------- 좁은 화면 ---------- */

@media (max-width: 1024px) {
	.dktheater:not(.dktheater--home):not(.dktheater--others) .dktheater__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.dktheater-post {
		padding: 32px 16px 64px;
	}

	.ast-theme-transparent-header .dktheater-post {
		padding-top: 112px;
	}

	.dktheater-post .dktheater-post__title {
		font-size: 22px;
	}

	.dktheater-player {
		border-radius: 12px;
	}

	.dktheater-player .dktheater-player__play {
		width: 68px;
		height: 68px;
	}

	.dktheater-post .dktheater-post__body {
		font-size: 16px;
	}
}

@media (max-width: 640px) {
	.dktheater {
		padding: 36px 16px 64px;
	}

	.dktheater.dktheater--home {
		padding: 48px 16px;
	}

	.dktheater__head {
		margin-bottom: 24px;
	}

	.dktheater .dktheater__title {
		font-size: 22px;
	}

	.dktheater__subtitle {
		display: block;
		margin: 4px 0 0;
		font-size: 13px;
	}

	.dktheater .dktheater__link {
		padding: 6px 12px;
		font-size: 13px;
	}

	.dktheater__bar {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.dktheater__search {
		flex: 1;
	}

	.dktheater .dktheater__search input[type="search"] {
		flex: 1;
		width: auto;
		min-width: 0;
	}

	.dktheater .dktheater__grid,
	.dktheater:not(.dktheater--home):not(.dktheater--others) .dktheater__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.dktheater--others .dktheater__grid {
		gap: 24px;
	}

	.dktheater-card__play {
		width: 52px;
		height: 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dktheater *,
	.dktheater-post * {
		transition: none !important;
	}
}
