:root {
	--navy: #06152d;
	--sky: #168dcc;
	--ice: #d9f5ff;
	--white: #f6fbff;
	--muted: #9db9d0;
	--line: rgba(164, 216, 245, 0.2);
	--panel: rgba(7, 28, 57, 0.72);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	background: linear-gradient(135deg, #04122b 0%, #082d5c 46%, #0d70a9 100%);
	color: var(--white);
	font-family: Georgia, "Times New Roman", serif;
	margin: 0;
	min-width: 320px;
}
button, a { font: inherit; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; }

.site-header {
	align-items: center;
	display: flex;
	gap: 52px;
	height: 82px;
	justify-content: space-between;
	padding: 0 5vw;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 5;
}
.brand img { display: block; height: auto; max-width: 174px; }
.main-nav { align-items: center; display: flex; gap: 31px; margin-right: auto; }
.main-nav a {
	color: rgba(246, 251, 255, 0.62);
	font-family: Arial, sans-serif;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.header-actions { align-items: center; display: flex; gap: 14px; }
.icon-button, .circle-button {
	align-items: center;
	background: rgba(3, 18, 39, 0.5);
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--white);
	display: inline-flex;
	height: 38px;
	justify-content: center;
	width: 38px;
}
.icon-button { font-family: Arial, sans-serif; font-size: 1.45rem; transform: rotate(-20deg); }
.feedback-trigger, .copy-feedback {
	background: transparent;
	border: 1px solid rgba(217, 245, 255, 0.5);
	color: var(--white);
	font-family: Arial, sans-serif;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	padding: 10px 14px;
	text-transform: uppercase;
}
.feedback-trigger:hover, .copy-feedback:hover { background: var(--ice); color: var(--navy); }
.feedback-trigger:disabled { background: rgba(3, 18, 39, 0.32); border-color: rgba(164, 216, 245, 0.22); color: #7895aa; cursor: not-allowed; }
.feedback-trigger span { display: block; font-size: 0.5rem; letter-spacing: 0.08em; margin-top: 3px; opacity: 0.8; }

.hero { min-height: 690px; overflow: hidden; position: relative; }
.hero-copy { max-width: 580px; padding: 218px 0 120px 10vw; position: relative; z-index: 2; }
.eyebrow {
	color: #8fdaff;
	font-family: Arial, sans-serif;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	margin: 0 0 16px;
	text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: Arial, sans-serif; font-size: clamp(3.4rem, 8vw, 7.5rem); letter-spacing: 0.02em; line-height: 0.92; margin: 0 0 23px; }
.hero-meta { align-items: center; color: #d4e9f5; display: flex; flex-wrap: wrap; font-family: Arial, sans-serif; font-size: 0.78rem; gap: 14px; margin-bottom: 23px; }
.rating { border: 1px solid rgba(255, 255, 255, 0.42); padding: 3px 6px; }
.hero-description, .detail-description { color: #c6dbea; font-size: 1.08rem; line-height: 1.65; max-width: 550px; }
.hero-description { margin-bottom: 33px; }
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 13px; }
.button { align-items: center; display: inline-flex; font-family: Arial, sans-serif; font-size: 0.75rem; font-weight: 800; gap: 10px; justify-content: center; letter-spacing: 0.08em; min-height: 47px; padding: 0 21px; text-transform: uppercase; transition: transform 180ms ease, background 180ms ease; }
.button:hover, .circle-button:hover { transform: translateY(-3px); }
.button-primary { background: var(--ice); color: var(--navy); }
.button-primary:hover { background: white; }
.button-secondary { border: 1px solid rgba(217, 245, 255, 0.5); color: var(--white); }
.hero-art { background-position: center; background-size: cover; height: 100%; opacity: 0.72; position: absolute; right: 0; top: 0; width: 64%; }
.hero-fade { background: linear-gradient(0deg, #082d5c 0%, transparent 30%), linear-gradient(90deg, transparent 70%, rgba(4, 18, 43, 0.48)); inset: 0; pointer-events: none; position: absolute; }

.content-section, .detail-section { margin: 0 auto; max-width: 1260px; padding: 76px 5vw; }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 28px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 400; line-height: 1.1; margin: 0; }
.section-count { color: #9ecce5; font-family: Arial, sans-serif; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
.catalog-row { display: flex; gap: 24px; overflow-x: auto; padding: 2px 0 18px; scroll-snap-type: x proximity; scrollbar-color: #66c8ed rgba(3, 18, 39, 0.35); }
.title-card, .episode-card { background: var(--panel); border: 1px solid var(--line); }
.catalog-row .title-card { flex: 0 0 min(360px, 76vw); scroll-snap-align: start; }
.poster-button, .episode-thumbnail { background: #06152d; display: block; overflow: hidden; padding: 0; position: relative; width: 100%; }
.poster-button { aspect-ratio: 2 / 3; }
.poster-button img { height: 100%; object-fit: contain; transition: transform 300ms ease; width: 100%; }
.episode-thumbnail img { height: 100%; object-fit: cover; transition: transform 300ms ease; width: 100%; }
.poster-button:hover img { transform: scale(1.03); }
.episode-thumbnail:hover img { transform: scale(1.05); }
.play-overlay, .episode-play { align-items: center; background: rgba(5, 19, 42, 0.78); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 50%; color: white; display: flex; height: 58px; justify-content: center; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); width: 58px; }
.title-details { align-items: center; display: flex; justify-content: space-between; padding: 20px 22px 22px; }
h3 { font-size: 1.05rem; letter-spacing: 0.02em; margin-bottom: 7px; }
.title-details p, .episode-info p { color: var(--muted); font-family: Arial, sans-serif; font-size: 0.78rem; line-height: 1.5; margin: 0; }
.title-arrow { color: #91d9f6; font-family: Arial, sans-serif; font-size: 1.35rem; }
.coming-soon-label { border: 1px solid rgba(143, 218, 255, 0.55); color: #9cddf9; display: inline-block; font-family: Arial, sans-serif; font-size: 0.62rem; letter-spacing: 0.08em; margin-left: 8px; padding: 3px 6px; text-transform: uppercase; }
.loading-message { color: var(--muted); font-family: Arial, sans-serif; font-size: 0.85rem; }

.detail-page .site-header { background: rgba(4, 18, 43, 0.35); position: relative; }
.detail-hero { align-items: center; display: grid; gap: clamp(40px, 8vw, 120px); grid-template-columns: minmax(0, 1fr) minmax(220px, 390px); margin: 0 auto; max-width: 1260px; min-height: 590px; padding: 75px 5vw; }
.detail-copy { max-width: 650px; }
.back-link { color: #a6dff7; display: inline-block; font-family: Arial, sans-serif; font-size: 0.72rem; letter-spacing: 0.08em; margin-bottom: 60px; text-transform: uppercase; }
.detail-copy h1 { font-size: clamp(3rem, 7vw, 6.8rem); margin-bottom: 25px; }
.detail-status { color: #a4d9ef; font-family: Arial, sans-serif; font-size: 0.75rem; letter-spacing: 0.08em; margin: 28px 0; text-transform: uppercase; }
.detail-poster { box-shadow: 18px 22px 0 rgba(3, 18, 39, 0.25); transform: rotate(2deg); }
.detail-poster img { display: block; width: 100%; }
.detail-video { background: #020a18; display: block; max-height: 70vh; width: min(900px, 100%); }
.episode-list { display: grid; gap: 14px; }
.episode-card { align-items: center; display: grid; gap: 25px; grid-template-columns: 250px 1fr; padding: 12px; }
.episode-thumbnail { aspect-ratio: 16 / 9; }
.episode-play { height: 42px; width: 42px; }
.episode-info { align-items: center; display: flex; gap: 25px; padding-right: 18px; }
.episode-number { color: #78c9ed; font-family: Arial, sans-serif; font-size: 1.65rem; font-weight: 200; }
.episode-info h3 { font-family: Arial, sans-serif; font-size: 0.78rem; letter-spacing: 0.12em; }
.circle-button { margin-left: auto; }

.site-footer { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; font-family: Arial, sans-serif; font-size: 0.68rem; gap: 20px; justify-content: space-between; margin: 32px auto 0; max-width: 1260px; padding: 28px 5vw 40px; }
.site-footer img { max-width: 120px; }
.site-footer p { margin: 0 auto 0 0; }

.player-modal { align-items: center; background: rgba(1, 8, 20, 0.88); display: flex; inset: 0; justify-content: center; opacity: 0; padding: 24px; pointer-events: none; position: fixed; transition: opacity 180ms ease; z-index: 10; }
.player-modal.is-open { opacity: 1; pointer-events: auto; }
.player-shell { background: #020a18; border: 1px solid var(--line); max-width: 980px; padding: 16px; transform: translateY(12px); transition: transform 180ms ease; width: 100%; }
.is-open .player-shell { transform: translateY(0); }
.player-bar { align-items: center; display: flex; justify-content: space-between; padding: 0 0 14px; }
.player-bar h2 { font-size: 1.1rem; }
.close-button { background: transparent; color: white; font-family: Arial, sans-serif; font-size: 1.8rem; line-height: 1; }
video { background: black; display: block; max-height: 75vh; width: 100%; }

.feedback-backdrop { background: rgba(1, 8, 20, 0.7); inset: 0; opacity: 0; pointer-events: none; position: fixed; transition: opacity 180ms ease; z-index: 12; }
.feedback-backdrop.is-open { opacity: 1; pointer-events: auto; }
.feedback-drawer { background: #061a38; border-left: 1px solid var(--line); box-shadow: -22px 0 60px rgba(1, 8, 20, 0.3); height: 100%; max-width: 470px; overflow-y: auto; padding: 38px clamp(24px, 5vw, 52px); position: fixed; right: 0; top: 0; transform: translateX(100%); transition: transform 220ms ease; width: 100%; z-index: 13; }
.feedback-drawer.is-open { transform: translateX(0); }
.feedback-heading { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 24px; }
.feedback-heading h2 { font-size: 2.3rem; }
.feedback-intro { color: var(--muted); font-family: Arial, sans-serif; font-size: 0.85rem; line-height: 1.6; margin-bottom: 35px; }
#feedback-form label { color: #bde8fa; display: block; font-family: Arial, sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; margin: 0 0 9px; text-transform: uppercase; }
#feedback-form input, #feedback-form textarea { background: rgba(3, 18, 39, 0.55); border: 1px solid var(--line); border-radius: 0; color: var(--white); display: block; font-family: Arial, sans-serif; font-size: 0.9rem; margin-bottom: 24px; outline: none; padding: 14px; resize: vertical; width: 100%; }
#feedback-form input:focus, #feedback-form textarea:focus { border-color: #82d8f7; box-shadow: 0 0 0 3px rgba(130, 216, 247, 0.12); }
#feedback-form textarea { min-height: 150px; }
#feedback-form input::placeholder, #feedback-form textarea::placeholder { color: #6f91aa; }
.feedback-form-footer { align-items: center; display: flex; gap: 16px; justify-content: space-between; }
#feedback-count { color: var(--muted); font-family: Arial, sans-serif; font-size: 0.7rem; }
.feedback-status { color: #ffcf8a; font-family: Arial, sans-serif; font-size: 0.75rem; line-height: 1.5; margin: 22px 0 0; }
.feedback-status.success { color: #a9f0c4; }
.feedback-status.notice { color: #ffcf8a; }

@media (max-width: 700px) {
	.site-header { gap: 18px; height: 70px; padding: 0 6vw; }
	.brand img { max-width: 130px; }
	.main-nav { display: none; }
	.feedback-trigger { font-size: 0.6rem; padding: 9px 10px; }
	.hero { min-height: 700px; }
	.hero-copy { padding: 180px 8vw 80px; }
	.hero-art { height: 60%; opacity: 0.4; top: auto; width: 100%; }
	.hero-fade { background: linear-gradient(0deg, #082d5c 20%, transparent 75%), linear-gradient(90deg, rgba(4, 18, 43, 0.5), transparent); }
	.content-section, .detail-section { padding: 58px 6vw; }
	.section-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
	.detail-hero { grid-template-columns: 1fr; padding: 40px 6vw; }
	.detail-copy { order: 2; }
	.detail-poster { margin: 0 auto; max-width: 280px; order: 1; }
	.back-link { margin-bottom: 35px; }
	.episode-card, .episode-list .episode-card { grid-template-columns: 1fr; }
	.episode-info { padding: 5px 8px 10px; }
	.site-footer { align-items: flex-start; flex-direction: column; gap: 14px; padding-left: 6vw; padding-right: 6vw; }
	.site-footer p { margin: 0; }
}
