:root {
  --bg: #09090b;
  --bg-elev: #121216;
  --bg-card: #17171c;
  --line: rgba(255, 255, 255, 0.09);
  --line-gold: rgba(240, 179, 58, 0.38);
  --text: #f5f2eb;
  --text-dim: #a19c93;
  --gold: #f0b33a;
  --gold-hi: #ffd479;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 11, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand-mark { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; }
.brand-mark.sm { width: 32px; height: 32px; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: 0.02em; color: #fff; white-space: nowrap; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-dim);
  white-space: nowrap;
}
.nav-links a { white-space: nowrap; }
.nav-links a:hover { color: #fff; }

.header-cta { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn-gold, .btn-surface, .btn-outline, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  color: #14110b;
}
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-surface {
  background: #1d1d24;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}
.btn-surface:hover { background: #262630; border-color: rgba(255, 255, 255, 0.26); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-ghost {
  background: transparent;
  color: var(--gold-hi);
  padding-left: 10px;
  padding-right: 10px;
}
.btn-ghost:hover { color: #fff; }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-outline.sm { padding: 7px 14px; font-size: 12px; }
.full { width: 100%; }
.btn-ico { width: 18px; height: 18px; flex-shrink: 0; }

/* Hero */
.hero {
  padding: 64px 0 72px;
  position: relative;
  background: radial-gradient(700px 420px at 78% 28%, rgba(240, 179, 58, 0.12), transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 56px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-hi);
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.gold-accent { color: var(--gold); }
.hero-lead {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.metrics-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.metric-num { font-size: 26px; font-weight: 800; color: #fff; line-height: 1.15; }
.metric-label { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.metric-sep { width: 1px; height: 34px; background: var(--line); }

/* Hero Phone Mockup + Side Posters */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.phone-frame {
  width: 280px;
  aspect-ratio: 9 / 18.5;
  border-radius: 36px;
  background: #141418;
  border: 2px solid rgba(255, 255, 255, 0.14);
  padding: 10px;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.7);
  position: relative;
  flex-shrink: 0;
}
.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 18px;
  border-radius: 999px;
  background: #09090b;
  z-index: 4;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  background: #1b1b22;
}
.phone-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 32%, rgba(9,9,11,0.92) 84%, #09090b 100%);
}
.phone-top-bar {
  position: absolute;
  top: 38px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  z-index: 3;
}
.phone-mini-logo { width: 20px; height: 20px; }
.phone-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 3;
}
.phone-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #14110b;
  background: var(--gold);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.phone-title { font-size: 17px; font-weight: 800; color: #fff; line-height: 1.25; }
.phone-meta { font-size: 11px; color: var(--text-dim); margin: 4px 0 12px; }
.phone-play-btn {
  display: block;
  text-align: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.phone-play-btn:hover { background: var(--gold); color: #14110b; border-color: var(--gold); }

.side-posters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 140px;
}
.side-poster-card {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4.1;
  position: relative;
  background: var(--bg-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.side-poster-card:hover { transform: translateY(-3px); border-color: var(--line-gold); }
.side-poster-card img { width: 100%; height: 100%; object-fit: cover; }

/* In-app browser tip */
.inapp-tip {
  background: rgba(240, 179, 58, 0.12);
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
  padding: 12px 0;
}
.inapp-tip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: var(--gold-hi);
}
.hidden { display: none !important; }

/* Sections */
.section { padding: 72px 0; }
.section-tinted { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.section-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 6px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; }
.section-desc { color: var(--text-dim); font-size: 14px; max-width: 620px; margin-top: 8px; }
.link-gold { color: var(--gold-hi); font-size: 14px; font-weight: 700; white-space: nowrap; }
.link-gold:hover { color: #fff; }

/* Live Catalog */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.drama-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.drama-card:hover { transform: translateY(-4px); border-color: var(--line-gold); }
.drama-thumb {
  aspect-ratio: 3 / 4.2;
  position: relative;
  overflow: hidden;
  background: #1b1b22;
}
.drama-thumb img { width: 100%; height: 100%; object-fit: cover; }
.drama-ep {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(9, 9, 11, 0.8);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
}
.drama-info { padding: 12px 14px 14px; }
.drama-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drama-meta { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* Download Cards */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}
.dl-card-featured {
  border-color: var(--line-gold);
  background: linear-gradient(160deg, rgba(240, 179, 58, 0.08), var(--bg-card) 48%);
}
.dl-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #14110b;
  background: var(--gold);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.dl-badge.subtle { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.dl-os { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.dl-summary { font-size: 14px; color: var(--text-dim); }

.dl-specs {
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.dl-specs li { display: flex; justify-content: space-between; gap: 12px; }
.dl-specs span { color: var(--text-dim); }
.dl-specs strong { color: #fff; font-weight: 600; text-align: right; }
.dl-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* iOS Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.step-no {
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-dim); }
.step-card strong { color: #fff; }

/* Membership Plans */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.plan-card.highlight { border-color: var(--line-gold); }
.plan-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-hi);
  margin-bottom: 8px;
}
.plan-name { font-size: 18px; font-weight: 800; }
.plan-price { font-size: 30px; font-weight: 900; color: var(--gold); margin: 8px 0 4px; }
.plan-price small { font-size: 13px; color: var(--text-dim); text-decoration: line-through; margin-left: 6px; font-weight: 500; }
.plan-desc { font-size: 13px; color: var(--text-dim); }

/* Footer */
.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-note { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.footer-links { display: flex; gap: 22px; font-size: 13px; color: var(--text-dim); }
.footer-links a:hover { color: var(--gold-hi); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: rgba(20, 20, 26, 0.96);
  border: 1px solid var(--line-gold);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 999;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { justify-content: flex-start; }
  .catalog-grid, .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-grid, .steps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  #nav-web-btn { display: none; }
  .hero { padding: 36px 0 48px; }
  .metrics-bar { gap: 16px; flex-wrap: wrap; }
  .metric-sep { display: none; }
  .side-posters { display: none; }
  .hero-visual { justify-content: center; }
  .dl-actions { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
