/*
Theme Name: Shift Drama
Author: Shift Drama
Description: Dark cinematic short-drama streaming theme styled after YesShorts.
Version: 4.0.0
Requires at least: 6.4
Requires PHP: 7.3
Text Domain: shift-drama
*/

:root {
	color-scheme: dark;

	/* YesShorts core palette */
	--ys-ink: #000000;
	--ys-bg: #0b0b0d;
	--ys-ink-2: #0a0a0c;
	--ys-card: #151517;
	--ys-surface: #1d1d20;
	--ys-surface-2: #28282c;
	--ys-panel: #292929;

	/* Foregrounds */
	--ys-fg: #f5f5f7;
	--ys-fg-dim: #a8a8ad;
	--ys-fg-mute: #6e6e76;

	/* YesShorts signature rose-magenta brand tokens */
	--ys-brand: #df1069;
	--ys-brand-bright: #ff4d94;
	--ys-brand-deep: #b90d57;
	--ys-brand-rgb: 223, 16, 105;
	--ys-hot: #ff2d55;
	--ys-hot-2: #ff5e7e;
	--ys-gold: #eed18c;
	--ys-vip-bg: #f5e4c5;
	--ys-vip-fg: #342717;

	/* Borders & glass */
	--ys-line: rgba(255, 255, 255, 0.06);
	--ys-line-med: rgba(255, 255, 255, 0.10);
	--ys-line-strong: rgba(255, 255, 255, 0.18);
	--ys-glass: rgba(255, 255, 255, 0.08);
	--ys-glass-hover: rgba(255, 255, 255, 0.14);

	/* Layout & typography */
	--max: 1320px;
	--radius: 12px;
	--radius-lg: 16px;
	--radius-xl: 20px;
	--font-sans: "Sora", -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
	--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	background: var(--ys-bg);
}

body {
	margin: 0;
	background: var(--ys-bg);
	color: var(--ys-fg);
	font-family: var(--font-sans);
	font-size: 14px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

a {
	color: inherit;
	text-decoration: none;
}

img,
video {
	display: block;
	max-width: 100%;
}

button,
input {
	font: inherit;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

:focus-visible {
	outline: 2px solid var(--ys-brand-bright);
	outline-offset: 3px;
}

.site-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--ys-bg);
	overflow-x: clip;
}

.site-shell > main {
	flex: 1 0 auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(11, 11, 13, 0.88);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border-bottom: 1px solid var(--ys-line);
}

.nav-wrap {
	max-width: var(--max);
	height: 80px;
	padding: 0 32px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 36px;
}

.brand,
.footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	white-space: nowrap;
	transition: opacity 0.2s var(--ease);
}

.brand:hover,
.footer-brand:hover {
	opacity: 0.92;
}

.brand-icon {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border-radius: 9px;
	box-shadow: 0 4px 14px rgba(var(--ys-brand-rgb), 0.28);
}

.brand-text {
	display: inline-flex;
	align-items: baseline;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #ffffff;
}

.brand-mark {
	background: linear-gradient(135deg, var(--ys-brand-bright) 0%, var(--ys-brand) 60%, var(--ys-brand-deep) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.main-nav a {
	position: relative;
	padding: 6px 2px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
	transition: color 0.18s var(--ease);
}

.main-nav a:hover {
	color: #ffffff;
}

.main-nav a.current {
	color: var(--ys-brand-bright);
}

.main-nav a.current::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2.5px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ys-brand-bright), var(--ys-brand));
}

.nav-actions {
	margin-left: auto;
	display: flex;
	align-items: center;
}

.search-form {
	display: flex;
	align-items: center;
	height: 40px;
	border: 1px solid var(--ys-line-med);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	overflow: hidden;
	transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-form:focus-within {
	border-color: rgba(var(--ys-brand-rgb), 0.7);
	background: rgba(255, 255, 255, 0.09);
	box-shadow: 0 0 0 3px rgba(var(--ys-brand-rgb), 0.16);
}

.search-form input {
	width: 196px;
	padding: 0 8px 0 16px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--ys-fg);
	font-size: 13.5px;
}

.search-form input::placeholder {
	color: var(--ys-fg-mute);
}

.search-form input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.search-form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.72);
	cursor: pointer;
	transition: color 0.18s var(--ease);
}

.search-form button svg {
	width: 17px;
	height: 17px;
}

.search-form button:hover {
	color: var(--ys-brand-bright);
}

/* ==========================================================================
   Shared Controls & Badges
   ========================================================================== */
.icon-play {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	transform: translateX(1px);
}

.icon-lock {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 48px;
	padding: 0 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--ys-brand-bright) 0%, var(--ys-brand) 55%, var(--ys-brand-deep) 100%);
	color: #ffffff;
	cursor: pointer;
	text-decoration: none;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 10px 26px rgba(var(--ys-brand-rgb), 0.3);
	transition: transform 0.16s var(--ease-spring), filter 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.button:hover {
	filter: brightness(1.08);
	box-shadow: 0 14px 32px rgba(var(--ys-brand-rgb), 0.42);
	transform: translateY(-1px);
}

.button:active {
	transform: scale(0.97);
}

