/* ═══════════════════ DESIGN SYSTEM & TOKENS ═══════════════════ */
:root {
  /* Light Theme */
  --bg-color: #f8fafc;
  --text-color: #0f172a;
  --card-bg: rgba(255, 255, 255, 0.7);
  --border-color: rgba(0, 0, 0, 0.1);
  --primary-glow: rgba(229, 9, 20, 0.3);
  --accent: #E50914;
  --accent-hover: #ff1e2a;
  --text-muted: #64748b;
  --radius: 12px;
}

[data-theme="dark"] {
  /* Dark Theme */
  --bg-color: #000000;
  --text-color: #ffffff;
  --card-bg: rgba(20, 20, 20, 0.6);
  --border-color: rgba(255, 255, 255, 0.1);
  --primary-glow: rgba(229, 9, 20, 0.5);
  --text-muted: #888888;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* Glassmorphism & Borders */
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
}

/* ═══════════════════ HEADER & NAVIGATION (DESKTOP) ═══════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 40px;
  height: 40px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 24px 0;
  text-decoration: none;
  cursor: pointer;
}
.nav-item:hover {
  color: var(--text-color);
}

/* Dropdown Submenu */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
}
.dropdown a:hover {
  background: var(--border-color);
  color: var(--text-color);
}

/* Controls Wrapper (Sáng/Tối, Ngôn ngữ, Đăng nhập) */
.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-saas {
  background: var(--text-color);
  color: var(--bg-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-saas:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

/* Nút mở Menu Di Động (Hamburger) */
/* ═══════════════════ HAMBURGER & MOBILE DRAWER CORNER ═══════════════════ */

/* Nút Hamburger mặc định ẩn trên PC */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  z-index: 310;
  gap: 4px;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-2, #3A3936);
  border-radius: 2px;
  transition: transform var(--t, 0.3s), opacity var(--t, 0.3s), background-color var(--t, 0.3s);
}

body.dark .hamburger-bar {
  background-color: var(--text, #EAECEF);
}

/* Hiệu ứng hoạt họa chuyển đổi hình dáng dấu X cực nghệ nghệ khi click */
.nav-hamburger.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--red);
}
.nav-hamburger.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--red);
}

