/* style/index.css */
/* 🚨 智能颜色对比度保障系统 - body背景色为默认白色，因此文字颜色应为深色 */
.page-index {
  color: #333333; /* Mặc định chữ màu tối cho nền sáng */
  background-color: var(--secondary-color); /* Ensure a light background for the page body where modules are not dark */
}

/* Biến màu cho dễ quản lý */
:root {
  --primary-color: #26A9E0; /* Màu xanh chủ đạo của e2betvip */
  --primary-color-rgb: 38, 169, 224; /* RGB values for primary color */
  --secondary-color: #FFFFFF; /* Màu trắng phụ trợ */
  --dark-bg-color: #2c2c2c; /* Màu nền tối cho khu vực promo */
  --text-dark: #333333;
  --text-light: #ffffff;
  --link-color: #26A9E0;
  --button-login-color: #EA7C07; /* Màu cam cho nút đăng nhập */
}

/* 🚨 桌面端视频区域样式（必须严格遵守） */
.page-index__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  /* 🚨 页头整段高度由 shared 的 body { padding-top: var(--header-offset); } 承担；此处仅用小额顶距，禁止再写 var(--header-offset) 以免双倍空白 */
  padding-top: 10px;
  box-sizing: border-box;
}

.page-index__video-container {
  position: relative;
  width: 100%; /* 🚨 必须包含 width: 100% 用于桌面端 Flex 布局 */
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* 🚨 视频点击链接样式（必须严格遵守） */
.page-index__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px; /* Added for consistency with video wrapper */
  overflow: hidden; /* Added for consistency with video wrapper */
}

.page-index__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-index__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 宽高比 - 🚨 PageSpeed优化：固定宽高比 tránh layout shift (CLS) */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: #000; /* Fallback for video area */
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Ngăn chặn điều khiển video chặn sự kiện click */
  background-color: #000; /* Fallback for video area */
}

/* 🚨 Video click hint overlay style (optional, enhances user experience) */
.page-index__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-index__video-link:hover .page-index__video-overlay {
  opacity: 1;
}

.page-index__video-click-hint {
  color: var(--text-light);
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(var(--primary-color-rgb), 0.8); /* Using RGB variable */
  border-radius: 5px;
  white-space: nowrap;
}

/* 🚨 Play Now button style (must strictly adhere, located below the video in the middle) */
.page-index__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  box-sizing: border-box;
}

.page-index__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: nowrap; /* Ngăn chặn text xuống dòng trên desktop */
}

.page-index__play-now-button:hover {
  background: #1e8cd0; /* Slightly darker primary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 🚨 Module 2: Promo Gift Zone */
.page-index__promo-dark {
  background: var(--dark-bg-color); /* #2c2c2c */
  padding: 24px 16px;
  box-sizing: border-box;
  color: var(--text-light); /* Light text on dark background */
}

.page-index__gifcode-tabs {
  max-width: 1250px;
  margin: 0 auto;
  padding: 20px 0;
  box-sizing: border-box;
}

.page-index__gifcode-title {
  color: var(--primary-color); /* #26A9E0 */
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: bold;
}

.page-index__gifcode-tab-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 16px 0 30px;
}

.page-index__gifcode-tab-nav li {
  margin: 0;
}

.page-index__gifcode-tab-nav a {
  color: #bbb; /* Light grey for inactive tabs */
  text-decoration: none;
  text-transform: uppercase;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-weight: bold;
}