/* YesShorts hero signature high-contrast Play pill (white -> rose hover) */
.button-play {
	min-width: 188px;
	height: 52px;
	padding: 0 28px;
	background: #ffffff;
	color: #000000;
	font-size: 16px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.button-play:hover {
	filter: none;
	background: linear-gradient(135deg, var(--ys-brand-bright) 0%, var(--ys-brand) 60%, var(--ys-brand-deep) 100%);
	color: #ffffff;
	box-shadow: 0 14px 34px rgba(var(--ys-brand-rgb), 0.45);
}

.button-quiet {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.92);
	box-shadow: none;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.button-quiet:hover {
	filter: none;
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.45);
	color: #ffffff;
	box-shadow: none;
}

.button-sm {
	height: 36px;
	padding: 0 16px;
	font-size: 13px;
}

.button.is-disabled {
	pointer-events: none;
	opacity: 0.35;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	color: var(--ys-brand-bright);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ys-brand);
	box-shadow: 0 0 10px var(--ys-brand-bright);
}

.hero-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	color: var(--ys-fg-dim);
	font-size: 13px;
}

.tag {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(var(--ys-brand-rgb), 0.22);
	border: 1px solid rgba(var(--ys-brand-rgb), 0.45);
	color: var(--ys-brand-bright);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}

.tag-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.9);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.3;
}

.hero-ep-count {
	margin-left: 4px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Homepage Cinematic Hero Carousel (YesShorts Desktop Hero)
   ========================================================================== */
.hero {
	position: relative;
	min-height: 580px;
	display: flex;
	align-items: stretch;
	overflow: hidden;
	background: var(--ys-bg);
}

.hero-immersive,
.platform-hero {
	min-height: 600px;
}

.home-carousel-slides {
	position: absolute;
	inset: 0;
}

.hero-slide {
	position: absolute;
	inset: 0;
	visibility: hidden;
	opacity: 0;
	background: var(--ys-bg) var(--hero-image, none) center / cover no-repeat;
	transition: opacity 0.65s var(--ease), visibility 0.65s var(--ease);
}

.hero-slide.is-active {
	visibility: visible;
	opacity: 1;
}

/* Multi-layered YesShorts obsidian vignettes + rose ambient glow */
.hero-slide::before,
.hero:not(.home-carousel)::before {
	content: "";
	position: absolute;
	inset: 0;
	backdrop-filter: blur(22px) saturate(1.15);
	-webkit-backdrop-filter: blur(22px) saturate(1.15);
	background:
		linear-gradient(90deg, #0b0b0d 0%, rgba(11, 11, 13, 0.92) 38%, rgba(11, 11, 13, 0.56) 72%, rgba(11, 11, 13, 0.32) 100%),
		linear-gradient(0deg, #0b0b0d 0%, rgba(11, 11, 13, 0.72) 28%, transparent 65%),
		linear-gradient(180deg, rgba(11, 11, 13, 0.7) 0%, transparent 28%);
}

.hero-slide::after,
.hero:not(.home-carousel)::after {
	content: "";
	position: absolute;
	right: 8%;
	top: -12%;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--ys-brand-rgb), 0.24) 0%, rgba(91, 57, 73, 0.12) 45%, transparent 72%);
	filter: blur(60px);
	pointer-events: none;
}

.hero-content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--max);
	height: 100%;
	margin: 0 auto;
	padding: 56px 32px 72px;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(240px, 340px);
	align-items: center;
	gap: 48px;
}

.hero-copy {
	max-width: 600px;
}

.hero h1 {
	margin-bottom: 18px;
	color: rgba(255, 255, 255, 0.96);
	font-size: clamp(32px, 4.4vw, 52px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.14;
}

.hero p {
	max-width: 500px;
	margin-bottom: 28px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 14.5px;
	line-height: 1.68;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

/* Framed vertical poster showcase (fits 3:4 short drama covers cleanly) */
.hero-visual {
	position: relative;
	justify-self: end;
	width: min(100%, 300px);
	aspect-ratio: 3 / 4;
	border-radius: 18px;
	overflow: hidden;
	background: var(--ys-card);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow:
		0 28px 64px rgba(0, 0, 0, 0.72),
		0 0 48px rgba(var(--ys-brand-rgb), 0.18);
}

.hero-visual::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.82) 100%);
	pointer-events: none;
}

.hero-visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-visual-label {
	position: absolute;
	left: 14px;
	bottom: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.62);
	border: 1px solid rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
}

.hero-visual-label::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ys-brand-bright);
	box-shadow: 0 0 8px var(--ys-brand-bright);
}

/* YesShorts desktop vertical thumbnail strip switcher */
.hero-carousel-controls {
	position: absolute;
	right: 32px;
	bottom: 24px;
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 10px;
}

.hero-carousel-controls button {
	position: relative;
	width: 62px;
	height: 86px;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 10px;
	background: var(--ys-surface);
	cursor: pointer;
	opacity: 0.52;
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.hero-carousel-controls button img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-carousel-controls button span {
	position: absolute;
	right: 5px;
	bottom: 4px;
	color: rgba(255, 255, 255, 0.92);
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.hero-carousel-controls button:hover {
	opacity: 0.92;
	transform: translateY(-2px);
}

.hero-carousel-controls button.is-active {
	opacity: 1;
	border-color: #ffffff;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(var(--ys-brand-rgb), 0.5);
	transform: translateY(-3px);
}

.hero-carousel-controls button.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--ys-brand-bright), var(--ys-brand));
}

.hero-rail {
	display: none;
}

/* ==========================================================================
   Content Shelves & Poster Cards (YesShorts Theater Shelf)
   ========================================================================== */
.content {
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 40px 32px 72px;
}

.section {
	margin-bottom: 56px;
}

