/* Tách từ index.php — toàn bộ style ở đây */
:root {
  --bg-deep: #0a0612;
  --bg-panel: rgba(0, 0, 0, 0.58);
  /* Tím ngả xanh dương */
  --purple-glow: #3f74d6;
  --purple-deep: #13224a;
  --gold: #ffd800;
  --gold-bright: #ffda14;
  --text: #e8e4f0;
  --text-dim: #b8b0c8;
  --border-table: rgba(255, 255, 255, 0.12);
  --accent-red: #c41e3a;
  --max-w: 1200px;
  --cyan: #00e7ff;
  --blue-tint: rgba(60, 130, 220, 0.12);
  --frame: rgba(90, 150, 255, 0.22);
  /* Icon bullet (bạn có thể thay file này) */
  --bullet-icon: url("../images/bullet.png");
  --hi-green: #00ff66;
  --hi-red: #ff4d4d;
  --hi-blue: #00e7ff;
  --hi-orange: #ffcc33;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: #000 url("../images/page-bg.png") center / cover no-repeat;
  background-attachment: fixed; /* nền đứng yên, không trượt */
  min-height: 100vh;
  padding-top: 0; /* để menu đè lên video */
}

/* Video intro: cố định trong 1 khu (không làm nền toàn trang) */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}

.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none; /* hiển thị đúng màu video gốc */
}

.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent; /* không đè màu lên video */
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--gold-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1300px; /* rộng hơn (giống ảnh 2) */
  margin: 0 auto;
  padding: 0 18px;
}

/* ——— Header / Nav ——— */
.top-bar {
  position: fixed; /* menu trượt theo (sticky) tới hết trang */
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.10);
  border-bottom: 1px solid rgba(120, 170, 255, 0.10);
  padding: 10px 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease, opacity 220ms ease;
}

/* Khi đã cuộn: nền rõ hơn chút */
.top-bar.is-scrolled {
  background: rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(120, 170, 255, 0.14);
}

/* Trượt ẩn/hiện theo hướng cuộn */
.top-bar.is-hidden {
  transform: translateY(-110%);
  opacity: 0.92;
}

.top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
  text-transform: none;
  text-decoration: none;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.nav-links a:hover {
  color: var(--gold);
  text-decoration: none;
}

.social-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-row a {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.social-row a:hover {
  filter: brightness(120%);
}

/* Icon PNG cho social (bạn đặt file trong images/icons/) */
.social-ico {
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.95;
}
.social-ico.fb { background-image: url("../images/fb.png"); }
.social-ico.gr { background-image: url("../images/gr.png"); }
.social-ico.zl { background-image: url("../images/icons/zalo.png"); }

/* ——— Video hero ——— */
#hero-video {
  position: relative;
  width: 100%;
  height: 100vh; /* full màn hình */
  min-height: 680px;
  padding: 0;
}

/* Không cần spacer trong hero khi body đã padding-top */

/* Cho phép video hiển thị trong hero */
#hero-video video {
  display: block;
}

.video-shell {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  background: #000;
  border: 1px solid var(--frame);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.15),
    0 0 26px rgba(60, 120, 220, 0.22),
    inset 0 0 80px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.video-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(60, 30, 100, 0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

#hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* ——— Main ——— */
main {
  width: 100%;
  padding: 8px 0 48px;
  position: relative;
}


/* Phân cách có kim cương giữa */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 22px;
  color: var(--purple-glow);
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(60, 130, 220, 0.9), rgba(212, 175, 55, 0.45), rgba(60, 130, 220, 0.9), transparent);
  box-shadow: 0 0 8px rgba(60, 130, 220, 0.55);
}

.section-divider span {
  font-size: 10px;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  transform: rotate(45deg);
  display: inline-block;
  line-height: 1;
}

.block-title {
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  text-align: center;
  margin: 0 0 18px;
  color: var(--text);
  text-shadow:
    0 0 20px rgba(80, 140, 240, 0.45),
    0 2px 0 rgba(0, 0, 0, 0.8);
  letter-spacing: 0.04em;
}

.block-title .gold {
  color: var(--gold);
  font-weight: 800;
}

/* Hai cột */
.grid-two {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 30px;
  align-items: start;
}

.stack-panels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Chia khung: text + ảnh bên phải */
.panel-split {
  position: relative;
  z-index: 1;
  display: block; /* cho text trải full, đè lên ảnh */
}

