/* style/index.css */
/* 智能文字颜色选择器 - body背景色来自 shared.css，默认使用浅色背景配深色文字 */
.page-index {
  color: #333333; /* Mặc định sử dụng màu chữ tối */
  background: #F5F7FA; /* Màu nền trang */
}

/* Phần video */
.page-index__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* 🚨 body đã có padding-top: var(--header-offset)，ở đây chỉ dùng khoảng cách nhỏ */
  background: #2c2c2c; /* Nền tối */
}

.page-index__video-container {
  position: relative;
  width: 100%; /* 🚨 Trên desktop phải có width: 100% */
  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;
  overflow: hidden;
}

.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%; /* Tỷ lệ khung hình 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.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 */
}

.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: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(229, 57, 53, 0.8); /* Sử dụng màu chủ đạo */
  border-radius: 5px;
  white-space: nowrap;
}

.page-index__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-index__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Màu gradient của nút */
  color: #ffffff;
  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;
}

.page-index__play-now-button:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%); /* Gradient ngược hoặc màu đậm hơn */
  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);
}

/* Phần ưu đãi và quà tặng */
.page-index__promo-dark {
  background: #2c2c2c; /* Nền xám đậm */
  padding: 24px 16px;
  color: #ffffff; /* Màu chữ nhạt cho nền tối */
}

.page-index__gifcode-tabs {
  max-width: 1250px;
  margin: 0 auto;
}

.page-index__gifcode-title {
  color: #E53935; /* Màu chủ đạo */
  text-align: center;
  text-transform: uppercase;
  font-size: 1.8rem;
  margin-bottom: 24px;
  font-weight: bold;
}

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

.page-index__gifcode-tab-nav a {
  color: #cccccc; /* Màu chưa kích hoạt */
  text-decoration: none;
  text-transform: uppercase;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-weight: bold;
}

.page-index__gifcode-tab-nav a.is-active {
  color: #E53935; /* Màu kích hoạt */
  border-bottom-color: #E53935;
}

.page-index__gifcode-panel {
  display: none;
}

.page-index__gifcode-panel.is-active {
  display: block;
}

.page-index__gifcode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1250px;
  margin: 0 auto;
}

.page-index__gifcode-col {
  flex: 1 1 calc(50% - 6px); /* 2 cột trên desktop */
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.page-index__gifcode-img {
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  background: #3a3a3a; /* Nền thẻ */
}

.page-index__gifcode-img img {
  display: block;
  width: 100%;
  aspect-ratio: 370 / 127; /* Giữ tỷ lệ khung hình */
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-index__gifcode-img:hover img {
  transform: scale(1.03);
}

.page-index__blog-section-title {
  color: #E53935; /* Màu chủ đạo */
  text-align: center;
  margin: 40px 0 0; /* Trong khu vực nền tối, phía trên khu vực slider */
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
}

/* Phần slider bài viết mới nhất */
.page-index__blog-slider {
  padding: 32px 0 60px;
  background: #F5F7FA; /* Nền nhạt */
  color: #333333; /* Màu chữ tối cho nền nhạt */
}