.section:last-child {
	margin-bottom: 0;
}

.section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.section-label {
	display: block;
	margin-bottom: 6px;
	color: var(--ys-brand-bright);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
	margin: 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.25;
}

.section-heading a {
	color: rgba(255, 255, 255, 0.5);
	font-size: 14.5px;
	font-weight: 600;
	white-space: nowrap;
	transition: color 0.18s var(--ease);
}

.section-heading a:hover {
	color: var(--ys-brand-bright);
}

.card-meta {
	margin: 0;
	color: rgba(255, 255, 255, 0.45);
	font-size: 12.5px;
	font-weight: 500;
}

.drama-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 28px 18px;
}

@media (min-width: 1480px) {
	.drama-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.drama-card {
	min-width: 0;
}

.drama-card > a {
	display: block;
}

.poster {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, 0.05);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 10px 28px rgba(0, 0, 0, 0.35);
	transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.poster::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.82) 100%);
	pointer-events: none;
}

.drama-card:hover .poster {
	transform: translateY(-4px);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.24),
		0 18px 38px rgba(0, 0, 0, 0.65),
		0 0 28px rgba(var(--ys-brand-rgb), 0.16);
}

.poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s var(--ease);
}

.drama-card:hover .poster img {
	transform: scale(1.06);
}

.poster-placeholder {
	height: 100%;
	display: grid;
	place-items: center;
	padding: 20px;
	color: var(--ys-fg-dim);
	text-align: center;
	font-weight: 700;
	background: radial-gradient(circle at 20% 20%, rgba(var(--ys-brand-rgb), 0.24), transparent 60%), linear-gradient(145deg, #1d1d20, #111114);
}

.card-play {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0.36);
	opacity: 0;
	transition: opacity 0.24s var(--ease);
}

.drama-card:hover .card-play {
	opacity: 1;
}

.card-play-icon {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #ffffff;
	color: #000000;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
	transform: scale(0.88);
	transition: transform 0.24s var(--ease-spring), background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.drama-card:hover .card-play-icon {
	transform: scale(1);
}

.drama-card:hover .card-play-icon:hover {
	background: var(--ys-brand);
	color: #ffffff;
}

/* Compact YesShorts top-left status badge */
.badge-new {
	position: absolute;
	z-index: 3;
	top: 8px;
	left: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 8px;
	border-radius: 5px;
	background: linear-gradient(135deg, var(--ys-hot-2), var(--ys-brand));
	color: #ffffff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
	box-shadow: 0 4px 12px rgba(var(--ys-brand-rgb), 0.45);
}

.ep-chip {
	position: absolute;
	z-index: 2;
	right: 8px;
	bottom: 8px;
	padding: 2px 8px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.58);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: rgba(255, 255, 255, 0.88);
	font-size: 11.5px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1.4;
}

.drama-card h3 {
	margin: 12px 0 4px;
	color: rgba(255, 255, 255, 0.92);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.38;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color 0.18s var(--ease);
}

.drama-card:hover h3 {
	color: #ffffff;
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag-list .tag {
	padding: 8px 14px;
	background: var(--ys-surface);
	border-color: var(--ys-line-med);
	color: var(--ys-fg-dim);
}

.tag-list .tag:hover {
	border-color: rgba(var(--ys-brand-rgb), 0.55);
	color: var(--ys-brand-bright);
}

/* ==========================================================================
   Drama Detail Page
   ========================================================================== */
.archive-banner {
	padding: 56px 32px 40px;
	border-bottom: 1px solid var(--ys-line);
	background: radial-gradient(circle at 75% 15%, rgba(var(--ys-brand-rgb), 0.14), transparent 42%);
}

.archive-banner .inner,
.filter-bar {
	max-width: var(--max);
	margin: 0 auto;
}

.archive-banner h1 {
	margin: 0 0 8px;
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.archive-banner p {
	margin: 0;
	color: var(--ys-fg-dim);
}

.filter-bar {
	padding: 20px 32px;
}

.detail-hero {
	position: relative;
	min-height: 460px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--ys-bg) var(--detail-image, none) center / cover no-repeat;
}

.detail-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	backdrop-filter: blur(28px) saturate(1.1);
	-webkit-backdrop-filter: blur(28px) saturate(1.1);
	background:
		linear-gradient(90deg, #0b0b0d 0%, rgba(11, 11, 13, 0.88) 46%, rgba(11, 11, 13, 0.45) 100%),
		linear-gradient(0deg, #0b0b0d 0%, rgba(11, 11, 13, 0.7) 35%, rgba(11, 11, 13, 0.35) 100%);
}

.detail-hero::after {
	content: "";
	position: absolute;
	right: 12%;
	top: -15%;
	width: 440px;
	height: 440px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--ys-brand-rgb), 0.2), transparent 70%);
	filter: blur(70px);
	pointer-events: none;
}

.detail-inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	align-items: end;
	gap: 40px;
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 56px 32px 48px;
}

.detail-poster {
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: var(--radius-lg);
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: var(--ys-card);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72), 0 0 36px rgba(var(--ys-brand-rgb), 0.14);
}

.detail-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.detail-copy h1 {
	max-width: 720px;
	margin-bottom: 16px;
	color: #ffffff;
	font-size: clamp(30px, 4.4vw, 50px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.12;
}

.detail-copy p {
	max-width: 620px;
	margin: 16px 0 26px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 14.5px;
	line-height: 1.72;
}

/* Episode Grid (YesShorts Episode Selector Aesthetic) */
.episode-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 10px;
}