/* Định dạng cấu trúc Drawer Panel */
.nav-drawer {
  display: none; /* Chỉ kích hoạt khi vào màn hình mobile */
  width: 100%;
  background: var(--surface, #FFFFFF);
  border-top: 1px solid var(--border, #E8E3DA);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

/* Khi drawer được ra lệnh mở */
.nav-drawer.open {
  max-height: 85vh; /* Khống chế chiều cao tối đa tránh tràn */
  overflow-y: auto;  /* Hỗ trợ cuộn mượt nội bộ nếu danh sách dài */
}

.drawer-menu-wrapper {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: .12em;
  margin-bottom: 6px;
  padding-left: 8px;
}

/* CSS cho Item của menu chính trong Mobile */
.drawer-item {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  border-radius: var(--radius-sm, 6px);
  transition: background var(--t-fast), color var(--t-fast);
  display: flex;
  align-items: center;
}

.drawer-item:hover, .drawer-item.active {
  background: rgba(192, 57, 43, 0.08);
  color: var(--red);
}

/* CSS cho Link của dịch vụ công phụ */
.drawer-item-sub {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm, 6px);
  transition: all var(--t-fast);
  display: flex;
  align-items: center;
}

.drawer-item-sub:hover {
  background: var(--surface-alt);
  color: var(--text);
  padding-left: 18px; /* Hiệu ứng thụt lề nhẹ khi hover */
}


/* ═══════════════════ RESPONSIVE MEDIA QUERIES ═══════════════════ */
@media (max-width: 768px) {
  /* Ẩn các thanh Tab và Subbar mặc định của bản PC */
  .nav-tabs, .nav-subbar {
    display: none !important;
  }

  /* Kích hoạt hiển thị nút Hamburger và Drawer di động */
  .nav-hamburger {
    display: flex;
  }
  
  .nav-drawer {
    display: block;
  }

  /* Điều chỉnh giãn cách của topbar mỏng lại trên Mobile */
  .nav-top {
    height: 56px;
    justify-content: space-between;
    padding: 0 20px;
  }

  /* Giấu nhãn kbd phím tắt ⌘K trên thiết bị di động để tránh chiếm chỗ */
  .pill-kbd {
    display: none !important;
  }
  
  .nav-search-pill {
    padding: 0 10px;
  }
}

/* ═══════════════════ LAYOUT HỆ THỐNG TRANG CHỦ ═══════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

/* Thước phim tư liệu */
.section-video-intro {
  margin-top: 40px;
  width: 100%;
}
.video-intro-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.video-intro-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.video-badge {
  background: rgba(229, 9, 20, 0.1);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.video-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}
.video-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.video-meta {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.video-intro-right {
  width: 100%;
}
.video-block-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  background: #000000;
}
.video-block-wrapper video,
.video-block-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

/* ═══════════════════ RESPONSIVE OPTIMIZATION (MOBILE & TABLET) ═══════════════════ */
@media (max-width: 992px) {
  .video-intro-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  /* Khắc phục lỗi ẩn header trên mobile */
  .header-inner {
    height: 60px;
    padding: 0 16px;
  }

  .brand span {
    font-size: 15px; /* Thu nhỏ text thương hiệu để không bị tràn viền */
  }

  /* Ẩn menu điều hướng ngang trên mobile */
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--bg-color);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 24px;
    box-sizing: border-box;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    border-top: 1px solid var(--border-color);
  }

  /* Hiển thị menu khi kích hoạt trạng thái mở */
  .nav-menu.mobile-active {
    transform: translateX(0);
  }

  .nav-item {
    width: 100%;
    padding: 16px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border-color);
  }

  /* Tối ưu dropdown trên mobile dạng menu thả dọc xuống */
  .nav-item:hover .dropdown, .nav-item .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 8px 0 0 16px;
    display: none; /* Điều khiển đóng mở bằng class js nếu cần, mặc định hiển thị ẩn */
  }
  .nav-item.dropdown-open .dropdown {
    display: block;
  }

  /* Giữ nút Sáng/Tối và Đăng Nhập luôn cố định ở top bar */
  .header-controls {
    gap: 8px;
  }
  
  .header-controls .btn-saas:not(.btn-primary) {
    display: none; /* Ẩn bớt nút phụ như Đăng Ký trên thanh bar để tinh gọn khoảng trống */
  }

  .btn-saas {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Hiện nút bấm Hamburger */
  .menu-toggle-btn {
    display: block;
    order: 3; /* Đưa về vị trí cuối cùng bên phải */
  }
}

/* ═══════════════════ MULTIMEDIA INTERACTIVE SHOWCASE ═══════════════════ */
.interactive-showcase-container {
  width: 100%;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.showcase-header {
  margin-bottom: 32px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

/* Khung WebGL lơ lửng */
.showcase-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  z-index: 2;
}

#showcase-webgl-canvas {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  z-index: -1;
  pointer-events: none;
}

.showcase-media-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transform-style: preserve-3d;
  will-change: transform;
}

#showcase-main-media {
  width: 100%;
  height: 100%;
  position: relative;
  transform: translateZ(20px);
}

#showcase-main-media img,
#showcase-main-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Các góc trang trí HUD công nghệ cao */
.showcase-hud-border {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(229, 9, 20, 0.15);
  pointer-events: none;
  border-radius: calc(var(--radius) - 4px);
}

.showcase-hud-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  pointer-events: none;
}

.showcase-hud-corner.tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.showcase-hud-corner.tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.showcase-hud-corner.bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.showcase-hud-corner.br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

/* Bảng thông tin bên phải */
.showcase-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: 32px;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .showcase-info-panel {
  background: rgba(20, 20, 20, 0.6);
}

.showcase-text-content {
  margin-bottom: 24px;
}

.showcase-info-subtitle {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.showcase-info-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-color);
}

.showcase-info-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Bộ điều khiển chuyển đổi (Indicators) */
.showcase-control-wrapper {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.showcase-control-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.showcase-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.indicator-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(229, 9, 20, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  min-width: 80px;
  text-align: left;
}

.indicator-pill:hover {
  background: rgba(229, 9, 20, 0.08);
  border-color: rgba(229, 9, 20, 0.3);
  color: var(--text-color);
  transform: translateY(-2px);
}

.indicator-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.3);
}

