.page {
	background-color: #ffffff;
	position: relative;
	width: 100%;
	max-width: 1600px;
	overflow: hidden;
}

.box-broadcast {
	background-color: rgba(31, 39, 50, 1);
	width: 100%;
	height: 45px;
	padding: 0 230px;
	font-size: 14px;
}

.text-box-broadcast-email {
	overflow-wrap: break-word;
	color: #ffffff;
	font-size: 12px;
	text-align: left;
	white-space: nowrap;
	line-height: 12px;
}

.box_nav {
	background-image: linear-gradient(180deg, #c8e4fc 0%, #7bacf8 100%);
	width: 100%;
	height: 109px;
	margin-top: -3px;
}

.box-nav-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 70px;
}

.small-screen-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 52px;
}

.box-nav-title {
	font-size: 20px;
}

.box-nav-cat {
	font-size: 16px;
}

.text-nav-title {
	width: 170px;
	height: 36px;
	overflow-wrap: break-word;
	color: #ffffff;
	font-size: 26px;
	text-align: left;
	white-space: nowrap;
	line-height: 26px;
	margin: 31px 0 0 225px;
}

.text-nav-cat {
	overflow-wrap: break-word;
	color: #333333;
	font-size: 16px;
	text-align: left;
	white-space: nowrap;
	line-height: 16px;
}

.mini-drama-page {
	width: 100%;
	background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 72%);
	padding: 64px 72px 96px;
}

.drama-stage {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
}

.drama-description {
	max-width: none;
	color: #536172;
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
}

.drama-season {
	min-width: 132px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #cbd7e8;
	border-radius: 8px;
	color: #1f4d85;
	font-size: 15px;
	font-weight: 700;
	background-color: #ffffff;
}

.drama-detail {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 20px;
	margin-top: 24px;
	padding: 20px 22px;
	border: 1px solid #dde6f2;
	border-radius: 8px;
	background-color: #ffffff;
}

.drama-series-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 16px;
}

.series-button {
	min-height: 0;
	display: grid;
	grid-template-rows: auto auto auto;
	gap: 10px;
	border: 1px solid #dbe5f2;
	border-radius: 8px;
	background-color: #ffffff;
	padding: 12px;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.series-button:hover,
.series-button:focus-visible {
	border-color: #9dbbe9;
	box-shadow: 0 8px 22px rgba(45, 95, 160, 0.12);
}

.series-button.active {
	border-color: #ff722e;
	background-color: #fff4ee;
	box-shadow: 0 10px 24px rgba(255, 114, 46, 0.16);
}

.series-cover {
	width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: 6px;
	background-color: #edf2f8;
	object-fit: cover;
}

.series-title {
	width: 100%;
	color: #1f2937;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	white-space: normal;
}

.series-count {
	color: #738196;
	font-size: 13px;
	line-height: 1.2;
}

.series-button.active .series-count {
	color: #c95b26;
}

.drama-watch {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 24px;
	align-items: start;
}

.drama-player-wrap {
	overflow: hidden;
	border-radius: 8px;
	background-color: #111827;
	box-shadow: 0 18px 48px rgba(25, 45, 78, 0.18);
}

.drama-video-frame {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: min(760px, calc(100vh - 190px));
	max-height: min(760px, calc(100vh - 190px));
	overflow: hidden;
	background-color: #0d1118;
}

.drama-video-frame.is-portrait {
	aspect-ratio: auto;
}

.drama-video-frame.is-landscape {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	margin: 0;
}

.drama-video-frame video {
	display: block;
}

.drama-player-bg {
	position: absolute;
	inset: -24px;
	width: calc(100% + 48px);
	height: calc(100% + 48px);
	filter: blur(24px);
	opacity: 0.55;
	object-fit: cover;
	transform: scale(1.08);
	pointer-events: none;
}

#drama-player {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background-color: transparent;
}

.drama-player-meta {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	padding: 20px 24px;
	color: #ffffff;
}

.drama-player-meta span {
	color: #ffb185;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
}

.drama-player-meta strong {
	min-width: 0;
	color: #ffffff;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	white-space: normal;
}

.drama-player-meta small {
	color: #b9c5d6;
	font-size: 14px;
	line-height: 1.2;
}

.episode-panel {
	width: 100%;
	border: 1px solid #dde6f2;
	border-radius: 8px;
	background-color: #ffffff;
	padding: 18px;
	box-shadow: 0 14px 34px rgba(25, 45, 78, 0.1);
}

.episode-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.episode-panel-header span:first-child {
	color: #1b2635;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}

.episode-panel-header span:last-child {
	color: #738196;
	font-size: 14px;
	line-height: 1.2;
}

.episode-panel-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.autoplay-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #536172;
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
}

.autoplay-toggle input {
	width: 14px;
	height: 14px;
	accent-color: #ff722e;
}

