/* ==========================================
       CSS Prefix: tygu_
       風格：Apple 極簡與懸疑色調結合
    ========================================== */
:root {
  --tygu-bg-dark: #0a0908;
  --tygu-paper: #ffffff;
  --tygu-apple-bg: #f5f5f7;
  --tygu-suspense-red: #8b0000;
  --tygu-suspense-red-hover: #a70000;
  --tygu-ink: #1d1d1f;
  --tygu-subtext: #86868b;
}

/* 主外層背景：加上幾何交叉網格線（暗色懸疑氛圍） */
.tygu_wrapper {
  background-color: #111113;
  border: 6px solid #75382c;
  position: relative;
  overflow: hidden;
  /* 運用 SVG 輕量雙向斜線與微弱紅線紋理，交織出懸疑幾何網格 */
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
    linear-gradient(45deg, rgba(139, 0, 0, 0.08) 25%, transparent 25%),
    linear-gradient(315deg, rgba(139, 0, 0, 0.08) 25%, transparent 25%);
  background-size: 20px 20px;
  background-position:
    0 0,
    0 30px,
    30px -30px,
    -30px 0px;
}

/* 主視覺 Banner */
.tygu_hero {
  position: relative;
  width: 100%;
  background: #000;
  border-bottom: 1px solid #2d2d2d;
}
.tygu_hero_img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.95);
}

/* Tab 導覽選單 */
.tygu_nav_container {
  background: rgba(20, 17, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.tygu_nav_tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: none;
  padding-top: 10px;
  padding-bottom: 2px;
  justify-content: center;
}
.tygu_nav_tabs::-webkit-scrollbar {
  display: none;
}
.tygu_nav_item {
  margin: 0 4px;
}

/* 選單 Hover 與基本樣式（包含微互動縮放動畫） */
.tygu_nav_link {
  color: #a1a1a6 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 20px !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  margin: 0.8rem 0.5rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 影集選單 Hover 動畫效果：光暈、上浮縮放與下方紅線出現 */
.tygu_nav_link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--tygu-suspense-red);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
  opacity: 0;
}

.tygu_nav_link:hover:not(.active) {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tygu_nav_link:hover:not(.active)::after {
  width: 40%;
  opacity: 1;
}

.tygu_nav_link.active {
  color: #ffffff !important;
  background: var(--tygu-suspense-red) !important;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(139, 0, 0, 0.6);
}

/* 外層容器：Apple 質感淡灰底色與柔和圓角 */
.tygu_case_folder {
  background-color: var(--tygu-apple-bg);
  border-radius: 16px;
  padding: 3rem 1.5rem;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 1px rgba(0, 0, 0, 0.1);
}

/* 節目 Card 模組：Apple 經典卡片質感 */
.tygu_card {
  background: #ffffff;
  border-radius: 10px;
  padding: 15px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  height: auto;
  width: 350px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
  transition:
    transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.tygu_card:hover {
  transform: scale(1.02);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.03);
}

/* 膠帶效果已隱藏以符合 Apple 簡潔風格 */
.tygu_tape {
  display: none;
}

/* 海報圖片 (1:1，對應 500x500 圖片) 圓角包覆 */
.tygu_card_img_wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #f0f0f2;
  overflow: hidden;
  border-radius: 12px;
}
.tygu_card_img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tygu_case_no {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--tygu-subtext);
  text-transform: uppercase;
  margin-top: 10px;
  margin-bottom: 2px;
}
.tygu_card_body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: center;
  padding: 0 4px;
}
.tygu_card_title {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
    sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tygu-ink);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
  width: 100%;
}
.tygu_card_price {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    sans-serif;
  font-size: 0.85rem;
  color: var(--tygu-subtext);
  font-weight: 400;
  margin-bottom: 0.8rem;
  width: 100%;
}

/* 懸疑風格膠囊按鈕 Style */
.tygu_btn_subscribe {
  margin-top: auto;
  background: var(--tygu-suspense-red);
  color: #ffffff;
  border: none;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: 26px;
  text-decoration: none;
  display: block;
  max-width: 220px;
  transition:
    background 0.2s ease,
    transform 0.1s ease;
}
.tygu_btn_subscribe:hover {
  background: var(--tygu-suspense-red-hover);
  color: #ffffff;
}
.tygu_btn_subscribe:active {
  transform: scale(0.98);
}

/* 尚未提供連結時：敬請期待（不可點選） */
.tygu_btn_subscribe.tygu_btn_disabled {
  background: #c7c7cc;
  color: #ffffff;
  cursor: not-allowed;
  pointer-events: none;
}
.tygu_btn_subscribe.tygu_btn_disabled:hover {
  background: #c7c7cc;
}

/* ==========================================
       新增：影片 + 介紹 區塊（每個 Tab 內容最上方）
    ========================================== */
.tygu_video_row {
  margin-bottom: 2rem;
}

/* 左側：嵌入影片，套用 Bootstrap 5.3 .ratio 響應式比例 */
.tygu_video_embed_wrapper {
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.18),
    inset 0 0 1px rgba(0, 0, 0, 0.1);
}
.tygu_video_embed_wrapper iframe {
  border: 0;
}

/* 右側：影片介紹（標題／演員／內容） */
.tygu_video_info {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0.25rem;
}
.tygu_video_title {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
    sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tygu-ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.tygu_video_actors {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tygu-subtext);
  margin-bottom: 0.9rem;
}
.tygu_video_desc {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    sans-serif;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #48484a;
}

@media (max-width: 767.98px) {
  .tygu_video_info {
    padding-top: 1.2rem;
    align-items: center;
    text-align: left;
  }
  .tygu_video_info .tygu_btn_subscribe {
    margin-left: auto;
    margin-right: auto;
  }
}

/* 手機視窗微調 */
@media (max-width: 575.98px) {
  .tygu_case_folder {
    padding: 1rem 0.75rem;
    border-radius: 16px;
  }
  .tygu_nav_tabs {
    justify-content: flex-start;
  }
  .tygu_nav_link {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    margin: 0.4rem 0.2rem;
  }
}