.indicator-number {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.indicator-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 4px;
  opacity: 0.8;
}

.indicator-pill.active .indicator-type {
  opacity: 1;
}

/* Tối ưu hóa phản hồi (Responsive) */
@media (max-width: 992px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .showcase-info-panel {
    min-height: auto;
    padding: 24px;
  }
}

/* ═══════════════════ PARALLAX HERO SECTION (Full-Screen 100vh) ═══════════════════ */
.parallax-hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

#hero-parallax-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  will-change: transform;
}

.hero-parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 2;
}

.hero-parallax-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

.hero-parallax-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-parallax-badge {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(229, 9, 20, 0.2);
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 24px;
  border: 1px solid rgba(229, 9, 20, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-parallax-title {
  font-size: clamp(2.5rem, 6.5vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 24px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  perspective: 400px;
}

/* Các lớp span bao bọc từng ký tự phục vụ cho hoạt họa trượt chữ nghệ thuật của GSAP */
.char-span {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-parallax-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  line-height: 1.6;
  margin-bottom: 40px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.hero-parallax-buttons {
  display: flex;
  gap: 16px;
  z-index: 4;
}

.hero-parallax-cta {
  padding: 12px 28px !important;
  font-size: 14px !important;
  border-radius: 30px !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(229, 9, 20, 0.4) !important;
}

/* Mũi tên chỉ dẫn nghệ thuật cuộn xuống */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

.mouse-icon {
  width: 24px;
  height: 40px;
  border: 2px solid #ffffff;
  border-radius: 12px;
  position: relative;
}

.mouse-icon .wheel {
  width: 4px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  100% {
    top: 24px;
    opacity: 0;
  }
}

/* ═══════════════════ HORIZONTAL MARQUEE CAROUSEL (NotebookLM Style) ═══════════════════ */
.marquee-carousel-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 60px 0;
  z-index: 5;
}

.marquee-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.marquee-wrapper {
  width: 100%;
  overflow-x: auto;
  display: flex;
  position: relative;
  cursor: grab;
  padding: 20px 0;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.marquee-wrapper::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.marquee-wrapper.dragging {
  cursor: grabbing;
}

.marquee-track {
  display: flex;
  gap: 24px;
  padding-left: 24px;
  will-change: transform;
  /* Chạy tự động vô tận sử dụng CSS Animation keyframes */
  animation: infiniteMarquee 35s linear infinite;
}

@keyframes infiniteMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Chuyển dịch đúng một nửa chiều rộng track (phần gốc) để nối tiếp trơn tru */
    transform: translateX(calc(-50% - 12px)); 
  }
}

.marquee-card {
  flex-shrink: 0;
  width: clamp(280px, 80vw, 360px);
  min-height: 200px;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s, box-shadow 0.3s;
}

[data-theme="dark"] .marquee-card {
  background: rgba(20, 20, 20, 0.6);
}

.marquee-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(229, 9, 20, 0.3);
  box-shadow: 0 20px 40px rgba(229, 9, 20, 0.08);
}

/* Thẻ Review chữ */
.review-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-color);
  font-style: italic;
  margin-bottom: 24px;
  text-align: left;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color);
}

.author-role {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
  display: block;
}

/* Thẻ Media (Ảnh/Video) */
.card-type-video,
.card-type-image {
  padding: 0;
  overflow: hidden;
}

.card-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}

.card-media-wrapper img,
.card-media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.marquee-card:hover .card-media-wrapper img,
.marquee-card:hover .card-media-wrapper video {
  transform: scale(1.05);
}

.card-info {
  padding: 20px 24px 24px 24px;
  text-align: left;
}

.card-info-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-color);
}

.card-info-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Biểu tượng nút phát nhấp nháy cho video tự phát */
.card-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.4s;
  pointer-events: none;
}

.video-playing + .card-video-overlay {
  opacity: 0;
}

.play-pulse-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding-left: 3px;
  box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.6);
  animation: pulsePlayButton 2s infinite;
}

@keyframes pulsePlayButton {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(229, 9, 20, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(229, 9, 20, 0);
  }
}