.episode-list {
	display: grid;
	gap: 10px;
	max-height: 516px;
	overflow-y: auto;
	padding-right: 2px;
}

.episode-button {
	width: 100%;
	min-height: 70px;
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	border: 1px solid #e3e9f2;
	border-radius: 8px;
	background-color: #ffffff;
	padding: 13px 14px;
	color: #263242;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.episode-button:hover,
.episode-button:focus-visible {
	border-color: #9dbbe9;
	box-shadow: 0 8px 22px rgba(45, 95, 160, 0.12);
}

.episode-button.active {
	border-color: #ff722e;
	background-color: #fff4ee;
	box-shadow: 0 10px 24px rgba(255, 114, 46, 0.16);
}

.episode-index {
	color: #ff722e;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

.episode-name {
	min-width: 0;
	color: #1f2937;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	white-space: normal;
}

.episode-time {
	color: #738196;
	font-size: 13px;
	line-height: 1.2;
}

.page-footer {
	width: 100%;
	min-height: 200px;
	gap: 40px;
	justify-content: space-between;
	background-color: rgba(40, 46, 56, 1);
	padding: 54px 230px 76px;
}

.footer-company-name {
	font-size: 26px;
	color: #ffffff;
}

.footer-company-address {
	font-size: 16px;
	color: #ffffff;
}

.page-footer-nav {
	flex-wrap: wrap;
	gap: 16px;
	height: auto;
}

.page-footer-nav-cat {
	font-size: 16px;
}

.text-page-footer-nav-cat {
	font-size: 16px;
	color: #fff8f4;
}

@media screen and (max-width: 768px) {
	.page {
		width: 100%;
		min-width: unset;
	}

	.box-broadcast {
		height: auto;
		padding: 8px 16px;
		font-size: 12px;
	}

	.text-box-broadcast-email {
		font-size: 11px;
		white-space: normal;
		word-break: break-all;
	}

	.box_nav {
		height: auto;
		padding: 12px 16px;
	}

	.box-nav-container {
		display: block;
	}

	.text-nav-title {
		width: auto;
		height: auto;
		margin: 0;
		font-size: 20px;
		line-height: 1.2;
	}

	.small-screen-nav {
		margin-top: 10px;
		gap: 15px;
	}

	.box-nav-cat {
		font-size: 14px;
	}

	.text-nav-cat {
		font-size: 14px;
		white-space: normal;
	}

	.mini-drama-page {
		padding: 38px 16px 58px;
	}

	.drama-description {
		font-size: 15px;
		line-height: 1.55;
	}

	.drama-detail {
		grid-template-columns: 1fr;
		gap: 14px;
		margin-top: 16px;
		padding: 16px;
	}

	.drama-season {
		width: 128px;
		height: 40px;
		font-size: 14px;
	}

	.drama-series-tabs {
		grid-template-columns: 1fr;
		gap: 10px;
		margin-top: 12px;
	}

	.series-button {
		grid-template-columns: 72px minmax(0, 1fr);
		grid-template-rows: auto auto;
		align-items: center;
		gap: 8px 12px;
		padding: 10px;
	}

	.series-cover {
		grid-row: 1 / 3;
		aspect-ratio: 3 / 4;
	}

	.series-title {
		font-size: 15px;
	}

	.series-count {
		align-self: start;
	}

	.drama-watch {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.drama-video-frame {
		height: calc(100vh - 150px);
		max-height: calc(100vh - 150px);
	}

	.drama-video-frame.is-portrait {
		width: 100%;
	}

	.drama-player-meta {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 16px;
	}

	.drama-player-meta strong {
		font-size: 18px;
	}

	.episode-panel {
		padding: 14px;
	}

	.episode-panel-header {
		align-items: flex-start;
	}

	.episode-panel-actions {
		flex-direction: column;
		align-items: flex-end;
		gap: 8px;
	}

	.episode-button {
		grid-template-columns: 48px minmax(0, 1fr);
		min-height: 72px;
	}

	.episode-time {
		grid-column: 2;
	}

	.page-footer {
		min-height: unset;
		padding: 30px 16px;
		gap: 24px;
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-company-name {
		font-size: 18px;
	}

	.footer-company-address {
		font-size: 13px;
	}

	.page-footer-nav {
		gap: 12px;
	}

	.page-footer-nav-cat,
	.text-page-footer-nav-cat {
		font-size: 13px;
	}
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
	.box-broadcast {
		padding: 0 60px;
	}

	.box-nav-container {
		gap: 32px;
	}

	.text-nav-title {
		margin-left: 60px;
	}

	.small-screen-nav {
		gap: 28px;
	}

	.mini-drama-page {
		padding: 48px 40px 76px;
	}

	.drama-watch {
		grid-template-columns: 1fr;
	}

	.drama-series-tabs {
		grid-template-columns: 1fr;
	}

	.episode-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-height: none;
	}

	.page-footer {
		padding: 40px 60px;
		gap: 40px;
	}
}
