/* =========================================================
   DramaGo – Short Drama Series | Stylesheet dùng chung
   Bảng màu: nền tối điện ảnh + gradient đỏ hồng → cam (phong cách phim ngắn)
   ========================================================= */
:root {
  --bg: #0b0a10;
  --bg-2: #13111b;
  --card: #1a1724;
  --card-2: #221e2f;
  --line: rgba(255, 255, 255, .08);
  --text: #f5f3f8;
  --muted: #a8a3b6;
  --primary: #ff2d55;
  --primary-2: #ff7a45;
  --accent: #ffc56b;
  --grad: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  --radius: 18px;
  --shadow: 0 20px 60px -20px rgba(255, 45, 85, .35);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header / Navigation ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 16, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 11px; overflow: hidden; flex-shrink: 0;
  background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 1rem;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; background: var(--card); font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -16px rgba(255, 45, 85, .55); }
.btn-ghost { background: var(--card); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--card-2); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }

/* Badge Google Play chính thức */
.gp-badge { display: inline-block; transition: transform .2s, filter .2s; }
/* Badge "Get it on Google Play" dựng bằng SVG + CSS (theo mẫu chính thức) */
.gp-pill { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 20px 0 16px; border-radius: 12px;
  background: #000; border: 1.5px solid #a6a6a6; color: #fff; line-height: 1.05; text-align: left; }
.gp-pill small { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .04em; }
.gp-pill b { display: block; font-size: 1.32rem; font-weight: 600; letter-spacing: -.01em; }
.gp-pill.gp-sm { height: 46px; padding: 0 14px 0 12px; }
.gp-pill.gp-sm svg { width: 21px; height: 23px; }
.gp-pill.gp-sm b { font-size: 1.05rem; }
.gp-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 24px rgba(255, 45, 85, .35)); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 100px; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none;
}
.hero::before { width: 520px; height: 520px; background: #ff2d55; top: -180px; right: -120px; opacity: .35; }
.hero::after { width: 420px; height: 420px; background: #7b2cff; bottom: -200px; left: -160px; opacity: .25; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 45, 85, .12); border: 1px solid rgba(255, 45, 85, .3);
  color: #ff8aa1; font-size: .85rem; font-weight: 600; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; margin-bottom: 20px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 36px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; }
.stat strong { display: block; font-size: 1.6rem; font-weight: 800; }
.stat span { color: var(--muted); font-size: .88rem; }
.stat .stars { color: var(--accent); font-size: .85rem; }

/* Mockup điện thoại bằng CSS (thay bằng ảnh thật nếu muốn) */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 290px; aspect-ratio: 9 / 19.2; border-radius: 44px; padding: 11px;
  background: linear-gradient(160deg, #2a2635, #121019);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 50px 100px -30px rgba(0,0,0,.8), var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.phone-screen {
  position: relative; height: 100%; border-radius: 34px; overflow: hidden;
  background:
    radial-gradient(120% 70% at 30% 20%, rgba(255, 122, 69, .55), transparent 60%),
    radial-gradient(100% 60% at 80% 60%, rgba(255, 45, 85, .6), transparent 65%),
    linear-gradient(180deg, #3a1530 0%, #1b0d1f 55%, #07060a 100%);
}
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; background: #000; border-radius: 20px; z-index: 3; }
.screen-top { position: absolute; top: 46px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; font-size: .78rem; font-weight: 700; z-index: 2; }
.screen-top .tabs { display: flex; gap: 14px; }
.screen-top .tabs span { opacity: .55; }
.screen-top .tabs span.on { opacity: 1; border-bottom: 2px solid #fff; padding-bottom: 2px; }
.screen-silhouette { position: absolute; inset: 0; display: grid; place-items: center; font-size: 5.5rem; color: rgba(255,255,255,.12); }
.screen-side { position: absolute; right: 12px; bottom: 120px; display: flex; flex-direction: column; gap: 16px; align-items: center; z-index: 2; }
.screen-side div { display: flex; flex-direction: column; align-items: center; font-size: .65rem; gap: 3px; }
.screen-side i { font-size: 1.2rem; }
.screen-info { position: absolute; left: 16px; right: 60px; bottom: 50px; z-index: 2; }
.screen-info .tag { display: inline-block; font-size: .62rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--grad); margin-bottom: 8px; }
.screen-info h4 { font-size: .98rem; line-height: 1.3; margin-bottom: 4px; }
.screen-info p { font-size: .7rem; color: rgba(255,255,255,.7); }
.screen-progress { position: absolute; left: 16px; right: 16px; bottom: 26px; height: 3px; background: rgba(255,255,255,.2); border-radius: 3px; z-index: 2; }
.screen-progress::after { content: ""; position: absolute; inset: 0; width: 42%; background: var(--grad); border-radius: 3px; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px;
  background: rgba(26, 23, 36, .85); border: 1px solid var(--line); backdrop-filter: blur(10px);
  font-size: .85rem; font-weight: 600; box-shadow: 0 20px 40px -10px rgba(0,0,0,.6);
}
.float-card i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.float-card.one { top: 16%; left: -2%; animation: float 5s ease-in-out infinite .5s; }
.float-card.two { bottom: 14%; right: -4%; animation: float 5.5s ease-in-out infinite 1s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Section chung ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .kicker { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; margin-bottom: 12px; display: block; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: transform .25s, border-color .25s, background .25s;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(255, 45, 85, .4); background: var(--card-2); }
.feature .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem;
  background: rgba(255, 45, 85, .12); color: #ff6b85; margin-bottom: 20px;
}
.feature h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .96rem; }

/* Thẻ thể loại */
.genres { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }
.genre { padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; display: inline-flex; gap: 8px; align-items: center; transition: background .2s, border-color .2s; }
.genre:hover { border-color: rgba(255, 45, 85, .5); background: rgba(255, 45, 85, .1); }
.genre i { color: var(--primary); }

/* ---------- How to use ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 34px 28px 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step-num {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); font-weight: 800; font-size: 1.1rem; margin-bottom: 18px; box-shadow: var(--shadow);
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- Screenshots slider ---------- */
.shots { position: relative; }
.shots-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 24px;
  scrollbar-width: thin; scrollbar-color: var(--primary) transparent;
}
.shots-track::-webkit-scrollbar { height: 6px; }
.shots-track::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 6px; }
.shot {
  flex: 0 0 auto; width: 260px; scroll-snap-align: center; border-radius: 22px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(0,0,0,.8);
  transition: transform .25s;
}
.shot:hover { transform: translateY(-6px); }
.shot img { width: 100%; height: auto; }
/* Fallback khi ảnh không tải được */
.shot-fallback { aspect-ratio: 9 / 16; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; gap: 6px;
  background: radial-gradient(100% 60% at 50% 25%, rgba(255,45,85,.55), transparent 70%), linear-gradient(180deg, #2a1228, #0d0a12); }
.shot-fallback i { font-size: 2.4rem; color: rgba(255,255,255,.25); margin-bottom: auto; margin-top: 40%; align-self: center; }
.shot-fallback strong { font-size: 1rem; }
.shot-fallback span { font-size: .8rem; color: var(--muted); }
.shots-nav { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.shots-nav button { width: 46px; height: 46px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); transition: background .2s; }
.shots-nav button:hover { background: var(--primary); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: rgba(255, 45, 85, .45); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; text-align: left; font-weight: 700; font-size: 1.02rem; }
.faq-q i { transition: transform .3s; color: var(--primary); flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 22px; color: var(--muted); }
.faq-a a { color: #ff8aa1; text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: 60px 40px; text-align: center;
  background: radial-gradient(80% 120% at 0% 0%, rgba(255,122,69,.45), transparent 60%), radial-gradient(80% 120% at 100% 100%, rgba(255,45,85,.5), transparent 60%), var(--card);
  border: 1px solid rgba(255, 45, 85, .3);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 12px; letter-spacing: -.02em; }
.cta-band p { color: #e6e1ee; margin-bottom: 28px; }

/* ---------- Legal grid (trang chủ) ---------- */
.legal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.legal-card { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: transform .25s, border-color .25s; }
.legal-card:hover { transform: translateY(-4px); border-color: rgba(255,45,85,.4); }
.legal-card i.big { font-size: 1.5rem; color: var(--primary); }
.legal-card h3 { font-size: 1.12rem; }
.legal-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.legal-card .more { font-weight: 700; color: #ff8aa1; display: inline-flex; gap: 8px; align-items: center; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 30px; border-top: 1px solid var(--line); background: #08070c; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 44px; }
.footer p, .footer li { color: var(--muted); font-size: .93rem; }
.footer h4 { font-size: .95rem; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a:hover { color: var(--text); }
.footer .brand { margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .86rem; }
.footer .gp-badge img { height: 48px; }

/* ---------- Trang pháp lý ---------- */
.legal-hero { padding: 64px 0 40px; text-align: center; position: relative; overflow: hidden; }
.legal-hero::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: #ff2d55; filter: blur(120px); opacity: .2; top: -260px; left: 50%; transform: translateX(-50%); }
.legal-hero h1 { position: relative; font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.02em; margin-bottom: 10px; }
.legal-hero p { position: relative; color: var(--muted); }
.legal-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 40px; padding-bottom: 90px; align-items: start; }
.toc { position: sticky; top: 96px; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.toc h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: toc; }
.toc a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.toc a:hover { color: var(--text); }
.prose { padding: 40px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.prose h2 { font-size: 1.35rem; margin: 36px 0 12px; padding-top: 4px; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.prose p, .prose li { color: #cfcad9; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.prose a { color: #ff8aa1; text-decoration: underline; word-break: break-word; }
.prose strong { color: var(--text); }
.table-wrap { overflow-x: auto; margin: 14px 0; border-radius: 12px; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: #cfcad9; }
.prose th { background: var(--card-2); color: var(--text); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.note {
  display: flex; gap: 14px; padding: 18px 20px; border-radius: 14px; margin: 18px 0;
  background: rgba(255, 45, 85, .08); border: 1px solid rgba(255, 45, 85, .28);
}
.note i { color: var(--primary); margin-top: 4px; }
.note p { margin: 0 !important; }

/* Form xóa tài khoản */
.del-steps { display: grid; gap: 14px; margin: 16px 0; padding: 0 !important; list-style: none; }
.del-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); }
.del-steps .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: .9rem; flex-shrink: 0; }
.form { display: grid; gap: 16px; margin-top: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--text); }
.field label .req { color: var(--primary); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14);
  background: #100e17; color: var(--text); font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,45,85,.2); }
.field small { color: var(--muted); font-size: .82rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: #cfcad9; }
.check input { margin-top: 5px; accent-color: var(--primary); width: 18px; height: 18px; flex-shrink: 0; }
.form-msg { display: none; padding: 16px 18px; border-radius: 12px; font-size: .94rem; }
.form-msg.ok { display: block; background: rgba(46, 204, 113, .12); border: 1px solid rgba(46, 204, 113, .4); color: #b9f3cf; }
.form-msg.err { display: block; background: rgba(255, 45, 85, .12); border: 1px solid rgba(255, 45, 85, .4); color: #ffc0cc; }

/* Hiệu ứng xuất hiện khi cuộn */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .features-grid, .legal-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-wrap { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 860px) {
  .menu-btn { display: grid; place-items: center; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 10, 16, .97); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-cta .btn-text { display: none; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  section { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
  .features-grid, .legal-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .phone { width: 250px; }
  .float-card { display: none; }
  .prose { padding: 24px 18px; }
  .cta-band { padding: 44px 22px; }
  .shot { width: 78vw; max-width: 280px; }
}