.episode-link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 54px;
	padding: 0 12px;
	border: 2px solid transparent;
	border-radius: 10px;
	background: var(--ys-glass);
	color: rgba(255, 255, 255, 0.92);
	transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.16s var(--ease), color 0.18s var(--ease);
}

.episode-link:hover {
	background: var(--ys-glass-hover);
	border-color: rgba(var(--ys-brand-rgb), 0.65);
	color: #ffffff;
	transform: translateY(-2px);
}

.episode-number {
	font-size: 17px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.episode-link:hover .episode-number {
	color: var(--ys-brand-bright);
}

.episode-link.is-locked {
	background: rgba(255, 255, 255, 0.06);
	border-color: transparent;
	color: rgba(255, 255, 255, 0.72);
	cursor: pointer;
	overflow: hidden;
}

.episode-link.is-locked:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 61, 93, 0.65);
	color: #ffffff;
}

.episode-link.is-locked:hover .episode-number {
	color: #ffffff;
}

.episode-link.is-locked:hover .episode-lock,
.player-episode-link.is-locked:hover .episode-lock {
	background: rgba(255, 61, 93, 0.9);
	color: #ffffff;
}

/* ReelShort-style top-right corner lock badge */
.episode-lock {
	position: absolute;
	top: 0;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 19px;
	height: 16px;
	border-radius: 0 7px 0 6px;
	background: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.72);
	transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.episode-lock .icon-lock {
	width: 10px;
	height: 10px;
}

/* ==========================================================================
   Video Player Page (YesShorts Desktop Watch Theater)
   ========================================================================== */
.player-page {
	min-height: calc(100vh - 80px);
	background: var(--ys-bg);
}

.player-layout {
	max-width: var(--max);
	margin: 0 auto;
	padding: 28px 32px 44px;
}

.player-recommendations-wrap {
	padding-top: 0;
}

.player-recommendations {
	padding-top: 36px;
	border-top: 1px solid var(--ys-line);
}

.player-recommendations .drama-card:nth-child(n+6) {
	display: none;
}

@media (min-width: 1480px) {
	.player-recommendations .drama-card:nth-child(n+6) {
		display: block;
	}
}

.player-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	grid-template-areas:
		"video sidebar"
		"info sidebar";
	align-items: start;
	gap: 0 28px;
	min-width: 0;
}

.video-stage {
	position: relative;
	grid-area: video;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-lg);
	background: var(--ys-ink);
	box-shadow: 0 24px 68px rgba(0, 0, 0, 0.72);
	--plyr-color-main: var(--ys-brand);
	--plyr-video-background: #000000;
	--plyr-menu-background: rgba(21, 21, 23, 0.96);
	--plyr-menu-color: var(--ys-fg);
	--plyr-menu-border-color: rgba(255, 255, 255, 0.1);
	--plyr-menu-radius: 12px;
	--plyr-tooltip-background: rgba(21, 21, 23, 0.96);
	--plyr-tooltip-color: var(--ys-fg);
	--plyr-video-control-color: #ffffff;
	--plyr-video-control-color-hover: #ffffff;
	--plyr-video-control-background-hover: var(--ys-brand);
	--plyr-range-thumb-background: #ffffff;
	--plyr-range-track-height: 4px;
	--plyr-badge-background: var(--ys-brand);
	--plyr-badge-text-color: #ffffff;
	--plyr-font-family: var(--font-sans);
}

.video-stage .plyr {
	width: 100%;
	background: #000000;
	border-radius: inherit;
}

.video-stage .plyr__video-wrapper {
	background: #000000;
}

.video-stage .plyr__control--overlaid {
	background: rgba(var(--ys-brand-rgb), 0.92);
	box-shadow: 0 12px 32px rgba(var(--ys-brand-rgb), 0.45);
}

.video-stage .plyr__control--overlaid:hover {
	background: var(--ys-brand-bright);
}

.video-stage .plyr:fullscreen video,
.video-stage .plyr--fullscreen-fallback video {
	max-height: 100vh;
	height: 100%;
	aspect-ratio: auto;
}

.player-status {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 5;
	pointer-events: none;
	max-width: calc(100% - 28px);
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(11, 11, 13, 0.82);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: rgba(255, 255, 255, 0.88);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.35;
}

.player-status.is-error {
	border-color: rgba(var(--ys-brand-rgb), 0.65);
	background: rgba(45, 12, 26, 0.9);
	color: #ffd3e4;
}

.video-stage video {
	width: 100%;
	max-height: min(76vh, 720px);
	aspect-ratio: 16 / 9;
	object-fit: contain;
	background: #000000;
}

.player-info {
	grid-area: info;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 20px;
	padding: 18px 22px;
	border: 1px solid var(--ys-line);
	border-radius: var(--radius-lg);
	background: var(--ys-card);
}

.player-info-copy {
	min-width: 0;
}

.player-info .eyebrow {
	margin-bottom: 6px;
}

.player-info h1 {
	margin: 0;
	color: #ffffff;
	font-size: clamp(20px, 2.4vw, 26px);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.25;
}