.panel-media {
  position: absolute;
  right: 18px;
  top: 10px;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0; /* nằm dưới text */
  pointer-events: none;
  opacity: 0.95;
}

@keyframes pulseScale {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.pulse-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  animation: pulseScale 1.25s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(0, 231, 255, 0.18));
}

@media (max-width: 900px) {
  .panel-media {
    position: static;
    width: auto;
    height: auto;
    opacity: 1;
    margin-top: 10px;
  }
}

@media (max-width: 900px) {
  .grid-two {
    grid-template-columns: 1fr;
  }
}

.panel-specs {
  position: relative;
  padding: 26px 28px 30px;
  background: var(--bg-panel);
  border: 1px solid rgba(120, 170, 255, 0.12);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.panel-specs::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--blue-tint) 0%, transparent 70%),
    radial-gradient(ellipse 70% 90% at 85% 50%, rgba(60, 130, 220, 0.14) 0%, transparent 65%);
  pointer-events: none;
}

.panel-specs::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%23a02020' d='M160 40c-20 40-60 50-80 90 20-10 50-10 80-20-30 20-50 40-60 70 30-25 50-55 60-90z'/%3E%3C/svg%3E") right -30px center / 180px no-repeat;
  pointer-events: none;
}

.subhead-specs {
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cyan);
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 10px #000;
}

.spec-list {
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  list-style: none;
}

.spec-list li {
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 0 3px #000;
    padding-left: 30px;
    background: var(--bullet-icon) no-repeat 0 0.0em / 25px 25px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
}

/* Không tách dòng các cụm highlight (vd: + 13, 13h00 ngày...) */
.spec-list li span[class^="hi"] {
  white-space: nowrap;
}

.spec-list li .hi {
  color: var(--gold-bright);
  font-weight: 800;
}

.spec-list li .hi-green {
  color: var(--hi-green);
  font-weight: 800;
}

.spec-list li .hi-blue {
  color: #ffffff; /* đổi xanh dương -> trắng */
  font-weight: 800;
}

.spec-list li .hi-red {
  color: var(--hi-red);
  font-weight: 800;
}

.spec-list li .hi-orange {
  color: var(--hi-orange);
  font-weight: 800;
}

.spec-list li.li-label {
  color: rgba(210, 240, 255, 0.9);
  font-weight: 900;
  letter-spacing: 0.02em;
}

/* Bảng */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(120, 170, 255, 0.12);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.34);
  border-radius: 2px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.62);
  min-width: 520px;
}

.data-table caption {
  font-family: inherit; /* Tahoma */
  font-weight: 700;
  color: var(--gold);
  padding: 14px 12px;
  caption-side: top;
  text-align: center;
  background: linear-gradient(180deg, rgba(20, 35, 70, 0.88) 0%, rgba(10, 12, 22, 0.96) 100%);
  border-bottom: 1px solid var(--border-table);
}

.data-table thead th {
  font-family: inherit; /* Tahoma */
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 10px;
  text-align: center;
  color: var(--text);
  background: linear-gradient(180deg, #244b98 0%, #0a1022 100%);
  border: 1px solid var(--border-table);
  text-shadow: 0 0 12px rgba(120, 170, 255, 0.35);
}

.data-table tbody td {
  padding: 12px 12px; /* ô to hơn */
  border: 1px solid var(--border-table);
  color: var(--text);
  vertical-align: middle;
  text-align: center;
}

/* Cột TÊN SỰ KIỆN nổi bật vàng-cam */
.data-table tbody td:first-child {
  color: var(--hi-orange);
  font-weight: 800;
}

.data-table tbody tr:nth-child(even) td {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.50)),
    linear-gradient(180deg, var(--blue-tint), transparent 85%);
}

.data-table tbody tr:nth-child(odd) td {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.60)),
    linear-gradient(180deg, var(--blue-tint), transparent 85%);
}

/* Footer */
.site-footer {
  margin-top: 36px;
  background: linear-gradient(180deg, #0d0d10 0%, #050506 100%);
  border-top: 1px solid rgba(120, 170, 255, 0.14);
  padding: 10px 0 10px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 120px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 0, 0, 0.55));
}

.footer-text {
  text-align: right;
  flex: 1;
  min-width: 260px;
}

.footer-text .line1 {
  color: #f0f0f5;
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.footer-text .line2 {
  color: var(--accent-red);
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-text .line3 {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 700px) {
  .footer-text {
    text-align: left;
  }
}
