:root {
  --bg: #0a0710;
  --bg-2: #120c1c;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f6f1fb;
  --muted: #a99db8;
  --accent: #ff3d6e;
  --accent-2: #ff8a3d;
  --gold: #ffcf5a;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Playfair Display', Georgia, serif;
  --max: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 68px;
  display: flex; align-items: center;
  background: linear-gradient(to bottom, rgba(10, 7, 16, 0.92), rgba(10, 7, 16, 0));
  transition: background 0.3s;
}
.site-header.solid { background: rgba(10, 7, 16, 0.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; width: 100%; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 27px; letter-spacing: 0.2px; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(255, 61, 110, 0.45); }
.logo-mark svg { width: 13px; height: 13px; margin-left: 2px; }
.logo > span:last-child { background: linear-gradient(90deg, #fff, #ffd9e3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-mark { color: #fff; }
.nav { display: flex; gap: 22px; font-size: 14.5px; color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--text); }
.header-cta { margin-left: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(255, 61, 110, 0.4); }
.btn-primary:hover { box-shadow: 0 14px 38px rgba(255, 61, 110, 0.55); }
.btn-ghost { background: var(--panel-2); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide .blur { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) saturate(1.3); transform: scale(1.1); opacity: 0.55; }
.hero-slide .poster { position: absolute; right: max(4vw, calc((100vw - var(--max)) / 2 + 20px)); bottom: 9vh; width: min(30vw, 360px); aspect-ratio: 2 / 3; border-radius: 22px; background-size: cover; background-position: center; box-shadow: var(--shadow), 0 0 0 1px var(--line); transform: rotate(2deg); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 8%, rgba(10, 7, 16, 0.65) 45%, rgba(10, 7, 16, 0.1) 75%), linear-gradient(0deg, var(--bg), transparent 40%); pointer-events: none; }
.hero-content { position: relative; z-index: 2; padding-bottom: 12vh; max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.hero h1 { font-family: var(--display); font-size: clamp(40px, 6vw, 76px); line-height: 1.02; margin: 0 0 16px; letter-spacing: -0.5px; }
.hero .tagline { font-size: clamp(17px, 2vw, 21px); color: #e7dcf2; margin: 0 0 14px; font-style: italic; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; color: #e8def3; }
.chip.soon { background: rgba(255, 207, 90, 0.14); border-color: rgba(255, 207, 90, 0.4); color: var(--gold); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-dots { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 4vh; display: flex; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.3); transition: width 0.3s, background 0.3s; }
.hero-dots button.on { width: 28px; background: #fff; }

/* ---------- rows ---------- */
main { position: relative; z-index: 2; }
.row { margin: 46px 0; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.row h2 { font-size: 22px; margin: 0; letter-spacing: -0.2px; }
.row-head .more { font-size: 14px; color: var(--muted); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 200px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; position: relative; }
.card .thumb { position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-2) center / cover no-repeat; box-shadow: 0 0 0 1px var(--line); transition: transform 0.25s, box-shadow 0.25s; }
.card:hover .thumb { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), var(--shadow); }
.card .thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 45%); }
.card .badge { position: absolute; z-index: 2; top: 10px; left: 10px; font-size: 11px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; padding: 5px 9px; border-radius: 8px; background: var(--grad); }
.card .badge.soon { background: rgba(10, 7, 16, 0.75); color: var(--gold); border: 1px solid rgba(255, 207, 90, 0.45); backdrop-filter: blur(6px); }
.card .eps { position: absolute; z-index: 2; bottom: 10px; left: 12px; font-size: 12.5px; color: #eee; font-weight: 600; }
.card .play { position: absolute; z-index: 2; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #111; display: grid; place-items: center; opacity: 0; transform: scale(0.8); transition: 0.2s; }
.card:hover .play { opacity: 1; transform: scale(1); }
.card .play svg { width: 13px; height: 13px; margin-left: 2px; }
.card h3 { font-size: 15px; margin: 11px 2px 3px; font-weight: 700; }
.card p { font-size: 13px; margin: 0 2px; color: var(--muted); }
.progress-mini { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.2); }
.progress-mini i { display: block; height: 100%; background: var(--grad); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 20px; }

/* ---------- feature band ---------- */
.band { margin: 70px 0; border-radius: 26px; padding: 44px; background: radial-gradient(120% 140% at 0% 0%, rgba(255, 61, 110, 0.25), transparent 50%), radial-gradient(120% 140% at 100% 100%, rgba(255, 138, 61, 0.2), transparent 50%), var(--bg-2); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.band h3 { margin: 12px 0 6px; font-size: 18px; }
.band p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.band .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; }
.band .ico svg { width: 22px; height: 22px; }

/* ---------- series page ---------- */
.series-hero { position: relative; padding: 120px 0 40px; overflow: hidden; }
.series-hero .blur { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(50px) saturate(1.3); opacity: 0.45; }
.series-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg), rgba(10, 7, 16, 0.4)); }
.series-top { position: relative; z-index: 2; display: grid; grid-template-columns: 270px 1fr; gap: 40px; align-items: end; }
.series-top .poster { aspect-ratio: 2 / 3; border-radius: 20px; background-size: cover; background-position: center; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.series-top h1 { font-family: var(--display); font-size: clamp(34px, 5vw, 58px); margin: 0 0 12px; line-height: 1.05; }
.series-top .desc { color: #ddd2ea; font-size: 16.5px; line-height: 1.65; max-width: 640px; margin: 16px 0 24px; }
.episodes { margin: 30px 0 60px; }
.episodes h2 { font-size: 21px; margin: 0 0 16px; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ep { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: background 0.2s, border-color 0.2s; }
.ep:hover { background: var(--panel-2); border-color: rgba(255, 255, 255, 0.2); }
.ep .num { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.ep b { display: block; font-size: 15px; }
.ep small { color: var(--muted); font-size: 13px; }

/* ---------- watch page ---------- */
body.watch { overflow: hidden; background: #000; }
.player-shell { position: fixed; inset: 0; display: grid; place-items: center; background: #000; }
.player-backdrop { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(60px) brightness(0.45) saturate(1.3); }
.player { position: relative; height: 100vh; height: 100dvh; aspect-ratio: 9 / 16; max-width: 100vw; background: #000; overflow: hidden; }
.player video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.player .tap { position: absolute; inset: 0; }
.player .top { position: absolute; z-index: 3; inset: 0 0 auto 0; padding: 16px; display: flex; align-items: center; gap: 12px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px); display: grid; place-items: center; flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.player .title { min-width: 0; }
.player .title b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .title small { color: #ddd; font-size: 13px; }
.player .bottom { position: absolute; z-index: 3; inset: auto 0 0 0; padding: 18px 16px 22px; background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent); }
.player .bottom p { margin: 0 70px 12px 0; font-size: 14px; color: #eee; line-height: 1.45; }
.scrub { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; }
.scrub .track { position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.scrub .fill { height: 100%; width: 0; background: var(--grad); }
.time { display: flex; justify-content: space-between; font-size: 12px; color: #ccc; margin-top: 4px; font-variant-numeric: tabular-nums; }
.side { position: absolute; z-index: 3; right: 12px; bottom: 120px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.side button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; }
.side .icon-btn { width: 46px; height: 46px; }
.big-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; transition: opacity 0.2s, transform 0.2s; transform: scale(0.8); pointer-events: none; }
.big-play.show { opacity: 1; transform: scale(1); }
.big-play svg { width: 34px; height: 34px; margin-left: 5px; }
.soon-banner { position: absolute; z-index: 3; left: 16px; right: 16px; top: 78px; padding: 10px 14px; border-radius: 12px; background: rgba(10, 7, 16, 0.75); border: 1px solid rgba(255, 207, 90, 0.4); color: var(--gold); font-size: 13px; backdrop-filter: blur(8px); }
.next-card { position: absolute; z-index: 4; inset: 0; display: none; place-items: center; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); text-align: center; padding: 30px; }
.next-card.show { display: grid; }
.next-card h3 { font-family: var(--display); font-size: 28px; margin: 6px 0 18px; }
.ring { width: 76px; height: 76px; margin: 0 auto 10px; }
.drawer { position: absolute; z-index: 5; inset: auto 0 0 0; max-height: 62%; background: rgba(18, 12, 28, 0.97); backdrop-filter: blur(16px); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line); transform: translateY(100%); transition: transform 0.3s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; }
.drawer header b { font-size: 16px; }
.drawer .list { overflow: auto; padding: 8px 14px 24px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.drawer .list a { aspect-ratio: 1; border-radius: 12px; background: var(--panel-2); display: grid; place-items: center; font-weight: 800; border: 1px solid var(--line); }
.drawer .list a.cur { background: var(--grad); border-color: transparent; }
.swipe-hint { position: absolute; z-index: 3; left: 50%; bottom: 40%; transform: translateX(-50%); font-size: 13px; color: #fff; background: rgba(0, 0, 0, 0.5); padding: 8px 14px; border-radius: 99px; opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.swipe-hint.show { opacity: 1; }

/* ---------- pages ---------- */
.page { padding: 120px 0 60px; }
.page h1 { font-family: var(--display); font-size: clamp(34px, 5vw, 52px); margin: 0 0 8px; }
.page .lead { color: var(--muted); font-size: 17px; margin: 0 0 34px; max-width: 720px; line-height: 1.6; }
.prose { max-width: 780px; line-height: 1.75; color: #e4daee; font-size: 16px; }
.prose h2 { font-size: 21px; margin: 34px 0 10px; color: var(--text); }
.prose a { color: #ff9bb4; text-decoration: underline; }
.prose ul { padding-left: 20px; }
.card-box { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 900px; }
.contact-grid h3 { margin: 0 0 6px; font-size: 17px; }
.contact-grid p { margin: 0; color: var(--muted); line-height: 1.6; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 44px 0 34px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: var(--text); margin: 0 0 12px; font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--text); }
.operated { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .hero { min-height: 92vh; }
  .hero-slide .poster { width: 52vw; right: 50%; transform: translateX(50%) rotate(0deg); bottom: auto; top: 90px; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 30%, rgba(10, 7, 16, 0.55) 60%, rgba(10, 7, 16, 0.2)); }
  .hero-content { padding-bottom: 9vh; }
  .band { grid-template-columns: 1fr; padding: 28px; }
  .series-top { grid-template-columns: 1fr; }
  .series-top .poster { width: 200px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .rail { grid-auto-columns: 42vw; gap: 12px; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .btn { height: 44px; padding: 0 18px; }
  .header-cta .btn-label { display: none; }
}