.player-nav {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

/* Dark Obsidian Episode Sidebar (modeled on desktop-watch-sidebar) */
.episode-sidebar {
	grid-area: sidebar;
	min-width: 0;
	max-height: calc(100vh - 124px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 20px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-lg);
	background: var(--ys-card);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.episode-sidebar-heading {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.episode-sidebar-describe {
	flex-shrink: 0;
	margin: 0 0 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	color: rgba(255, 255, 255, 0.72);
	font-size: 13px;
	line-height: 1.65;
	word-break: break-word;
	max-height: 148px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.episode-sidebar-describe::-webkit-scrollbar {
	width: 4px;
}

.episode-sidebar-describe::-webkit-scrollbar-track {
	background: transparent;
}

.episode-sidebar-describe::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
}

.episode-sidebar-heading > div:first-child {
	min-width: 0;
	flex: 1 1 auto;
}

.episode-sidebar-heading .section-label {
	margin-bottom: 4px;
}

.episode-sidebar-heading h2 {
	margin: 0;
	color: rgba(255, 255, 255, 0.94);
	font-size: 16.5px;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.episode-sidebar-actions {
	flex: 0 0 auto;
}

.episode-sidebar-actions .button {
	height: 32px;
	padding: 0 12px;
	font-size: 12px;
}

.player-episode-list {
	flex: 1 1 auto;
	min-height: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 2px 4px 2px 0;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.player-episode-list::-webkit-scrollbar {
	width: 5px;
	height: 5px;
}

.player-episode-list::-webkit-scrollbar-track {
	background: transparent;
}

.player-episode-list::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
}

.player-episode-link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	border: 2px solid transparent;
	border-radius: 9px;
	background: var(--ys-glass);
	color: rgba(255, 255, 255, 0.9);
	transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.player-episode-link:hover {
	background: var(--ys-glass-hover);
	color: #ffffff;
}

/* YesShorts active episode tile: bg-banana/20 text-banana border-banana */
.player-episode-link.is-current {
	background: rgba(var(--ys-brand-rgb), 0.2);
	border-color: var(--ys-brand);
	color: var(--ys-brand-bright);
}

.player-episode-link.is-current .player-episode-number {
	color: var(--ys-brand-bright);
}

.player-episode-link.is-locked {
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.72);
	cursor: pointer;
	overflow: hidden;
}

.player-episode-link.is-locked:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 61, 93, 0.65);
	color: #ffffff;
}

.player-episode-number {
	font-size: 14px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

/* YesShorts animated 3-bar equalizer on currently playing episode */
.eq-bars {
	position: absolute;
	right: 5px;
	bottom: 5px;
	display: inline-flex;
	align-items: flex-end;
	gap: 2px;
	height: 10px;
}

.eq-bars i {
	display: block;
	width: 2px;
	height: 10px;
	border-radius: 999px;
	background: var(--ys-brand-bright);
	transform-origin: bottom;
	animation: eqbar 0.85s ease-in-out infinite;
}

.eq-bars i:nth-child(2) {
	animation-delay: 0.18s;
}

.eq-bars i:nth-child(3) {
	animation-delay: 0.36s;
}

@keyframes eqbar {
	0%,
	100% {
		transform: scaleY(0.3);
	}
	50% {
		transform: scaleY(1);
	}
}

/* ==========================================================================
   Static Pages, Empty States & Pagination
   ========================================================================== */
.page-content {
	max-width: 880px;
}

.page-panel {
	padding: 44px 48px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-xl);
	background: var(--ys-card);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.page-panel h1 {
	margin-bottom: 24px;
	color: #ffffff;
	font-size: clamp(30px, 4.4vw, 48px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.12;
}

.page-body {
	color: var(--ys-fg-dim);
	font-size: 15px;
	line-height: 1.8;
}

.page-body h2,
.page-body h3 {
	color: #ffffff;
	margin-top: 28px;
	margin-bottom: 12px;
}

.page-body a {
	color: var(--ys-brand-bright);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.empty-state {
	padding: 64px 24px;
	border: 1px dashed var(--ys-line-med);
	border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, 0.02);
	color: var(--ys-fg-mute);
	text-align: center;
	font-size: 14.5px;
}

.pagination {
	margin-top: 48px;
}

.pagination .nav-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	min-width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	border: 1px solid var(--ys-line-med);
	border-radius: 999px;
	background: var(--ys-card);
	color: var(--ys-fg-dim);
	font-size: 13.5px;
	font-weight: 700;
	transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.pagination a.page-numbers:hover {
	border-color: rgba(var(--ys-brand-rgb), 0.65);
	background: var(--ys-surface);
	color: #ffffff;
}

.pagination .page-numbers.current {
	border-color: var(--ys-brand);
	background: var(--ys-brand);
	color: #ffffff;
	box-shadow: 0 6px 18px rgba(var(--ys-brand-rgb), 0.35);
}

.pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	margin-top: auto;
	padding: 36px 32px;
	border-top: 1px solid var(--ys-line);
	background: var(--ys-ink-2);
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: var(--max);
	margin: 0 auto;
}

.footer-copy {
	margin: 0;
	color: var(--ys-fg-mute);
	font-size: 12.5px;
}

.footer-copy p {
	margin: 0;
}

.footer-copyright {
	margin-top: 4px !important;
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.36);
}

.footer-links {
	display: flex;
	gap: 22px;
	color: var(--ys-fg-dim);
	font-size: 13px;
	font-weight: 500;
}

.footer-links a {
	transition: color 0.18s var(--ease);
}

.footer-links a:hover {
	color: var(--ys-brand-bright);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
	.drama-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.player-recommendations .drama-card:nth-child(n+5) {
		display: none;
	}

	.player-main {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 0 20px;
	}

	.player-episode-list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.player-main {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.video-stage {
		width: 100%;
	}

	.player-info {
		width: 100%;
	}

	.episode-sidebar {
		width: 100%;
		max-height: none;
		margin-top: 20px;
	}

	.player-episode-list {
		grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
		max-height: 260px;
	}
}

@media (max-width: 760px) {
	.nav-wrap {
		height: auto;
		min-height: 64px;
		padding: 10px 16px;
		flex-wrap: wrap;
		gap: 8px 14px;
	}

	.brand-icon {
		width: 30px;
		height: 30px;
	}

	.brand-text {
		font-size: 17px;
	}

	.main-nav {
		order: 3;
		flex-basis: 100%;
		gap: 20px;
		padding-top: 4px;
		border-top: 1px solid var(--ys-line);
	}

	.main-nav a {
		font-size: 14px;
		padding: 4px 2px;
	}

	.search-form {
		height: 36px;
	}

	.search-form input {
		width: 136px;
		font-size: 12.5px;
		padding-left: 12px;
	}

	.hero,
	.hero-immersive,
	.platform-hero {
		min-height: 580px;
	}

	.hero-content {
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		align-items: stretch;
		gap: 24px;
		padding: 28px 16px 104px;
	}

	.hero-visual {
		order: -1;
		align-self: center;
		width: min(54vw, 210px);
	}

	.hero-copy {
		max-width: none;
	}

	.hero h1 {
		font-size: clamp(28px, 7.5vw, 38px);
		margin-bottom: 12px;
	}

	.hero p {
		margin-bottom: 20px;
		font-size: 13.5px;
		-webkit-line-clamp: 2;
	}

	.hero-actions .button {
		flex: 1 1 auto;
		min-width: 0;
		height: 46px;
		font-size: 14px;
	}

	.hero-carousel-controls {
		left: 16px;
		right: 16px;
		bottom: 18px;
		justify-content: center;
		gap: 8px;
	}

	.hero-carousel-controls button {
		width: 48px;
		height: 66px;
		border-radius: 8px;
	}

	.content {
		padding: 28px 16px 56px;
	}

	.section {
		margin-bottom: 40px;
	}

	.drama-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px 12px;
	}

	.poster {
		border-radius: 12px;
	}

	.detail-hero {
		min-height: 380px;
	}

	.detail-inner {
		grid-template-columns: 118px minmax(0, 1fr);
		gap: 18px;
		padding: 36px 16px 32px;
	}

	.detail-copy h1 {
		font-size: 26px;
	}

	.detail-copy p {
		font-size: 13.5px;
		margin: 12px 0 18px;
	}

	.episode-list {
		grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
		gap: 8px;
	}

	.episode-link {
		height: 46px;
	}

	.player-layout {
		padding: 0 0 28px;
	}

	.player-recommendations {
		padding-top: 28px;
	}

	.player-recommendations .drama-card:nth-child(n+4) {
		display: none;
	}

	.video-stage {
		border-radius: 0;
		border-left: 0;
		border-right: 0;
	}

	.player-info {
		width: calc(100% - 32px);
		margin: 16px 16px 0;
		padding: 16px;
	}

	.episode-sidebar {
		width: calc(100% - 32px);
		margin: 16px 16px 0;
		padding: 16px;
	}

	.player-episode-list {
		display: flex;
		width: 100%;
		max-height: none;
		overflow-x: auto;
		overflow-y: hidden;
		gap: 8px;
		padding: 2px 2px 8px;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
	}

	.player-episode-link {
		flex: 0 0 52px;
		min-width: 52px;
		scroll-snap-align: start;
	}

	.page-panel {
		padding: 28px 20px;
	}

	.site-footer {
		padding: 28px 16px;
	}

	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}
}

