body{
  margin: 0;
}
/* ===== KV HERO VIDEO SECTION ===== */
.kv_hero {
  position: relative;
  width: 100%;
  background: #010517;
  z-index: 1;
}

.kv_hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: 0;
  right: 0;
  height: 10em;
  background: linear-gradient(180deg, rgba(1,5,23,0) 9.41%, #010517 25%, #010517 80%, rgba(1,5,23,0) 80.17%);
  z-index: 10;
  pointer-events: none;
}

.kv_video_container {
  position: relative;
  width: 100%;
  background: #010517;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* KV 背景圖片樣式 */
.kv_bg_image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.kv_bg_desktop {
  display: block;
}

.kv_bg_mobile {
  display: none;
}

.kv_video_desktop,
.kv_video_mobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: opacity 0.8s ease-in-out;
}
.kv_video_desktop video{
  width: 100%;
}
.kv_video_mobile video{
  width: auto;
  height: 100%;
}

/* YouTube API 播放器容器樣式 */
.kv_video_desktop #desktop-video,
.kv_video_mobile #mobile-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  opacity: 1;
  object-fit: cover;
}

/* 完全禁用 YouTube iframe 內容的互動 */
.kv_video_container {
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  -webkit-touch-callout: none !important;
  overflow: hidden !important;
}

/* 額外的 YouTube UI 隱藏措施 */
.kv_video_container {
  /* 確保沒有額外的 UI 元素顯示 */
  isolation: isolate;
}

.kv_video_container * {
  /* 禁用所有子元素的互動 */
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

/* Desktop: 顯示桌機版影片，隱藏手機版 */
.kv_video_desktop {
  display: block;
}

.kv_video_mobile {
  display: none;
}

/* Mobile: 顯示手機版影片，隱藏桌機版 */
@media (max-width: 768px) {
  .kv_bg_desktop {
    display: none;
  }
  
  .kv_bg_mobile {
    display: block;
  }
  
  .kv_video_desktop {
    display: none;
  }
  
  .kv_video_mobile {
    display: block;
  }
  .kv_hero::after{
    bottom: -10%;
    height: 9em;
    background: linear-gradient(180deg, rgb(0 36 98 / 0%) 9.41%, #010517 25%, #010517 80%, rgb(0 38 106 / 0%) 80.17%);
  }
}
@media (max-width: 480px) {
  .kv_hero::after{
    height: 7em;
    bottom: -13%;
  }
}

/* ===== KV HERO VIDEO SECTION EDD===== */