@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@700;800&family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');
/* Phim Yêu Thích v2 — dark/gold, responsive */
:root {
  --bg: #0e0f13;
  --bg2: #16181f;
  --card: #1b1e27;
  --line: #2a2e3a;
  --text: #f2f3f5;
  --muted: #9aa0ae;
  --gold: #f5c518;
  --gold-d: #d4a90b;
  --red: #e5484d;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.muted { color: var(--muted); }
.err-text { color: #ff9a9e; }
.hidden { display: none !important; }

/* ---------- Header ---------- */
#siteHeader {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 15, 19, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  max-width: 1600px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 18px;
}
.logo { font-size: 23px; font-weight: 800; text-decoration: none; white-space: nowrap;
  font-family: 'Baloo 2', 'Be Vietnam Pro', sans-serif; }
.logo span, .logo-text {
  font-family: 'Baloo 2', 'Be Vietnam Pro', sans-serif; font-weight: 800;
  background: linear-gradient(92deg, #ff8a1e 5%, #ffb03a 38%, #4aa8ff 72%, #2f7bff 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 8px; text-decoration: none; color: #fff;
  font-weight: 700; font-size: 14.5px;
}
.nav a:hover { color: var(--text); background: var(--bg2); }
.nav a.on { color: var(--gold); background: rgba(245, 197, 24, .1); }
.header-search { margin-left: auto; }
.header-search input {
  background: var(--bg2); border: 1px solid var(--line); color: var(--text);
  border-radius: 20px; padding: 8px 14px; width: 200px; font-size: 14px;
}
.header-search input:focus { outline: none; border-color: var(--gold); }

/* ---------- Hero (banner trượt ngang, 2 phim/lần) ---------- */
.hero { position: relative; height: 440px; overflow: hidden; background: #000; }
.hero.compact { height: 300px; }
.hero-track { display: flex; height: 100%; transition: transform .6s ease; }
.hero-slide { flex: 0 0 50%; max-width: 50%; padding: 0 7px; box-sizing: border-box; height: 100%; }
.hero-card { position: relative; height: 100%; border-radius: var(--radius); overflow: hidden; background: #0a0b0e; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.3) 42%, transparent 62%),
              linear-gradient(90deg, rgba(0,0,0,.35) 0%, transparent 38%);
}
.hero-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; }
.hero-hot {
  color: #7dd3fc; font-weight: 800; font-size: 14px; letter-spacing: 2.5px; margin-bottom: 8px;
}
.hero-info h1 { margin: 0 0 4px; font-size: clamp(22px, 2.6vw, 36px); }
.hero-orig { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.hm-pill {
  border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.35);
  color: #e7e9ee; font-size: 13px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.hm-pill.blue { border-color: rgba(125,211,252,.65); color: #7dd3fc; }
.hm-pill.gold { border-color: rgba(245,197,24,.65); color: var(--gold); }
.hero-desc {
  color: #d5d8de; max-width: 640px; font-size: 15px; margin: 0 0 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; gap: 10px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.5); color: #fff; border: 1px solid var(--line);
  width: 44px; height: 44px; border-radius: 50%; font-size: 24px; cursor: pointer; z-index: 2;
  opacity: 0; transition: opacity .25s;
}
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow.prev { left: 14px; } .hero-arrow.next { right: 14px; }
.hero-arrow:hover { background: var(--gold); color: #000; }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; }
.hero-dots span.on { background: var(--gold); }
.hero-empty { padding: 60px 20px; text-align: center; color: var(--muted); }

/* ---------- Bảng xếp hạng Top Thịnh Hành (trái: #1 + #2/#3, phải: #4-#9) ---------- */
.chart { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: stretch; }
.chart-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.chart-top {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/10; max-height: 500px; width: 100%; flex: none;
  text-decoration: none; background: #0a0b0e;
}
.chart-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chart-top-grad {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.2) 45%, transparent 62%);
}
.chart-top-num {
  position: absolute; top: 14px; left: 22px; z-index: 2;
  font-size: 64px; font-weight: 900; line-height: 1; color: var(--gold);
  text-shadow: 0 2px 14px rgba(0,0,0,.65); user-select: none;
}
.chart-top-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.chart-top-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.ctb { font-size: 12.5px; font-weight: 800; padding: 5px 14px; border-radius: 8px; }
.ctb.gold { background: var(--gold); color: #111; }
.ctb.purple { background: rgba(139,92,246,.28); border: 1px solid #a78bfa; color: #c4b5fd; }
.chart-top-title { color: #fff; font-weight: 800; font-size: clamp(20px, 3vw, 32px); }
.chart-top-orig { color: #d5d8de; font-size: 15px; }
.chart-top-info { display: flex; gap: 16px; flex-wrap: wrap; color: #fff; font-size: 15px; font-weight: 700; }
.chart-top-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; max-width: 640px;
  color: #d6dbe3; font-size: 15px; line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
/* #2/#3: thẻ banner tràn viền kiểu hero — số hạng trên đầu, chữ + mô tả phủ dưới */
.chart-sub2 { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 14px; flex: 1; min-height: 0; }
.chart-mid {
  position: relative; display: block; min-height: 240px;
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  background: #0a0b0e; border: 1px solid transparent; transition: .2s;
}
.chart-mid:hover { border-color: var(--gold); transform: translateY(-2px); }
.chart-mid-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chart-mid-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.1) 100%);
}
.chart-mid-num {
  position: absolute; top: 6px; left: 12px; z-index: 1;
  font-size: 40px; font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--gold);
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.chart-mid-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px;
}
.chart-mid .chart-title, .chart-mid .chart-sub { text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.chart-mid .chart-desc { color: #d6dbe3; }
.chart-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.chart-row {
  flex: 1; display: flex; align-items: center; gap: 12px; padding: 6px 12px;
  background: var(--card); border-radius: var(--radius); text-decoration: none;
  border: 1px solid transparent; transition: .2s; min-width: 0;
}
.chart-row:hover { border-color: var(--gold); transform: translateY(-2px); }
.chart-num {
  flex: none; width: 44px; text-align: center;
  font-size: 38px; font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--gold);
}
.chart-poster {
  flex: none; width: 68px; aspect-ratio: 2/3; object-fit: cover;
  border-radius: 8px; background: #0a0b0e;
}
.chart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.chart-title {
  color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.chart-sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-desc {
  color: var(--muted); font-size: 12.5px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 760px) {
  .chart { grid-template-columns: 1fr; }
  .chart-top { aspect-ratio: 16/10; min-height: 0; }
  .chart-top-desc { font-size: 13.5px; }
  .chart-mid { min-height: 200px; }
  .chart-mid-num { font-size: 32px; }
  .chart-mid-body { padding: 10px; }
  .chart-mid .chart-desc { font-size: 12px; }
  .chart-num { width: 36px; font-size: 32px; }
  .chart-row { flex: none; }
  .hero-slide { flex-basis: 100%; max-width: 100%; }
}

/* ---------- Layout: 2 sidebar (banner sát mép) + nội dung full-bleed sát mép trái ---------- */
.layout {
  padding: 24px 12px;
  display: grid; grid-template-columns: 300px minmax(0, 1fr) 180px; gap: 12px; align-items: start;
}
/* Banner trống bị ẩn: rail gọn lại, nội dung tràn sát mép trái */
.layout.no-left-ad { grid-template-columns: minmax(0, 1fr) 180px; }
.layout.no-left-ad .rail-left { display: none; }
.layout.no-right-ad { grid-template-columns: 300px minmax(0, 1fr); }
.layout.no-right-ad .rail-right { display: none; }
.layout.no-left-ad.no-right-ad { grid-template-columns: minmax(0, 1fr); }
.layout.watch.no-left-ad { grid-template-columns: minmax(0, 1fr) 180px; }
.layout.watch.no-left-ad .rail-left { display: none; }
.layout.watch.no-right-ad { grid-template-columns: 180px minmax(0, 1fr); }
.layout.watch.no-right-ad .rail-right { display: none; }
.layout.watch.no-left-ad.no-right-ad { grid-template-columns: 1fr; }
/* Trang xem: 2 rail chỉ còn banner, khung player rộng tối đa */
.layout.watch { grid-template-columns: 180px minmax(0, 1fr) 180px; }
.layout.watch .rail { grid-template-columns: 1fr; }
.layout.watch .rail-ad { min-height: 480px; }
.rail {
  position: sticky; top: 76px; align-self: start;
  display: grid; gap: 12px;
}
.rail-left { grid-template-columns: 132px minmax(0, 1fr); }
.layout.no-left-ad .rail-left { grid-template-columns: minmax(0, 1fr); }
.rail-right { grid-template-columns: 1fr; }

/* Banner: sát mép ngoài, dáng skyscraper */
.rail-ad { min-height: 600px; display: flex; }
.rail-ad a { display: flex; width: 100%; }
.rail-ad img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line);
}
.ad-ph {
  flex: 1; border: 1.5px dashed var(--line); border-radius: 10px;
  display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center; text-align: center;
  color: var(--muted); padding: 16px 10px;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.02) 10px, rgba(255,255,255,.02) 20px);
}
.ad-ph .ad-tag {
  font-size: 10px; letter-spacing: 2px; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px;
}
.ad-ph .ad-heart { font-size: 30px; }
.ad-ph .ad-title { font-size: 13px; font-weight: 700; color: var(--text); }
.ad-ph small { font-size: 11.5px; line-height: 1.5; }
.content { min-width: 0; }

/* ---------- Bộ lọc phim ---------- */
.f-clear {
  background: none; border: none; color: var(--gold); cursor: pointer;
  font-size: 12px; font-weight: 700; padding: 4px;
}
.f-clear:hover { text-decoration: underline; }
.f-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.f-pills button {
  padding: 9px 4px; border-radius: 999px; font-size: 12.5px; font-weight: 700; text-align: center;
  cursor: pointer; border: 1px solid var(--line); background: var(--bg); transition: .15s;
  white-space: nowrap; overflow: hidden;
}
.f-pills button[data-v=""] { color: var(--gold); border-color: rgba(245, 197, 24, .45); background: rgba(245, 197, 24, .08); }
.f-pills button[data-v="movie"] { color: #4ade80; border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .08); }
.f-pills button[data-v="tv"] { color: #a78bfa; border-color: rgba(139, 92, 246, .5); background: rgba(139, 92, 246, .1); }
.f-pills button.on[data-v=""] { background: var(--gold); border-color: var(--gold); color: #111; }
.f-pills button.on[data-v="movie"] { background: #22c55e; border-color: #22c55e; color: #06130b; }
.f-pills button.on[data-v="tv"] { background: #8b5cf6; border-color: #8b5cf6; color: #fff; }

/* ---------- Thanh lọc ngang gọn (cùng hàng với nav Trang chủ) ---------- */
.header-filter { flex: 1; min-width: 0; }
.header-filter:empty { display: none; }
.header-filter .filter-bar {
  border: none; background: transparent; border-radius: 0; padding: 6px 0;
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px;
}
.header-filter .filter-bar::-webkit-scrollbar { display: none; }
.header-filter .f-q { flex: 1 1 110px; min-width: 90px; padding: 7px 10px; font-size: 13px; }
.header-filter select { flex: 0 0 auto; padding: 7px 8px; font-size: 13px; max-width: 150px; }
.header-filter .f-pills { flex: 0 0 auto; }
.header-filter .f-pills button { padding: 7px 12px; font-size: 12px; }
.header-filter .f-clear { flex: 0 0 auto; }
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px;
}
.filter-bar .f-q {
  flex: 1 1 170px; min-width: 140px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; font-size: 14px; color: var(--text);
}
.filter-bar .f-q:focus { outline: none; border-color: #60a5fa; box-shadow: 0 0 0 2px rgba(96, 165, 250, .15); }
.filter-bar select {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 10px; font-size: 13.5px; color: var(--text); cursor: pointer; max-width: 190px;
}
.filter-bar select:focus { outline: none; border-color: #60a5fa; }
.filter-bar .f-pills { display: flex; gap: 8px; }
.filter-bar .f-pills button { padding: 9px 16px; }
.filter-bar .f-clear {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 13px; padding: 8px 4px; white-space: nowrap;
}
.filter-bar .f-clear:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 640px) {
  /* Bộ lọc xuống hàng riêng trên mobile, auth giữ góc phải hàng 1 */
  .header-filter { flex: 1 1 100%; order: 5; }
}


/* ---------- Chế độ tắt đèn ---------- */
.light-dimmer {
  display: none; position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, .93); cursor: pointer;
}
body.lights-off .light-dimmer { display: block; }
body.lights-off .player-wrap { position: relative; z-index: 61; }
body.lights-off .player { box-shadow: 0 0 60px rgba(0, 0, 0, .9); }

/* ---------- Trang xem: tiêu đề + thẻ thông tin màu ---------- */
.w-head { margin: 24px 0 18px; }
/* Cụm poster + tiêu đề cạnh nhau (trang xem) */
.w-top { display: flex; gap: 22px; align-items: flex-start; margin: 22px 0 18px; }
.w-top .w-head { margin: 0; flex: 1; min-width: 0; }
.w-poster { position: relative; flex: 0 0 220px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.w-poster img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.w-poster .no-poster { aspect-ratio: 2/3; }
.w-play {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: #e11d48; color: #fff; border: none; border-radius: 10px;
  padding: 11px 8px; font-size: 15px; font-weight: 800; cursor: pointer;
  box-shadow: 0 6px 18px rgba(225, 29, 72, .45); transition: .15s;
}
.w-play:hover { filter: brightness(1.12); transform: translateY(-1px); }
#playerBox { scroll-margin-top: 90px; }
.w-title { margin: 0 0 6px; font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: .2px; }
.w-orig { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
.w-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pill { padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.p-purple { background: rgba(139, 92, 246, .16); color: #a78bfa; }
.p-dark { background: #14161b; color: #fff; border: 1px solid var(--line); }
.p-green { background: rgba(34, 197, 94, .14); color: #4ade80; }
.p-gold { background: rgba(245, 197, 66, .14); color: var(--gold); }
.w-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; margin-bottom: 6px; }
.w-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.w-card-head { display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.w-count {
  min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #60a5fa;
  border: 1.5px solid rgba(96, 165, 250, .5); background: rgba(96, 165, 250, .08);
}
.w-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.w-tag {
  padding: 7px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  color: #60a5fa; border: 1px solid rgba(96, 165, 250, .45); background: rgba(96, 165, 250, .07);
}
.w-kv { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; color: var(--muted); font-size: 14.5px; }
.w-kv b { color: var(--text); font-size: 16px; }
.w-kv b.c-green { color: #4ade80; }
.w-kv b.c-pink { color: #f472b6; }
.w-sec { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 28px 0 12px; }
.w-sec .bar { width: 5px; height: 24px; border-radius: 3px; background: #ef4444; flex: none; }
.cast-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.cast-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 8px 12px; text-align: center; }
.cast-av {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden; margin: 0 auto 10px;
  background: #23262e; display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; color: var(--muted);
}
.cast-av img { width: 100%; height: 100%; object-fit: cover; }
.cast-name { font-weight: 700; font-size: 14px; }
.cast-char { color: var(--muted); font-size: 12.5px; margin-top: 3px; }

/* ---------- Hàng phim / lưới ---------- */
.row { margin-bottom: 34px; }
/* Khi đang lọc phim: ẩn các hàng gợi ý, chỉ hiện kết quả lọc ở trên cùng */
main.content.filtering .curated-row { display: none; }
#allSection { scroll-margin-top: 90px; }
.row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.row-head h2 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.row-head h2::before { content: ''; width: 5px; height: 22px; border-radius: 3px; background: #ef4444; flex: none; }
.link-more { color: var(--gold); text-decoration: none; font-weight: 600; font-size: 14px; }
.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
/* Trang chủ: 8 phim mỗi dòng trên màn hình lớn */
@media (min-width: 1280px) {
  .grid.cols-8 { grid-template-columns: repeat(8, 1fr); }
}
.page-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* ---------- Thẻ phim ---------- */
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid transparent; transition: .2s; }
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card-poster { position: relative; display: block; aspect-ratio: 2/3; background: #0a0b0e; }
.card-poster img { width: 100%; height: 100%; object-fit: cover; }
.no-poster { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.card-rate {
  position: absolute; left: 8px; bottom: 8px;
  background: rgba(0, 0, 0, .72); color: var(--gold);
  font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.card-dub {
  position: absolute; top: 8px; left: 8px;
  background: linear-gradient(135deg, #f97316, #ef4444); color: #fff;
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45); white-space: nowrap;
}
.card-dub .dub-short { display: none; }
.card-eps {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0, 0, 0, .72); border: 1px solid #3b82f6; color: #bfdbfe;
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
@media (max-width: 640px) {
  .card-dub { font-size: 9px; padding: 3px 7px; top: 6px; left: 6px; }
  .card-dub .dub-full { display: none; }
  .card-dub .dub-short { display: inline; }
}
.w-dub {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: linear-gradient(135deg, #f97316, #ef4444); color: #fff;
  font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45); white-space: nowrap;
}
.card-meta .kind { font-weight: 700; font-size: 12px; }
.card-meta .kind.is-tv { color: #a78bfa; }
.card-meta .kind.is-movie { color: #4ade80; }
.heart {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px;
  border-radius: 50%; border: none; cursor: pointer; font-size: 17px;
  background: rgba(0,0,0,.6); color: #fff; transition: .2s;
}
.heart:hover { transform: scale(1.15); }
.heart.liked { background: var(--red); color: #fff; }
.card-body { padding: 10px; }
.card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-weight: 700; font-size: 14px; text-decoration: none;
  line-height: 1.35; min-height: 2.7em;
}
.card-title:hover { color: var(--gold); }
.card-meta { display: flex; gap: 8px; color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ---------- Footer ---------- */
#siteFooter { border-top: 1px solid var(--line); margin-top: 30px; }
.footer-in {
  max-width: 1600px; margin: 0 auto; padding: 22px 16px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px;
}
.visits b { color: var(--gold); font-size: 16px; }

/* ---------- Nút / form ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 14px;
  transition: .15s;
}
.btn.gold { background: var(--gold); color: #111; }
.btn.gold:hover { background: var(--gold-d); }
.btn.ghost { background: var(--bg2); color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--gold); }
.btn.danger { background: rgba(229,72,77,.12); color: #ff9a9e; border: 1px solid rgba(229,72,77,.4); }
.btn.wide { width: 100%; }
.btn.sm { padding: 6px 10px; font-size: 12px; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.liked { background: var(--red); color: #fff; border-color: var(--red); }

label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
input, select, textarea {
  width: 100%; margin-top: 6px; background: var(--bg2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; }
.form-note { color: var(--muted); font-size: 13px; }
.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--gold); font-size: 13px; font-weight: 700; text-decoration: underline;
}
.inline-form { display: flex; gap: 8px; margin-bottom: 14px; }
.inline-form input { margin-top: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ---------- Rail ngang trang chủ ---------- */
.h-rail {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 4px 2px 12px; scroll-snap-type: x mandatory;
}
.h-rail::-webkit-scrollbar { height: 8px; }
.h-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.h-cell { flex: 0 0 200px; scroll-snap-align: start; display: flex; align-items: flex-end; gap: 4px; }
.h-cell .card { flex: 1; min-width: 0; }
@media (max-width: 640px) { .h-cell { flex-basis: 140px; } }

/* ---------- Footer: tuyên bố + gửi yêu cầu ---------- */
.footer-disclaimer {
  max-width: 1600px; margin: 0 auto; padding: 4px 16px 24px;
  text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.75;
}
.footer-disclaimer p { margin: 0 0 10px; }

/* ---------- Tab Yêu cầu (admin) ---------- */
.tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px;
  border-radius: 999px; background: #e11d48; color: #fff;
  font-size: 11px; font-weight: 800;
}
.tab-badge[hidden] { display: none; }
.req-row { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.req-row.is-new { border-color: rgba(225, 29, 72, .5); }
.req-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.req-head a { color: var(--gold); text-decoration: none; }
.req-status { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.req-status.new { background: rgba(225, 29, 72, .15); color: #fb7185; }
.req-status.done { background: rgba(34, 197, 94, .15); color: #4ade80; }
.req-msg { margin: 0 0 10px; white-space: pre-wrap; line-height: 1.6; }
.req-actions { display: flex; gap: 8px; }

/* ---------- Modal ---------- */
.modal-bg {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 16px;
  width: 100%; max-width: 440px; max-height: 88vh; overflow-y: auto;
  padding: 24px; position: relative;
}
.modal-x {
  position: absolute; top: 10px; right: 10px; background: none; border: none;
  color: var(--muted); font-size: 18px; cursor: pointer;
}
.modal h3 { margin: 0 0 16px; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  white-space: nowrap;
  flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--muted); cursor: pointer; font-weight: 700; font-size: 13px;
}
.tab.on { color: var(--gold); border-color: var(--gold); background: rgba(245,197,24,.08); }
.menu-list { display: grid; gap: 10px; }

/* ---------- Nút Đăng nhập / Đăng ký trên header ---------- */
.header-auth { display: flex; gap: 8px; align-items: center; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.h-user {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 13px; font-weight: 600;
}
.h-user:hover { border-color: var(--gold); }
.h-user .fab-avatar { width: 28px; height: 28px; font-size: 14px; }
.h-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fab-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: #111; font-weight: 800;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%) translateY(20px);
  background: #1f7a3a; color: #fff; padding: 12px 20px; border-radius: 12px;
  font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none;
  transition: .25s; z-index: 200; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #a33236; }

/* ---------- Trang xem phim ---------- */
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.crumb a { color: var(--gold); text-decoration: none; }
.player { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.no-video { padding: 60px 20px; text-align: center; color: var(--muted); background: var(--card); border-radius: var(--radius); }
.eps { margin-top: 14px; }
.eps-title { font-weight: 700; margin-bottom: 8px; }
.eps-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ep {
  background: var(--bg2); border: 1px solid var(--line); color: var(--text);
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.ep.on { background: var(--gold); color: #111; border-color: var(--gold); font-weight: 700; }
.servers { display: flex; flex-wrap: wrap; gap: 8px; }
.server-btn {
  background: var(--bg2); border: 1px solid var(--line); color: var(--text);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600;
}
.server-btn.on { background: var(--gold); color: #111; border-color: var(--gold); }
.card-poster .w-detail h1 .a-info .watch-info { display: flex; gap: 20px; margin: 22px 0; }
.w-poster { flex: 0 0 170px; }
.w-poster img { width: 100%; border-radius: var(--radius); }
.w-detail h1 { margin: 0 0 4px; font-size: 26px; }
.w-orig { color: var(--muted); margin-bottom: 10px; }
.w-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.w-genres { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { background: var(--bg2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 20px; font-size: 12px; }
.w-desc { line-height: 1.7; color: #d5d8de; }
.w-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* ---------- Phân trang ---------- */
.pager { display: flex; gap: 6px; justify-content: center; margin: 26px 0 10px; flex-wrap: wrap; }
.pg {
  min-width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  background: var(--bg2); border: 1px solid var(--line); color: var(--text); font-weight: 700;
}
.pg:hover:not(:disabled) { border-color: var(--gold); }
.pg.on { background: var(--gold); color: #111; border-color: var(--gold); }
.pg:disabled { opacity: .35; cursor: default; }
.pg-info { align-self: center; color: var(--muted); font-size: 13px; padding: 0 8px; }
.row { scroll-margin-top: 90px; }
.pg:disabled { opacity: .5; cursor: default; }
.pg-dots { align-self: center; color: var(--muted); }

/* ---------- Bộ sưu tập ---------- */
.col-list { display: grid; gap: 8px; margin-top: 8px; }
.col-item { display: flex; gap: 8px; align-items: center; }
.col-name {
  flex: 1; text-align: left; background: var(--bg); border: 1px solid var(--line);
  color: var(--text); padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 14px;
}
.col-name:hover { border-color: var(--gold); }
.col-del { background: none; border: none; cursor: pointer; font-size: 16px; }
.col-items { margin: 4px 0 8px 12px; display: grid; gap: 6px; }
.col-movie { display: flex; align-items: center; justify-content: space-between; background: var(--bg); border-radius: 8px; padding: 6px; }
.col-movie a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 13px; }
.col-movie img { width: 34px; height: 48px; object-fit: cover; border-radius: 6px; }
.col-movie button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 15px; }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 900px; margin: 0 auto; padding: 24px 16px; }
.gate { max-width: 440px; margin: 40px auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 28px; text-align: center; }
.gate h2 { margin-top: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.admin-head h2 { margin: 0; }
.admin-tabs { margin: 14px 0 20px; }
.smart-box { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; }
.smart-box .inline-form { margin-bottom: 0; }
.movie-form { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.form-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.poster-prev img { width: 90px; border-radius: 8px; margin-top: 8px; }
.hits { display: grid; gap: 8px; margin-top: 10px; }
.hit {
  display: flex; gap: 12px; align-items: center; text-align: left; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--text);
}
.hit:hover { border-color: var(--gold); }
.hit img { width: 44px; height: 64px; object-fit: cover; border-radius: 6px; }
.hit-no { font-size: 28px; width: 44px; text-align: center; }
.hit small { display: block; color: var(--muted); }
.admin-list { display: grid; gap: 8px; }
.a-row { display: flex; gap: 12px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.a-row img { width: 40px; height: 58px; object-fit: cover; border-radius: 6px; }
.a-no { font-size: 26px; width: 40px; text-align: center; }
.a-info { flex: 1; min-width: 0; }
.a-info small { display: block; color: var(--muted); }
.bn-form { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.bn-form h4 { margin: 0 0 8px; }
.bn-prev { max-width: 220px; border-radius: 8px; margin-top: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat b { display: block; font-size: 30px; color: var(--gold); }
.stat span { color: var(--muted); font-size: 13px; }

/* ---------- Phân tích traffic ---------- */
.tr-pills { display: flex; gap: 8px; margin: 12px 0 18px; flex-wrap: wrap; }
.tr-pills .pill { background: var(--bg2); border: 1px solid var(--line); color: var(--txt); border-radius: 999px; padding: 7px 16px; cursor: pointer; font-size: 14px; }
.tr-pills .pill.on { background: var(--gold); border-color: var(--gold); color: #1a1a1a; font-weight: 700; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.kpi b { display: block; font-size: 28px; color: var(--gold); }
.kpi span { color: var(--muted); font-size: 13px; }
.tr-chart { display: flex; align-items: flex-end; gap: 2px; height: 190px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 12px 6px; margin-bottom: 20px; }
.tr-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.tr-bar-fill { width: 70%; max-width: 34px; background: linear-gradient(180deg, var(--gold), #b8860b); border-radius: 4px 4px 0 0; }
.tr-bar-x { font-size: 10px; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.tr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tr-cols h4 { margin: 18px 0 8px; }
.tr-table { width: 100%; border-collapse: collapse; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 14px; }
.tr-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.tr-table tr:last-child td { border-bottom: none; }
.tr-table td.num { text-align: right; font-weight: 700; color: var(--gold); white-space: nowrap; }
.tr-dev { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.tr-dev-row { display: flex; justify-content: space-between; font-size: 14px; margin: 6px 0 4px; }
.tr-dev-bar { height: 8px; background: #222; border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.tr-dev-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #b8860b); border-radius: 4px; }
.setup-note { background: var(--bg2); border: 1px dashed var(--gold); border-radius: var(--radius); padding: 20px; margin-top: 12px; }
.setup-note h4 { margin: 0 0 8px; }
.setup-note code { background: #222; padding: 2px 8px; border-radius: 6px; }
@media (max-width: 760px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .tr-cols { grid-template-columns: 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 1100px) {
  /* Gộp 1 cột: selector phải đủ mạnh để thắng các rule desktop .no-*-ad / .watch */
  .layout,
  .layout.no-right-ad,
  .layout.no-left-ad,
  .layout.watch,
  .layout.watch.no-left-ad,
  .layout.watch.no-right-ad,
  .layout.watch.no-left-ad.no-right-ad { grid-template-columns: 1fr; padding: 12px; }
  .rail, .rail-left, .rail-right {
    position: static; display: block; background: none; border: none; padding: 0;
  }
  .rail-ad { display: none; }
  .rail-right { display: none; }
}
@media (max-width: 640px) {
  .w-top { gap: 14px; margin: 16px 0 14px; }
  .w-poster { flex-basis: 118px; border-radius: 10px; }
  .w-play { left: 6px; right: 6px; bottom: 6px; padding: 7px 4px; font-size: 12px; border-radius: 8px; }
  .hero { height: 340px; }
  .hero.compact { height: 240px; }
  .hero-info { padding: 18px 18px 32px; }
  .hero-dots { bottom: 10px; }
  .hero-dots span { width: 12px; height: 12px; }
  .hero-desc { display: none; }
  /* Header mobile 2 hàng: hàng 1 logo + tài khoản, hàng 2 menu + tìm kiếm full */
  .header-in { flex-wrap: wrap; row-gap: 8px; column-gap: 10px; }
  .logo { font-size: 19px; }
  .header-auth { margin-left: auto; }
  .header-auth .btn { white-space: nowrap; }
  .nav { order: 3; }
  .header-search { order: 4; flex: 1 1 0; min-width: 0; margin-left: 0; }
  .header-search input { width: 100%; }
  .grid, .page-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .card-meta { flex-wrap: wrap; gap: 6px; }
  .card-title { font-size: 13px; }
  .nav a { padding: 8px 8px; font-size: 13px; }
  .header-in { gap: 10px; }
  .header-auth .btn.sm { padding: 7px 10px; font-size: 12px; }
  .h-name { display: none; }
  .h-user { padding: 4px; }
  .watch-info { flex-direction: column; }
  .w-poster { flex: none; width: 130px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero-arrow { display: none; }
}

/* ================= Chatbot trợ lý phim ================= */
.chat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: #fff;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  box-shadow: 0 6px 22px rgba(124, 58, 237, .45);
  transition: transform .2s;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-panel {
  position: fixed; right: 18px; bottom: 88px; z-index: 91;
  width: 380px; max-width: calc(100vw - 28px);
  height: 540px; max-height: calc(100dvh - 120px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 18px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .28);
  font-family: inherit;
}
.chat-panel[hidden] { display: none; }
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
}
.chat-head button {
  border: none; background: rgba(255,255,255,.18); color: #fff;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px;
}
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f6f4ff; }
.chat-msg {
  max-width: 85%; padding: 10px 13px; border-radius: 14px;
  font-size: 14px; line-height: 1.55; word-wrap: break-word;
}
.chat-msg.bot { align-self: flex-start; background: #fff; color: #1e1b3a; border: 1px solid #e6e1f7; border-bottom-left-radius: 4px; }
.chat-msg.user { align-self: flex-end; background: #2563eb; color: #fff; border-bottom-right-radius: 4px; }
.chat-chips { display: flex; gap: 8px; padding: 10px 12px 4px; overflow-x: auto; background: #f6f4ff; }
.chat-chip {
  flex: none; white-space: nowrap; cursor: pointer;
  border: 1.5px solid #f5b301; background: #fff8e6; color: #8a6100;
  border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600;
}
.chat-chip:hover { background: #f5b301; color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #eee; }
.chat-form input {
  flex: 1; border: 1.5px solid #d9d4f5; border-radius: 999px;
  padding: 10px 14px; font-size: 14px; outline: none; font-family: inherit;
}
.chat-form input:focus { border-color: #7c3aed; }
.chat-form button {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #7c3aed, #2563eb); color: #fff; font-size: 17px;
}
.typing { display: inline-flex; gap: 5px; padding: 4px 2px; }
.typing i {
  width: 8px; height: 8px; border-radius: 50%; background: #7c3aed;
  animation: chatBlink 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes chatBlink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

@media (max-width: 480px) {
  .chat-fab { right: 14px; bottom: 14px; width: 52px; height: 52px; font-size: 23px; }
  .chat-panel { right: 12px; bottom: 78px; width: calc(100vw - 24px); }
}

/* ---------- Linh vật tải trang ---------- */
#bootLoader {
  position: fixed; inset: 0; z-index: 9999;
  background: #0b0d12;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .45s ease;
}
#bootLoader.done { opacity: 0; pointer-events: none; }
.boot-inner { display: flex; flex-direction: column; align-items: center; }
.mascot { width: 110px; height: 110px; transform-origin: 50% 100%;
  animation: mascot-hop .72s cubic-bezier(.34,1.4,.64,1) infinite; }
@keyframes mascot-hop {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  32%      { transform: translateY(-26px) scale(.96, 1.07); }
  55%      { transform: translateY(0) scale(1.14, .8); }
  72%      { transform: translateY(-6px) scale(.99, 1.02); }
}
.mascot-shadow { width: 64px; height: 12px; margin-top: 2px; border-radius: 50%;
  background: rgba(0,0,0,.45); filter: blur(2px);
  animation: mascot-sh .72s cubic-bezier(.34,1.4,.64,1) infinite; }
@keyframes mascot-sh {
  0%, 100% { transform: scaleX(1); opacity: .8; }
  32%      { transform: scaleX(.62); opacity: .45; }
  55%      { transform: scaleX(1.18); opacity: .9; }
}
.boot-text { margin-top: 14px; color: var(--muted); font-size: 14px; font-weight: 600; }
.boot-text .dots i { font-style: normal; animation: dot-blink 1.2s infinite; }
.boot-text .dots i:nth-child(2) { animation-delay: .2s; }
.boot-text .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot-blink { 0%, 60%, 100% { opacity: .2; } 30% { opacity: 1; } }