@media (max-width: 520px) {
	.drama-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 12px;
	}

	.player-recommendations .drama-card:nth-child(n+3) {
		display: none;
	}
}

@media (max-width: 420px) {
	.search-form input {
		width: 106px;
	}

	.detail-inner {
		grid-template-columns: 1fr;
	}

	.detail-poster {
		width: 132px;
	}

	.hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hero-actions .button {
		width: 100%;
	}

	.footer-links {
		flex-wrap: wrap;
		gap: 14px;
	}
}

/* ==========================================================================
   Homepage Multi-Row Category Sliders (ReelShort Slider_sliderWrapper style)
   ========================================================================== */
.home-shelves {
	padding: 28px 0 80px;
}

.drama-shelf {
	position: relative;
	isolation: isolate;
	width: 100%;
	margin-top: 48px;
}

.drama-shelf:first-child {
	margin-top: 12px;
}

.drama-shelf-inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 32px;
}

.drama-shelf-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.drama-shelf-title-wrap h2 {
	margin: 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(20px, 2.2vw, 28px);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.25;
}

.drama-shelf-title-wrap h2 a {
	transition: color 0.18s var(--ease);
}

.drama-shelf-title-wrap h2 a:hover {
	color: var(--ys-brand-bright);
}

.drama-shelf-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: rgba(255, 255, 255, 0.5);
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	transition: color 0.18s var(--ease);
}

.drama-shelf-more svg {
	width: 13px;
	height: 13px;
	transition: transform 0.18s var(--ease);
}

.drama-shelf-more:hover {
	color: var(--ys-brand-bright);
}

.drama-shelf-more:hover svg {
	transform: translateX(2px);
}

.drama-shelf-viewport {
	position: relative;
}

.drama-shelf-track {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	overflow-y: visible;
	padding: 6px 2px 10px;
	margin: -6px -2px 0;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.drama-shelf-track::-webkit-scrollbar {
	display: none;
}

.drama-shelf-track:focus {
	outline: none;
}

.drama-shelf-item {
	flex: 0 0 calc((100% - 72px) / 5);
	min-width: 0;
	scroll-snap-align: start;
	transition: opacity 0.25s var(--ease);
}

.drama-shelf-item.is-peek {
	opacity: 0.48;
}

.drama-shelf-item.is-peek:hover {
	opacity: 1;
}

/* Floating frosted-glass Prev / Next arrow controls (ReelShort Slider_pageButtons) */
.drama-shelf-btn {
	position: absolute;
	top: 39%;
	z-index: 12;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: 50%;
	background: rgba(11, 11, 13, 0.42);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	color: #ffffff;
	cursor: pointer;
	opacity: 0;
	transform: translateY(-50%);
	transition: opacity 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.16s var(--ease);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
}

.drama-shelf-btn svg {
	width: 22px;
	height: 22px;
}

.drama-shelf-prev {
	left: -18px;
}

.drama-shelf-next {
	right: -18px;
}

.drama-shelf:hover .drama-shelf-btn:not(.is-disabled),
.drama-shelf:focus-within .drama-shelf-btn:not(.is-disabled) {
	opacity: 1;
}

.drama-shelf-btn:hover:not(.is-disabled) {
	border-color: rgba(255, 255, 255, 0.95);
	background: rgba(255, 255, 255, 0.2);
}

.drama-shelf-btn:active:not(.is-disabled) {
	transform: translateY(-50%) scale(0.94);
}

.drama-shelf-btn.is-disabled {
	opacity: 0 !important;
	pointer-events: none;
}

/* TOP shelf rank badge */
.rank-badge {
	position: absolute;
	left: 8px;
	bottom: 4px;
	z-index: 3;
	pointer-events: none;
	font-size: 42px;
	font-weight: 900;
	font-style: italic;
	line-height: 0.92;
	letter-spacing: -0.04em;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 4px 16px rgba(0, 0, 0, 0.85);
}

.rank-badge.rank-1 {
	background: linear-gradient(180deg, #ffeac1 20%, #ffb629 80%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85));
}

.rank-badge.rank-2 {
	background: linear-gradient(180deg, #ffffff 25%, #99adc4 80%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85));
}

.rank-badge.rank-3 {
	background: linear-gradient(180deg, #ffffff 22%, #bb8f67 80%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85));
}

/* Category filter pills (Archive & Genre pages) */
.category-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}

.category-pill {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 16px;
	border: 1px solid var(--ys-line-med);
	border-radius: 999px;
	background: var(--ys-card);
	color: var(--ys-fg-dim);
	font-size: 13.5px;
	font-weight: 600;
	transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.category-pill:hover {
	border-color: rgba(var(--ys-brand-rgb), 0.65);
	background: var(--ys-surface);
	color: #ffffff;
}

.category-pill.is-active {
	border-color: var(--ys-brand);
	background: var(--ys-brand);
	color: #ffffff;
	box-shadow: 0 6px 18px rgba(var(--ys-brand-rgb), 0.34);
}

@media (min-width: 1480px) {
	.drama-shelf-item {
		flex: 0 0 calc((100% - 90px) / 6);
	}
}

@media (max-width: 1100px) {
	.drama-shelf-item {
		flex: 0 0 calc((100% - 54px) / 4);
	}
}

@media (max-width: 760px) {
	.home-shelves {
		padding: 18px 0 56px;
	}

	.drama-shelf {
		margin-top: 32px;
	}

	.drama-shelf-inner {
		padding: 0 16px;
	}

	.drama-shelf-header {
		margin-bottom: 14px;
	}

	.drama-shelf-more {
		font-size: 13px;
	}

	.drama-shelf-track {
		gap: 12px;
	}

	.drama-shelf-item {
		flex: 0 0 calc((100% - 24px) / 3);
	}

	.drama-shelf-btn {
		display: none;
	}

	.rank-badge {
		font-size: 34px;
	}

	.category-pills {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: none;
	}

	.category-pills::-webkit-scrollbar {
		display: none;
	}

	.category-pill {
		flex-shrink: 0;
	}
}

@media (max-width: 520px) {
	.drama-shelf-item {
		flex: 0 0 43%;
	}
}

/* ==========================================================================
   ReelShort-Style Episode Unlock Modal
   ========================================================================== */
html.has-unlock-modal,
html.has-unlock-modal body {
	overflow: hidden;
}

.unlock-modal {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: grid;
	place-items: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.22s var(--ease);
}

.unlock-modal[hidden] {
	display: none;
}

.unlock-modal.is-open {
	opacity: 1;
}

.unlock-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.74);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.unlock-modal-dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 452px;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 18px;
	background:
		radial-gradient(110% 70% at 50% 0%, rgba(255, 61, 93, 0.22) 0%, transparent 62%),
		#1c1c1f;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75);
	transform: scale(0.92) translateY(10px);
	transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
	outline: none;
}

.unlock-modal.is-open .unlock-modal-dialog {
	transform: scale(1) translateY(0);
}

.unlock-modal-close {
	position: absolute;
	top: 18px;
	right: 18px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #2c2c2e;
	color: rgba(255, 255, 255, 0.78);
	cursor: pointer;
	transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.unlock-modal-close svg {
	width: 15px;
	height: 15px;
}

.unlock-modal-close:hover {
	background: #3f3f44;
	color: #ffffff;
}

.unlock-modal-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-right: 36px;
	margin-bottom: 18px;
}

.unlock-modal-lock-badge {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #ff3d5d 0%, var(--ys-brand) 100%);
	color: #ffffff;
	box-shadow: 0 8px 20px rgba(255, 61, 93, 0.35);
}

.unlock-modal-lock-badge .icon-lock {
	width: 19px;
	height: 19px;
}

.unlock-modal-head h2 {
	margin: 0 0 2px;
	color: rgba(255, 255, 255, 0.96);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
}

.unlock-modal-sub {
	margin: 0;
	color: rgba(255, 255, 255, 0.56);
	font-size: 13px;
}

.unlock-modal-sub strong {
	color: #ff5b7b;
	font-weight: 700;
}

/* ReelShort dark preview card (#292929) */
.unlock-modal-drama {
	display: flex;
	gap: 14px;
	padding: 14px;
	border-radius: 12px;
	background: #292929;
	border: 1px solid rgba(255, 255, 255, 0.06);
	margin-bottom: 16px;
}

.unlock-modal-poster {
	width: 72px;
	height: 96px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	background: var(--ys-card);
}

.unlock-modal-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.unlock-modal-drama-info {
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.unlock-modal-drama-info h3 {
	margin: 0 0 8px;
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.unlock-modal-ep-pill {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 5px;
	padding: 3px 10px;
	margin-bottom: 8px;
	border-radius: 999px;
	background: rgba(255, 61, 93, 0.16);
	border: 1px solid rgba(255, 61, 93, 0.42);
	color: #ff6b85;
	font-size: 11.5px;
	font-weight: 700;
}

.unlock-modal-ep-pill .icon-lock {
	width: 11px;
	height: 11px;
}

.unlock-modal-meta {
	margin: 0;
	color: rgba(255, 255, 255, 0.5);
	font-size: 12px;
}

/* ReelShort App Download & QR Code Guidance Panel */
.unlock-modal-app {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	margin-bottom: 16px;
	border-radius: 14px;
	border: 1px solid rgba(238, 209, 140, 0.28);
	background:
		radial-gradient(90% 100% at 100% 0%, rgba(238, 209, 140, 0.14) 0%, transparent 60%),
		linear-gradient(135deg, #2d1b24 0%, #201a1e 60%, #26211c 100%);
	transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.unlock-modal-app.is-highlight {
	border-color: rgba(255, 61, 93, 0.9);
	box-shadow: 0 0 0 3px rgba(255, 61, 93, 0.26), 0 12px 28px rgba(0, 0, 0, 0.45);
}

.unlock-modal-qr {
	width: 112px;
	height: 112px;
	flex-shrink: 0;
	padding: 8px;
	border-radius: 12px;
	background: #ffffff;
	display: grid;
	place-items: center;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.unlock-modal-qr img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.unlock-modal-qr-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	height: 100%;
}

.unlock-modal-qr-placeholder svg {
	width: 70px;
	height: 70px;
}

.unlock-modal-qr-placeholder span {
	color: #1c1c1f;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.unlock-modal-app-copy {
	min-width: 0;
	flex: 1;
}

.unlock-modal-plan-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.unlock-modal-vip-tag {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 5px;
	background: linear-gradient(135deg, #ffe7b3, #e6b85c);
	color: #2b1d0c;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.unlock-modal-plan-count {
	color: #f3d79b;
	font-size: 11.5px;
	font-weight: 700;
}

.unlock-modal-app-copy h4 {
	margin: 0 0 5px;
	color: #ffffff;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.3;
}

.unlock-modal-app-copy p {
	margin: 0 0 10px;
	color: rgba(255, 255, 255, 0.66);
	font-size: 12px;
	line-height: 1.45;
}

.unlock-modal-stores {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.unlock-store-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 11px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.45);
	color: rgba(255, 255, 255, 0.92);
	font-size: 11.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.unlock-store-btn svg {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
}

.unlock-store-btn:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.4);
	color: #ffffff;
}

.unlock-modal-hint {
	margin: 0 0 14px;
	padding: 9px 12px;
	border-radius: 10px;
	background: rgba(255, 61, 93, 0.14);
	border: 1px solid rgba(255, 61, 93, 0.35);
	color: #ffd0da;
	font-size: 12.5px;
	line-height: 1.45;
	text-align: center;
}

.icon-download {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
}

.unlock-modal-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.unlock-modal-cta {
	width: 100%;
	height: 46px;
	background: linear-gradient(135deg, #ff3d5d 0%, var(--ys-brand) 100%);
	box-shadow: 0 10px 26px rgba(255, 61, 93, 0.36);
}

.unlock-modal-secondary {
	width: 100%;
	height: 42px;
	font-size: 13.5px;
}

@media (max-width: 640px) {
	.unlock-modal {
		align-items: end;
		padding: 0;
	}

	.unlock-modal-dialog {
		max-width: 100%;
		border-radius: 20px 20px 0 0;
		border-bottom: 0;
		padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px));
		transform: translateY(100%);
	}

	.unlock-modal.is-open .unlock-modal-dialog {
		transform: translateY(0);
	}

	.unlock-modal-app {
		flex-direction: column;
		text-align: center;
	}

	.unlock-modal-plan-top,
	.unlock-modal-stores {
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
